!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="af1adad6-073d-4431-9100-e6aa5f1944bd",t._sentryDebugIdIdentifier="sentry-dbid-af1adad6-073d-4431-9100-e6aa5f1944bd")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3872],{94496:function(t,e,i){i.d(e,{DM:function(){return u},jc:function(){return d},ln:function(){return p},o5:function(){return f}});let s=Symbol(),n=Symbol(),r=(t,e)=>new Proxy(t,e),a=Object.getPrototypeOf,o=new WeakMap,c=t=>t&&(o.has(t)?o.get(t):a(t)===Object.prototype||a(t)===Array.prototype),l=t=>"object"==typeof t&&null!==t,h=t=>{if(Array.isArray(t))return Array.from(t);let e=Object.getOwnPropertyDescriptors(t);return Object.values(e).forEach(t=>{t.configurable=!0}),Object.create(a(t),e)},g=t=>t[n]||t,u=(t,e,i,a)=>{if(!c(t))return t;let o=a&&a.get(t);if(!o){let e=g(t);o=Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable)?[e,h(e)]:[e],null==a||a.set(t,o)}let[l,p]=o,f=i&&i.get(l);return f&&!!p===f[1].f||((f=((t,e)=>{let i={f:e},r=!1,a=(e,s)=>{if(!r){let n=i.a.get(t);if(n||(n={},i.a.set(t,n)),"w"===e)n.w=!0;else{let t=n[e];t||(t=new Set,n[e]=t),t.add(s)}}},o={get:(e,s)=>s===n?t:(a("k",s),u(Reflect.get(e,s),i.a,i.c,i.t)),has:(e,n)=>n===s?(r=!0,i.a.delete(t),!0):(a("h",n),Reflect.has(e,n)),getOwnPropertyDescriptor:(t,e)=>(a("o",e),Reflect.getOwnPropertyDescriptor(t,e)),ownKeys:t=>(a("w"),Reflect.ownKeys(t))};return e&&(o.set=o.deleteProperty=()=>!1),[o,i]})(l,!!p))[1].p=r(p||l,f[0]),i&&i.set(l,f)),f[1].a=e,f[1].c=i,f[1].t=a,f[1].p},p=(t,e,i,s)=>{if(Object.is(t,e))return!1;if(!l(t)||!l(e))return!0;let n=i.get(g(t));if(!n)return!0;if(s){let i=s.get(t);if(i&&i.n===e)return i.g;s.set(t,{n:e,g:!1})}let r=null;try{for(let i of n.h||[])if(r=Reflect.has(t,i)!==Reflect.has(e,i))return r;if(!0===n.w){if(r=((t,e)=>{let i=Reflect.ownKeys(t),s=Reflect.ownKeys(e);return i.length!==s.length||i.some((t,e)=>t!==s[e])})(t,e))return r}else for(let i of n.o||[])if(r=!!Reflect.getOwnPropertyDescriptor(t,i)!=!!Reflect.getOwnPropertyDescriptor(e,i))return r;for(let a of n.k||[])if(r=p(t[a],e[a],i,s))return r;return null===r&&(r=!0),r}finally{s&&s.set(t,{n:e,g:r})}},f=t=>c(t)&&t[n]||null,d=(t,e=!0)=>{o.set(t,e)}},21207:function(t,e,i){let s;i.d(e,{u:function(){return k}});var n=(t,...e)=>("function"==typeof t?t(...e):t)??void 0,r=t=>t,a=()=>{},o=(s=0,()=>(s++,s.toString(36))),c=i(44559),l=()=>!1,h=t=>Array.isArray(t),g=t=>!(null==t||"object"!=typeof t||h(t)),u=t=>"number"==typeof t&&!Number.isNaN(t),p=t=>"string"==typeof t,f=t=>"function"==typeof t;function d(t){if(!y(t)||void 0===t)return t;let e=Reflect.ownKeys(t).filter(t=>"string"==typeof t),i={};for(let s of e){let e=t[s];void 0!==e&&(i[s]=d(e))}return i}var y=t=>t&&"object"==typeof t&&t.constructor===Object;function v(...t){1===t.length?t[0]:t[1],2!==t.length||t[0]}function b(...t){1===t.length?t[0]:t[1],2!==t.length||t[0]}function x(t,e){return(i,s)=>{if(u(t))return t;if(f(t))return t(i,s);if(p(t)){let n=Number.parseFloat(t);if(!Number.isNaN(n))return n;if(e){let n=e?.[t];return b(null==n,`[@zag-js/core > determine-delay] Cannot determine delay for \`${t}\`. It doesn't exist in \`options.delays\``),f(n)?n(i,s):n}}}}function E(t,e,i){"object"==typeof i.value&&(i.value=P(i.value)),i.enumerable&&!i.get&&!i.set&&i.configurable&&i.writable&&"__proto__"!==e?t[e]=i.value:Object.defineProperty(t,e,i)}function P(t){if("object"!=typeof t)return t;var e,i,s,n=0,r=Object.prototype.toString.call(t);if("[object Object]"===r?s=Object.create(t.__proto__||null):"[object Array]"===r?s=Array(t.length):"[object Set]"===r?(s=new Set,t.forEach(function(t){s.add(P(t))})):"[object Map]"===r?(s=new Map,t.forEach(function(t,e){s.set(P(e),P(t))})):"[object Date]"===r?s=new Date(+t):"[object RegExp]"===r?s=new RegExp(t.source,t.flags):"[object DataView]"===r?s=new t.constructor(P(t.buffer)):"[object ArrayBuffer]"===r?s=t.slice(0):"Array]"===r.slice(-6)&&(s=new t.constructor(t)),s){for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)E(s,i[n],Object.getOwnPropertyDescriptor(t,i[n]));for(n=0,i=Object.getOwnPropertyNames(t);n<i.length;n++)Object.hasOwnProperty.call(s,e=i[n])&&s[e]===t[e]||E(s,e,Object.getOwnPropertyDescriptor(t,e))}return s||t}function m(t){return p(t)?{type:t}:t}function S(t){return t?h(t)?t.slice():[t]:[]}function w(t){return g(t)&&null!=t.predicate}var C=()=>!0;function j(t,e){return t=t??C,(i,s,n)=>{if(p(t)){let r=e[t];return f(r)?r(i,s,n):r}return w(t)?t.predicate(e)(i,s,n):t?.(i,s,n)}}function T(t,e){return(i,s,n)=>w(t)?t.predicate(e)(i,s,n):t}function O(t){return p(t)?{target:t}:t}var A=Object.defineProperty,M=(t,e,i)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,L=(t,e,i)=>(M(t,"symbol"!=typeof e?e+"":e,i),i),N=(t,e)=>Object.is(t,e);function R(t,e,i,s,n){let r=Reflect.get((0,c.CO)(t),e),a=n||N;return(0,c.Ld)(t,function(){let s=(0,c.CO)(t);a(r,s[e])||(i(s[e]),r=Reflect.get(s,e))},s)}var D=class{constructor(t,e){L(this,"status","Not Started"),L(this,"state"),L(this,"initialState"),L(this,"initialContext"),L(this,"id"),L(this,"type","machine"),L(this,"activityEvents",new Map),L(this,"delayedEvents",new Map),L(this,"stateListeners",new Set),L(this,"contextListeners",new Set),L(this,"eventListeners",new Set),L(this,"doneListeners",new Set),L(this,"contextWatchers",new Set),L(this,"removeStateListener",a),L(this,"removeEventListener",a),L(this,"removeContextListener",a),L(this,"parent"),L(this,"children",new Map),L(this,"guardMap"),L(this,"actionMap"),L(this,"delayMap"),L(this,"activityMap"),L(this,"sync"),L(this,"options"),L(this,"config"),L(this,"start",t=>{if(this.state.value="","Running"===this.status)return this;this.status="Running",this.removeStateListener=(0,c.Ld)(this.state,()=>{this.stateListeners.forEach(t=>{t(this.stateSnapshot)})},this.sync),this.removeEventListener=R(this.state,"event",t=>{this.executeActions(this.config.onEvent,t),this.eventListeners.forEach(e=>{e(t)})},this.sync),this.removeContextListener=(0,c.Ld)(this.state.context,()=>{this.log("Context:",this.contextSnapshot),this.contextListeners.forEach(t=>{t(this.contextSnapshot)})},this.sync||this.options.debug),this.setupContextWatchers(),this.executeActivities(m("machine.start"),S(this.config.activities),"machine.start"),this.executeActions(this.config.entry,m("machine.start"));let e=m("machine.init"),i=g(t)?t.value:t,s=g(t)?t.context:void 0;s&&this.setContext(s);let n={target:i??this.config.initial},r=this.getNextStateInfo(n,e);return this.initialState=r,this.performStateChangeEffects(this.state.value,r,e),this}),L(this,"setupContextWatchers",()=>{for(let[t,e]of Object.entries(this.config.watch??{})){let i=this.options.compareFns?.[t],s=R(this.state.context,t,()=>{this.executeActions(e,this.state.event)},this.sync,i);this.contextWatchers.add(s)}}),L(this,"stop",()=>{if("Stopped"!==this.status)return this.performExitEffects(this.state.value,m("machine.stop")),this.executeActions(this.config.exit,m("machine.stop")),this.setState(""),this.setEvent("machine.stop"),this.stopStateListeners(),this.stopChildren(),this.stopActivities(),this.stopDelayedEvents(),this.stopContextWatchers(),this.stopEventListeners(),this.stopContextListeners(),this.status="Stopped",this}),L(this,"stopEventListeners",()=>{this.eventListeners.clear(),this.removeEventListener()}),L(this,"stopContextListeners",()=>{this.contextListeners.clear(),this.removeContextListener()}),L(this,"stopStateListeners",()=>{this.removeStateListener(),this.stateListeners.clear()}),L(this,"stopContextWatchers",()=>{this.contextWatchers.forEach(t=>t()),this.contextWatchers.clear()}),L(this,"stopDelayedEvents",()=>{this.delayedEvents.forEach(t=>{t.forEach(t=>t())}),this.delayedEvents.clear()}),L(this,"stopActivities",t=>{t?(this.activityEvents.get(t)?.forEach(t=>t()),this.activityEvents.get(t)?.clear(),this.activityEvents.delete(t)):(this.activityEvents.forEach(t=>{t.forEach(t=>t()),t.clear()}),this.activityEvents.clear())}),L(this,"sendChild",(t,e)=>{let i=m(t),s=n(e,this.contextSnapshot),r=this.children.get(s);r||b(`[@zag-js/core] Cannot send '${i.type}' event to unknown child`),r.send(i)}),L(this,"stopChild",t=>{this.children.has(t)||b(`[@zag-js/core > stop-child] Cannot stop unknown child ${t}`),this.children.get(t).stop(),this.children.delete(t)}),L(this,"removeChild",t=>{this.children.delete(t)}),L(this,"stopChildren",()=>{this.children.forEach(t=>t.stop()),this.children.clear()}),L(this,"setParent",t=>{this.parent=t}),L(this,"spawn",(t,e)=>{let i=n(t);return e&&(i.id=e),i.type="machine.actor",i.setParent(this),this.children.set(i.id,r(i)),i.onDone(()=>{this.removeChild(i.id)}).start(),r((0,c.iH)(i))}),L(this,"addActivityCleanup",(t,e)=>{t&&(this.activityEvents.has(t)?this.activityEvents.get(t)?.add(e):this.activityEvents.set(t,new Set([e])))}),L(this,"setState",t=>{this.state.previousValue=this.state.value,this.state.value=t;let e=this.getStateNode(t);null==t?function(t){for(;t.length>0;)t.pop();return t}(this.state.tags):this.state.tags=S(e?.tags)}),L(this,"setContext",t=>{t&&function t(e,...i){for(let s of i){let i=d(s);for(let n in i)g(s[n])?(e[n]||(e[n]={}),t(e[n],s[n])):e[n]=s[n]}return e}(this.state.context,t)}),L(this,"withContext",t=>{let e={...this.config.context,...d(t)};return new D({...this.config,context:e},this.options)}),L(this,"setOptions",t=>{let e=d(t);this.actionMap={...this.actionMap,...e.actions},this.delayMap={...this.delayMap,...e.delays},this.activityMap={...this.activityMap,...e.activities},this.guardMap={...this.guardMap,...e.guards}}),L(this,"getStateNode",t=>{if(t)return this.config.states?.[t]}),L(this,"getNextStateInfo",(t,e)=>{let i=this.determineTransition(t,e),s=!i?.target,n=i?.target??this.state.value,r=this.state.value!==n,a=this.getStateNode(n),o={reenter:!s&&!r&&!i?.internal,transition:i,stateNode:a,target:n,changed:r};return this.log("NextState:",`[${e.type}]`,this.state.value,"---->",o.target),o}),L(this,"getActionFromDelayedTransition",t=>{let e;let i=m("machine.after"),s=x(t.delay,this.delayMap)(this.contextSnapshot,i);return{entry:()=>{e=globalThis.setTimeout(()=>{let e=this.getNextStateInfo(t,i);this.performStateChangeEffects(this.state.value,e,i)},s)},exit:()=>{globalThis.clearTimeout(e)}}}),L(this,"getDelayedEventActions",t=>{let e=this.getStateNode(t),i=m("machine.after");if(!e||!e.after)return;let s=[],n=[];if(h(e.after)){let t=this.determineTransition(e.after,i);if(!t)return;let r=this.getActionFromDelayedTransition(t);s.push(r.entry),n.push(r.exit)}else if(g(e.after))for(let t in e.after){let r=e.after[t],a={};if(h(r)){let t=this.determineTransition(r,i);t&&(a=t)}else a=p(r)?{target:r,delay:t}:{...r,delay:t};let o=this.getActionFromDelayedTransition(a);s.push(o.entry),n.push(o.exit)}return{entries:s,exits:n}}),L(this,"executeActions",(t,e)=>{for(let i of S(T(t,this.guardMap)(this.contextSnapshot,e,this.guardMeta))){let t=p(i)?this.actionMap?.[i]:i;v(p(i)&&!t,`[@zag-js/core > execute-actions] No implementation found for action: \`${i}\``),t?.(this.state.context,e,this.meta)}}),L(this,"executeActivities",(t,e,i)=>{for(let s of e){let e=p(s)?this.activityMap?.[s]:s;if(!e){v(`[@zag-js/core > execute-activity] No implementation found for activity: \`${s}\``);continue}let n=e(this.state.context,t,this.meta);n&&this.addActivityCleanup(i??this.state.value,n)}}),L(this,"createEveryActivities",(t,e)=>{if(!t)return;let i=m("machine.every");if(h(t)){let s=S(t).find(t=>{let e=x(t.delay,this.delayMap)(this.contextSnapshot,i);return j(t.guard,this.guardMap)(this.contextSnapshot,i,this.guardMeta)??null!=e});if(!s)return;let n=x(s.delay,this.delayMap)(this.contextSnapshot,i);e(()=>{let t=globalThis.setInterval(()=>{this.executeActions(s.actions,i)},n);return()=>{globalThis.clearInterval(t)}})}else for(let s in t){let n=t?.[s],r=x(s,this.delayMap)(this.contextSnapshot,i);e(()=>{let t=globalThis.setInterval(()=>{this.executeActions(n,i)},r);return()=>{globalThis.clearInterval(t)}})}}),L(this,"setEvent",t=>{this.state.previousEvent=this.state.event,this.state.event=(0,c.iH)(m(t))}),L(this,"performExitEffects",(t,e)=>{let i=this.state.value;if(""===i)return;let s=t?this.getStateNode(t):void 0;this.stopActivities(i);let n=S(T(s?.exit,this.guardMap)(this.contextSnapshot,e,this.guardMeta)),r=this.delayedEvents.get(i);r&&n.push(...r),this.executeActions(n,e),this.eventListeners.clear()}),L(this,"performEntryEffects",(t,e)=>{let i=this.getStateNode(t),s=S(i?.activities);this.createEveryActivities(i?.every,t=>{s.unshift(t)}),s.length>0&&this.executeActivities(e,s);let n=S(T(i?.entry,this.guardMap)(this.contextSnapshot,e,this.guardMeta)),r=this.getDelayedEventActions(t);i?.after&&r&&(this.delayedEvents.set(t,r?.exits),n.push(...r.entries)),this.executeActions(n,e),i?.type==="final"&&(this.state.done=!0,this.doneListeners.forEach(t=>{t(this.stateSnapshot)}),this.stop())}),L(this,"performTransitionEffects",(t,e)=>{let i=this.determineTransition(t,e);this.executeActions(i?.actions,e)}),L(this,"performStateChangeEffects",(t,e,i)=>{this.setEvent(i);let s=e.changed||e.reenter;s&&this.performExitEffects(t,i),this.performTransitionEffects(e.transition,i),this.setState(e.target),s&&this.performEntryEffects(e.target,i)}),L(this,"determineTransition",(t,e)=>{var i;let s=(i=this.guardMap,(e,s,n)=>S(t).map(O).find(t=>j(t.guard,i)(e,s,n)??t.target??t.actions));return s?.(this.contextSnapshot,e,this.guardMeta)}),L(this,"sendParent",t=>{this.parent||b("[@zag-js/core > send-parent] Cannot send event to an unknown parent");let e=m(t);this.parent?.send(e)}),L(this,"log",(...t)=>{l()&&this.options.debug&&console.log(...t)}),L(this,"send",t=>{let e=m(t);this.transition(this.state.value,e)}),L(this,"transition",(t,e)=>{let i=p(t)?this.getStateNode(t):t?.stateNode,s=m(e);if(!i&&!this.config.on){v("Stopped"===this.status?"[@zag-js/core > transition] Cannot transition a stopped machine":`[@zag-js/core > transition] State does not have a definition for \`state\`: ${t}, \`event\`: ${s.type}`);return}let n=i?.on?.[s.type]??this.config.on?.[s.type],r=this.getNextStateInfo(n,s);return this.performStateChangeEffects(this.state.value,r,s),r.stateNode}),L(this,"subscribe",t=>(this.stateListeners.add(t),"Running"===this.status&&t(this.stateSnapshot),()=>{this.stateListeners.delete(t)})),L(this,"onDone",t=>(this.doneListeners.add(t),this)),L(this,"onTransition",t=>(this.stateListeners.add(t),"Running"===this.status&&t(this.stateSnapshot),this)),L(this,"onChange",t=>(this.contextListeners.add(t),this)),L(this,"onEvent",t=>(this.eventListeners.add(t),this)),this.config=P(t),this.options=P(e??{}),this.id=this.config.id??`machine-${o()}`,this.guardMap=this.options?.guards??{},this.actionMap=this.options?.actions??{},this.delayMap=this.options?.delays??{},this.activityMap=this.options?.activities??{},this.sync=this.options?.sync??!1,this.state=function(t){let e=t.computed??r({}),i=t.context??r({}),s=(0,c.sj)({value:t.initial??"",previousValue:"",event:r({}),previousEvent:r({}),context:function(t,e){Object.keys(e).forEach(s=>{if(Object.getOwnPropertyDescriptor(t,s))throw Error("object property already defined");let n=e[s],{get:r,set:a}="function"==typeof n?{get:n}:n,o={};o.get=()=>r((0,c.CO)(i)),a&&(o.set=t=>a(i,t)),Object.defineProperty(t,s,o)});let i=(0,c.sj)(t);return i}(i,e),done:!1,tags:[],hasTag(t){return this.tags.includes(t)},matches(...t){return t.includes(this.value)},can(t){return r(this).nextEvents.includes(t)},get nextEvents(){let e=t.states?.[this.value]?.on??{},i=t?.on??{};return Object.keys({...e,...i})},get changed(){if("machine.init"===this.event.value||!this.previousValue)return!1;return this.value!==this.previousValue}});return r(s)}(this.config),this.initialContext=(0,c.CO)(this.state.context);let i=m("machine.created");this.executeActions(this.config?.created,i)}get stateSnapshot(){return r((0,c.CO)(this.state))}getState(){return this.stateSnapshot}get contextSnapshot(){return this.stateSnapshot.context}get self(){let t=this;return{id:this.id,send:this.send.bind(this),sendParent:this.sendParent.bind(this),sendChild:this.sendChild.bind(this),stop:this.stop.bind(this),stopChild:this.stopChild.bind(this),spawn:this.spawn.bind(this),get state(){return t.stateSnapshot},get initialContext(){return t.initialContext},get initialState(){return t.initialState?.target??""}}}get meta(){return{state:this.stateSnapshot,guards:this.guardMap,send:this.send.bind(this),self:this.self,initialContext:this.initialContext,initialState:this.initialState?.target??"",getState:()=>this.stateSnapshot,getAction:t=>this.actionMap[t],getGuard:t=>this.guardMap[t]}}get guardMeta(){return{state:this.stateSnapshot}}get[Symbol.toStringTag](){return"Machine"}},I=(t,e)=>new D(t,e),_=t=>t&&"object"==typeof t&&t.constructor===Object;function k(t){let e=function t(e){if(!_(e)||void 0===e)return e;let i=Reflect.ownKeys(e).filter(t=>"string"==typeof t),s={};for(let n of i){let i=e[n];void 0!==i&&(s[n]=t(i))}return s}(t);return I({id:"pagination",initial:"idle",context:{pageSize:10,siblingCount:1,page:1,type:"button",translations:{rootLabel:"pagination",prevPageTriggerLabel:"previous page",nextPageTriggerLabel:"next page",pageTriggerLabel:({page:t,totalPages:e})=>`${e>1&&t===e?"last page, ":""}page ${t}`,...e.translations},...e},watch:{page:["invokeOnChange"],pageSize:["setPageIfNeeded"]},computed:{totalPages:t=>Math.ceil(t.count/t.pageSize),previousPage:t=>1===t.page?null:t.page-1,nextPage:t=>t.page===t.totalPages?null:t.page+1,pageRange:t=>{let e=(t.page-1)*t.pageSize,i=e+t.pageSize;return{start:e,end:i}},isValidPage:t=>t.page>=1&&t.page<=t.totalPages},on:{SET_COUNT:[{guard:"isValidCount",actions:["setCount","goToFirstPage"]},{actions:"setCount"}],SET_PAGE:{guard:"isValidPage",actions:"setPage"},SET_PAGE_SIZE:{actions:"setPageSize"},PREVIOUS_PAGE:{guard:"canGoToPrevPage",actions:"goToPrevPage"},NEXT_PAGE:{guard:"canGoToNextPage",actions:"goToNextPage"}},states:{idle:{}}},{guards:{isValidPage:(t,e)=>e.page>=1&&e.page<=t.totalPages,isValidCount:(t,e)=>t.page>e.count,canGoToNextPage:t=>t.page<t.totalPages,canGoToPrevPage:t=>t.page>1},actions:{setCount(t,e){t.count=e.count},setPage(t,e){t.page=e.page},setPageSize(t,e){t.pageSize=e.size},invokeOnChange(t,e){t.onChange?.({page:t.page,pageSize:t.pageSize,srcElement:e.srcElement||null})},goToFirstPage(t){t.page=1},goToPrevPage(t){t.page=t.page-1},goToNextPage(t){t.page=t.page+1},setPageIfNeeded(t,e){t.isValidPage||(t.page=1)}}})}},13911:function(t,e,i){i.d(e,{$:function(){return g}});var s=(t,e=[])=>({parts:(...i)=>{if(r(e))return s(t,i);throw Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...i)=>s(t,[...e,...i]),rename:t=>s(t,e),keys:()=>e,build:()=>[...new Set(e)].reduce((e,i)=>Object.assign(e,{[i]:{selector:`&[data-scope="${n(t)}"][data-part="${n(i)}"], & [data-scope="${n(t)}"][data-part="${n(i)}"]`,attrs:{"data-scope":n(t),"data-part":n(i)}}}),{})}),n=t=>t.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>0===t.length,a=s("pagination").parts("root","pageTrigger","ellipsis","prevPageTrigger","nextPageTrigger").build(),o=t=>t.nodeType===Node.DOCUMENT_NODE?t:t.ownerDocument??document,c=function(t){let e={getRootNode:t=>t.getRootNode?.()??document,getDoc:t=>o(e.getRootNode(t)),getWin:t=>e.getDoc(t).defaultView??window,getActiveElement:t=>e.getDoc(t).activeElement,getById:(t,i)=>e.getRootNode(t).getElementById(i),queryById:(t,i)=>{let s=e.getById(t,i);if(!s)throw Error(`Element with id "${i}" not found.`);return s}};return{...e,...t}}({getRootId:t=>t.ids?.root??`pagination:${t.id}`,getPrevPageTriggerId:t=>t.ids?.prevPageTrigger??`pagination:${t.id}:prev`,getNextPageTriggerId:t=>t.ids?.nextPageTrigger??`pagination:${t.id}:next`,getEllipsisId:(t,e)=>t.ids?.ellipsis?.(e)??`pagination:${t.id}:ellipsis:${e}`,getPageTriggerId:(t,e)=>t.ids?.pageTrigger?.(e)??`pagination:${t.id}:item:${e}`}),l={range:(t,e)=>Array.from({length:e-t+1},(e,i)=>i+t),transform:t=>t.map(t=>"number"==typeof t?{type:"page",value:t}:{type:"ellipsis"}),getRange:t=>{if(t.siblingCount+5>=t.totalPages)return l.transform(l.range(1,t.totalPages));let e="ellipsis",i=Math.max(t.page-t.siblingCount,1),s=Math.min(t.page+t.siblingCount,t.totalPages),n=i>2,r=s<t.totalPages-2,a=t.totalPages;if(!n&&r){let i=3+2*t.siblingCount,s=l.range(1,i);return l.transform([...s,e,t.totalPages])}if(n&&!r){let i=3+2*t.siblingCount,s=l.range(t.totalPages-i+1,t.totalPages);return l.transform([1,e,...s])}if(n&&r){let t=l.range(i,s);return l.transform([1,e,...t,e,a])}return[]}},h=t=>t?"":void 0;function g(t,e,i){let s=t.context.totalPages,n=t.context.page,r=t.context.translations,o=t.context.previousPage,g=t.context.nextPage,u=t.context.pageRange,p="button"===t.context.type,f=1===n,d=n===s;return{page:n,totalPages:s,pages:l.getRange(t.context),previousPage:o,nextPage:g,pageRange:u,slice:t=>t.slice(u.start,u.end),isFirstPage:f,isLastPage:d,setCount(t){e({type:"SET_COUNT",count:t})},setPageSize(t){e({type:"SET_PAGE_SIZE",size:t})},setPage(t){e({type:"SET_PAGE",page:t,srcElement:null})},rootProps:i.element({id:c.getRootId(t.context),...a.root.attrs,"aria-label":r.rootLabel}),getEllipsisProps:e=>i.element({id:c.getEllipsisId(t.context,e.index),...a.ellipsis.attrs}),getPageTriggerProps(n){let o=n.value,l=o===t.context.page;return i.element({id:c.getPageTriggerId(t.context,o),...a.pageTrigger.attrs,"data-selected":h(l),"aria-current":l?"page":void 0,"aria-label":r.pageTriggerLabel?.({page:o,totalPages:s}),onClick(t){e({type:"SET_PAGE",page:o,srcElement:t.currentTarget})},...p&&{type:"button"}})},prevPageTriggerProps:i.element({id:c.getPrevPageTriggerId(t.context),...a.prevPageTrigger.attrs,"data-disabled":h(f),"aria-label":r.prevPageTriggerLabel,onClick(t){e({type:"PREVIOUS_PAGE",srcElement:t.currentTarget})},...p&&{disabled:f,type:"button"}}),nextPageTriggerProps:i.element({id:c.getNextPageTriggerId(t.context),...a.nextPageTrigger.attrs,"data-disabled":h(d),"aria-label":r.nextPageTriggerLabel,onClick(t){e({type:"NEXT_PAGE",srcElement:t.currentTarget})},...p&&{disabled:d,type:"button"}})}}},12225:function(t,e,i){i.d(e,{v:function(){return n}});var s,n=(s=t=>t,new Proxy({},{get:()=>s}))},32380:function(t,e,i){i.d(e,{e:function(){return c}});var s=i(63560),n="undefined"!=typeof document?s.useLayoutEffect:s.useEffect,r=i(44559),a=i(94496),{use:o}=s;function c(t,e){let i=function(t,e){let{actions:i,state:r,context:a}=e??{},o=function(t){let e=(0,s.useRef)();return e.current||(e.current={v:t()}),e.current.v}(()=>{let e="function"==typeof t?t():t;return a?e.withContext(a):e});return n(()=>(o.start(r),o.state.can("SETUP")&&o.send("SETUP"),()=>{o.stop()}),[]),o.setOptions({actions:i}),o.setContext(a),o}(t,e);return[function(t,e){let i=void 0,n=(0,s.useRef)(),c=(0,s.useRef)(),l=(0,s.useSyncExternalStore)((0,s.useCallback)(e=>{let s=(0,r.Ld)(t,e,i);return e(),s},[t,i]),()=>{let e=(0,r.CO)(t,o);try{if(n.current&&c.current&&!(0,a.ln)(n.current,e,c.current,new WeakMap))return n.current}catch(t){}return e},()=>(0,r.CO)(t,o)),h=new WeakMap;(0,s.useEffect)(()=>{n.current=l,c.current=h});let g=(0,s.useMemo)(()=>new WeakMap,[]);return(0,a.DM)(l,h,g)}(i.state),i.send,i]}},44559:function(t,e,i){i.d(e,{CO:function(){return g},Ld:function(){return h},iH:function(){return u},sj:function(){return l}});var s=i(94496),n=!1,r=t=>"object"==typeof t&&null!==t,a=new WeakMap,o=new WeakSet,[c]=((t=Object.is,e=(t,e)=>new Proxy(t,e),i=t=>r(t)&&!o.has(t)&&(Array.isArray(t)||!(Symbol.iterator in t))&&!(t instanceof WeakMap)&&!(t instanceof WeakSet)&&!(t instanceof Error)&&!(t instanceof Number)&&!(t instanceof Date)&&!(t instanceof String)&&!(t instanceof RegExp)&&!(t instanceof ArrayBuffer),c=t=>{switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t}},h=new WeakMap,u=(t,e,i=c)=>{let n=h.get(t);if(n?.[0]===e)return n[1];let r=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return(0,s.jc)(r,!0),h.set(t,[e,r]),Reflect.ownKeys(t).forEach(e=>{let n=Reflect.get(t,e);o.has(n)?((0,s.jc)(n,!1),r[e]=n):n instanceof Promise?Object.defineProperty(r,e,{get:()=>i(n)}):a.has(n)?r[e]=g(n,i):r[e]=n}),Object.freeze(r)},p=new WeakMap,f=[1,1],d=c=>{if(!r(c))throw Error("object required");let h=p.get(c);if(h)return h;let g=f[0],d=new Set,y=(t,e=++f[0])=>{g!==e&&(g=e,d.forEach(i=>i(t,e)))},v=f[1],b=(t=++f[1])=>(v===t||d.size||(v=t,E.forEach(([e])=>{let i=e[1](t);i>g&&(g=i)})),g),x=t=>(e,i)=>{let s=[...e];s[1]=[t,...s[1]],y(s,i)},E=new Map,P=(t,e)=>{if(n&&E.has(t))throw Error("prop listener already exists");if(d.size){let i=e[3](x(t));E.set(t,[e,i])}else E.set(t,[e])},m=t=>{let e=E.get(t);e&&(E.delete(t),e[1]?.())},S=t=>{d.add(t),1===d.size&&E.forEach(([t,e],i)=>{if(n&&e)throw Error("remove already exists");let s=t[3](x(i));E.set(i,[t,s])});let e=()=>{d.delete(t),0===d.size&&E.forEach(([t,e],i)=>{e&&(e(),E.set(i,[t]))})};return e},w=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),C={deleteProperty(t,e){let i=Reflect.get(t,e);m(e);let s=Reflect.deleteProperty(t,e);return s&&y(["delete",[e],i]),s},set(e,n,c,h){let g=Reflect.has(e,n),u=Reflect.get(e,n,h);if(g&&(t(u,c)||p.has(c)&&t(u,p.get(c))))return!0;m(n),r(c)&&(c=(0,s.o5)(c)||c);let f=c;if(Object.getOwnPropertyDescriptor(e,n)?.set);else if(c instanceof Promise)c.then(t=>{c.status="fulfilled",c.value=t,y(["resolve",[n],t])}).catch(t=>{c.status="rejected",c.reason=t,y(["reject",[n],t])});else{!a.has(c)&&i(c)&&(f=l(c));let t=!o.has(f)&&a.get(f);t&&P(n,t)}return Reflect.set(e,n,f,h),y(["set",[n],c,u]),!0}},j=e(w,C);p.set(c,j);let T=[w,b,u,S];return a.set(j,T),Reflect.ownKeys(c).forEach(t=>{let e=Object.getOwnPropertyDescriptor(c,t);e.get||e.set?Object.defineProperty(w,t,e):j[t]=c[t]}),j})=>[d,a,o,t,e,i,c,h,u,p,f])();function l(t={}){return c(t)}function h(t,e,i){let s;let r=a.get(t);n&&!r&&console.warn("Please use proxy object");let o=[],c=r[3],l=!1,h=c(t=>{if(o.push(t),i){e(o.splice(0));return}s||(s=Promise.resolve().then(()=>{s=void 0,l&&e(o.splice(0))}))});return l=!0,()=>{l=!1,h()}}function g(t,e){let i=a.get(t);n&&!i&&console.warn("Please use proxy object");let[s,r,o]=i;return o(s,r(),e)}function u(t){return o.add(t),t}}}]);
//# sourceMappingURL=3872-9775f0c2197d6571.js.map