@queuedash/ui 3.14.2 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +14 -14
- package/dist/main.mjs +5886 -5840
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var qu=e=>{throw TypeError(e)};var Xa=(e,t,n)=>t.has(e)||qu("Cannot "+n);var C=(e,t,n)=>(Xa(e,t,"read from private field"),n?n.call(e):t.get(e)),Q=(e,t,n)=>t.has(e)?qu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),V=(e,t,n,r)=>(Xa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Z=(e,t,n)=>(Xa(e,t,"access private method"),n);var di=(e,t,n,r)=>({set _(o){V(e,t,o,n)},get _(){return C(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),Hr=require("react-dom");function Ag(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=Ag(d);function vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bf={exports:{}},xa={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Ag=Symbol.for("react.transitional.element"),Kg=Symbol.for("react.fragment");function pf(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var o in t)o!=="key"&&(n[o]=t[o])}else n=t;return t=n.ref,{$$typeof:Ag,type:e,key:r,ref:t!==void 0?t:null,props:n}}xa.Fragment=Kg;xa.jsx=pf;xa.jsxs=pf;hf.exports=xa;var y=hf.exports,Wn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Bg={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Jt,Bl,Jd,Hg=(Jd=class{constructor(){G(this,Jt,Bg);G(this,Bl,!1)}setTimeoutProvider(e){H(this,Jt,e)}setTimeout(e,t){return C(this,Jt).setTimeout(e,t)}clearTimeout(e){C(this,Jt).clearTimeout(e)}setInterval(e,t){return C(this,Jt).setInterval(e,t)}clearInterval(e){C(this,Jt).clearInterval(e)}},Jt=new WeakMap,Bl=new WeakMap,Jd),Tn=new Hg;function Vg(e){setTimeout(e,0)}var Hn=typeof window>"u"||"Deno"in globalThis;function je(){}function zg(e,t){return typeof e=="function"?e(t):e}function Fs(e){return typeof e=="number"&&e>=0&&e!==1/0}function gf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hn(e,t){return typeof e=="function"?e(t):e}function ut(e,t){return typeof e=="function"?e(t):e}function Hu(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==Hl(a,t.options))return!1}else if(!So(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function Vu(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(vn(t.options.mutationKey)!==vn(i))return!1}else if(!So(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Hl(e,t){return((t==null?void 0:t.queryKeyHashFn)||vn)(e)}function vn(e){return JSON.stringify(e,(t,n)=>Is(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function So(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>So(e[n],t[n])):!1}var Ug=Object.prototype.hasOwnProperty;function Vl(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=zu(e)&&zu(t);if(!r&&!(Is(e)&&Is(t)))return t;const i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),s=a.length,l=r?new Array(s):{};let u=0;for(let h=0;h<s;h++){const c=r?h:a[h],p=e[c],f=t[c];if(p===f){l[c]=p,(r?h<i:Ug.call(e,c))&&u++;continue}if(p===null||f===null||typeof p!="object"||typeof f!="object"){l[c]=f;continue}const g=Vl(p,f,n+1);l[c]=g,g===p&&u++}return i===s&&u===i?e:l}function Eo(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Is(e){if(!Uu(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Uu(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Uu(e){return Object.prototype.toString.call(e)==="[object Object]"}function qg(e){return new Promise(t=>{Tn.setTimeout(t,e)})}function js(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Vl(e,t):t}function Wg(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Gg(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var et=Symbol();function mf(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===et?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function zl(e,t){return typeof e=="function"?e(...t):!!e}function Qg(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var _n,en,br,ef,Yg=(ef=class extends Wn{constructor(){super();G(this,_n);G(this,en);G(this,br);H(this,br,t=>{if(!Hn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,en)||this.setEventListener(C(this,br))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,en))==null||t.call(this),H(this,en,void 0))}setEventListener(t){var n;H(this,br,t),(n=C(this,en))==null||n.call(this),H(this,en,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,_n)!==t&&(H(this,_n,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,_n)=="boolean"?C(this,_n):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_n=new WeakMap,en=new WeakMap,br=new WeakMap,ef),Ul=new Yg;function Ns(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var Xg=Vg;function Zg(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=Xg;const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var be=Zg(),yr,tn,xr,tf,Jg=(tf=class extends Wn{constructor(){super();G(this,yr,!0);G(this,tn);G(this,xr);H(this,xr,t=>{if(!Hn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,tn)||this.setEventListener(C(this,xr))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,tn))==null||t.call(this),H(this,tn,void 0))}setEventListener(t){var n;H(this,xr,t),(n=C(this,tn))==null||n.call(this),H(this,tn,t(this.setOnline.bind(this)))}setOnline(t){C(this,yr)!==t&&(H(this,yr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,yr)}},yr=new WeakMap,tn=new WeakMap,xr=new WeakMap,tf),zi=new Jg;function em(e){return Math.min(1e3*2**e,3e4)}function vf(e){return(e??"online")==="online"?zi.isOnline():!0}var As=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function bf(e){let t=!1,n=0,r;const o=Ns(),i=()=>o.status!=="pending",a=m=>{var v;if(!i()){const b=new As(m);p(b),(v=e.onCancel)==null||v.call(e,b)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>Ul.isFocused()&&(e.networkMode==="always"||zi.isOnline())&&e.canRun(),h=()=>vf(e.networkMode)&&e.canRun(),c=m=>{i()||(r==null||r(),o.resolve(m))},p=m=>{i()||(r==null||r(),o.reject(m))},f=()=>new Promise(m=>{var v;r=b=>{(i()||u())&&m(b)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;r=void 0,i()||(m=e.onContinue)==null||m.call(e)}),g=()=>{if(i())return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(b){m=Promise.reject(b)}Promise.resolve(m).then(c).catch(b=>{var P;if(i())return;const x=e.retry??(Hn?0:3),w=e.retryDelay??em,S=typeof w=="function"?w(n,b):w,M=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,b);if(t||!M){p(b);return}n++,(P=e.onFail)==null||P.call(e,n,b),qg(S).then(()=>u()?void 0:f()).then(()=>{t?p(b):g()})})};return{promise:o,status:()=>o.status,cancel:a,continue:()=>(r==null||r(),o),cancelRetry:s,continueRetry:l,canStart:h,start:()=>(h()?g():f().then(g),o)}}var Ln,nf,yf=(nf=class{constructor(){G(this,Ln)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fs(this.gcTime)&&H(this,Ln,Tn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hn?1/0:5*60*1e3))}clearGcTimeout(){C(this,Ln)&&(Tn.clearTimeout(C(this,Ln)),H(this,Ln,void 0))}},Ln=new WeakMap,nf),Fn,wr,st,In,Re,Ao,jn,bt,It,rf,tm=(rf=class extends yf{constructor(t){super();G(this,bt);G(this,Fn);G(this,wr);G(this,st);G(this,In);G(this,Re);G(this,Ao);G(this,jn);H(this,jn,!1),H(this,Ao,t.defaultOptions),this.setOptions(t.options),this.observers=[],H(this,In,t.client),H(this,st,C(this,In).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,H(this,Fn,Wu(this.options)),this.state=t.state??C(this,Fn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Re))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,Ao),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Wu(this.options);n.data!==void 0&&(this.setState(qu(n.data,n.dataUpdatedAt)),H(this,Fn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,st).remove(this)}setData(t,n){const r=js(this.state.data,t,this.options);return X(this,bt,It).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){X(this,bt,It).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=C(this,Re))==null?void 0:r.promise;return(o=C(this,Re))==null||o.cancel(t),n?n.then(je).catch(je):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,Fn))}isActive(){return this.observers.some(t=>ut(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===et||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>hn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!gf(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Re))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Re))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,st).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Re)&&(C(this,jn)?C(this,Re).cancel({revert:!0}):C(this,Re).cancelRetry()),this.scheduleGc()),C(this,st).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||X(this,bt,It).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,h,c,p,f,g,m,v,b,x,w;if(this.state.fetchStatus!=="idle"&&((l=C(this,Re))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Re))return C(this,Re).continueRetry(),C(this,Re).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(M=>M.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,o=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(H(this,jn,!0),r.signal)})},i=()=>{const S=mf(this.options,n),P=(()=>{const R={client:C(this,In),queryKey:this.queryKey,meta:this.meta};return o(R),R})();return H(this,jn,!1),this.options.persister?this.options.persister(S,P,this):S(P)},s=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,In),state:this.state,fetchFn:i};return o(S),S})();(u=this.options.behavior)==null||u.onFetch(s,this),H(this,wr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=s.fetchOptions)==null?void 0:h.meta))&&X(this,bt,It).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),H(this,Re,bf({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:S=>{S instanceof As&&S.revert&&this.setState({...C(this,wr),fetchStatus:"idle"}),r.abort()},onFail:(S,M)=>{X(this,bt,It).call(this,{type:"failed",failureCount:S,error:M})},onPause:()=>{X(this,bt,It).call(this,{type:"pause"})},onContinue:()=>{X(this,bt,It).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const S=await C(this,Re).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(f=(p=C(this,st).config).onSuccess)==null||f.call(p,S,this),(m=(g=C(this,st).config).onSettled)==null||m.call(g,S,this.state.error,this),S}catch(S){if(S instanceof As){if(S.silent)return C(this,Re).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw X(this,bt,It).call(this,{type:"error",error:S}),(b=(v=C(this,st).config).onError)==null||b.call(v,S,this),(w=(x=C(this,st).config).onSettled)==null||w.call(x,this.state.data,S,this),S}finally{this.scheduleGc()}}},Fn=new WeakMap,wr=new WeakMap,st=new WeakMap,In=new WeakMap,Re=new WeakMap,Ao=new WeakMap,jn=new WeakMap,bt=new WeakSet,It=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...xf(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...qu(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return H(this,wr,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,st).notify({query:this,type:"updated",action:t})})},rf);function xf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wu(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ve,re,Ko,Ae,Nn,Cr,Nt,nn,Bo,$r,Sr,An,Kn,rn,Er,ce,uo,Ks,Bs,Hs,Vs,zs,Us,qs,wf,of,Go=(of=class extends Wn{constructor(t,n){super();G(this,ce);G(this,Ve);G(this,re);G(this,Ko);G(this,Ae);G(this,Nn);G(this,Cr);G(this,Nt);G(this,nn);G(this,Bo);G(this,$r);G(this,Sr);G(this,An);G(this,Kn);G(this,rn);G(this,Er,new Set);this.options=n,H(this,Ve,t),H(this,nn,null),H(this,Nt,Ns()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,re).addObserver(this),Gu(C(this,re),this.options)?X(this,ce,uo).call(this):this.updateResult(),X(this,ce,Vs).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ws(C(this,re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ws(C(this,re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,X(this,ce,zs).call(this),X(this,ce,Us).call(this),C(this,re).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,re);if(this.options=C(this,Ve).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ut(this.options.enabled,C(this,re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");X(this,ce,qs).call(this),C(this,re).setOptions(this.options),n._defaulted&&!Eo(this.options,n)&&C(this,Ve).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,re),observer:this});const o=this.hasListeners();o&&Qu(C(this,re),r,this.options,n)&&X(this,ce,uo).call(this),this.updateResult(),o&&(C(this,re)!==r||ut(this.options.enabled,C(this,re))!==ut(n.enabled,C(this,re))||hn(this.options.staleTime,C(this,re))!==hn(n.staleTime,C(this,re)))&&X(this,ce,Ks).call(this);const i=X(this,ce,Bs).call(this);o&&(C(this,re)!==r||ut(this.options.enabled,C(this,re))!==ut(n.enabled,C(this,re))||i!==C(this,rn))&&X(this,ce,Hs).call(this,i)}getOptimisticResult(t){const n=C(this,Ve).getQueryCache().build(C(this,Ve),t),r=this.createResult(n,t);return rm(this,r)&&(H(this,Ae,r),H(this,Cr,this.options),H(this,Nn,C(this,re).state)),r}getCurrentResult(){return C(this,Ae)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Nt).status==="pending"&&C(this,Nt).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){C(this,Er).add(t)}getCurrentQuery(){return C(this,re)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,Ve).defaultQueryOptions(t),r=C(this,Ve).getQueryCache().build(C(this,Ve),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return X(this,ce,uo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ae)))}createResult(t,n){var D;const r=C(this,re),o=this.options,i=C(this,Ae),a=C(this,Nn),s=C(this,Cr),u=t!==r?t.state:C(this,Ko),{state:h}=t;let c={...h},p=!1,f;if(n._optimisticResults){const _=this.hasListeners(),A=!_&&Gu(t,n),K=_&&Qu(t,r,n,o);(A||K)&&(c={...c,...xf(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:g,errorUpdatedAt:m,status:v}=c;f=c.data;let b=!1;if(n.placeholderData!==void 0&&f===void 0&&v==="pending"){let _;i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(_=i.data,b=!0):_=typeof n.placeholderData=="function"?n.placeholderData((D=C(this,Sr))==null?void 0:D.state.data,C(this,Sr)):n.placeholderData,_!==void 0&&(v="success",f=js(i==null?void 0:i.data,_,n),p=!0)}if(n.select&&f!==void 0&&!b)if(i&&f===(a==null?void 0:a.data)&&n.select===C(this,Bo))f=C(this,$r);else try{H(this,Bo,n.select),f=n.select(f),f=js(i==null?void 0:i.data,f,n),H(this,$r,f),H(this,nn,null)}catch(_){H(this,nn,_)}C(this,nn)&&(g=C(this,nn),f=C(this,$r),m=Date.now(),v="error");const x=c.fetchStatus==="fetching",w=v==="pending",S=v==="error",M=w&&x,P=f!==void 0,k={status:v,fetchStatus:c.fetchStatus,isPending:w,isSuccess:v==="success",isError:S,isInitialLoading:M,isLoading:M,data:f,dataUpdatedAt:c.dataUpdatedAt,error:g,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!w,isLoadingError:S&&!P,isPaused:c.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:S&&P,isStale:ql(t,n),refetch:this.refetch,promise:C(this,Nt),isEnabled:ut(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const _=k.data!==void 0,A=k.status==="error"&&!_,K=O=>{A?O.reject(k.error):_&&O.resolve(k.data)},I=()=>{const O=H(this,Nt,k.promise=Ns());K(O)},z=C(this,Nt);switch(z.status){case"pending":t.queryHash===r.queryHash&&K(z);break;case"fulfilled":(A||k.data!==z.value)&&I();break;case"rejected":(!A||k.error!==z.reason)&&I();break}}return k}updateResult(){const t=C(this,Ae),n=this.createResult(C(this,re),this.options);if(H(this,Nn,C(this,re).state),H(this,Cr,this.options),C(this,Nn).data!==void 0&&H(this,Sr,C(this,re)),Eo(n,t))return;H(this,Ae,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!C(this,Er).size)return!0;const a=new Set(i??C(this,Er));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Ae)).some(s=>{const l=s;return C(this,Ae)[l]!==t[l]&&a.has(l)})};X(this,ce,wf).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&X(this,ce,Vs).call(this)}},Ve=new WeakMap,re=new WeakMap,Ko=new WeakMap,Ae=new WeakMap,Nn=new WeakMap,Cr=new WeakMap,Nt=new WeakMap,nn=new WeakMap,Bo=new WeakMap,$r=new WeakMap,Sr=new WeakMap,An=new WeakMap,Kn=new WeakMap,rn=new WeakMap,Er=new WeakMap,ce=new WeakSet,uo=function(t){X(this,ce,qs).call(this);let n=C(this,re).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(je)),n},Ks=function(){X(this,ce,zs).call(this);const t=hn(this.options.staleTime,C(this,re));if(Hn||C(this,Ae).isStale||!Fs(t))return;const r=gf(C(this,Ae).dataUpdatedAt,t)+1;H(this,An,Tn.setTimeout(()=>{C(this,Ae).isStale||this.updateResult()},r))},Bs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,re)):this.options.refetchInterval)??!1},Hs=function(t){X(this,ce,Us).call(this),H(this,rn,t),!(Hn||ut(this.options.enabled,C(this,re))===!1||!Fs(C(this,rn))||C(this,rn)===0)&&H(this,Kn,Tn.setInterval(()=>{(this.options.refetchIntervalInBackground||Ul.isFocused())&&X(this,ce,uo).call(this)},C(this,rn)))},Vs=function(){X(this,ce,Ks).call(this),X(this,ce,Hs).call(this,X(this,ce,Bs).call(this))},zs=function(){C(this,An)&&(Tn.clearTimeout(C(this,An)),H(this,An,void 0))},Us=function(){C(this,Kn)&&(Tn.clearInterval(C(this,Kn)),H(this,Kn,void 0))},qs=function(){const t=C(this,Ve).getQueryCache().build(C(this,Ve),this.options);if(t===C(this,re))return;const n=C(this,re);H(this,re,t),H(this,Ko,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},wf=function(t){be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ae))}),C(this,Ve).getQueryCache().notify({query:C(this,re),type:"observerResultsUpdated"})})},of);function nm(e,t){return ut(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Gu(e,t){return nm(e,t)||e.state.data!==void 0&&Ws(e,t,t.refetchOnMount)}function Ws(e,t,n){if(ut(t.enabled,e)!==!1&&hn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ql(e,t)}return!1}function Qu(e,t,n,r){return(e!==t||ut(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ql(e,n)}function ql(e,t){return ut(t.enabled,e)!==!1&&e.isStaleByTime(hn(t.staleTime,e))}function rm(e,t){return!Eo(e.getCurrentResult(),t)}function Ui(e){return{onFetch:(t,n)=>{var h,c,p,f,g;const r=t.options,o=(p=(c=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:c.fetchMore)==null?void 0:p.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],a=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const v=w=>{Qg(w,()=>t.signal,()=>m=!0)},b=mf(t.options,t.fetchOptions),x=async(w,S,M)=>{if(m)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const R=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:S,direction:M?"backward":"forward",meta:t.options.meta};return v(A),A})(),k=await b(R),{maxPages:D}=t.options,_=M?Gg:Wg;return{pages:_(w.pages,k,D),pageParams:_(w.pageParams,S,D)}};if(o&&i.length){const w=o==="backward",S=w?Cf:Gs,M={pages:i,pageParams:a},P=S(r,M);s=await x(M,P,w)}else{const w=e??i.length;do{const S=l===0?a[0]??r.initialPageParam:Gs(r,s);if(l>0&&S==null)break;s=await x(s,S),l++}while(l<w)}return s};t.options.persister?t.fetchFn=()=>{var m,v;return(v=(m=t.options).persister)==null?void 0:v.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Gs(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Cf(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function om(e,t){return t?Gs(e,t)!=null:!1}function im(e,t){return!t||!e.getPreviousPageParam?!1:Cf(e,t)!=null}var $f=class extends Go{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Ui()})}getOptimisticResult(e){return e.behavior=Ui(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var g,m;const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:i,isError:a,isRefetchError:s}=r,l=(m=(g=n.fetchMeta)==null?void 0:g.fetchMore)==null?void 0:m.direction,u=a&&l==="forward",h=o&&l==="forward",c=a&&l==="backward",p=o&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:om(t,n.data),hasPreviousPage:im(t,n.data),isFetchNextPageError:u,isFetchingNextPage:h,isFetchPreviousPageError:c,isFetchingPreviousPage:p,isRefetchError:s&&!u&&!c,isRefetching:i&&!h&&!p}}},Ho,Mt,Ie,Bn,Ot,Xt,af,am=(af=class extends yf{constructor(t){super();G(this,Ot);G(this,Ho);G(this,Mt);G(this,Ie);G(this,Bn);H(this,Ho,t.client),this.mutationId=t.mutationId,H(this,Ie,t.mutationCache),H(this,Mt,[]),this.state=t.state||Sf(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,Mt).includes(t)||(C(this,Mt).push(t),this.clearGcTimeout(),C(this,Ie).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){H(this,Mt,C(this,Mt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ie).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,Mt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ie).remove(this))}continue(){var t;return((t=C(this,Bn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,s,l,u,h,c,p,f,g,m,v,b,x,w,S,M,P,R;const n=()=>{X(this,Ot,Xt).call(this,{type:"continue"})},r={client:C(this,Ho),meta:this.options.meta,mutationKey:this.options.mutationKey};H(this,Bn,bf({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(k,D)=>{X(this,Ot,Xt).call(this,{type:"failed",failureCount:k,error:D})},onPause:()=>{X(this,Ot,Xt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ie).canRun(this)}));const o=this.state.status==="pending",i=!C(this,Bn).canStart();try{if(o)n();else{X(this,Ot,Xt).call(this,{type:"pending",variables:t,isPaused:i}),C(this,Ie).config.onMutate&&await C(this,Ie).config.onMutate(t,this,r);const D=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t,r));D!==this.state.context&&X(this,Ot,Xt).call(this,{type:"pending",context:D,variables:t,isPaused:i})}const k=await C(this,Bn).start();return await((u=(l=C(this,Ie).config).onSuccess)==null?void 0:u.call(l,k,t,this.state.context,this,r)),await((c=(h=this.options).onSuccess)==null?void 0:c.call(h,k,t,this.state.context,r)),await((f=(p=C(this,Ie).config).onSettled)==null?void 0:f.call(p,k,null,this.state.variables,this.state.context,this,r)),await((m=(g=this.options).onSettled)==null?void 0:m.call(g,k,null,t,this.state.context,r)),X(this,Ot,Xt).call(this,{type:"success",data:k}),k}catch(k){try{await((b=(v=C(this,Ie).config).onError)==null?void 0:b.call(v,k,t,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((w=(x=this.options).onError)==null?void 0:w.call(x,k,t,this.state.context,r))}catch(D){Promise.reject(D)}try{await((M=(S=C(this,Ie).config).onSettled)==null?void 0:M.call(S,void 0,k,this.state.variables,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((R=(P=this.options).onSettled)==null?void 0:R.call(P,void 0,k,t,this.state.context,r))}catch(D){Promise.reject(D)}throw X(this,Ot,Xt).call(this,{type:"error",error:k}),k}finally{C(this,Ie).runNext(this)}}},Ho=new WeakMap,Mt=new WeakMap,Ie=new WeakMap,Bn=new WeakMap,Ot=new WeakSet,Xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),be.batch(()=>{C(this,Mt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ie).notify({mutation:this,type:"updated",action:t})})},af);function Sf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var At,yt,Vo,sf,sm=(sf=class extends Wn{constructor(t={}){super();G(this,At);G(this,yt);G(this,Vo);this.config=t,H(this,At,new Set),H(this,yt,new Map),H(this,Vo,0)}build(t,n,r){const o=new am({client:t,mutationCache:this,mutationId:++ci(this,Vo)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,At).add(t);const n=di(t);if(typeof n=="string"){const r=C(this,yt).get(n);r?r.push(t):C(this,yt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,At).delete(t)){const n=di(t);if(typeof n=="string"){const r=C(this,yt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&C(this,yt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=di(t);if(typeof n=="string"){const r=C(this,yt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=di(t);if(typeof n=="string"){const o=(r=C(this,yt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){be.batch(()=>{C(this,At).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,At).clear(),C(this,yt).clear()})}getAll(){return Array.from(C(this,At))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Vu(n,r))}findAll(t={}){return this.getAll().filter(n=>Vu(t,n))}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return be.batch(()=>Promise.all(t.map(n=>n.continue().catch(je))))}},At=new WeakMap,yt=new WeakMap,Vo=new WeakMap,sf);function di(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Kt,on,ze,Bt,Vt,Ii,Qs,lf,lm=(lf=class extends Wn{constructor(n,r){super();G(this,Vt);G(this,Kt);G(this,on);G(this,ze);G(this,Bt);H(this,Kt,n),this.setOptions(r),this.bindMethods(),X(this,Vt,Ii).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=C(this,Kt).defaultMutationOptions(n),Eo(this.options,r)||C(this,Kt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,ze),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&vn(r.mutationKey)!==vn(this.options.mutationKey)?this.reset():((o=C(this,ze))==null?void 0:o.state.status)==="pending"&&C(this,ze).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,ze))==null||n.removeObserver(this)}onMutationUpdate(n){X(this,Vt,Ii).call(this),X(this,Vt,Qs).call(this,n)}getCurrentResult(){return C(this,on)}reset(){var n;(n=C(this,ze))==null||n.removeObserver(this),H(this,ze,void 0),X(this,Vt,Ii).call(this),X(this,Vt,Qs).call(this)}mutate(n,r){var o;return H(this,Bt,r),(o=C(this,ze))==null||o.removeObserver(this),H(this,ze,C(this,Kt).getMutationCache().build(C(this,Kt),this.options)),C(this,ze).addObserver(this),C(this,ze).execute(n)}},Kt=new WeakMap,on=new WeakMap,ze=new WeakMap,Bt=new WeakMap,Vt=new WeakSet,Ii=function(){var r;const n=((r=C(this,ze))==null?void 0:r.state)??Sf();H(this,on,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Qs=function(n){be.batch(()=>{var r,o,i,a,s,l,u,h;if(C(this,Bt)&&this.hasListeners()){const c=C(this,on).variables,p=C(this,on).context,f={client:C(this,Kt),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(r=C(this,Bt)).onSuccess)==null||o.call(r,n.data,c,p,f)}catch(g){Promise.reject(g)}try{(a=(i=C(this,Bt)).onSettled)==null||a.call(i,n.data,null,c,p,f)}catch(g){Promise.reject(g)}}else if((n==null?void 0:n.type)==="error"){try{(l=(s=C(this,Bt)).onError)==null||l.call(s,n.error,c,p,f)}catch(g){Promise.reject(g)}try{(h=(u=C(this,Bt)).onSettled)==null||h.call(u,void 0,n.error,c,p,f)}catch(g){Promise.reject(g)}}}this.listeners.forEach(c=>{c(C(this,on))})})},lf);function Yu(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function um(e,t,n){const r=e.slice(0);return r[t]=n,r}var Pr,Ze,Rr,kr,lt,an,zo,Uo,qo,Wo,De,Ys,Xs,Zs,Js,el,uf,cm=(uf=class extends Wn{constructor(t,n,r){super();G(this,De);G(this,Pr);G(this,Ze);G(this,Rr);G(this,kr);G(this,lt);G(this,an);G(this,zo);G(this,Uo);G(this,qo);G(this,Wo,[]);H(this,Pr,t),H(this,kr,r),H(this,Rr,[]),H(this,lt,[]),H(this,Ze,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&C(this,lt).forEach(t=>{t.subscribe(n=>{X(this,De,Js).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,C(this,lt).forEach(t=>{t.destroy()})}setQueries(t,n){H(this,Rr,t),H(this,kr,n),be.batch(()=>{const r=C(this,lt),o=X(this,De,Zs).call(this,C(this,Rr));o.forEach(c=>c.observer.setOptions(c.defaultedQueryOptions));const i=o.map(c=>c.observer),a=i.map(c=>c.getCurrentResult()),s=r.length!==i.length,l=i.some((c,p)=>c!==r[p]),u=s||l,h=u?!0:a.some((c,p)=>{const f=C(this,Ze)[p];return!f||!Eo(c,f)});!u&&!h||(u&&(H(this,Wo,o),H(this,lt,i)),H(this,Ze,a),this.hasListeners()&&(u&&(Yu(r,i).forEach(c=>{c.destroy()}),Yu(i,r).forEach(c=>{c.subscribe(p=>{X(this,De,Js).call(this,c,p)})})),X(this,De,el).call(this)))})}getCurrentResult(){return C(this,Ze)}getQueries(){return C(this,lt).map(t=>t.getCurrentQuery())}getObservers(){return C(this,lt)}getOptimisticResult(t,n){const r=X(this,De,Zs).call(this,t),o=r.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions)),i=r.map(a=>a.defaultedQueryOptions.queryHash);return[o,a=>X(this,De,Xs).call(this,a??o,n,i),()=>X(this,De,Ys).call(this,o,r)]}},Pr=new WeakMap,Ze=new WeakMap,Rr=new WeakMap,kr=new WeakMap,lt=new WeakMap,an=new WeakMap,zo=new WeakMap,Uo=new WeakMap,qo=new WeakMap,Wo=new WeakMap,De=new WeakSet,Ys=function(t,n){return n.map((r,o)=>{const i=t[o];return r.defaultedQueryOptions.notifyOnChangeProps?i:r.observer.trackResult(i,a=>{n.forEach(s=>{s.observer.trackProp(a)})})})},Xs=function(t,n,r){if(n){const o=C(this,qo),i=r!==void 0&&o!==void 0&&(o.length!==r.length||r.some((a,s)=>a!==o[s]));return(!C(this,an)||C(this,Ze)!==C(this,Uo)||i||n!==C(this,zo))&&(H(this,zo,n),H(this,Uo,C(this,Ze)),r!==void 0&&H(this,qo,r),H(this,an,Vl(C(this,an),n(t)))),C(this,an)}return t},Zs=function(t){const n=new Map;C(this,lt).forEach(o=>{const i=o.options.queryHash;if(!i)return;const a=n.get(i);a?a.push(o):n.set(i,[o])});const r=[];return t.forEach(o=>{var l;const i=C(this,Pr).defaultQueryOptions(o),s=((l=n.get(i.queryHash))==null?void 0:l.shift())??new Go(C(this,Pr),i);r.push({defaultedQueryOptions:i,observer:s})}),r},Js=function(t,n){const r=C(this,lt).indexOf(t);r!==-1&&(H(this,Ze,um(C(this,Ze),r,n)),X(this,De,el).call(this))},el=function(){var t;if(this.hasListeners()){const n=C(this,an),r=X(this,De,Ys).call(this,C(this,Ze),C(this,Wo)),o=X(this,De,Xs).call(this,r,(t=C(this,kr))==null?void 0:t.combine);n!==o&&be.batch(()=>{this.listeners.forEach(i=>{i(C(this,Ze))})})}},uf),Tt,cf,dm=(cf=class extends Wn{constructor(t={}){super();G(this,Tt);this.config=t,H(this,Tt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Hl(o,n);let a=this.get(i);return a||(a=new tm({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){C(this,Tt).has(t.queryHash)||(C(this,Tt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,Tt).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,Tt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Tt).get(t)}getAll(){return[...C(this,Tt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Hu(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Hu(t,r)):n}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tt=new WeakMap,cf),ve,sn,ln,Mr,Or,un,Tr,Dr,df,fm=(df=class{constructor(e={}){G(this,ve);G(this,sn);G(this,ln);G(this,Mr);G(this,Or);G(this,un);G(this,Tr);G(this,Dr);H(this,ve,e.queryCache||new dm),H(this,sn,e.mutationCache||new sm),H(this,ln,e.defaultOptions||{}),H(this,Mr,new Map),H(this,Or,new Map),H(this,un,0)}mount(){ci(this,un)._++,C(this,un)===1&&(H(this,Tr,Ul.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ve).onFocus())})),H(this,Dr,zi.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ve).onOnline())})))}unmount(){var e,t;ci(this,un)._--,C(this,un)===0&&((e=C(this,Tr))==null||e.call(this),H(this,Tr,void 0),(t=C(this,Dr))==null||t.call(this),H(this,Dr,void 0))}isFetching(e){return C(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,sn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ve).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,ve).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(hn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,ve).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=C(this,ve).get(r.queryHash),i=o==null?void 0:o.state.data,a=zg(t,i);if(a!==void 0)return C(this,ve).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return be.batch(()=>C(this,ve).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ve).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,ve);be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,ve);return be.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=be.batch(()=>C(this,ve).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(je).catch(je)}invalidateQueries(e,t={}){return be.batch(()=>(C(this,ve).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=be.batch(()=>C(this,ve).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(je)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(je)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,ve).build(this,t);return n.isStaleByTime(hn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(je).catch(je)}fetchInfiniteQuery(e){return e.behavior=Ui(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(je).catch(je)}ensureInfiniteQueryData(e){return e.behavior=Ui(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zi.isOnline()?C(this,sn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ve)}getMutationCache(){return C(this,sn)}getDefaultOptions(){return C(this,ln)}setDefaultOptions(e){H(this,ln,e)}setQueryDefaults(e,t){C(this,Mr).set(vn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Mr).values()],n={};return t.forEach(r=>{So(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,Or).set(vn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Or).values()],n={};return t.forEach(r=>{So(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,ln).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hl(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===et&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,ln).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ve).clear(),C(this,sn).clear()}},ve=new WeakMap,sn=new WeakMap,ln=new WeakMap,Mr=new WeakMap,Or=new WeakMap,un=new WeakMap,Tr=new WeakMap,Dr=new WeakMap,df),Ef=E.createContext(void 0),Qo=e=>{const t=E.useContext(Ef);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},hm=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Ef.Provider,{value:e,children:t})),Pf=E.createContext(!1),Rf=()=>E.useContext(Pf);Pf.Provider;function pm(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var gm=E.createContext(pm()),kf=()=>E.useContext(gm),Mf=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?zl(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Of=e=>{E.useEffect(()=>{e.clearReset()},[e])},Tf=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||zl(n,[e.error,r])),Wl=(e,t)=>t.state.data===void 0,Df=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},_f=(e,t)=>e.isLoading&&e.isFetching&&!t,tl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,qi=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Lf({queries:e,...t},n){const r=Qo(n),o=Rf(),i=kf(),a=E.useMemo(()=>e.map(m=>{const v=r.defaultQueryOptions(m);return v._optimisticResults=o?"isRestoring":"optimistic",v}),[e,r,o]);a.forEach(m=>{Df(m);const v=r.getQueryCache().get(m.queryHash);Mf(m,i,v)}),Of(i);const[s]=E.useState(()=>new cm(r,a,t)),[l,u,h]=s.getOptimisticResult(a,t.combine),c=!o&&t.subscribed!==!1;E.useSyncExternalStore(E.useCallback(m=>c?s.subscribe(be.batchCalls(m)):je,[s,c]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),E.useEffect(()=>{s.setQueries(a,t)},[a,t,s]);const f=l.some((m,v)=>tl(a[v],m))?l.flatMap((m,v)=>{const b=a[v];if(b){const x=new Go(r,b);if(tl(b,m))return qi(b,x,i);_f(m,o)&&qi(b,x,i)}return[]}):[];if(f.length>0)throw Promise.all(f);const g=l.find((m,v)=>{const b=a[v];return b&&Tf({result:m,errorResetBoundary:i,throwOnError:b.throwOnError,query:r.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(g!=null&&g.error)throw g.error;return u(h())}function wa(e,t,n){var p,f,g,m;const r=Rf(),o=kf(),i=Qo(n),a=i.defaultQueryOptions(e);(f=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||f.call(p,a);const s=i.getQueryCache().get(a.queryHash);a._optimisticResults=r?"isRestoring":"optimistic",Df(a),Mf(a,o,s),Of(o);const l=!i.getQueryCache().get(a.queryHash),[u]=E.useState(()=>new t(i,a)),h=u.getOptimisticResult(a),c=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(v=>{const b=c?u.subscribe(be.batchCalls(v)):je;return u.updateResult(),b},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),E.useEffect(()=>{u.setOptions(a)},[a,u]),tl(a,h))throw qi(a,u,o);if(Tf({result:h,errorResetBoundary:o,throwOnError:a.throwOnError,query:s,suspense:a.suspense}))throw h.error;if((m=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||m.call(g,a,h),a.experimental_prefetchInRender&&!Hn&&_f(h,r)){const v=l?qi(a,u,o):s==null?void 0:s.promise;v==null||v.catch(je).finally(()=>{u.updateResult()})}return a.notifyOnChangeProps?h:u.trackResult(h)}function mm(e,t){return wa(e,Go,t)}function vm(e,t){return wa({...e,enabled:!0,suspense:!0,throwOnError:Wl,placeholderData:void 0},Go,t)}function bm(e,t){return wa({...e,enabled:!0,suspense:!0,throwOnError:Wl},$f,t)}function ym(e,t){return Lf({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:Wl,enabled:!0,placeholderData:void 0}))},t)}function xm(e,t){const n=Qo(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function wm(e,t){const n=Qo(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function Cm(e,t){const n=Qo(t),[r]=E.useState(()=>new lm(n,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);const o=E.useSyncExternalStore(E.useCallback(a=>r.subscribe(be.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=E.useCallback((a,s)=>{r.mutate(a,s).catch(je)},[r]);if(o.error&&zl(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function $m(e,t){return wa(e,$f,t)}var Sm=Object.create,Ff=Object.defineProperty,Em=Object.getOwnPropertyDescriptor,If=Object.getOwnPropertyNames,Pm=Object.getPrototypeOf,Rm=Object.prototype.hasOwnProperty,Dt=(e,t)=>function(){return t||(0,e[If(e)[0]])((t={exports:{}}).exports,t),t.exports},km=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=If(t),i=0,a=o.length,s;i<a;i++)s=o[i],!Rm.call(e,s)&&s!==n&&Ff(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=Em(t,s))||r.enumerable});return e},Ce=(e,t,n)=>(n=e!=null?Sm(Pm(e)):{},km(Ff(n,"default",{value:e,enumerable:!0}),e)),jf=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Mm=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=jf().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Om=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=jf().default,r=Mm();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gn=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Om();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),St=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Gn();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});function Ca(e){const t={subscribe(n){let r=null,o=!1,i=!1,a=!1;function s(){if(r===null){a=!0;return}i||(i=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(l){var u;o||(u=n.next)===null||u===void 0||u.call(n,l)},error(l){var u;o||(o=!0,(u=n.error)===null||u===void 0||u.call(n,l),s())},complete(){var l;o||(o=!0,(l=n.complete)===null||l===void 0||l.call(n),s())}}),a&&s(),{unsubscribe:s}},pipe(...n){return n.reduce(Tm,t)}};return t}function Tm(e,t){return t(e)}function Dm(e){const t=new AbortController;return new Promise((r,o)=>{let i=!1;function a(){i||(i=!0,s.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const s=e.subscribe({next(l){i=!0,r(l),a()},error(l){o(l)},complete(){t.abort(),a()}})})}function _m(e){return t=>{let n=0,r=null;const o=[];function i(){r||(r=t.subscribe({next(s){for(const u of o){var l;(l=u.next)===null||l===void 0||l.call(u,s)}},error(s){for(const u of o){var l;(l=u.error)===null||l===void 0||l.call(u,s)}},complete(){for(const l of o){var s;(s=l.complete)===null||s===void 0||s.call(l)}}}))}function a(){if(n===0&&r){const s=r;r=null,s.unsubscribe()}}return Ca(s=>(n++,o.push(s),i(),{unsubscribe(){n--,a();const l=o.findIndex(u=>u===s);l>-1&&o.splice(l,1)}}))}}function Lm(e){let t=e;const n=[],r=a=>{t!==void 0&&a.next(t),n.push(a)},o=a=>{n.splice(n.indexOf(a),1)},i=Ca(a=>(r(a),()=>{o(a)}));return i.next=a=>{if(t!==a){t=a;for(const s of n)s.next(a)}},i.get=()=>t,i}function Fm(e){return Ca(t=>{function n(o=0,i=e.op){const a=e.links[o];if(!a)throw new Error("No more links to execute - did you forget to add an ending link?");return a({op:i,next(l){return n(o+1,l)}})}return n().subscribe(t)})}function Vn(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function Im(){return Object.create(null)}const jm=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Nf(e){return jm&&Vn(e)&&Symbol.asyncIterator in e}var Nm=Object.create,Af=Object.defineProperty,Am=Object.getOwnPropertyDescriptor,Kf=Object.getOwnPropertyNames,Km=Object.getPrototypeOf,Bm=Object.prototype.hasOwnProperty,Yo=(e,t)=>function(){return t||(0,e[Kf(e)[0]])((t={exports:{}}).exports,t),t.exports},Hm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Kf(t),i=0,a=o.length,s;i<a;i++)s=o[i],!Bm.call(e,s)&&s!==n&&Af(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=Am(t,s))||r.enumerable});return e},$a=(e,t,n)=>(n=e!=null?Nm(Km(e)):{},Hm(Af(n,"default",{value:e,enumerable:!0}),e));const Bf=()=>{},Xu=e=>{Object.freeze&&Object.freeze(e)};function Hf(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(Bf,{get(i,a){if(!(typeof a!="string"||a==="then"))return Hf(e,[...t,a],n)},apply(i,a,s){const l=t[t.length-1];let u={args:s,path:t};return l==="call"?u={args:s.length>=2?[s[1]]:[],path:t.slice(0,-1)}:l==="apply"&&(u={args:s.length>=2?s[1]:[],path:t.slice(0,-1)}),Xu(u.args),Xu(u.path),e(u)}})),n[o]}const Sa=e=>Hf(e,[],Im()),Gl=e=>new Proxy(Bf,{get(t,n){if(n!=="then")return e(n)}});var Vf=Yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Vm=Yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Vf().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),zm=Yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Vf().default,r=Vm();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),zf=Yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=zm();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ql=Yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=zf();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});$a(Ql());$a(zf());var fi=$a(Ql());function Um(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,fi.default)((0,fi.default)({},e),{},{error:r})}}return{ok:!0,result:(0,fi.default)((0,fi.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var Qa=class extends Error{constructor(){super("Unable to transform response from server")}};function qm(e,t){let n;try{n=Um(e,t)}catch{throw new Qa}if(!n.ok&&(!Vn(n.error.error)||typeof n.error.error.code!="number"))throw new Qa;if(n.ok&&!Vn(n.result))throw new Qa;return n}$a(Ql());var hi=Ce(Gn()),rr=Ce(St());function Wm(e){return e instanceof Wi}function Gm(e){return Vn(e)&&Vn(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function Qm(e,t){return typeof e=="string"?e:Vn(e)&&typeof e.message=="string"?e.message:t}var Wi=class ji extends Error{constructor(t,n){var r,o;const i=n==null?void 0:n.cause;super(t,{cause:i}),(0,hi.default)(this,"cause",void 0),(0,hi.default)(this,"shape",void 0),(0,hi.default)(this,"data",void 0),(0,hi.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=i,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(o=n.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,ji.prototype)}static from(t,n={}){const r=t;return Wm(r)?(n.meta&&(r.meta=(0,rr.default)((0,rr.default)({},r.meta),n.meta)),r):Gm(r)?new ji(r.error.message,(0,rr.default)((0,rr.default)({},n),{},{result:r})):new ji(Qm(r,"Unknown error"),(0,rr.default)((0,rr.default)({},n),{},{cause:r}))}};function Ym(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const Zu=e=>typeof e=="function";function Xm(e){if(e)return e;if(typeof window<"u"&&Zu(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Zu(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var go=Ce(St());function Zm(e){return{url:e.url.toString(),fetch:e.fetch,transformer:Ym(e.transformer),methodOverride:e.methodOverride}}function Jm(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const ev={query:"GET",mutation:"POST",subscription:"PATCH"};function Uf(e){return"input"in e?e.transformer.input.serialize(e.input):Jm(e.inputs.map(t=>e.transformer.input.serialize(t)))}const qf=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const o=[];if(t[1]&&o.push(t[1]),"inputs"in e&&o.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=Uf(e);i!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return o.length&&(r+="?"+o.join("&")),r},tv=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=Uf(e);return t!==void 0?JSON.stringify(t):void 0},nv=e=>av((0,go.default)((0,go.default)({},e),{},{contentTypeHeader:"application/json",getUrl:qf,getBody:tv}));var rv=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const ov=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new rv};async function iv(e){var t;ov(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:ev[e.type],i=await(async()=>{const s=await e.headers();return Symbol.iterator in s?Object.fromEntries(s):s})(),a=(0,go.default)((0,go.default)((0,go.default)({},e.contentTypeHeader&&o!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return Xm(e.fetch)(n,{method:o,signal:e.signal,body:r,headers:a})}async function av(e){const t={},n=await iv(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}Ce(St());const Ju=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function ec(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function o(s){const l=[[]];let u=0;for(;;){const p=s[u];if(!p)break;const f=l[l.length-1];if(p.aborted){var h;(h=p.reject)===null||h===void 0||h.call(p,new Error("Aborted")),u++;continue}if(e.validate(f.concat(p).map(m=>m.key))){f.push(p),u++;continue}if(f.length===0){var c;(c=p.reject)===null||c===void 0||c.call(p,new Error("Input is too big for a single dispatch")),u++;continue}l.push([])}return l}function i(){const s=o(t);r();for(const l of s){if(!l.length)continue;const u={items:l};for(const c of l)c.batch=u;e.fetch(u.items.map(c=>c.key)).then(async c=>{await Promise.all(c.map(async(f,g)=>{const m=u.items[g];try{var v;const x=await Promise.resolve(f);(v=m.resolve)===null||v===void 0||v.call(m,x)}catch(x){var b;(b=m.reject)===null||b===void 0||b.call(m,x)}m.batch=null,m.reject=null,m.resolve=null}));for(const f of u.items){var p;(p=f.reject)===null||p===void 0||p.call(f,new Error("Missing result")),f.batch=null}}).catch(c=>{for(const f of u.items){var p;(p=f.reject)===null||p===void 0||p.call(f,c),f.batch=null}})}}function a(s){var l;const u={aborted:!1,key:s,batch:null,resolve:Ju,reject:Ju},h=new Promise((c,p)=>{var f;u.reject=p,u.resolve=c,(f=t)!==null&&f!==void 0||(t=[]),t.push(u)});return(l=n)!==null&&l!==void 0||(n=setTimeout(i)),h}return{load:a}}function sv(...e){const t=new AbortController,n=e.length;let r=0;const o=()=>{++r===n&&t.abort()};for(const i of e)i!=null&&i.aborted?o():i==null||i.addEventListener("abort",o,{once:!0});return t.signal}var pi=Ce(St());function lv(e){var t,n;const r=Zm(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const a=h=>({validate(c){if(o===1/0&&i===1/0)return!0;if(c.length>i)return!1;const p=c.map(m=>m.path).join(","),f=c.map(m=>m.input);return qf((0,pi.default)((0,pi.default)({},r),{},{type:h,path:p,inputs:f,signal:null})).length<=o},async fetch(c){const p=c.map(x=>x.path).join(","),f=c.map(x=>x.input),g=sv(...c.map(x=>x.signal)),m=await nv((0,pi.default)((0,pi.default)({},r),{},{path:p,inputs:f,type:h,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:c}):e.headers:{}},signal:g}));return(Array.isArray(m.json)?m.json:c.map(()=>m.json)).map(x=>({meta:m.meta,json:x}))}}),s=ec(a("query")),l=ec(a("mutation")),u={query:s,mutation:l};return({op:h})=>Ca(c=>{/* istanbul ignore if -- @preserve */if(h.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const f=u[h.type].load(h);let g;return f.then(m=>{g=m;const v=qm(m.json,r.transformer.output);if(!v.ok){c.error(Wi.from(v.error,{meta:m.meta}));return}c.next({context:m.meta,result:v.result}),c.complete()}).catch(m=>{c.error(Wi.from(m,{meta:g==null?void 0:g.meta}))}),()=>{}})}}Ce(St());const Wf=(e,...t)=>typeof e=="function"?e(...t):e;Ce(Gn());function uv(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function cv(e){const t=await Wf(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function dv(e){const t={method:"connectionParams",data:await Wf(e)};return JSON.stringify(t)}Ce(Gn());var Mn=Ce(Gn());function fv(e){const{promise:t,resolve:n,reject:r}=uv();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function hv(e,{intervalMs:t,pongTimeoutMs:n}){let r,o;function i(){r=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},n)},t)}function a(){clearTimeout(r),i()}function s(){clearTimeout(o),a()}e.addEventListener("open",i),e.addEventListener("message",({data:l})=>{clearTimeout(r),i(),l==="PONG"&&s()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(o)})}var pv=class nl{constructor(t){var n;if((0,Mn.default)(this,"id",++nl.connectCount),(0,Mn.default)(this,"WebSocketPonyfill",void 0),(0,Mn.default)(this,"urlOptions",void 0),(0,Mn.default)(this,"keepAliveOpts",void 0),(0,Mn.default)(this,"wsObservable",Lm(null)),(0,Mn.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++nl.connectCount;const n=cv(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.binaryType="arraybuffer",r.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&hv(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await fv(r),t.urlOptions.connectionParams&&r.send(await dv(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Mn.default)(pv,"connectCount",0);Ce(Gn());Ce(St());var Ya=Ce(Gn()),tc=Ce(St()),Ea=class{constructor(e){(0,Ya.default)(this,"links",void 0),(0,Ya.default)(this,"runtime",void 0),(0,Ya.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return Fm({links:this.links,op:(0,tc.default)((0,tc.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(_m())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await Dm(n)).result.data}catch(n){throw Wi.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(o){switch(o.result.type){case"state":{var i;(i=n.onConnectionStateChange)===null||i===void 0||i.call(n,o.result);break}case"started":{var a;(a=n.onStarted)===null||a===void 0||a.call(n,{context:o.context});break}case"stopped":{var s;(s=n.onStopped)===null||s===void 0||s.call(n);break}case"data":case void 0:{var l;(l=n.onData)===null||l===void 0||l.call(n,o.result.data);break}}},error(o){var i;(i=n.onError)===null||i===void 0||i.call(n,o)},complete(){var o;(o=n.onComplete)===null||o===void 0||o.call(n)}})}};const Gf=Symbol.for("trpc_untypedClient"),gv={query:"query",mutate:"mutation",subscribe:"subscription"},mv=e=>gv[e];function Qf(e){const t=Sa(({path:n,args:r})=>{const o=[...n],i=mv(o.pop()),a=o.join(".");return e[i](a,...r)});return Gl(n=>n===Gf?e:t[n])}function vv(e){const t=new Ea(e);return Qf(t)}function Yl(e){return e[Gf]}Ce(St());Ce(St());var bv=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var i,a,s,l=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,s=Symbol.iterator);l--;){if(a&&(i=o[a])!=null)return i.call(o);if(s&&(i=o[s])!=null)return new r(i.call(o));a="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function i(a){if(Object(a)!==a)return Promise.reject(new TypeError(a+" is not an object."));var s=a.done;return Promise.resolve(a.value).then(function(l){return{value:l,done:s}})}return r=function(s){this.s=s,this.n=s.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(s){var l=this.s.return;return l===void 0?Promise.resolve({value:s,done:!0}):i(l.apply(this.s,arguments))},throw:function(s){var l=this.s.return;return l===void 0?Promise.reject(s):i(l.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Ce(bv());Ce(St());var yv=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(s,l){var u=Error();return u.name="SuppressedError",u.error=s,u.suppressed=l,u},o={},i=[];function a(s,l){if(l!=null){if(Object(l)!==l)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(s)var u=l[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(u===void 0&&(u=l[Symbol.dispose||Symbol.for("Symbol.dispose")],s))var h=u;if(typeof u!="function")throw new TypeError("Object is not disposable.");h&&(u=function(){try{h.call(l)}catch(p){return Promise.reject(p)}}),i.push({v:l,d:u,a:s})}else s&&i.push({d:l,a:s});return l}return{e:o,u:a.bind(null,!1),a:a.bind(null,!0),d:function(){var l,u=this.e,h=0;function c(){for(;l=i.pop();)try{if(!l.a&&h===1)return h=0,i.push(l),Promise.resolve().then(c);if(l.d){var f=l.d.call(l.v);if(l.a)return h|=2,Promise.resolve(f).then(c,p)}else h|=1}catch(g){return p(g)}if(h===1)return u!==o?Promise.reject(u):Promise.resolve();if(u!==o)throw u}function p(f){return u=u!==o?new r(f,u):f,c()}return c()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Yf=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,o){this.v=r,this.k=o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),xv=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=Yf();function r(o){return new n(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),wv=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=Yf();function r(i){return function(){return new o(i.apply(this,arguments))}}function o(i){var a,s;function l(h,c){try{var p=i[h](c),f=p.value,g=f instanceof n;Promise.resolve(g?f.v:f).then(function(m){if(g){var v=h==="return"?"return":"next";if(!f.k||m.done)return l(v,m);m=i[v](m).value}u(p.done?"return":"normal",m)},function(m){l("throw",m)})}catch(m){u("throw",m)}}function u(h,c){switch(h){case"return":a.resolve({value:c,done:!0});break;case"throw":a.reject(c);break;default:a.resolve({value:c,done:!1})}(a=a.next)?l(a.key,a.arg):s=null}this._invoke=function(h,c){return new Promise(function(p,f){var g={key:h,arg:c,resolve:p,reject:f,next:null};s?s=s.next=g:(a=s=g,l(h,c))})},typeof i.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(i){return this._invoke("next",i)},o.prototype.throw=function(i){return this._invoke("throw",i)},o.prototype.return=function(i){return this._invoke("return",i)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Ce(yv());Ce(xv());Ce(wv());Ce(St());var _r=function(){return _r=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_r.apply(this,arguments)};function Cv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function $v(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(h){try{u(r.next(h))}catch(c){a(c)}}function l(h){try{u(r.throw(h))}catch(c){a(c)}}function u(h){h.done?i(h.value):o(h.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Sv(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(h){u=[6,h],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Be(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Ev=Object.create,Xf=Object.defineProperty,Pv=Object.getOwnPropertyDescriptor,Zf=Object.getOwnPropertyNames,Rv=Object.getPrototypeOf,kv=Object.prototype.hasOwnProperty,wn=(e,t)=>function(){return t||(0,e[Zf(e)[0]])((t={exports:{}}).exports,t),t.exports},Mv=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Zf(t),i=0,a=o.length,s;i<a;i++)s=o[i],!kv.call(e,s)&&s!==n&&Xf(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=Pv(t,s))||r.enumerable});return e},Qn=(e,t,n)=>(n=e!=null?Ev(Rv(e)):{},Mv(t||!e||!e.__esModule?Xf(n,"default",{value:e,enumerable:!0}):n,e)),Ov=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,o){if(r==null)return{};var i={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(o.includes(a))continue;i[a]=r[a]}return i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Tv=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=Ov();function r(o,i){if(o==null)return{};var a,s,l=n(o,i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);for(s=0;s<u.length;s++)a=u[s],i.includes(a)||{}.propertyIsEnumerable.call(o,a)&&(l[a]=o[a])}return l}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jf=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Dv=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Jf().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),_v=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Jf().default,r=Dv();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Lv=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=_v();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Xo=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Lv();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Fv=Qn(Tv(),1),nc=Qn(Xo(),1);const Iv=["cursor","direction"];function kt(e,t,n){const r=e.flatMap(o=>o.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&Vn(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:i}=t,a=(0,Fv.default)(t,Iv);return[r,{input:a,type:"infinite"}]}return[r,(0,nc.default)((0,nc.default)({},typeof t<"u"&&t!==et&&{input:t}),n&&n!=="any"&&{type:n})]}function Ni(e){return kt(e,void 0,"any")}function jv(e){return Sa(({path:t,args:n})=>{var r;const o=[...t],i=o.pop();if(i==="useMutation")return e[i](o,...n);if(i==="_def")return{path:o};const[a,...s]=n,l=(r=s[0])!==null&&r!==void 0?r:{};return e[i](o,a,l)})}var Xa;const Nv=["client","ssrContext","ssrState","abortOnUnmount"],Av=(Xa=E.createContext)===null||Xa===void 0?void 0:Xa.call(E,null),Kv=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Bv(e){return Sa(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],i=o.shift(),a=Kv(r),s=kt(n,i,a);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,s,o[0]),queryOptions:()=>e.queryOptions(n,s,...o),fetch:()=>e.fetchQuery(s,...o),fetchInfinite:()=>e.fetchInfiniteQuery(s,o[0]),prefetch:()=>e.prefetchQuery(s,...o),prefetchInfinite:()=>e.prefetchInfiniteQuery(s,o[0]),ensureData:()=>e.ensureQueryData(s,...o),invalidate:()=>e.invalidateQueries(s,...o),reset:()=>e.resetQueries(s,...o),refetch:()=>e.refetchQueries(s,...o),cancel:()=>e.cancelQuery(s,...o),setData:()=>{e.setQueryData(s,o[0],o[1])},setQueriesData:()=>e.setQueriesData(s,o[0],o[1],o[2]),setInfiniteData:()=>{e.setInfiniteQueryData(s,o[0],o[1])},getData:()=>e.getQueryData(s),getInfiniteData:()=>e.getInfiniteQueryData(s),setMutationDefaults:()=>e.setMutationDefaults(Ni(n),i),getMutationDefaults:()=>e.getMutationDefaults(Ni(n)),isMutating:()=>e.isMutating({mutationKey:Ni(n)})}[r]()})}function Hv(e){const t=Qf(e.client),n=Bv(e);return Gl(r=>{const o=r;return o==="client"?t:Nv.includes(o)?e[o]:n[r]})}var Vv=Qn(Xo(),1);function rc(e){const t=e instanceof Ea?e:Yl(e);return Sa(n=>{const r=n.path,o=r.join("."),[i,a]=n.args;return(0,Vv.default)({queryKey:kt(r,i,"query"),queryFn:()=>t.query(o,i,a==null?void 0:a.trpc)},a)})}var Za=Qn(Xo(),1);function Ke(e,t,n){var r;const o=e[0];let i=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var a;i=(0,Za.default)((0,Za.default)((0,Za.default)({},(a=i)!==null&&a!==void 0?a:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[o.join("."),i,t==null?void 0:t.trpc]}var zv=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var i,a,s,l=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,s=Symbol.iterator);l--;){if(a&&(i=o[a])!=null)return i.call(o);if(s&&(i=o[s])!=null)return new r(i.call(o));a="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function i(a){if(Object(a)!==a)return Promise.reject(new TypeError(a+" is not an object."));var s=a.done;return Promise.resolve(a.value).then(function(l){return{value:l,done:s}})}return r=function(s){this.s=s,this.n=s.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(s){var l=this.s.return;return l===void 0?Promise.resolve({value:s,done:!0}):i(l.apply(this.s,arguments))},throw:function(s){var l=this.s.return;return l===void 0?Promise.reject(s):i(l.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Uv=Qn(zv(),1);function rl(e){return{path:e.path.join(".")}}function Jr(e){const t=rl(e);return E.useMemo(()=>t,[t])}async function e0(e,t,n){const o=t.getQueryCache().build(t,{queryKey:n});o.setState({data:[],status:"success"});const i=[];var a=!1,s=!1,l;try{for(var u=(0,Uv.default)(e),h;a=!(h=await u.next()).done;a=!1){const c=h.value;i.push(c),o.setState({data:[...i]})}}catch(c){s=!0,l=c}finally{try{a&&u.return!=null&&await u.return()}finally{if(s)throw l}}return i}var se=Qn(Xo(),1);function qv(e){const{client:t,queryClient:n}=e,r=t instanceof Ea?t:Yl(t);return{infiniteQueryOptions:(o,i,a)=>{var s,l;const u=((s=i[1])===null||s===void 0?void 0:s.input)===et,h=async c=>{var p;const f=(0,se.default)((0,se.default)({},a),{},{trpc:(0,se.default)((0,se.default)({},a==null?void 0:a.trpc),!(a==null||(p=a.trpc)===null||p===void 0)&&p.abortOnUnmount?{signal:c.signal}:{signal:null})});return await r.query(...Ke(i,f,{direction:c.direction,pageParam:c.pageParam}))};return Object.assign((0,se.default)((0,se.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:i,queryFn:u?et:h,initialPageParam:(l=a==null?void 0:a.initialCursor)!==null&&l!==void 0?l:null}),{trpc:rl({path:o})})},queryOptions:(o,i,a)=>{var s;const l=((s=i[1])===null||s===void 0?void 0:s.input)===et,u=async h=>{var c;const p=(0,se.default)((0,se.default)({},a),{},{trpc:(0,se.default)((0,se.default)({},a==null?void 0:a.trpc),!(a==null||(c=a.trpc)===null||c===void 0)&&c.abortOnUnmount?{signal:h.signal}:{signal:null})}),f=await r.query(...Ke(i,p));return Nf(f)?e0(f,n,i):f};return Object.assign((0,se.default)((0,se.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:i,queryFn:l?et:u}),{trpc:rl({path:o})})},fetchQuery:(o,i)=>n.fetchQuery((0,se.default)((0,se.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...Ke(o,i))})),fetchInfiniteQuery:(o,i)=>{var a;return n.fetchInfiniteQuery((0,se.default)((0,se.default)({},i),{},{queryKey:o,queryFn:({pageParam:s,direction:l})=>r.query(...Ke(o,i,{pageParam:s,direction:l})),initialPageParam:(a=i==null?void 0:i.initialCursor)!==null&&a!==void 0?a:null}))},prefetchQuery:(o,i)=>n.prefetchQuery((0,se.default)((0,se.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...Ke(o,i))})),prefetchInfiniteQuery:(o,i)=>{var a;return n.prefetchInfiniteQuery((0,se.default)((0,se.default)({},i),{},{queryKey:o,queryFn:({pageParam:s,direction:l})=>r.query(...Ke(o,i,{pageParam:s,direction:l})),initialPageParam:(a=i==null?void 0:i.initialCursor)!==null&&a!==void 0?a:null}))},ensureQueryData:(o,i)=>n.ensureQueryData((0,se.default)((0,se.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...Ke(o,i))})),invalidateQueries:(o,i,a)=>n.invalidateQueries((0,se.default)((0,se.default)({},i),{},{queryKey:o}),a),resetQueries:(o,i,a)=>n.resetQueries((0,se.default)((0,se.default)({},i),{},{queryKey:o}),a),refetchQueries:(o,i,a)=>n.refetchQueries((0,se.default)((0,se.default)({},i),{},{queryKey:o}),a),cancelQuery:(o,i)=>n.cancelQueries({queryKey:o},i),setQueryData:(o,i,a)=>n.setQueryData(o,i,a),setQueriesData:(o,i,a,s)=>n.setQueriesData((0,se.default)((0,se.default)({},i),{},{queryKey:o}),a,s),getQueryData:o=>n.getQueryData(o),setInfiniteQueryData:(o,i,a)=>n.setQueryData(o,i,a),getInfiniteQueryData:o=>n.getQueryData(o),setMutationDefaults:(o,i)=>{const a=o[0],s=l=>r.mutation(...Ke([a,{input:l}],e));return n.setMutationDefaults(o,typeof i=="function"?i({canonicalMutationFn:s}):i)},getMutationDefaults:o=>n.getMutationDefaults(o),isMutating:o=>n.isMutating((0,se.default)((0,se.default)({},o),{},{exact:!0}))}}var q=Qn(Xo());const oc=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function Wv(e){var t,n,r;const o=(t=e==null||(n=e.overrides)===null||n===void 0||(n=n.useMutation)===null||n===void 0?void 0:n.onSuccess)!==null&&t!==void 0?t:P=>P.originalFn(),i=(r=e==null?void 0:e.context)!==null&&r!==void 0?r:Av,a=vv,s=P=>{var R;const{abortOnUnmount:k=!1,queryClient:D,ssrContext:_}=P,[A,K]=E.useState((R=P.ssrState)!==null&&R!==void 0?R:!1),I=P.client instanceof Ea?P.client:Yl(P.client),z=E.useMemo(()=>qv({client:I,queryClient:D}),[I,D]),O=E.useMemo(()=>(0,q.default)({abortOnUnmount:k,queryClient:D,client:I,ssrContext:_??null,ssrState:A},z),[k,I,z,D,_,A]);return E.useEffect(()=>{K(L=>L?"mounted":!1)},[]),y.jsx(i.Provider,{value:O,children:P.children})};function l(){const P=E.useContext(i);if(!P)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return P}function u(P,R){var k;const{queryClient:D,ssrState:_}=l();return _&&_!=="mounted"&&((k=D.getQueryCache().find({queryKey:P}))===null||k===void 0?void 0:k.state.status)==="error"?(0,q.default)({retryOnMount:!1},R):R}function h(P,R,k){var D,_,A,K,I;const z=l(),{abortOnUnmount:O,client:L,ssrState:B,queryClient:U,prefetchQuery:W}=z,$=kt(P,R,"query"),F=U.getQueryDefaults($),T=R===et;typeof window>"u"&&B==="prepass"&&(k==null||(D=k.trpc)===null||D===void 0?void 0:D.ssr)!==!1&&((_=k==null?void 0:k.enabled)!==null&&_!==void 0?_:F==null?void 0:F.enabled)!==!1&&!T&&!U.getQueryCache().find({queryKey:$})&&W($,k);const j=u($,(0,q.default)((0,q.default)({},F),k)),V=(A=(K=k==null||(I=k.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&K!==void 0?K:e==null?void 0:e.abortOnUnmount)!==null&&A!==void 0?A:O,N=mm((0,q.default)((0,q.default)({},j),{},{queryKey:$,queryFn:T?R:async Z=>{const he=(0,q.default)((0,q.default)({},j),{},{trpc:(0,q.default)((0,q.default)({},j==null?void 0:j.trpc),V?{signal:Z.signal}:{signal:null})}),te=await L.query(...Ke($,he));return Nf(te)?e0(te,U,$):te}}),U);return N.trpc=Jr({path:P}),N}function c(P,R,k){var D,_,A;const K=l(),I=kt(P,R,"query"),z=R===et,O=(D=(_=k==null||(A=k.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&_!==void 0?_:e==null?void 0:e.abortOnUnmount)!==null&&D!==void 0?D:K.abortOnUnmount;xm((0,q.default)((0,q.default)({},k),{},{queryKey:I,queryFn:z?R:L=>{const B={trpc:(0,q.default)((0,q.default)({},k==null?void 0:k.trpc),O?{signal:L.signal}:{})};return K.client.query(...Ke(I,B))}}))}function p(P,R,k){var D,_,A;const K=l(),I=kt(P,R,"query"),z=(D=(_=k==null||(A=k.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&_!==void 0?_:e==null?void 0:e.abortOnUnmount)!==null&&D!==void 0?D:K.abortOnUnmount,O=vm((0,q.default)((0,q.default)({},k),{},{queryKey:I,queryFn:L=>{const B=(0,q.default)((0,q.default)({},k),{},{trpc:(0,q.default)((0,q.default)({},k==null?void 0:k.trpc),z?{signal:L.signal}:{signal:null})});return K.client.query(...Ke(I,B))}}),K.queryClient);return O.trpc=Jr({path:P}),[O.data,O]}function f(P,R){const{client:k,queryClient:D}=l(),_=Ni(P),A=D.defaultMutationOptions(D.getMutationDefaults(_)),K=Cm((0,q.default)((0,q.default)({},R),{},{mutationKey:_,mutationFn:I=>k.mutation(...Ke([P,{input:I}],R)),onSuccess(...I){var z,O;return o({originalFn:()=>{var B,U,W;return(B=R==null||(U=R.onSuccess)===null||U===void 0?void 0:U.call(R,...I))!==null&&B!==void 0?B:A==null||(W=A.onSuccess)===null||W===void 0?void 0:W.call(A,...I)},queryClient:D,meta:(z=(O=R==null?void 0:R.meta)!==null&&O!==void 0?O:A==null?void 0:A.meta)!==null&&z!==void 0?z:{}})}}),D);return K.trpc=Jr({path:P}),K}const g={data:void 0,error:null,status:"idle"},m={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function v(P,R,k){var D;const _=(D=k==null?void 0:k.enabled)!==null&&D!==void 0?D:R!==et,A=vn(kt(P,R,"any")),{client:K}=l(),I=E.useRef(k);E.useEffect(()=>{I.current=k});const[z]=E.useState(new Set([])),O=E.useCallback(T=>{z.add(T)},[z]),L=E.useRef(null),B=E.useCallback(T=>{const j=W.current,V=W.current=T(j);let N=!1;for(const Z of z)if(j[Z]!==V[Z]){N=!0;break}N&&F(oc(V,O))},[O,z]),U=E.useCallback(()=>{var T;if((T=L.current)===null||T===void 0||T.unsubscribe(),!_){B(()=>(0,q.default)((0,q.default)({},g),{},{reset:U}));return}B(()=>(0,q.default)((0,q.default)({},m),{},{reset:U}));const j=K.subscription(P.join("."),R??void 0,{onStarted:()=>{var V,N;(V=(N=I.current).onStarted)===null||V===void 0||V.call(N),B(Z=>(0,q.default)((0,q.default)({},Z),{},{status:"pending",error:null}))},onData:V=>{var N,Z;(N=(Z=I.current).onData)===null||N===void 0||N.call(Z,V),B(he=>(0,q.default)((0,q.default)({},he),{},{status:"pending",data:V,error:null}))},onError:V=>{var N,Z;(N=(Z=I.current).onError)===null||N===void 0||N.call(Z,V),B(he=>(0,q.default)((0,q.default)({},he),{},{status:"error",error:V}))},onConnectionStateChange:V=>{B(N=>{switch(V.state){case"idle":return(0,q.default)((0,q.default)({},N),{},{status:V.state,error:null,data:void 0});case"connecting":return(0,q.default)((0,q.default)({},N),{},{error:V.error,status:V.state});case"pending":return N}})},onComplete:()=>{var V,N;(V=(N=I.current).onComplete)===null||V===void 0||V.call(N),B(Z=>(0,q.default)((0,q.default)({},Z),{},{status:"idle",error:null,data:void 0}))}});L.current=j},[K,A,_,B]);E.useEffect(()=>(U(),()=>{var T;(T=L.current)===null||T===void 0||T.unsubscribe()}),[U]);const W=E.useRef(_?(0,q.default)((0,q.default)({},m),{},{reset:U}):(0,q.default)((0,q.default)({},g),{},{reset:U})),[$,F]=E.useState(oc(W.current,O));return $}function b(P,R,k){var D,_,A,K,I;const{client:z,ssrState:O,prefetchInfiniteQuery:L,queryClient:B,abortOnUnmount:U}=l(),W=kt(P,R,"infinite"),$=B.getQueryDefaults(W),F=R===et;typeof window>"u"&&O==="prepass"&&(k==null||(D=k.trpc)===null||D===void 0?void 0:D.ssr)!==!1&&((_=k==null?void 0:k.enabled)!==null&&_!==void 0?_:$==null?void 0:$.enabled)!==!1&&!F&&!B.getQueryCache().find({queryKey:W})&&L(W,(0,q.default)((0,q.default)({},$),k));const T=u(W,(0,q.default)((0,q.default)({},$),k)),j=(A=k==null||(K=k.trpc)===null||K===void 0?void 0:K.abortOnUnmount)!==null&&A!==void 0?A:U,V=$m((0,q.default)((0,q.default)({},T),{},{initialPageParam:(I=k.initialCursor)!==null&&I!==void 0?I:null,persister:k.persister,queryKey:W,queryFn:F?R:N=>{var Z;const he=(0,q.default)((0,q.default)({},T),{},{trpc:(0,q.default)((0,q.default)({},T==null?void 0:T.trpc),j?{signal:N.signal}:{signal:null})});return z.query(...Ke(W,he,{pageParam:(Z=N.pageParam)!==null&&Z!==void 0?Z:k.initialCursor,direction:N.direction}))}}),B);return V.trpc=Jr({path:P}),V}function x(P,R,k){var D,_,A;const K=l(),I=kt(P,R,"infinite"),z=K.queryClient.getQueryDefaults(I),O=R===et,L=u(I,(0,q.default)((0,q.default)({},z),k)),B=(D=k==null||(_=k.trpc)===null||_===void 0?void 0:_.abortOnUnmount)!==null&&D!==void 0?D:K.abortOnUnmount;wm((0,q.default)((0,q.default)({},k),{},{initialPageParam:(A=k.initialCursor)!==null&&A!==void 0?A:null,queryKey:I,queryFn:O?R:U=>{var W;const $=(0,q.default)((0,q.default)({},L),{},{trpc:(0,q.default)((0,q.default)({},L==null?void 0:L.trpc),B?{signal:U.signal}:{})});return K.client.query(...Ke(I,$,{pageParam:(W=U.pageParam)!==null&&W!==void 0?W:k.initialCursor,direction:U.direction}))}}))}function w(P,R,k){var D,_,A;const K=l(),I=kt(P,R,"infinite"),z=K.queryClient.getQueryDefaults(I),O=u(I,(0,q.default)((0,q.default)({},z),k)),L=(D=k==null||(_=k.trpc)===null||_===void 0?void 0:_.abortOnUnmount)!==null&&D!==void 0?D:K.abortOnUnmount,B=bm((0,q.default)((0,q.default)({},k),{},{initialPageParam:(A=k.initialCursor)!==null&&A!==void 0?A:null,queryKey:I,queryFn:U=>{var W;const $=(0,q.default)((0,q.default)({},O),{},{trpc:(0,q.default)((0,q.default)({},O==null?void 0:O.trpc),L?{signal:U.signal}:{})});return K.client.query(...Ke(I,$,{pageParam:(W=U.pageParam)!==null&&W!==void 0?W:k.initialCursor,direction:U.direction}))}}),K.queryClient);return B.trpc=Jr({path:P}),[B.data,B]}return{Provider:s,createClient:a,useContext:l,useUtils:l,useQuery:h,usePrefetchQuery:c,useSuspenseQuery:p,useQueries:(P,R)=>{const{ssrState:k,queryClient:D,prefetchQuery:_,client:A}=l(),K=rc(A),I=P(K);if(typeof window>"u"&&k==="prepass")for(const O of I){var z;const L=O;((z=L.trpc)===null||z===void 0?void 0:z.ssr)!==!1&&!D.getQueryCache().find({queryKey:L.queryKey})&&_(L.queryKey,L)}return Lf({queries:I.map(O=>(0,q.default)((0,q.default)({},O),{},{queryKey:O.queryKey})),combine:R==null?void 0:R.combine},D)},useSuspenseQueries:P=>{const{queryClient:R,client:k}=l(),D=rc(k),_=P(D),A=ym({queries:_.map(K=>(0,q.default)((0,q.default)({},K),{},{queryFn:K.queryFn,queryKey:K.queryKey}))},R);return[A.map(K=>K.data),A]},useMutation:f,useSubscription:v,useInfiniteQuery:b,usePrefetchInfiniteQuery:x,useSuspenseInfiniteQuery:w}}function Gv(e){const t=jv(e);return Gl(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return E.useMemo(()=>Hv(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function Qv(e){const t=Wv(e);return Gv(t)}var ue=Qv({overrides:{useMutation:{onSuccess:function(e){return $v(this,void 0,void 0,function(){return Sv(this,function(t){switch(t.label){case 0:return[4,e.originalFn()];case 1:return t.sent(),[4,e.queryClient.invalidateQueries()];case 2:return t.sent(),[2]}})})}}}});/**
|
|
9
|
+
*/var Kg=Symbol.for("react.transitional.element"),Bg=Symbol.for("react.fragment");function yf(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var o in t)o!=="key"&&(n[o]=t[o])}else n=t;return t=n.ref,{$$typeof:Kg,type:e,key:r,ref:t!==void 0?t:null,props:n}}xa.Fragment=Bg;xa.jsx=yf;xa.jsxs=yf;bf.exports=xa;var y=bf.exports,Gn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Hg={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},en,Ul,of,Vg=(of=class{constructor(){Q(this,en,Hg);Q(this,Ul,!1)}setTimeoutProvider(e){V(this,en,e)}setTimeout(e,t){return C(this,en).setTimeout(e,t)}clearTimeout(e){C(this,en).clearTimeout(e)}setInterval(e,t){return C(this,en).setInterval(e,t)}clearInterval(e){C(this,en).clearInterval(e)}},en=new WeakMap,Ul=new WeakMap,of),Dn=new Vg;function zg(e){setTimeout(e,0)}var Vn=typeof window>"u"||"Deno"in globalThis;function Ne(){}function Ug(e,t){return typeof e=="function"?e(t):e}function As(e){return typeof e=="number"&&e>=0&&e!==1/0}function xf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pn(e,t){return typeof e=="function"?e(t):e}function lt(e,t){return typeof e=="function"?e(t):e}function Wu(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==ql(a,t.options))return!1}else if(!Ro(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function Gu(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(bn(t.options.mutationKey)!==bn(i))return!1}else if(!Ro(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function ql(e,t){return((t==null?void 0:t.queryKeyHashFn)||bn)(e)}function bn(e){return JSON.stringify(e,(t,n)=>Ks(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ro(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ro(e[n],t[n])):!1}var qg=Object.prototype.hasOwnProperty;function Wl(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Qu(e)&&Qu(t);if(!r&&!(Ks(e)&&Ks(t)))return t;const i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),s=a.length,l=r?new Array(s):{};let u=0;for(let h=0;h<s;h++){const c=r?h:a[h],p=e[c],f=t[c];if(p===f){l[c]=p,(r?h<i:qg.call(e,c))&&u++;continue}if(p===null||f===null||typeof p!="object"||typeof f!="object"){l[c]=f;continue}const m=Wl(p,f,n+1);l[c]=m,m===p&&u++}return i===s&&u===i?e:l}function ko(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Qu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ks(e){if(!Yu(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Yu(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Yu(e){return Object.prototype.toString.call(e)==="[object Object]"}function Wg(e){return new Promise(t=>{Dn.setTimeout(t,e)})}function Bs(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Wl(e,t):t}function Gg(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Qg(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Je=Symbol();function wf(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Je?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Gl(e,t){return typeof e=="function"?e(...t):!!e}function Yg(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Ln,tn,br,af,Xg=(af=class extends Gn{constructor(){super();Q(this,Ln);Q(this,tn);Q(this,br);V(this,br,t=>{if(!Vn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,tn)||this.setEventListener(C(this,br))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,tn))==null||t.call(this),V(this,tn,void 0))}setEventListener(t){var n;V(this,br,t),(n=C(this,tn))==null||n.call(this),V(this,tn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Ln)!==t&&(V(this,Ln,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Ln)=="boolean"?C(this,Ln):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ln=new WeakMap,tn=new WeakMap,br=new WeakMap,af),Ql=new Xg;function Hs(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var Zg=zg;function Jg(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=Zg;const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var xe=Jg(),yr,nn,xr,sf,em=(sf=class extends Gn{constructor(){super();Q(this,yr,!0);Q(this,nn);Q(this,xr);V(this,xr,t=>{if(!Vn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,nn)||this.setEventListener(C(this,xr))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,nn))==null||t.call(this),V(this,nn,void 0))}setEventListener(t){var n;V(this,xr,t),(n=C(this,nn))==null||n.call(this),V(this,nn,t(this.setOnline.bind(this)))}setOnline(t){C(this,yr)!==t&&(V(this,yr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,yr)}},yr=new WeakMap,nn=new WeakMap,xr=new WeakMap,sf),Ui=new em;function tm(e){return Math.min(1e3*2**e,3e4)}function Cf(e){return(e??"online")==="online"?Ui.isOnline():!0}var Vs=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $f(e){let t=!1,n=0,r;const o=Hs(),i=()=>o.status!=="pending",a=g=>{var v;if(!i()){const b=new Vs(g);p(b),(v=e.onCancel)==null||v.call(e,b)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>Ql.isFocused()&&(e.networkMode==="always"||Ui.isOnline())&&e.canRun(),h=()=>Cf(e.networkMode)&&e.canRun(),c=g=>{i()||(r==null||r(),o.resolve(g))},p=g=>{i()||(r==null||r(),o.reject(g))},f=()=>new Promise(g=>{var v;r=b=>{(i()||u())&&g(b)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(i())return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(c).catch(b=>{var R;if(i())return;const x=e.retry??(Vn?0:3),w=e.retryDelay??tm,$=typeof w=="function"?w(n,b):w,M=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,b);if(t||!M){p(b);return}n++,(R=e.onFail)==null||R.call(e,n,b),Wg($).then(()=>u()?void 0:f()).then(()=>{t?p(b):m()})})};return{promise:o,status:()=>o.status,cancel:a,continue:()=>(r==null||r(),o),cancelRetry:s,continueRetry:l,canStart:h,start:()=>(h()?m():f().then(m),o)}}var Fn,lf,Sf=(lf=class{constructor(){Q(this,Fn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),As(this.gcTime)&&V(this,Fn,Dn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vn?1/0:5*60*1e3))}clearGcTimeout(){C(this,Fn)&&(Dn.clearTimeout(C(this,Fn)),V(this,Fn,void 0))}},Fn=new WeakMap,lf),In,wr,at,jn,ke,Ho,Nn,vt,It,uf,nm=(uf=class extends Sf{constructor(t){super();Q(this,vt);Q(this,In);Q(this,wr);Q(this,at);Q(this,jn);Q(this,ke);Q(this,Ho);Q(this,Nn);V(this,Nn,!1),V(this,Ho,t.defaultOptions),this.setOptions(t.options),this.observers=[],V(this,jn,t.client),V(this,at,C(this,jn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,V(this,In,Zu(this.options)),this.state=t.state??C(this,In),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,ke))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,Ho),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Zu(this.options);n.data!==void 0&&(this.setState(Xu(n.data,n.dataUpdatedAt)),V(this,In,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,at).remove(this)}setData(t,n){const r=Bs(this.state.data,t,this.options);return Z(this,vt,It).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Z(this,vt,It).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=C(this,ke))==null?void 0:r.promise;return(o=C(this,ke))==null||o.cancel(t),n?n.then(Ne).catch(Ne):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,In))}isActive(){return this.observers.some(t=>lt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Je||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>pn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!xf(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,ke))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,ke))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,at).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,ke)&&(C(this,Nn)?C(this,ke).cancel({revert:!0}):C(this,ke).cancelRetry()),this.scheduleGc()),C(this,at).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Z(this,vt,It).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,h,c,p,f,m,g,v,b,x,w;if(this.state.fetchStatus!=="idle"&&((l=C(this,ke))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,ke))return C(this,ke).continueRetry(),C(this,ke).promise}if(t&&this.setOptions(t),!this.options.queryFn){const $=this.observers.find(M=>M.options.queryFn);$&&this.setOptions($.options)}const r=new AbortController,o=$=>{Object.defineProperty($,"signal",{enumerable:!0,get:()=>(V(this,Nn,!0),r.signal)})},i=()=>{const $=wf(this.options,n),R=(()=>{const P={client:C(this,jn),queryKey:this.queryKey,meta:this.meta};return o(P),P})();return V(this,Nn,!1),this.options.persister?this.options.persister($,R,this):$(R)},s=(()=>{const $={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,jn),state:this.state,fetchFn:i};return o($),$})();(u=this.options.behavior)==null||u.onFetch(s,this),V(this,wr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=s.fetchOptions)==null?void 0:h.meta))&&Z(this,vt,It).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),V(this,ke,$f({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:$=>{$ instanceof Vs&&$.revert&&this.setState({...C(this,wr),fetchStatus:"idle"}),r.abort()},onFail:($,M)=>{Z(this,vt,It).call(this,{type:"failed",failureCount:$,error:M})},onPause:()=>{Z(this,vt,It).call(this,{type:"pause"})},onContinue:()=>{Z(this,vt,It).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const $=await C(this,ke).start();if($===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData($),(f=(p=C(this,at).config).onSuccess)==null||f.call(p,$,this),(g=(m=C(this,at).config).onSettled)==null||g.call(m,$,this.state.error,this),$}catch($){if($ instanceof Vs){if($.silent)return C(this,ke).promise;if($.revert){if(this.state.data===void 0)throw $;return this.state.data}}throw Z(this,vt,It).call(this,{type:"error",error:$}),(b=(v=C(this,at).config).onError)==null||b.call(v,$,this),(w=(x=C(this,at).config).onSettled)==null||w.call(x,this.state.data,$,this),$}finally{this.scheduleGc()}}},In=new WeakMap,wr=new WeakMap,at=new WeakMap,jn=new WeakMap,ke=new WeakMap,Ho=new WeakMap,Nn=new WeakMap,vt=new WeakSet,It=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ef(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...Xu(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return V(this,wr,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),xe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,at).notify({query:this,type:"updated",action:t})})},uf);function Ef(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Cf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Xu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Zu(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ze,re,Vo,Ke,An,Cr,Nt,rn,zo,$r,Sr,Kn,Bn,on,Er,ce,ho,zs,Us,qs,Ws,Gs,Qs,Ys,Pf,cf,Xo=(cf=class extends Gn{constructor(t,n){super();Q(this,ce);Q(this,ze);Q(this,re);Q(this,Vo);Q(this,Ke);Q(this,An);Q(this,Cr);Q(this,Nt);Q(this,rn);Q(this,zo);Q(this,$r);Q(this,Sr);Q(this,Kn);Q(this,Bn);Q(this,on);Q(this,Er,new Set);this.options=n,V(this,ze,t),V(this,rn,null),V(this,Nt,Hs()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,re).addObserver(this),Ju(C(this,re),this.options)?Z(this,ce,ho).call(this):this.updateResult(),Z(this,ce,Ws).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xs(C(this,re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xs(C(this,re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Z(this,ce,Gs).call(this),Z(this,ce,Qs).call(this),C(this,re).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,re);if(this.options=C(this,ze).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof lt(this.options.enabled,C(this,re))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Z(this,ce,Ys).call(this),C(this,re).setOptions(this.options),n._defaulted&&!ko(this.options,n)&&C(this,ze).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,re),observer:this});const o=this.hasListeners();o&&ec(C(this,re),r,this.options,n)&&Z(this,ce,ho).call(this),this.updateResult(),o&&(C(this,re)!==r||lt(this.options.enabled,C(this,re))!==lt(n.enabled,C(this,re))||pn(this.options.staleTime,C(this,re))!==pn(n.staleTime,C(this,re)))&&Z(this,ce,zs).call(this);const i=Z(this,ce,Us).call(this);o&&(C(this,re)!==r||lt(this.options.enabled,C(this,re))!==lt(n.enabled,C(this,re))||i!==C(this,on))&&Z(this,ce,qs).call(this,i)}getOptimisticResult(t){const n=C(this,ze).getQueryCache().build(C(this,ze),t),r=this.createResult(n,t);return om(this,r)&&(V(this,Ke,r),V(this,Cr,this.options),V(this,An,C(this,re).state)),r}getCurrentResult(){return C(this,Ke)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Nt).status==="pending"&&C(this,Nt).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){C(this,Er).add(t)}getCurrentQuery(){return C(this,re)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,ze).defaultQueryOptions(t),r=C(this,ze).getQueryCache().build(C(this,ze),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Z(this,ce,ho).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ke)))}createResult(t,n){var D;const r=C(this,re),o=this.options,i=C(this,Ke),a=C(this,An),s=C(this,Cr),u=t!==r?t.state:C(this,Vo),{state:h}=t;let c={...h},p=!1,f;if(n._optimisticResults){const L=this.hasListeners(),N=!L&&Ju(t,n),B=L&&ec(t,r,n,o);(N||B)&&(c={...c,...Ef(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:v}=c;f=c.data;let b=!1;if(n.placeholderData!==void 0&&f===void 0&&v==="pending"){let L;i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(L=i.data,b=!0):L=typeof n.placeholderData=="function"?n.placeholderData((D=C(this,Sr))==null?void 0:D.state.data,C(this,Sr)):n.placeholderData,L!==void 0&&(v="success",f=Bs(i==null?void 0:i.data,L,n),p=!0)}if(n.select&&f!==void 0&&!b)if(i&&f===(a==null?void 0:a.data)&&n.select===C(this,zo))f=C(this,$r);else try{V(this,zo,n.select),f=n.select(f),f=Bs(i==null?void 0:i.data,f,n),V(this,$r,f),V(this,rn,null)}catch(L){V(this,rn,L)}C(this,rn)&&(m=C(this,rn),f=C(this,$r),g=Date.now(),v="error");const x=c.fetchStatus==="fetching",w=v==="pending",$=v==="error",M=w&&x,R=f!==void 0,k={status:v,fetchStatus:c.fetchStatus,isPending:w,isSuccess:v==="success",isError:$,isInitialLoading:M,isLoading:M,data:f,dataUpdatedAt:c.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!w,isLoadingError:$&&!R,isPaused:c.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:$&&R,isStale:Yl(t,n),refetch:this.refetch,promise:C(this,Nt),isEnabled:lt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const L=k.data!==void 0,N=k.status==="error"&&!L,B=T=>{N?T.reject(k.error):L&&T.resolve(k.data)},A=()=>{const T=V(this,Nt,k.promise=Hs());B(T)},_=C(this,Nt);switch(_.status){case"pending":t.queryHash===r.queryHash&&B(_);break;case"fulfilled":(N||k.data!==_.value)&&A();break;case"rejected":(!N||k.error!==_.reason)&&A();break}}return k}updateResult(){const t=C(this,Ke),n=this.createResult(C(this,re),this.options);if(V(this,An,C(this,re).state),V(this,Cr,this.options),C(this,An).data!==void 0&&V(this,Sr,C(this,re)),ko(n,t))return;V(this,Ke,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!C(this,Er).size)return!0;const a=new Set(i??C(this,Er));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Ke)).some(s=>{const l=s;return C(this,Ke)[l]!==t[l]&&a.has(l)})};Z(this,ce,Pf).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Z(this,ce,Ws).call(this)}},ze=new WeakMap,re=new WeakMap,Vo=new WeakMap,Ke=new WeakMap,An=new WeakMap,Cr=new WeakMap,Nt=new WeakMap,rn=new WeakMap,zo=new WeakMap,$r=new WeakMap,Sr=new WeakMap,Kn=new WeakMap,Bn=new WeakMap,on=new WeakMap,Er=new WeakMap,ce=new WeakSet,ho=function(t){Z(this,ce,Ys).call(this);let n=C(this,re).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ne)),n},zs=function(){Z(this,ce,Gs).call(this);const t=pn(this.options.staleTime,C(this,re));if(Vn||C(this,Ke).isStale||!As(t))return;const r=xf(C(this,Ke).dataUpdatedAt,t)+1;V(this,Kn,Dn.setTimeout(()=>{C(this,Ke).isStale||this.updateResult()},r))},Us=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,re)):this.options.refetchInterval)??!1},qs=function(t){Z(this,ce,Qs).call(this),V(this,on,t),!(Vn||lt(this.options.enabled,C(this,re))===!1||!As(C(this,on))||C(this,on)===0)&&V(this,Bn,Dn.setInterval(()=>{(this.options.refetchIntervalInBackground||Ql.isFocused())&&Z(this,ce,ho).call(this)},C(this,on)))},Ws=function(){Z(this,ce,zs).call(this),Z(this,ce,qs).call(this,Z(this,ce,Us).call(this))},Gs=function(){C(this,Kn)&&(Dn.clearTimeout(C(this,Kn)),V(this,Kn,void 0))},Qs=function(){C(this,Bn)&&(Dn.clearInterval(C(this,Bn)),V(this,Bn,void 0))},Ys=function(){const t=C(this,ze).getQueryCache().build(C(this,ze),this.options);if(t===C(this,re))return;const n=C(this,re);V(this,re,t),V(this,Vo,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Pf=function(t){xe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ke))}),C(this,ze).getQueryCache().notify({query:C(this,re),type:"observerResultsUpdated"})})},cf);function rm(e,t){return lt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ju(e,t){return rm(e,t)||e.state.data!==void 0&&Xs(e,t,t.refetchOnMount)}function Xs(e,t,n){if(lt(t.enabled,e)!==!1&&pn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Yl(e,t)}return!1}function ec(e,t,n,r){return(e!==t||lt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Yl(e,n)}function Yl(e,t){return lt(t.enabled,e)!==!1&&e.isStaleByTime(pn(t.staleTime,e))}function om(e,t){return!ko(e.getCurrentResult(),t)}function qi(e){return{onFetch:(t,n)=>{var h,c,p,f,m;const r=t.options,o=(p=(c=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:c.fetchMore)==null?void 0:p.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],a=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const v=w=>{Yg(w,()=>t.signal,()=>g=!0)},b=wf(t.options,t.fetchOptions),x=async(w,$,M)=>{if(g)return Promise.reject();if($==null&&w.pages.length)return Promise.resolve(w);const P=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:$,direction:M?"backward":"forward",meta:t.options.meta};return v(N),N})(),k=await b(P),{maxPages:D}=t.options,L=M?Qg:Gg;return{pages:L(w.pages,k,D),pageParams:L(w.pageParams,$,D)}};if(o&&i.length){const w=o==="backward",$=w?Rf:Zs,M={pages:i,pageParams:a},R=$(r,M);s=await x(M,R,w)}else{const w=e??i.length;do{const $=l===0?a[0]??r.initialPageParam:Zs(r,s);if(l>0&&$==null)break;s=await x(s,$),l++}while(l<w)}return s};t.options.persister?t.fetchFn=()=>{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Zs(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Rf(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function im(e,t){return t?Zs(e,t)!=null:!1}function am(e,t){return!t||!e.getPreviousPageParam?!1:Rf(e,t)!=null}var kf=class extends Xo{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:qi()})}getOptimisticResult(e){return e.behavior=qi(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var m,g;const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:i,isError:a,isRefetchError:s}=r,l=(g=(m=n.fetchMeta)==null?void 0:m.fetchMore)==null?void 0:g.direction,u=a&&l==="forward",h=o&&l==="forward",c=a&&l==="backward",p=o&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:im(t,n.data),hasPreviousPage:am(t,n.data),isFetchNextPageError:u,isFetchingNextPage:h,isFetchPreviousPageError:c,isFetchingPreviousPage:p,isRefetchError:s&&!u&&!c,isRefetching:i&&!h&&!p}}},Uo,Mt,je,Hn,Ot,Xt,df,sm=(df=class extends Sf{constructor(t){super();Q(this,Ot);Q(this,Uo);Q(this,Mt);Q(this,je);Q(this,Hn);V(this,Uo,t.client),this.mutationId=t.mutationId,V(this,je,t.mutationCache),V(this,Mt,[]),this.state=t.state||Mf(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,Mt).includes(t)||(C(this,Mt).push(t),this.clearGcTimeout(),C(this,je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){V(this,Mt,C(this,Mt).filter(n=>n!==t)),this.scheduleGc(),C(this,je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,Mt).length||(this.state.status==="pending"?this.scheduleGc():C(this,je).remove(this))}continue(){var t;return((t=C(this,Hn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,s,l,u,h,c,p,f,m,g,v,b,x,w,$,M,R,P;const n=()=>{Z(this,Ot,Xt).call(this,{type:"continue"})},r={client:C(this,Uo),meta:this.options.meta,mutationKey:this.options.mutationKey};V(this,Hn,$f({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(k,D)=>{Z(this,Ot,Xt).call(this,{type:"failed",failureCount:k,error:D})},onPause:()=>{Z(this,Ot,Xt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,je).canRun(this)}));const o=this.state.status==="pending",i=!C(this,Hn).canStart();try{if(o)n();else{Z(this,Ot,Xt).call(this,{type:"pending",variables:t,isPaused:i}),C(this,je).config.onMutate&&await C(this,je).config.onMutate(t,this,r);const D=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t,r));D!==this.state.context&&Z(this,Ot,Xt).call(this,{type:"pending",context:D,variables:t,isPaused:i})}const k=await C(this,Hn).start();return await((u=(l=C(this,je).config).onSuccess)==null?void 0:u.call(l,k,t,this.state.context,this,r)),await((c=(h=this.options).onSuccess)==null?void 0:c.call(h,k,t,this.state.context,r)),await((f=(p=C(this,je).config).onSettled)==null?void 0:f.call(p,k,null,this.state.variables,this.state.context,this,r)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,k,null,t,this.state.context,r)),Z(this,Ot,Xt).call(this,{type:"success",data:k}),k}catch(k){try{await((b=(v=C(this,je).config).onError)==null?void 0:b.call(v,k,t,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((w=(x=this.options).onError)==null?void 0:w.call(x,k,t,this.state.context,r))}catch(D){Promise.reject(D)}try{await((M=($=C(this,je).config).onSettled)==null?void 0:M.call($,void 0,k,this.state.variables,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((P=(R=this.options).onSettled)==null?void 0:P.call(R,void 0,k,t,this.state.context,r))}catch(D){Promise.reject(D)}throw Z(this,Ot,Xt).call(this,{type:"error",error:k}),k}finally{C(this,je).runNext(this)}}},Uo=new WeakMap,Mt=new WeakMap,je=new WeakMap,Hn=new WeakMap,Ot=new WeakSet,Xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xe.batch(()=>{C(this,Mt).forEach(r=>{r.onMutationUpdate(t)}),C(this,je).notify({mutation:this,type:"updated",action:t})})},df);function Mf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var At,bt,qo,ff,lm=(ff=class extends Gn{constructor(t={}){super();Q(this,At);Q(this,bt);Q(this,qo);this.config=t,V(this,At,new Set),V(this,bt,new Map),V(this,qo,0)}build(t,n,r){const o=new sm({client:t,mutationCache:this,mutationId:++di(this,qo)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,At).add(t);const n=fi(t);if(typeof n=="string"){const r=C(this,bt).get(n);r?r.push(t):C(this,bt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,At).delete(t)){const n=fi(t);if(typeof n=="string"){const r=C(this,bt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&C(this,bt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=fi(t);if(typeof n=="string"){const r=C(this,bt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=fi(t);if(typeof n=="string"){const o=(r=C(this,bt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){xe.batch(()=>{C(this,At).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,At).clear(),C(this,bt).clear()})}getAll(){return Array.from(C(this,At))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Gu(n,r))}findAll(t={}){return this.getAll().filter(n=>Gu(t,n))}notify(t){xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return xe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ne))))}},At=new WeakMap,bt=new WeakMap,qo=new WeakMap,ff);function fi(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Kt,an,Ue,Bt,Vt,ji,Js,hf,um=(hf=class extends Gn{constructor(n,r){super();Q(this,Vt);Q(this,Kt);Q(this,an);Q(this,Ue);Q(this,Bt);V(this,Kt,n),this.setOptions(r),this.bindMethods(),Z(this,Vt,ji).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=C(this,Kt).defaultMutationOptions(n),ko(this.options,r)||C(this,Kt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,Ue),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&bn(r.mutationKey)!==bn(this.options.mutationKey)?this.reset():((o=C(this,Ue))==null?void 0:o.state.status)==="pending"&&C(this,Ue).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,Ue))==null||n.removeObserver(this)}onMutationUpdate(n){Z(this,Vt,ji).call(this),Z(this,Vt,Js).call(this,n)}getCurrentResult(){return C(this,an)}reset(){var n;(n=C(this,Ue))==null||n.removeObserver(this),V(this,Ue,void 0),Z(this,Vt,ji).call(this),Z(this,Vt,Js).call(this)}mutate(n,r){var o;return V(this,Bt,r),(o=C(this,Ue))==null||o.removeObserver(this),V(this,Ue,C(this,Kt).getMutationCache().build(C(this,Kt),this.options)),C(this,Ue).addObserver(this),C(this,Ue).execute(n)}},Kt=new WeakMap,an=new WeakMap,Ue=new WeakMap,Bt=new WeakMap,Vt=new WeakSet,ji=function(){var r;const n=((r=C(this,Ue))==null?void 0:r.state)??Mf();V(this,an,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Js=function(n){xe.batch(()=>{var r,o,i,a,s,l,u,h;if(C(this,Bt)&&this.hasListeners()){const c=C(this,an).variables,p=C(this,an).context,f={client:C(this,Kt),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(o=(r=C(this,Bt)).onSuccess)==null||o.call(r,n.data,c,p,f)}catch(m){Promise.reject(m)}try{(a=(i=C(this,Bt)).onSettled)==null||a.call(i,n.data,null,c,p,f)}catch(m){Promise.reject(m)}}else if((n==null?void 0:n.type)==="error"){try{(l=(s=C(this,Bt)).onError)==null||l.call(s,n.error,c,p,f)}catch(m){Promise.reject(m)}try{(h=(u=C(this,Bt)).onSettled)==null||h.call(u,void 0,n.error,c,p,f)}catch(m){Promise.reject(m)}}}this.listeners.forEach(c=>{c(C(this,an))})})},hf);function tc(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function cm(e,t,n){const r=e.slice(0);return r[t]=n,r}var Pr,Xe,Rr,kr,st,sn,Wo,Go,Qo,Yo,Le,el,tl,nl,rl,ol,pf,dm=(pf=class extends Gn{constructor(t,n,r){super();Q(this,Le);Q(this,Pr);Q(this,Xe);Q(this,Rr);Q(this,kr);Q(this,st);Q(this,sn);Q(this,Wo);Q(this,Go);Q(this,Qo);Q(this,Yo,[]);V(this,Pr,t),V(this,kr,r),V(this,Rr,[]),V(this,st,[]),V(this,Xe,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&C(this,st).forEach(t=>{t.subscribe(n=>{Z(this,Le,rl).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,C(this,st).forEach(t=>{t.destroy()})}setQueries(t,n){V(this,Rr,t),V(this,kr,n),xe.batch(()=>{const r=C(this,st),o=Z(this,Le,nl).call(this,C(this,Rr));o.forEach(c=>c.observer.setOptions(c.defaultedQueryOptions));const i=o.map(c=>c.observer),a=i.map(c=>c.getCurrentResult()),s=r.length!==i.length,l=i.some((c,p)=>c!==r[p]),u=s||l,h=u?!0:a.some((c,p)=>{const f=C(this,Xe)[p];return!f||!ko(c,f)});!u&&!h||(u&&(V(this,Yo,o),V(this,st,i)),V(this,Xe,a),this.hasListeners()&&(u&&(tc(r,i).forEach(c=>{c.destroy()}),tc(i,r).forEach(c=>{c.subscribe(p=>{Z(this,Le,rl).call(this,c,p)})})),Z(this,Le,ol).call(this)))})}getCurrentResult(){return C(this,Xe)}getQueries(){return C(this,st).map(t=>t.getCurrentQuery())}getObservers(){return C(this,st)}getOptimisticResult(t,n){const r=Z(this,Le,nl).call(this,t),o=r.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions)),i=r.map(a=>a.defaultedQueryOptions.queryHash);return[o,a=>Z(this,Le,tl).call(this,a??o,n,i),()=>Z(this,Le,el).call(this,o,r)]}},Pr=new WeakMap,Xe=new WeakMap,Rr=new WeakMap,kr=new WeakMap,st=new WeakMap,sn=new WeakMap,Wo=new WeakMap,Go=new WeakMap,Qo=new WeakMap,Yo=new WeakMap,Le=new WeakSet,el=function(t,n){return n.map((r,o)=>{const i=t[o];return r.defaultedQueryOptions.notifyOnChangeProps?i:r.observer.trackResult(i,a=>{n.forEach(s=>{s.observer.trackProp(a)})})})},tl=function(t,n,r){if(n){const o=C(this,Qo),i=r!==void 0&&o!==void 0&&(o.length!==r.length||r.some((a,s)=>a!==o[s]));return(!C(this,sn)||C(this,Xe)!==C(this,Go)||i||n!==C(this,Wo))&&(V(this,Wo,n),V(this,Go,C(this,Xe)),r!==void 0&&V(this,Qo,r),V(this,sn,Wl(C(this,sn),n(t)))),C(this,sn)}return t},nl=function(t){const n=new Map;C(this,st).forEach(o=>{const i=o.options.queryHash;if(!i)return;const a=n.get(i);a?a.push(o):n.set(i,[o])});const r=[];return t.forEach(o=>{var l;const i=C(this,Pr).defaultQueryOptions(o),s=((l=n.get(i.queryHash))==null?void 0:l.shift())??new Xo(C(this,Pr),i);r.push({defaultedQueryOptions:i,observer:s})}),r},rl=function(t,n){const r=C(this,st).indexOf(t);r!==-1&&(V(this,Xe,cm(C(this,Xe),r,n)),Z(this,Le,ol).call(this))},ol=function(){var t;if(this.hasListeners()){const n=C(this,sn),r=Z(this,Le,el).call(this,C(this,Xe),C(this,Yo)),o=Z(this,Le,tl).call(this,r,(t=C(this,kr))==null?void 0:t.combine);n!==o&&xe.batch(()=>{this.listeners.forEach(i=>{i(C(this,Xe))})})}},pf),Tt,gf,fm=(gf=class extends Gn{constructor(t={}){super();Q(this,Tt);this.config=t,V(this,Tt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??ql(o,n);let a=this.get(i);return a||(a=new nm({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){C(this,Tt).has(t.queryHash)||(C(this,Tt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,Tt).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,Tt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Tt).get(t)}getAll(){return[...C(this,Tt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Wu(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Wu(t,r)):n}notify(t){xe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Tt=new WeakMap,gf),ye,ln,un,Mr,Or,cn,Tr,Dr,mf,hm=(mf=class{constructor(e={}){Q(this,ye);Q(this,ln);Q(this,un);Q(this,Mr);Q(this,Or);Q(this,cn);Q(this,Tr);Q(this,Dr);V(this,ye,e.queryCache||new fm),V(this,ln,e.mutationCache||new lm),V(this,un,e.defaultOptions||{}),V(this,Mr,new Map),V(this,Or,new Map),V(this,cn,0)}mount(){di(this,cn)._++,C(this,cn)===1&&(V(this,Tr,Ql.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ye).onFocus())})),V(this,Dr,Ui.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ye).onOnline())})))}unmount(){var e,t;di(this,cn)._--,C(this,cn)===0&&((e=C(this,Tr))==null||e.call(this),V(this,Tr,void 0),(t=C(this,Dr))==null||t.call(this),V(this,Dr,void 0))}isFetching(e){return C(this,ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,ln).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ye).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,ye).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,ye).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=C(this,ye).get(r.queryHash),i=o==null?void 0:o.state.data,a=Ug(t,i);if(a!==void 0)return C(this,ye).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return xe.batch(()=>C(this,ye).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ye).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,ye);xe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,ye);return xe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=xe.batch(()=>C(this,ye).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ne).catch(Ne)}invalidateQueries(e,t={}){return xe.batch(()=>(C(this,ye).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=xe.batch(()=>C(this,ye).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ne)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ne)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,ye).build(this,t);return n.isStaleByTime(pn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ne).catch(Ne)}fetchInfiniteQuery(e){return e.behavior=qi(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ne).catch(Ne)}ensureInfiniteQueryData(e){return e.behavior=qi(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ui.isOnline()?C(this,ln).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ye)}getMutationCache(){return C(this,ln)}getDefaultOptions(){return C(this,un)}setDefaultOptions(e){V(this,un,e)}setQueryDefaults(e,t){C(this,Mr).set(bn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Mr).values()],n={};return t.forEach(r=>{Ro(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,Or).set(bn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Or).values()],n={};return t.forEach(r=>{Ro(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,un).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ql(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Je&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,un).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ye).clear(),C(this,ln).clear()}},ye=new WeakMap,ln=new WeakMap,un=new WeakMap,Mr=new WeakMap,Or=new WeakMap,cn=new WeakMap,Tr=new WeakMap,Dr=new WeakMap,mf),Of=E.createContext(void 0),Zo=e=>{const t=E.useContext(Of);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},pm=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Of.Provider,{value:e,children:t})),Tf=E.createContext(!1),Df=()=>E.useContext(Tf);Tf.Provider;function gm(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var mm=E.createContext(gm()),_f=()=>E.useContext(mm),Lf=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Gl(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Ff=e=>{E.useEffect(()=>{e.clearReset()},[e])},If=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Gl(n,[e.error,r])),Xl=(e,t)=>t.state.data===void 0,jf=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},vm=(e,t)=>e.isLoading&&e.isFetching&&!t,il=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,al=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Nf({queries:e,...t},n){const r=Zo(n),o=Df(),i=_f(),a=E.useMemo(()=>e.map(g=>{const v=r.defaultQueryOptions(g);return v._optimisticResults=o?"isRestoring":"optimistic",v}),[e,r,o]);a.forEach(g=>{jf(g);const v=r.getQueryCache().get(g.queryHash);Lf(g,i,v)}),Ff(i);const[s]=E.useState(()=>new dm(r,a,t)),[l,u,h]=s.getOptimisticResult(a,t.combine),c=!o&&t.subscribed!==!1;E.useSyncExternalStore(E.useCallback(g=>c?s.subscribe(xe.batchCalls(g)):Ne,[s,c]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),E.useEffect(()=>{s.setQueries(a,t)},[a,t,s]);const f=l.some((g,v)=>il(a[v],g))?l.flatMap((g,v)=>{const b=a[v];if(b&&il(b,g)){const x=new Xo(r,b);return al(b,x,i)}return[]}):[];if(f.length>0)throw Promise.all(f);const m=l.find((g,v)=>{const b=a[v];return b&&If({result:g,errorResetBoundary:i,throwOnError:b.throwOnError,query:r.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(m!=null&&m.error)throw m.error;return u(h())}function wa(e,t,n){var p,f,m,g;const r=Df(),o=_f(),i=Zo(n),a=i.defaultQueryOptions(e);(f=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||f.call(p,a);const s=i.getQueryCache().get(a.queryHash);a._optimisticResults=r?"isRestoring":"optimistic",jf(a),Lf(a,o,s),Ff(o);const l=!i.getQueryCache().get(a.queryHash),[u]=E.useState(()=>new t(i,a)),h=u.getOptimisticResult(a),c=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(v=>{const b=c?u.subscribe(xe.batchCalls(v)):Ne;return u.updateResult(),b},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),E.useEffect(()=>{u.setOptions(a)},[a,u]),il(a,h))throw al(a,u,o);if(If({result:h,errorResetBoundary:o,throwOnError:a.throwOnError,query:s,suspense:a.suspense}))throw h.error;if((g=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||g.call(m,a,h),a.experimental_prefetchInRender&&!Vn&&vm(h,r)){const v=l?al(a,u,o):s==null?void 0:s.promise;v==null||v.catch(Ne).finally(()=>{u.updateResult()})}return a.notifyOnChangeProps?h:u.trackResult(h)}function bm(e,t){return wa(e,Xo,t)}function ym(e,t){return wa({...e,enabled:!0,suspense:!0,throwOnError:Xl,placeholderData:void 0},Xo,t)}function xm(e,t){return wa({...e,enabled:!0,suspense:!0,throwOnError:Xl},kf,t)}function wm(e,t){return Nf({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:Xl,enabled:!0,placeholderData:void 0}))},t)}function Cm(e,t){const n=Zo(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function $m(e,t){const n=Zo(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function Sm(e,t){const n=Zo(t),[r]=E.useState(()=>new um(n,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);const o=E.useSyncExternalStore(E.useCallback(a=>r.subscribe(xe.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=E.useCallback((a,s)=>{r.mutate(a,s).catch(Ne)},[r]);if(o.error&&Gl(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function Em(e,t){return wa(e,kf,t)}var Pm=Object.create,Af=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,Kf=Object.getOwnPropertyNames,km=Object.getPrototypeOf,Mm=Object.prototype.hasOwnProperty,Dt=(e,t)=>function(){return t||(0,e[Kf(e)[0]])((t={exports:{}}).exports,t),t.exports},Om=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Kf(t),i=0,a=o.length,s;i<a;i++)s=o[i],!Mm.call(e,s)&&s!==n&&Af(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=Rm(t,s))||r.enumerable});return e},$e=(e,t,n)=>(n=e!=null?Pm(km(e)):{},Om(t||!e||!e.__esModule?Af(n,"default",{value:e,enumerable:!0}):n,e)),Bf=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Tm=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Bf().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Dm=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Bf().default,r=Tm();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Qn=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Dm();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),$t=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Qn();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});function Ca(e){const t={subscribe(n){let r=null,o=!1,i=!1,a=!1;function s(){if(r===null){a=!0;return}i||(i=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(l){var u;o||(u=n.next)===null||u===void 0||u.call(n,l)},error(l){var u;o||(o=!0,(u=n.error)===null||u===void 0||u.call(n,l),s())},complete(){var l;o||(o=!0,(l=n.complete)===null||l===void 0||l.call(n),s())}}),a&&s(),{unsubscribe:s}},pipe(...n){return n.reduce(_m,t)}};return t}function _m(e,t){return t(e)}function Lm(e){const t=new AbortController;return new Promise((r,o)=>{let i=!1;function a(){i||(i=!0,s.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const s=e.subscribe({next(l){i=!0,r(l),a()},error(l){o(l)},complete(){t.abort(),a()}})})}function Fm(e){return t=>{let n=0,r=null;const o=[];function i(){r||(r=t.subscribe({next(s){for(const u of o){var l;(l=u.next)===null||l===void 0||l.call(u,s)}},error(s){for(const u of o){var l;(l=u.error)===null||l===void 0||l.call(u,s)}},complete(){for(const l of o){var s;(s=l.complete)===null||s===void 0||s.call(l)}}}))}function a(){if(n===0&&r){const s=r;r=null,s.unsubscribe()}}return Ca(s=>(n++,o.push(s),i(),{unsubscribe(){n--,a();const l=o.findIndex(u=>u===s);l>-1&&o.splice(l,1)}}))}}function Im(e){let t=e;const n=[],r=a=>{t!==void 0&&a.next(t),n.push(a)},o=a=>{n.splice(n.indexOf(a),1)},i=Ca(a=>(r(a),()=>{o(a)}));return i.next=a=>{if(t!==a){t=a;for(const s of n)s.next(a)}},i.get=()=>t,i}function jm(e){return Ca(t=>{function n(o=0,i=e.op){const a=e.links[o];if(!a)throw new Error("No more links to execute - did you forget to add an ending link?");return a({op:i,next(l){return n(o+1,l)}})}return n().subscribe(t)})}function zn(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function Nm(){return Object.create(null)}const Am=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Hf(e){return Am&&zn(e)&&Symbol.asyncIterator in e}var Km=Object.create,Vf=Object.defineProperty,Bm=Object.getOwnPropertyDescriptor,zf=Object.getOwnPropertyNames,Hm=Object.getPrototypeOf,Vm=Object.prototype.hasOwnProperty,Jo=(e,t)=>function(){return t||(0,e[zf(e)[0]])((t={exports:{}}).exports,t),t.exports},zm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=zf(t),i=0,a=o.length,s;i<a;i++)s=o[i],!Vm.call(e,s)&&s!==n&&Vf(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=Bm(t,s))||r.enumerable});return e},$a=(e,t,n)=>(n=e!=null?Km(Hm(e)):{},zm(Vf(n,"default",{value:e,enumerable:!0}),e));const Uf=()=>{},nc=e=>{Object.freeze&&Object.freeze(e)};function qf(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(Uf,{get(i,a){if(!(typeof a!="string"||a==="then"))return qf(e,[...t,a],n)},apply(i,a,s){const l=t[t.length-1];let u={args:s,path:t};return l==="call"?u={args:s.length>=2?[s[1]]:[],path:t.slice(0,-1)}:l==="apply"&&(u={args:s.length>=2?s[1]:[],path:t.slice(0,-1)}),nc(u.args),nc(u.path),e(u)}})),n[o]}const Sa=e=>qf(e,[],Nm()),Zl=e=>new Proxy(Uf,{get(t,n){if(n!=="then")return e(n)}});var Wf=Jo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Um=Jo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Wf().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),qm=Jo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Wf().default,r=Um();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gf=Jo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=qm();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jl=Jo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Gf();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});$a(Jl());$a(Gf());var hi=$a(Jl());function Wm(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,hi.default)((0,hi.default)({},e),{},{error:r})}}return{ok:!0,result:(0,hi.default)((0,hi.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var Za=class extends Error{constructor(){super("Unable to transform response from server")}};function Gm(e,t){let n;try{n=Wm(e,t)}catch{throw new Za}if(!n.ok&&(!zn(n.error.error)||typeof n.error.error.code!="number"))throw new Za;if(n.ok&&!zn(n.result))throw new Za;return n}$a(Jl());var pi=$e(Qn(),1),rr=$e($t(),1);function Qm(e){return e instanceof Wi}function Ym(e){return zn(e)&&zn(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function Xm(e,t){return typeof e=="string"?e:zn(e)&&typeof e.message=="string"?e.message:t}var Wi=class Ni extends Error{constructor(t,n){var r,o;const i=n==null?void 0:n.cause;super(t,{cause:i}),(0,pi.default)(this,"cause",void 0),(0,pi.default)(this,"shape",void 0),(0,pi.default)(this,"data",void 0),(0,pi.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=i,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(o=n.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Ni.prototype)}static from(t,n={}){const r=t;return Qm(r)?(n.meta&&(r.meta=(0,rr.default)((0,rr.default)({},r.meta),n.meta)),r):Ym(r)?new Ni(r.error.message,(0,rr.default)((0,rr.default)({},n),{},{result:r,cause:n.cause})):new Ni(Xm(r,"Unknown error"),(0,rr.default)((0,rr.default)({},n),{},{cause:r}))}};function Zm(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const rc=e=>typeof e=="function";function Jm(e){if(e)return e;if(typeof window<"u"&&rc(window.fetch))return window.fetch;if(typeof globalThis<"u"&&rc(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var bo=$e($t());function ev(e){return{url:e.url.toString(),fetch:e.fetch,transformer:Zm(e.transformer),methodOverride:e.methodOverride}}function tv(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const nv={query:"GET",mutation:"POST",subscription:"PATCH"};function Qf(e){return"input"in e?e.transformer.input.serialize(e.input):tv(e.inputs.map(t=>e.transformer.input.serialize(t)))}const Yf=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const o=[];if(t[1]&&o.push(t[1]),"inputs"in e&&o.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=Qf(e);i!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return o.length&&(r+="?"+o.join("&")),r},rv=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=Qf(e);return t!==void 0?JSON.stringify(t):void 0},ov=e=>lv((0,bo.default)((0,bo.default)({},e),{},{contentTypeHeader:"application/json",getUrl:Yf,getBody:rv}));var iv=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const av=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new iv};async function sv(e){var t;av(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:nv[e.type],i=await(async()=>{const s=await e.headers();return Symbol.iterator in s?Object.fromEntries(s):s})(),a=(0,bo.default)((0,bo.default)((0,bo.default)({},e.contentTypeHeader&&o!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return Jm(e.fetch)(n,{method:o,signal:e.signal,body:r,headers:a})}async function lv(e){const t={},n=await sv(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}$e($t(),1);const oc=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function ic(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function o(s){const l=[[]];let u=0;for(;;){const p=s[u];if(!p)break;const f=l[l.length-1];if(p.aborted){var h;(h=p.reject)===null||h===void 0||h.call(p,new Error("Aborted")),u++;continue}if(e.validate(f.concat(p).map(g=>g.key))){f.push(p),u++;continue}if(f.length===0){var c;(c=p.reject)===null||c===void 0||c.call(p,new Error("Input is too big for a single dispatch")),u++;continue}l.push([])}return l}function i(){const s=o(t);r();for(const l of s){if(!l.length)continue;const u={items:l};for(const c of l)c.batch=u;e.fetch(u.items.map(c=>c.key)).then(async c=>{await Promise.all(c.map(async(f,m)=>{const g=u.items[m];try{var v;const x=await Promise.resolve(f);(v=g.resolve)===null||v===void 0||v.call(g,x)}catch(x){var b;(b=g.reject)===null||b===void 0||b.call(g,x)}g.batch=null,g.reject=null,g.resolve=null}));for(const f of u.items){var p;(p=f.reject)===null||p===void 0||p.call(f,new Error("Missing result")),f.batch=null}}).catch(c=>{for(const f of u.items){var p;(p=f.reject)===null||p===void 0||p.call(f,c),f.batch=null}})}}function a(s){var l;const u={aborted:!1,key:s,batch:null,resolve:oc,reject:oc},h=new Promise((c,p)=>{var f;u.reject=p,u.resolve=c,(f=t)!==null&&f!==void 0||(t=[]),t.push(u)});return(l=n)!==null&&l!==void 0||(n=setTimeout(i)),h}return{load:a}}function uv(...e){const t=new AbortController,n=e.length;let r=0;const o=()=>{++r===n&&t.abort()};for(const i of e)i!=null&&i.aborted?o():i==null||i.addEventListener("abort",o,{once:!0});return t.signal}var gi=$e($t(),1);function cv(e){var t,n;const r=ev(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const a=h=>({validate(c){if(o===1/0&&i===1/0)return!0;if(c.length>i)return!1;const p=c.map(g=>g.path).join(","),f=c.map(g=>g.input);return Yf((0,gi.default)((0,gi.default)({},r),{},{type:h,path:p,inputs:f,signal:null})).length<=o},async fetch(c){const p=c.map(x=>x.path).join(","),f=c.map(x=>x.input),m=uv(...c.map(x=>x.signal)),g=await ov((0,gi.default)((0,gi.default)({},r),{},{path:p,inputs:f,type:h,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:c}):e.headers:{}},signal:m}));return(Array.isArray(g.json)?g.json:c.map(()=>g.json)).map(x=>({meta:g.meta,json:x}))}}),s=ic(a("query")),l=ic(a("mutation")),u={query:s,mutation:l};return({op:h})=>Ca(c=>{/* istanbul ignore if -- @preserve */if(h.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const f=u[h.type].load(h);let m;return f.then(g=>{m=g;const v=Gm(g.json,r.transformer.output);if(!v.ok){c.error(Wi.from(v.error,{meta:g.meta}));return}c.next({context:g.meta,result:v.result}),c.complete()}).catch(g=>{c.error(Wi.from(g,{meta:m==null?void 0:m.meta}))}),()=>{}})}}$e($t(),1);const Xf=(e,...t)=>typeof e=="function"?e(...t):e;$e(Qn(),1);function dv(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function fv(e){const t=await Xf(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function hv(e,t){const n={method:"connectionParams",data:await Xf(e)};return t.encode(n)}$e(Qn(),1);var Zt=$e(Qn(),1);function pv(e){const{promise:t,resolve:n,reject:r}=dv();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function gv(e,{intervalMs:t,pongTimeoutMs:n}){let r,o;function i(){r=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},n)},t)}function a(){clearTimeout(r),i()}function s(){clearTimeout(o),a()}e.addEventListener("open",i),e.addEventListener("message",({data:l})=>{clearTimeout(r),i(),l==="PONG"&&s()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(o)})}var mv=class sl{constructor(t){var n;if((0,Zt.default)(this,"id",++sl.connectCount),(0,Zt.default)(this,"WebSocketPonyfill",void 0),(0,Zt.default)(this,"urlOptions",void 0),(0,Zt.default)(this,"keepAliveOpts",void 0),(0,Zt.default)(this,"encoder",void 0),(0,Zt.default)(this,"wsObservable",Im(null)),(0,Zt.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive,this.encoder=t.encoder}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++sl.connectCount;const n=fv(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.binaryType="arraybuffer",r.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&gv(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await pv(r),t.urlOptions.connectionParams&&r.send(await hv(t.urlOptions.connectionParams,t.encoder))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Zt.default)(mv,"connectCount",0);$e(Qn(),1);$e($t(),1);var Ja=$e(Qn(),1),ac=$e($t(),1),Ea=class{constructor(e){(0,Ja.default)(this,"links",void 0),(0,Ja.default)(this,"runtime",void 0),(0,Ja.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return jm({links:this.links,op:(0,ac.default)((0,ac.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(Fm())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await Lm(n)).result.data}catch(n){throw Wi.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(o){switch(o.result.type){case"state":{var i;(i=n.onConnectionStateChange)===null||i===void 0||i.call(n,o.result);break}case"started":{var a;(a=n.onStarted)===null||a===void 0||a.call(n,{context:o.context});break}case"stopped":{var s;(s=n.onStopped)===null||s===void 0||s.call(n);break}case"data":case void 0:{var l;(l=n.onData)===null||l===void 0||l.call(n,o.result.data);break}}},error(o){var i;(i=n.onError)===null||i===void 0||i.call(n,o)},complete(){var o;(o=n.onComplete)===null||o===void 0||o.call(n)}})}};const Zf=Symbol.for("trpc_untypedClient"),vv={query:"query",mutate:"mutation",subscribe:"subscription"},bv=e=>vv[e];function Jf(e){const t=Sa(({path:n,args:r})=>{const o=[...n],i=bv(o.pop()),a=o.join(".");return e[i](a,...r)});return Zl(n=>n===Zf?e:t[n])}function yv(e){const t=new Ea(e);return Jf(t)}function eu(e){return e[Zf]}$e($t(),1);$e($t(),1);var xv=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var i,a,s,l=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,s=Symbol.iterator);l--;){if(a&&(i=o[a])!=null)return i.call(o);if(s&&(i=o[s])!=null)return new r(i.call(o));a="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function i(a){if(Object(a)!==a)return Promise.reject(new TypeError(a+" is not an object."));var s=a.done;return Promise.resolve(a.value).then(function(l){return{value:l,done:s}})}return r=function(s){this.s=s,this.n=s.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(s){var l=this.s.return;return l===void 0?Promise.resolve({value:s,done:!0}):i(l.apply(this.s,arguments))},throw:function(s){var l=this.s.return;return l===void 0?Promise.reject(s):i(l.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});$e(xv(),1);$e($t(),1);var wv=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(s,l){var u=Error();return u.name="SuppressedError",u.error=s,u.suppressed=l,u},o={},i=[];function a(s,l){if(l!=null){if(Object(l)!==l)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(s)var u=l[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(u===void 0&&(u=l[Symbol.dispose||Symbol.for("Symbol.dispose")],s))var h=u;if(typeof u!="function")throw new TypeError("Object is not disposable.");h&&(u=function(){try{h.call(l)}catch(p){return Promise.reject(p)}}),i.push({v:l,d:u,a:s})}else s&&i.push({d:l,a:s});return l}return{e:o,u:a.bind(null,!1),a:a.bind(null,!0),d:function(){var l,u=this.e,h=0;function c(){for(;l=i.pop();)try{if(!l.a&&h===1)return h=0,i.push(l),Promise.resolve().then(c);if(l.d){var f=l.d.call(l.v);if(l.a)return h|=2,Promise.resolve(f).then(c,p)}else h|=1}catch(m){return p(m)}if(h===1)return u!==o?Promise.reject(u):Promise.resolve();if(u!==o)throw u}function p(f){return u=u!==o?new r(f,u):f,c()}return c()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),e0=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,o){this.v=r,this.k=o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Cv=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=e0();function r(o){return new n(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),$v=Dt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=e0();function r(i){return function(){return new o(i.apply(this,arguments))}}function o(i){var a,s;function l(h,c){try{var p=i[h](c),f=p.value,m=f instanceof n;Promise.resolve(m?f.v:f).then(function(g){if(m){var v=h==="return"?"return":"next";if(!f.k||g.done)return l(v,g);g=i[v](g).value}u(p.done?"return":"normal",g)},function(g){l("throw",g)})}catch(g){u("throw",g)}}function u(h,c){switch(h){case"return":a.resolve({value:c,done:!0});break;case"throw":a.reject(c);break;default:a.resolve({value:c,done:!1})}(a=a.next)?l(a.key,a.arg):s=null}this._invoke=function(h,c){return new Promise(function(p,f){var m={key:h,arg:c,resolve:p,reject:f,next:null};s?s=s.next=m:(a=s=m,l(h,c))})},typeof i.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(i){return this._invoke("next",i)},o.prototype.throw=function(i){return this._invoke("throw",i)},o.prototype.return=function(i){return this._invoke("return",i)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});$e(wv(),1);$e(Cv(),1);$e($v(),1);$e($t(),1);var _r=function(){return _r=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_r.apply(this,arguments)};function Sv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ev(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(h){try{u(r.next(h))}catch(c){a(c)}}function l(h){try{u(r.throw(h))}catch(c){a(c)}}function u(h){h.done?i(h.value):o(h.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Pv(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(h){u=[6,h],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function He(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Rv=Object.create,t0=Object.defineProperty,kv=Object.getOwnPropertyDescriptor,n0=Object.getOwnPropertyNames,Mv=Object.getPrototypeOf,Ov=Object.prototype.hasOwnProperty,Cn=(e,t)=>function(){return t||(0,e[n0(e)[0]])((t={exports:{}}).exports,t),t.exports},Tv=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=n0(t),i=0,a=o.length,s;i<a;i++)s=o[i],!Ov.call(e,s)&&s!==n&&t0(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=kv(t,s))||r.enumerable});return e},Yn=(e,t,n)=>(n=e!=null?Rv(Mv(e)):{},Tv(t||!e||!e.__esModule?t0(n,"default",{value:e,enumerable:!0}):n,e)),Dv=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,o){if(r==null)return{};var i={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(o.includes(a))continue;i[a]=r[a]}return i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),_v=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=Dv();function r(o,i){if(o==null)return{};var a,s,l=n(o,i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);for(s=0;s<u.length;s++)a=u[s],i.includes(a)||{}.propertyIsEnumerable.call(o,a)&&(l[a]=o[a])}return l}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),r0=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Lv=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=r0().default;function r(o,i){if(n(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var s=a.call(o,i||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Fv=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=r0().default,r=Lv();function o(i){var a=r(i,"string");return n(a)=="symbol"?a:a+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Iv=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Fv();function r(o,i,a){return(i=n(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),ei=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Iv();function r(i,a){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),s.push.apply(s,l)}return s}function o(i){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(i,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(s,l))})}return i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),jv=Yn(_v(),1),sc=Yn(ei(),1);const Nv=["cursor","direction"];function kt(e,t,n){const r=e.flatMap(o=>o.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&zn(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:i}=t,a=(0,jv.default)(t,Nv);return[r,{input:a,type:"infinite"}]}return[r,(0,sc.default)((0,sc.default)({},typeof t<"u"&&t!==Je&&{input:t}),n&&n!=="any"&&{type:n})]}function Ai(e){return kt(e,void 0,"any")}function Av(e){return Sa(({path:t,args:n})=>{var r;const o=[...t],i=o.pop();if(i==="useMutation")return e[i](o,...n);if(i==="_def")return{path:o};const[a,...s]=n,l=(r=s[0])!==null&&r!==void 0?r:{};return e[i](o,a,l)})}var es;const Kv=["client","ssrContext","ssrState","abortOnUnmount"],Bv=(es=E.createContext)===null||es===void 0?void 0:es.call(E,null),Hv=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Vv(e){return Sa(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],i=o.shift(),a=Hv(r),s=kt(n,i,a);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,s,o[0]),queryOptions:()=>e.queryOptions(n,s,...o),fetch:()=>e.fetchQuery(s,...o),fetchInfinite:()=>e.fetchInfiniteQuery(s,o[0]),prefetch:()=>e.prefetchQuery(s,...o),prefetchInfinite:()=>e.prefetchInfiniteQuery(s,o[0]),ensureData:()=>e.ensureQueryData(s,...o),invalidate:()=>e.invalidateQueries(s,...o),reset:()=>e.resetQueries(s,...o),refetch:()=>e.refetchQueries(s,...o),cancel:()=>e.cancelQuery(s,...o),setData:()=>{e.setQueryData(s,o[0],o[1])},setQueriesData:()=>e.setQueriesData(s,o[0],o[1],o[2]),setInfiniteData:()=>{e.setInfiniteQueryData(s,o[0],o[1])},getData:()=>e.getQueryData(s),getInfiniteData:()=>e.getInfiniteQueryData(s),setMutationDefaults:()=>e.setMutationDefaults(Ai(n),i),getMutationDefaults:()=>e.getMutationDefaults(Ai(n)),isMutating:()=>e.isMutating({mutationKey:Ai(n)})}[r]()})}function zv(e){const t=Jf(e.client),n=Vv(e);return Zl(r=>{const o=r;return o==="client"?t:Kv.includes(o)?e[o]:n[r]})}var Uv=Yn(ei(),1);function lc(e){const t=e instanceof Ea?e:eu(e);return Sa(n=>{const r=n.path,o=r.join("."),[i,a]=n.args;return(0,Uv.default)({queryKey:kt(r,i,"query"),queryFn:()=>t.query(o,i,a==null?void 0:a.trpc)},a)})}var ts=Yn(ei(),1);function Be(e,t,n){var r;const o=e[0];let i=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var a;i=(0,ts.default)((0,ts.default)((0,ts.default)({},(a=i)!==null&&a!==void 0?a:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[o.join("."),i,t==null?void 0:t.trpc]}var qv=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var i,a,s,l=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,s=Symbol.iterator);l--;){if(a&&(i=o[a])!=null)return i.call(o);if(s&&(i=o[s])!=null)return new r(i.call(o));a="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function i(a){if(Object(a)!==a)return Promise.reject(new TypeError(a+" is not an object."));var s=a.done;return Promise.resolve(a.value).then(function(l){return{value:l,done:s}})}return r=function(s){this.s=s,this.n=s.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(s){var l=this.s.return;return l===void 0?Promise.resolve({value:s,done:!0}):i(l.apply(this.s,arguments))},throw:function(s){var l=this.s.return;return l===void 0?Promise.reject(s):i(l.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Wv=Yn(qv(),1);function ll(e){return{path:e.path.join(".")}}function no(e){const t=ll(e);return E.useMemo(()=>t,[t])}async function o0(e,t,n){const o=t.getQueryCache().build(t,{queryKey:n});o.setState({data:[],status:"success"});const i=[];var a=!1,s=!1,l;try{for(var u=(0,Wv.default)(e),h;a=!(h=await u.next()).done;a=!1){const c=h.value;i.push(c),o.setState({data:[...i]})}}catch(c){s=!0,l=c}finally{try{a&&u.return!=null&&await u.return()}finally{if(s)throw l}}return i}var ae=Yn(ei(),1);function Gv(e){const{client:t,queryClient:n}=e,r=t instanceof Ea?t:eu(t);return{infiniteQueryOptions:(o,i,a)=>{var s,l;const u=((s=i[1])===null||s===void 0?void 0:s.input)===Je,h=async c=>{var p;const f=(0,ae.default)((0,ae.default)({},a),{},{trpc:(0,ae.default)((0,ae.default)({},a==null?void 0:a.trpc),!(a==null||(p=a.trpc)===null||p===void 0)&&p.abortOnUnmount?{signal:c.signal}:{signal:null})});return await r.query(...Be(i,f,{direction:c.direction,pageParam:c.pageParam}))};return Object.assign((0,ae.default)((0,ae.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:i,queryFn:u?Je:h,initialPageParam:(l=a==null?void 0:a.initialCursor)!==null&&l!==void 0?l:null}),{trpc:ll({path:o})})},queryOptions:(o,i,a)=>{var s;const l=((s=i[1])===null||s===void 0?void 0:s.input)===Je,u=async h=>{var c;const p=(0,ae.default)((0,ae.default)({},a),{},{trpc:(0,ae.default)((0,ae.default)({},a==null?void 0:a.trpc),!(a==null||(c=a.trpc)===null||c===void 0)&&c.abortOnUnmount?{signal:h.signal}:{signal:null})}),f=await r.query(...Be(i,p));return Hf(f)?o0(f,n,i):f};return Object.assign((0,ae.default)((0,ae.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:i,queryFn:l?Je:u}),{trpc:ll({path:o})})},fetchQuery:(o,i)=>n.fetchQuery((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...Be(o,i))})),fetchInfiniteQuery:(o,i)=>{var a;return n.fetchInfiniteQuery((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:({pageParam:s,direction:l})=>r.query(...Be(o,i,{pageParam:s,direction:l})),initialPageParam:(a=i==null?void 0:i.initialCursor)!==null&&a!==void 0?a:null}))},prefetchQuery:(o,i)=>n.prefetchQuery((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...Be(o,i))})),prefetchInfiniteQuery:(o,i)=>{var a;return n.prefetchInfiniteQuery((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:({pageParam:s,direction:l})=>r.query(...Be(o,i,{pageParam:s,direction:l})),initialPageParam:(a=i==null?void 0:i.initialCursor)!==null&&a!==void 0?a:null}))},ensureQueryData:(o,i)=>n.ensureQueryData((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...Be(o,i))})),invalidateQueries:(o,i,a)=>n.invalidateQueries((0,ae.default)((0,ae.default)({},i),{},{queryKey:o}),a),resetQueries:(o,i,a)=>n.resetQueries((0,ae.default)((0,ae.default)({},i),{},{queryKey:o}),a),refetchQueries:(o,i,a)=>n.refetchQueries((0,ae.default)((0,ae.default)({},i),{},{queryKey:o}),a),cancelQuery:(o,i)=>n.cancelQueries({queryKey:o},i),setQueryData:(o,i,a)=>n.setQueryData(o,i,a),setQueriesData:(o,i,a,s)=>n.setQueriesData((0,ae.default)((0,ae.default)({},i),{},{queryKey:o}),a,s),getQueryData:o=>n.getQueryData(o),setInfiniteQueryData:(o,i,a)=>n.setQueryData(o,i,a),getInfiniteQueryData:o=>n.getQueryData(o),setMutationDefaults:(o,i)=>{const a=o[0],s=l=>r.mutation(...Be([a,{input:l}],e));return n.setMutationDefaults(o,typeof i=="function"?i({canonicalMutationFn:s}):i)},getMutationDefaults:o=>n.getMutationDefaults(o),isMutating:o=>n.isMutating((0,ae.default)((0,ae.default)({},o),{},{exact:!0}))}}var W=Yn(ei());const uc=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function Qv(e){var t,n,r;const o=(t=e==null||(n=e.overrides)===null||n===void 0||(n=n.useMutation)===null||n===void 0?void 0:n.onSuccess)!==null&&t!==void 0?t:R=>R.originalFn(),i=(r=e==null?void 0:e.context)!==null&&r!==void 0?r:Bv,a=yv,s=R=>{var P;const{abortOnUnmount:k=!1,queryClient:D,ssrContext:L}=R,[N,B]=E.useState((P=R.ssrState)!==null&&P!==void 0?P:!1),A=R.client instanceof Ea?R.client:eu(R.client),_=E.useMemo(()=>Gv({client:A,queryClient:D}),[A,D]),T=E.useMemo(()=>(0,W.default)({abortOnUnmount:k,queryClient:D,client:A,ssrContext:L??null,ssrState:N},_),[k,A,_,D,L,N]);return E.useEffect(()=>{B(I=>I?"mounted":!1)},[]),y.jsx(i.Provider,{value:T,children:R.children})};function l(){const R=E.useContext(i);if(!R)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return R}function u(R,P){var k;const{queryClient:D,ssrState:L}=l();return L&&L!=="mounted"&&((k=D.getQueryCache().find({queryKey:R}))===null||k===void 0?void 0:k.state.status)==="error"?(0,W.default)({retryOnMount:!1},P):P}function h(R,P,k){var D,L,N,B,A;const _=l(),{abortOnUnmount:T,client:I,ssrState:z,queryClient:G,prefetchQuery:q}=_,S=kt(R,P,"query"),F=G.getQueryDefaults(S),O=P===Je;typeof window>"u"&&z==="prepass"&&(k==null||(D=k.trpc)===null||D===void 0?void 0:D.ssr)!==!1&&((L=k==null?void 0:k.enabled)!==null&&L!==void 0?L:F==null?void 0:F.enabled)!==!1&&!O&&!G.getQueryCache().find({queryKey:S})&&q(S,k);const j=u(S,(0,W.default)((0,W.default)({},F),k)),H=(N=(B=k==null||(A=k.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&B!==void 0?B:e==null?void 0:e.abortOnUnmount)!==null&&N!==void 0?N:T,K=bm((0,W.default)((0,W.default)({},j),{},{queryKey:S,queryFn:O?P:async X=>{const pe=(0,W.default)((0,W.default)({},j),{},{trpc:(0,W.default)((0,W.default)({},j==null?void 0:j.trpc),H?{signal:X.signal}:{signal:null})}),U=await I.query(...Be(S,pe));return Hf(U)?o0(U,G,S):U}}),G);return K.trpc=no({path:R}),K}function c(R,P,k){var D,L,N;const B=l(),A=kt(R,P,"query"),_=P===Je,T=(D=(L=k==null||(N=k.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&L!==void 0?L:e==null?void 0:e.abortOnUnmount)!==null&&D!==void 0?D:B.abortOnUnmount;Cm((0,W.default)((0,W.default)({},k),{},{queryKey:A,queryFn:_?P:I=>{const z={trpc:(0,W.default)((0,W.default)({},k==null?void 0:k.trpc),T?{signal:I.signal}:{})};return B.client.query(...Be(A,z))}}))}function p(R,P,k){var D,L,N;const B=l(),A=kt(R,P,"query"),_=(D=(L=k==null||(N=k.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&L!==void 0?L:e==null?void 0:e.abortOnUnmount)!==null&&D!==void 0?D:B.abortOnUnmount,T=ym((0,W.default)((0,W.default)({},k),{},{queryKey:A,queryFn:I=>{const z=(0,W.default)((0,W.default)({},k),{},{trpc:(0,W.default)((0,W.default)({},k==null?void 0:k.trpc),_?{signal:I.signal}:{signal:null})});return B.client.query(...Be(A,z))}}),B.queryClient);return T.trpc=no({path:R}),[T.data,T]}function f(R,P){const{client:k,queryClient:D}=l(),L=Ai(R),N=D.defaultMutationOptions(D.getMutationDefaults(L)),B=Sm((0,W.default)((0,W.default)({},P),{},{mutationKey:L,mutationFn:A=>k.mutation(...Be([R,{input:A}],P)),onSuccess(...A){var _,T;return o({originalFn:()=>{var z,G,q;return(z=P==null||(G=P.onSuccess)===null||G===void 0?void 0:G.call(P,...A))!==null&&z!==void 0?z:N==null||(q=N.onSuccess)===null||q===void 0?void 0:q.call(N,...A)},queryClient:D,meta:(_=(T=P==null?void 0:P.meta)!==null&&T!==void 0?T:N==null?void 0:N.meta)!==null&&_!==void 0?_:{}})}}),D);return B.trpc=no({path:R}),B}const m={data:void 0,error:null,status:"idle"},g={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function v(R,P,k){var D;const L=(D=k==null?void 0:k.enabled)!==null&&D!==void 0?D:P!==Je,N=bn(kt(R,P,"any")),{client:B}=l(),A=E.useRef(k);E.useEffect(()=>{A.current=k});const[_]=E.useState(new Set([])),T=E.useCallback(O=>{_.add(O)},[_]),I=E.useRef(null),z=E.useCallback(O=>{const j=q.current,H=q.current=O(j);let K=!1;for(const X of _)if(j[X]!==H[X]){K=!0;break}K&&F(uc(H,T))},[T,_]),G=E.useCallback(()=>{var O;if((O=I.current)===null||O===void 0||O.unsubscribe(),!L){z(()=>(0,W.default)((0,W.default)({},m),{},{reset:G}));return}z(()=>(0,W.default)((0,W.default)({},g),{},{reset:G}));const j=B.subscription(R.join("."),P??void 0,{onStarted:()=>{var H,K;(H=(K=A.current).onStarted)===null||H===void 0||H.call(K),z(X=>(0,W.default)((0,W.default)({},X),{},{status:"pending",error:null}))},onData:H=>{var K,X;(K=(X=A.current).onData)===null||K===void 0||K.call(X,H),z(pe=>(0,W.default)((0,W.default)({},pe),{},{status:"pending",data:H,error:null}))},onError:H=>{var K,X;(K=(X=A.current).onError)===null||K===void 0||K.call(X,H),z(pe=>(0,W.default)((0,W.default)({},pe),{},{status:"error",error:H}))},onConnectionStateChange:H=>{z(K=>{switch(H.state){case"idle":return(0,W.default)((0,W.default)({},K),{},{status:H.state,error:null,data:void 0});case"connecting":return(0,W.default)((0,W.default)({},K),{},{error:H.error,status:H.state});case"pending":return K}})},onComplete:()=>{var H,K;(H=(K=A.current).onComplete)===null||H===void 0||H.call(K),z(X=>(0,W.default)((0,W.default)({},X),{},{status:"idle",error:null,data:void 0}))}});I.current=j},[B,N,L,z]);E.useEffect(()=>(G(),()=>{var O;(O=I.current)===null||O===void 0||O.unsubscribe()}),[G]);const q=E.useRef(L?(0,W.default)((0,W.default)({},g),{},{reset:G}):(0,W.default)((0,W.default)({},m),{},{reset:G})),[S,F]=E.useState(uc(q.current,T));return S}function b(R,P,k){var D,L,N,B,A;const{client:_,ssrState:T,prefetchInfiniteQuery:I,queryClient:z,abortOnUnmount:G}=l(),q=kt(R,P,"infinite"),S=z.getQueryDefaults(q),F=P===Je;typeof window>"u"&&T==="prepass"&&(k==null||(D=k.trpc)===null||D===void 0?void 0:D.ssr)!==!1&&((L=k==null?void 0:k.enabled)!==null&&L!==void 0?L:S==null?void 0:S.enabled)!==!1&&!F&&!z.getQueryCache().find({queryKey:q})&&I(q,(0,W.default)((0,W.default)({},S),k));const O=u(q,(0,W.default)((0,W.default)({},S),k)),j=(N=k==null||(B=k.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&N!==void 0?N:G,H=Em((0,W.default)((0,W.default)({},O),{},{initialPageParam:(A=k.initialCursor)!==null&&A!==void 0?A:null,persister:k.persister,queryKey:q,queryFn:F?P:K=>{var X;const pe=(0,W.default)((0,W.default)({},O),{},{trpc:(0,W.default)((0,W.default)({},O==null?void 0:O.trpc),j?{signal:K.signal}:{signal:null})});return _.query(...Be(q,pe,{pageParam:(X=K.pageParam)!==null&&X!==void 0?X:k.initialCursor,direction:K.direction}))}}),z);return H.trpc=no({path:R}),H}function x(R,P,k){var D,L,N;const B=l(),A=kt(R,P,"infinite"),_=B.queryClient.getQueryDefaults(A),T=P===Je,I=u(A,(0,W.default)((0,W.default)({},_),k)),z=(D=k==null||(L=k.trpc)===null||L===void 0?void 0:L.abortOnUnmount)!==null&&D!==void 0?D:B.abortOnUnmount;$m((0,W.default)((0,W.default)({},k),{},{initialPageParam:(N=k.initialCursor)!==null&&N!==void 0?N:null,queryKey:A,queryFn:T?P:G=>{var q;const S=(0,W.default)((0,W.default)({},I),{},{trpc:(0,W.default)((0,W.default)({},I==null?void 0:I.trpc),z?{signal:G.signal}:{})});return B.client.query(...Be(A,S,{pageParam:(q=G.pageParam)!==null&&q!==void 0?q:k.initialCursor,direction:G.direction}))}}))}function w(R,P,k){var D,L,N;const B=l(),A=kt(R,P,"infinite"),_=B.queryClient.getQueryDefaults(A),T=u(A,(0,W.default)((0,W.default)({},_),k)),I=(D=k==null||(L=k.trpc)===null||L===void 0?void 0:L.abortOnUnmount)!==null&&D!==void 0?D:B.abortOnUnmount,z=xm((0,W.default)((0,W.default)({},k),{},{initialPageParam:(N=k.initialCursor)!==null&&N!==void 0?N:null,queryKey:A,queryFn:G=>{var q;const S=(0,W.default)((0,W.default)({},T),{},{trpc:(0,W.default)((0,W.default)({},T==null?void 0:T.trpc),I?{signal:G.signal}:{})});return B.client.query(...Be(A,S,{pageParam:(q=G.pageParam)!==null&&q!==void 0?q:k.initialCursor,direction:G.direction}))}}),B.queryClient);return z.trpc=no({path:R}),[z.data,z]}return{Provider:s,createClient:a,useContext:l,useUtils:l,useQuery:h,usePrefetchQuery:c,useSuspenseQuery:p,useQueries:(R,P)=>{const{ssrState:k,queryClient:D,prefetchQuery:L,client:N}=l(),B=lc(N),A=R(B);if(typeof window>"u"&&k==="prepass")for(const T of A){var _;const I=T;((_=I.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&!D.getQueryCache().find({queryKey:I.queryKey})&&L(I.queryKey,I)}return Nf({queries:A.map(T=>(0,W.default)((0,W.default)({},T),{},{queryKey:T.queryKey})),combine:P==null?void 0:P.combine},D)},useSuspenseQueries:R=>{const{queryClient:P,client:k}=l(),D=lc(k),L=R(D),N=wm({queries:L.map(B=>(0,W.default)((0,W.default)({},B),{},{queryFn:B.queryFn,queryKey:B.queryKey}))},P);return[N.map(B=>B.data),N]},useMutation:f,useSubscription:v,useInfiniteQuery:b,usePrefetchInfiniteQuery:x,useSuspenseInfiniteQuery:w}}function Yv(e){const t=Av(e);return Zl(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return E.useMemo(()=>zv(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function Xv(e){const t=Qv(e);return Yv(t)}var ue=Xv({overrides:{useMutation:{onSuccess:function(e){return Ev(this,void 0,void 0,function(){return Pv(this,function(t){switch(t.label){case 0:return[4,e.originalFn()];case 1:return t.sent(),[4,e.queryClient.invalidateQueries()];case 2:return t.sent(),[2]}})})}}}});/**
|
|
10
10
|
* react-router v7.13.0
|
|
11
11
|
*
|
|
12
12
|
* Copyright (c) Remix Software Inc.
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
* LICENSE.md file in the root directory of this source tree.
|
|
16
16
|
*
|
|
17
17
|
* @license MIT
|
|
18
|
-
*/var ic="popstate";function Yv(e={}){function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return ol("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Po(o)}return Zv(t,n,null,e)}function ge(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ct(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Xv(){return Math.random().toString(36).substring(2,10)}function ac(e,t){return{usr:e.state,key:e.key,idx:t}}function ol(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Hr(t):t,state:n,key:t&&t.key||r||Xv()}}function Po({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Hr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Zv(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,u=h();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function h(){return(a.state||{idx:null}).idx}function c(){s="POP";let v=h(),b=v==null?null:v-u;u=v,l&&l({action:s,location:m.location,delta:b})}function p(v,b){s="PUSH";let x=ol(m.location,v,b);u=h()+1;let w=ac(x,u),S=m.createHref(x);try{a.pushState(w,"",S)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;o.location.assign(S)}i&&l&&l({action:s,location:m.location,delta:1})}function f(v,b){s="REPLACE";let x=ol(m.location,v,b);u=h();let w=ac(x,u),S=m.createHref(x);a.replaceState(w,"",S),i&&l&&l({action:s,location:m.location,delta:0})}function g(v){return Jv(v)}let m={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(ic,c),l=v,()=>{o.removeEventListener(ic,c),l=null}},createHref(v){return t(o,v)},createURL:g,encodeLocation(v){let b=g(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:f,go(v){return a.go(v)}};return m}function Jv(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ge(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Po(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function t0(e,t,n="/"){return eb(e,t,n,!1)}function eb(e,t,n,r){let o=typeof t=="string"?Hr(t):t,i=zt(o.pathname||"/",n);if(i==null)return null;let a=n0(e);tb(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=fb(i);s=cb(a[l],u,r)}return s}function n0(e,t=[],n=[],r="",o=!1){let i=(a,s,l=o,u)=>{let h={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&l)return;ge(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let c=Ht([r,h.relativePath]),p=n.concat(h);a.children&&a.children.length>0&&(ge(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),n0(a.children,t,p,c,l)),!(a.path==null&&!a.index)&&t.push({path:c,score:lb(c,a.index),routesMeta:p})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,s);else for(let u of r0(a.path))i(a,s,!0,u)}),t}function r0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=r0(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function tb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ub(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var nb=/^:[\w-]+$/,rb=3,ob=2,ib=1,ab=10,sb=-2,sc=e=>e==="*";function lb(e,t){let n=e.split("/"),r=n.length;return n.some(sc)&&(r+=sb),t&&(r+=ob),n.filter(o=>!sc(o)).reduce((o,i)=>o+(nb.test(i)?rb:i===""?ib:ab),r)}function ub(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function cb(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,h=i==="/"?t:t.slice(i.length)||"/",c=Gi({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},h),p=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Gi({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},h)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:Ht([i,c.pathname]),pathnameBase:mb(Ht([i,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(i=Ht([i,c.pathnameBase]))}return a}function Gi(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=db(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,{paramName:h,isOptional:c},p)=>{if(h==="*"){let g=s[p]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const f=s[p];return c&&!f?u[h]=void 0:u[h]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function db(e,t=!1,n=!0){Ct(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function fb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ct(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function zt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var hb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function pb(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Hr(e):e,i;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?i=lc(n.substring(1),"/"):i=lc(n,t)):i=t,{pathname:i,search:vb(r),hash:bb(o)}}function lc(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ja(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function gb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function o0(e){let t=gb(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function i0(e,t,n,r=!1){let o;typeof e=="string"?o=Hr(e):(o={...e},ge(!o.pathname||!o.pathname.includes("?"),Ja("?","pathname","search",o)),ge(!o.pathname||!o.pathname.includes("#"),Ja("#","pathname","hash",o)),ge(!o.search||!o.search.includes("#"),Ja("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),c-=1;o.pathname=p.join("/")}s=c>=0?t[c]:"/"}let l=pb(o,s),u=a&&a!=="/"&&a.endsWith("/"),h=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||h)&&(l.pathname+="/"),l}var Ht=e=>e.join("/").replace(/\/\/+/g,"/"),mb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,yb=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function xb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function wb(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var a0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function s0(e,t){let n=e;if(typeof n!="string"||!hb.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(a0)try{let i=new URL(window.location.href),a=n.startsWith("//")?new URL(i.protocol+n):new URL(n),s=zt(a.pathname,t);a.origin===i.origin&&s!=null?n=s+a.search+a.hash:o=!0}catch{Ct(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var l0=["POST","PUT","PATCH","DELETE"];new Set(l0);var Cb=["GET",...l0];new Set(Cb);var Vr=E.createContext(null);Vr.displayName="DataRouter";var Pa=E.createContext(null);Pa.displayName="DataRouterState";var $b=E.createContext(!1),u0=E.createContext({isTransitioning:!1});u0.displayName="ViewTransition";var Sb=E.createContext(new Map);Sb.displayName="Fetchers";var Eb=E.createContext(null);Eb.displayName="Await";var ht=E.createContext(null);ht.displayName="Navigation";var Zo=E.createContext(null);Zo.displayName="Location";var _t=E.createContext({outlet:null,matches:[],isDataRoute:!1});_t.displayName="Route";var Xl=E.createContext(null);Xl.displayName="RouteError";var c0="REACT_ROUTER_ERROR",Pb="REDIRECT",Rb="ROUTE_ERROR_RESPONSE";function kb(e){if(e.startsWith(`${c0}:${Pb}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Mb(e){if(e.startsWith(`${c0}:${Rb}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new yb(t.status,t.statusText,t.data)}catch{}}function Ob(e,{relative:t}={}){ge(Jo(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(ht),{hash:o,pathname:i,search:a}=ei(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:Ht([n,i])),r.createHref({pathname:s,search:a,hash:o})}function Jo(){return E.useContext(Zo)!=null}function Cn(){return ge(Jo(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Zo).location}var d0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function f0(e){E.useContext(ht).static||E.useLayoutEffect(e)}function h0(){let{isDataRoute:e}=E.useContext(_t);return e?zb():Tb()}function Tb(){ge(Jo(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(Vr),{basename:t,navigator:n}=E.useContext(ht),{matches:r}=E.useContext(_t),{pathname:o}=Cn(),i=JSON.stringify(o0(r)),a=E.useRef(!1);return f0(()=>{a.current=!0}),E.useCallback((l,u={})=>{if(Ct(a.current,d0),!a.current)return;if(typeof l=="number"){n.go(l);return}let h=i0(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ht([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,i,o,e])}E.createContext(null);function Db(){let{matches:e}=E.useContext(_t),t=e[e.length-1];return t?t.params:{}}function ei(e,{relative:t}={}){let{matches:n}=E.useContext(_t),{pathname:r}=Cn(),o=JSON.stringify(o0(n));return E.useMemo(()=>i0(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function _b(e,t){return p0(e,t)}function p0(e,t,n,r,o){var x;ge(Jo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=E.useContext(ht),{matches:a}=E.useContext(_t),s=a[a.length-1],l=s?s.params:{},u=s?s.pathname:"/",h=s?s.pathnameBase:"/",c=s&&s.route;{let w=c&&c.path||"";m0(u,!c||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
18
|
+
*/var cc="popstate";function Zv(e={}){function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return ul("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Mo(o)}return eb(t,n,null,e)}function me(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Jv(){return Math.random().toString(36).substring(2,10)}function dc(e,t){return{usr:e.state,key:e.key,idx:t}}function ul(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Vr(t):t,state:n,key:t&&t.key||r||Jv()}}function Mo({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Vr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function eb(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,u=h();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function h(){return(a.state||{idx:null}).idx}function c(){s="POP";let v=h(),b=v==null?null:v-u;u=v,l&&l({action:s,location:g.location,delta:b})}function p(v,b){s="PUSH";let x=ul(g.location,v,b);u=h()+1;let w=dc(x,u),$=g.createHref(x);try{a.pushState(w,"",$)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;o.location.assign($)}i&&l&&l({action:s,location:g.location,delta:1})}function f(v,b){s="REPLACE";let x=ul(g.location,v,b);u=h();let w=dc(x,u),$=g.createHref(x);a.replaceState(w,"",$),i&&l&&l({action:s,location:g.location,delta:0})}function m(v){return tb(v)}let g={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(cc,c),l=v,()=>{o.removeEventListener(cc,c),l=null}},createHref(v){return t(o,v)},createURL:m,encodeLocation(v){let b=m(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:f,go(v){return a.go(v)}};return g}function tb(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),me(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Mo(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function i0(e,t,n="/"){return nb(e,t,n,!1)}function nb(e,t,n,r){let o=typeof t=="string"?Vr(t):t,i=zt(o.pathname||"/",n);if(i==null)return null;let a=a0(e);rb(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=pb(i);s=fb(a[l],u,r)}return s}function a0(e,t=[],n=[],r="",o=!1){let i=(a,s,l=o,u)=>{let h={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&l)return;me(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let c=Ht([r,h.relativePath]),p=n.concat(h);a.children&&a.children.length>0&&(me(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),a0(a.children,t,p,c,l)),!(a.path==null&&!a.index)&&t.push({path:c,score:cb(c,a.index),routesMeta:p})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,s);else for(let u of s0(a.path))i(a,s,!0,u)}),t}function s0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=s0(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function rb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:db(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var ob=/^:[\w-]+$/,ib=3,ab=2,sb=1,lb=10,ub=-2,fc=e=>e==="*";function cb(e,t){let n=e.split("/"),r=n.length;return n.some(fc)&&(r+=ub),t&&(r+=ab),n.filter(o=>!fc(o)).reduce((o,i)=>o+(ob.test(i)?ib:i===""?sb:lb),r)}function db(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function fb(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,h=i==="/"?t:t.slice(i.length)||"/",c=Gi({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},h),p=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Gi({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},h)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:Ht([i,c.pathname]),pathnameBase:bb(Ht([i,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(i=Ht([i,c.pathnameBase]))}return a}function Gi(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=hb(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,{paramName:h,isOptional:c},p)=>{if(h==="*"){let m=s[p]||"";a=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const f=s[p];return c&&!f?u[h]=void 0:u[h]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function hb(e,t=!1,n=!0){wt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function pb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function zt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var gb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function mb(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Vr(e):e,i;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?i=hc(n.substring(1),"/"):i=hc(n,t)):i=t,{pathname:i,search:yb(r),hash:xb(o)}}function hc(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ns(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function vb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function l0(e){let t=vb(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function u0(e,t,n,r=!1){let o;typeof e=="string"?o=Vr(e):(o={...e},me(!o.pathname||!o.pathname.includes("?"),ns("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),ns("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),ns("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),c-=1;o.pathname=p.join("/")}s=c>=0?t[c]:"/"}let l=mb(o,s),u=a&&a!=="/"&&a.endsWith("/"),h=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||h)&&(l.pathname+="/"),l}var Ht=e=>e.join("/").replace(/\/\/+/g,"/"),bb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,wb=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Cb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function $b(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var c0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function d0(e,t){let n=e;if(typeof n!="string"||!gb.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(c0)try{let i=new URL(window.location.href),a=n.startsWith("//")?new URL(i.protocol+n):new URL(n),s=zt(a.pathname,t);a.origin===i.origin&&s!=null?n=s+a.search+a.hash:o=!0}catch{wt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var f0=["POST","PUT","PATCH","DELETE"];new Set(f0);var Sb=["GET",...f0];new Set(Sb);var zr=E.createContext(null);zr.displayName="DataRouter";var Pa=E.createContext(null);Pa.displayName="DataRouterState";var Eb=E.createContext(!1),h0=E.createContext({isTransitioning:!1});h0.displayName="ViewTransition";var Pb=E.createContext(new Map);Pb.displayName="Fetchers";var Rb=E.createContext(null);Rb.displayName="Await";var ft=E.createContext(null);ft.displayName="Navigation";var ti=E.createContext(null);ti.displayName="Location";var _t=E.createContext({outlet:null,matches:[],isDataRoute:!1});_t.displayName="Route";var tu=E.createContext(null);tu.displayName="RouteError";var p0="REACT_ROUTER_ERROR",kb="REDIRECT",Mb="ROUTE_ERROR_RESPONSE";function Ob(e){if(e.startsWith(`${p0}:${kb}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Tb(e){if(e.startsWith(`${p0}:${Mb}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new wb(t.status,t.statusText,t.data)}catch{}}function Db(e,{relative:t}={}){me(ni(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(ft),{hash:o,pathname:i,search:a}=ri(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:Ht([n,i])),r.createHref({pathname:s,search:a,hash:o})}function ni(){return E.useContext(ti)!=null}function $n(){return me(ni(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(ti).location}var g0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function m0(e){E.useContext(ft).static||E.useLayoutEffect(e)}function v0(){let{isDataRoute:e}=E.useContext(_t);return e?qb():_b()}function _b(){me(ni(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(zr),{basename:t,navigator:n}=E.useContext(ft),{matches:r}=E.useContext(_t),{pathname:o}=$n(),i=JSON.stringify(l0(r)),a=E.useRef(!1);return m0(()=>{a.current=!0}),E.useCallback((l,u={})=>{if(wt(a.current,g0),!a.current)return;if(typeof l=="number"){n.go(l);return}let h=u0(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ht([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,i,o,e])}E.createContext(null);function Lb(){let{matches:e}=E.useContext(_t),t=e[e.length-1];return t?t.params:{}}function ri(e,{relative:t}={}){let{matches:n}=E.useContext(_t),{pathname:r}=$n(),o=JSON.stringify(l0(n));return E.useMemo(()=>u0(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function Fb(e,t){return b0(e,t)}function b0(e,t,n,r,o){var x;me(ni(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=E.useContext(ft),{matches:a}=E.useContext(_t),s=a[a.length-1],l=s?s.params:{},u=s?s.pathname:"/",h=s?s.pathnameBase:"/",c=s&&s.route;{let w=c&&c.path||"";x0(u,!c||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
19
19
|
|
|
20
|
-
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let p=Cn(),f;if(t){let w=typeof t=="string"?Hr(t):t;ge(h==="/"||((x=w.pathname)==null?void 0:x.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${w.pathname}" was given in the \`location\` prop.`),f=w}else f=p;let g=f.pathname||"/",m=g;if(h!=="/"){let w=h.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=t0(e,{pathname:m});Ct(c||v!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),Ct(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=Nb(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Ht([h,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?h:Ht([h,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o);return t&&b?E.createElement(Zo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},b):b}function Lb(){let e=Vb(),t=xb(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:i},"ErrorBoundary")," or"," ",E.createElement("code",{style:i},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,a)}var Fb=E.createElement(Lb,null),g0=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Mb(e.digest);n&&(e=n)}let t=e!==void 0?E.createElement(_t.Provider,{value:this.props.routeContext},E.createElement(Xl.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?E.createElement(Ib,{error:e},t):t}};g0.contextType=$b;var es=new WeakMap;function Ib({children:e,error:t}){let{basename:n}=E.useContext(ht);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=kb(t.digest);if(r){let o=es.get(t);if(o)throw o;let i=s0(r.location,n);if(a0&&!es.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw es.set(t,a),a}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function jb({routeContext:e,match:t,children:n}){let r=E.useContext(Vr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(_t.Provider,{value:e},n)}function Nb(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let h=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);ge(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,h+1))}let s=!1,l=-1;if(n)for(let h=0;h<i.length;h++){let c=i[h];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(l=h),c.route.id){let{loaderData:p,errors:f}=n,g=c.route.loader&&!p.hasOwnProperty(c.route.id)&&(!f||f[c.route.id]===void 0);if(c.route.lazy||g){s=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}let u=n&&r?(h,c)=>{var p,f;r(h,{location:n.location,params:((f=(p=n.matches)==null?void 0:p[0])==null?void 0:f.params)??{},unstable_pattern:wb(n.matches),errorInfo:c})}:void 0;return i.reduceRight((h,c,p)=>{let f,g=!1,m=null,v=null;n&&(f=a&&c.route.id?a[c.route.id]:void 0,m=c.route.errorElement||Fb,s&&(l<0&&p===0?(m0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,v=null):l===p&&(g=!0,v=c.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,p+1)),x=()=>{let w;return f?w=m:g?w=v:c.route.Component?w=E.createElement(c.route.Component,null):c.route.element?w=c.route.element:w=h,E.createElement(jb,{match:c,routeContext:{outlet:h,matches:b,isDataRoute:n!=null},children:w})};return n&&(c.route.ErrorBoundary||c.route.errorElement||p===0)?E.createElement(g0,{location:n.location,revalidation:n.revalidation,component:m,error:f,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:u}):x()},null)}function Zl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ab(e){let t=E.useContext(Vr);return ge(t,Zl(e)),t}function Kb(e){let t=E.useContext(Pa);return ge(t,Zl(e)),t}function Bb(e){let t=E.useContext(_t);return ge(t,Zl(e)),t}function Jl(e){let t=Bb(e),n=t.matches[t.matches.length-1];return ge(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Hb(){return Jl("useRouteId")}function Vb(){var r;let e=E.useContext(Xl),t=Kb("useRouteError"),n=Jl("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function zb(){let{router:e}=Ab("useNavigate"),t=Jl("useNavigate"),n=E.useRef(!1);return f0(()=>{n.current=!0}),E.useCallback(async(o,i={})=>{Ct(n.current,d0),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var uc={};function m0(e,t,n){!t&&!uc[e]&&(uc[e]=!0,Ct(!1,n))}E.memo(Ub);function Ub({routes:e,future:t,state:n,onError:r}){return p0(e,void 0,n,r,t)}function il(e){ge(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function qb({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:a}){ge(!Jo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=E.useMemo(()=>({basename:s,navigator:o,static:i,unstable_useTransitions:a,future:{}}),[s,o,i,a]);typeof n=="string"&&(n=Hr(n));let{pathname:u="/",search:h="",hash:c="",state:p=null,key:f="default"}=n,g=E.useMemo(()=>{let m=zt(u,s);return m==null?null:{location:{pathname:m,search:h,hash:c,state:p,key:f},navigationType:r}},[s,u,h,c,p,f,r]);return Ct(g!=null,`<Router basename="${s}"> is not able to match the URL "${u}${h}${c}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:E.createElement(ht.Provider,{value:l},E.createElement(Zo.Provider,{children:t,value:g}))}function Wb({children:e,location:t}){return _b(al(e),t)}function al(e,t=[]){let n=[];return E.Children.forEach(e,(r,o)=>{if(!E.isValidElement(r))return;let i=[...t,o];if(r.type===E.Fragment){n.push.apply(n,al(r.props.children,i));return}ge(r.type===il,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ge(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=al(r.props.children,i)),n.push(a)}),n}var Ai="get",Ki="application/x-www-form-urlencoded";function Ra(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Gb(e){return Ra(e)&&e.tagName.toLowerCase()==="button"}function Qb(e){return Ra(e)&&e.tagName.toLowerCase()==="form"}function Yb(e){return Ra(e)&&e.tagName.toLowerCase()==="input"}function Xb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zb(e,t){return e.button===0&&(!t||t==="_self")&&!Xb(e)}function sl(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Jb(e,t){let n=sl(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}var gi=null;function e2(){if(gi===null)try{new FormData(document.createElement("form"),0),gi=!1}catch{gi=!0}return gi}var t2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ts(e){return e!=null&&!t2.has(e)?(Ct(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ki}"`),null):e}function n2(e,t){let n,r,o,i,a;if(Qb(e)){let s=e.getAttribute("action");r=s?zt(s,t):null,n=e.getAttribute("method")||Ai,o=ts(e.getAttribute("enctype"))||Ki,i=new FormData(e)}else if(Gb(e)||Yb(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?zt(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Ai,o=ts(e.getAttribute("formenctype"))||ts(s.getAttribute("enctype"))||Ki,i=new FormData(s,e),!e2()){let{name:u,type:h,value:c}=e;if(h==="image"){let p=u?`${u}.`:"";i.append(`${p}x`,"0"),i.append(`${p}y`,"0")}else u&&i.append(u,c)}}else{if(Ra(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ai,r=null,o=Ki,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function eu(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function r2(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&zt(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function o2(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function i2(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function a2(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let a=await o2(i,n);return a.links?a.links():[]}return[]}));return c2(r.flat(1).filter(i2).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function cc(e,t,n,r,o,i){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,s=(l,u)=>{var h;return n[u].pathname!==l.pathname||((h=n[u].route.path)==null?void 0:h.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,u)=>a(l,u)||s(l,u)):i==="data"?t.filter((l,u)=>{var c;let h=r.routes[l.route.id];if(!h||!h.hasLoader)return!1;if(a(l,u)||s(l,u))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function s2(e,t,{includeHydrateFallback:n}={}){return l2(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function l2(e){return[...new Set(e)]}function u2(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function c2(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(u2(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function v0(){let e=E.useContext(Vr);return eu(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function d2(){let e=E.useContext(Pa);return eu(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var tu=E.createContext(void 0);tu.displayName="FrameworkContext";function b0(){let e=E.useContext(tu);return eu(e,"You must render this element inside a <HydratedRouter> element"),e}function f2(e,t){let n=E.useContext(tu),[r,o]=E.useState(!1),[i,a]=E.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:h,onTouchStart:c}=t,p=E.useRef(null);E.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=b=>{b.forEach(x=>{a(x.isIntersecting)})},v=new IntersectionObserver(m,{threshold:.5});return p.current&&v.observe(p.current),()=>{v.disconnect()}}},[e]),E.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let f=()=>{o(!0)},g=()=>{o(!1),a(!1)};return n?e!=="intent"?[i,p,{}]:[i,p,{onFocus:eo(s,f),onBlur:eo(l,g),onMouseEnter:eo(u,f),onMouseLeave:eo(h,g),onTouchStart:eo(c,f)}]:[!1,p,{}]}function eo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function h2({page:e,...t}){let{router:n}=v0(),r=E.useMemo(()=>t0(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?E.createElement(g2,{page:e,matches:r,...t}):null}function p2(e){let{manifest:t,routeModules:n}=b0(),[r,o]=E.useState([]);return E.useEffect(()=>{let i=!1;return a2(e,t,n).then(a=>{i||o(a)}),()=>{i=!0}},[e,t,n]),r}function g2({page:e,matches:t,...n}){let r=Cn(),{future:o,manifest:i,routeModules:a}=b0(),{basename:s}=v0(),{loaderData:l,matches:u}=d2(),h=E.useMemo(()=>cc(e,t,u,i,r,"data"),[e,t,u,i,r]),c=E.useMemo(()=>cc(e,t,u,i,r,"assets"),[e,t,u,i,r]),p=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,v=!1;if(t.forEach(x=>{var S;let w=i.routes[x.route.id];!w||!w.hasLoader||(!h.some(M=>M.route.id===x.route.id)&&x.route.id in l&&((S=a[x.route.id])!=null&&S.shouldRevalidate)||w.hasClientLoader?v=!0:m.add(x.route.id))}),m.size===0)return[];let b=r2(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return v&&m.size>0&&b.searchParams.set("_routes",t.filter(x=>m.has(x.route.id)).map(x=>x.route.id).join(",")),[b.pathname+b.search]},[s,o.unstable_trailingSlashAwareDataRequests,l,r,i,h,t,e,a]),f=E.useMemo(()=>s2(c,i),[c,i]),g=p2(c);return E.createElement(E.Fragment,null,p.map(m=>E.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),f.map(m=>E.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),g.map(({key:m,link:v})=>E.createElement("link",{key:m,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function m2(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var v2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{v2&&(window.__reactRouterVersion="7.13.0")}catch{}function b2({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=E.useRef();o.current==null&&(o.current=Yv({window:r,v5Compat:!0}));let i=o.current,[a,s]=E.useState({action:i.action,location:i.location}),l=E.useCallback(u=>{n===!1?s(u):E.startTransition(()=>s(u))},[n]);return E.useLayoutEffect(()=>i.listen(l),[i,l]),E.createElement(qb,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i,unstable_useTransitions:n})}var y0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ka=E.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:h,viewTransition:c,unstable_defaultShouldRevalidate:p,...f},g){let{basename:m,unstable_useTransitions:v}=E.useContext(ht),b=typeof u=="string"&&y0.test(u),x=s0(u,m);u=x.to;let w=Ob(u,{relative:o}),[S,M,P]=f2(r,f),R=w2(u,{replace:a,state:s,target:l,preventScrollReset:h,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v});function k(_){t&&t(_),_.defaultPrevented||R(_)}let D=E.createElement("a",{...f,...P,href:x.absoluteURL||w,onClick:x.isExternal||i?t:k,ref:m2(g,M),target:l,"data-discover":!b&&n==="render"?"true":void 0});return S&&!b?E.createElement(E.Fragment,null,D,E.createElement(h2,{page:w})):D});ka.displayName="Link";var x0=E.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:a,viewTransition:s,children:l,...u},h){let c=ei(a,{relative:u.relative}),p=Cn(),f=E.useContext(Pa),{navigator:g,basename:m}=E.useContext(ht),v=f!=null&&R2(c)&&s===!0,b=g.encodeLocation?g.encodeLocation(c).pathname:c.pathname,x=p.pathname,w=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(x=x.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&m&&(w=zt(w,m)||w);const S=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let M=x===b||!o&&x.startsWith(b)&&x.charAt(S)==="/",P=w!=null&&(w===b||!o&&w.startsWith(b)&&w.charAt(b.length)==="/"),R={isActive:M,isPending:P,isTransitioning:v},k=M?t:void 0,D;typeof r=="function"?D=r(R):D=[r,M?"active":null,P?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let _=typeof i=="function"?i(R):i;return E.createElement(ka,{...u,"aria-current":k,className:D,ref:h,style:_,to:a,viewTransition:s},typeof l=="function"?l(R):l)});x0.displayName="NavLink";var y2=E.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=Ai,action:s,onSubmit:l,relative:u,preventScrollReset:h,viewTransition:c,unstable_defaultShouldRevalidate:p,...f},g)=>{let{unstable_useTransitions:m}=E.useContext(ht),v=E2(),b=P2(s,{relative:u}),x=a.toLowerCase()==="get"?"get":"post",w=typeof s=="string"&&y0.test(s),S=M=>{if(l&&l(M),M.defaultPrevented)return;M.preventDefault();let P=M.nativeEvent.submitter,R=(P==null?void 0:P.getAttribute("formmethod"))||a,k=()=>v(P||M.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:o,state:i,relative:u,preventScrollReset:h,viewTransition:c,unstable_defaultShouldRevalidate:p});m&&n!==!1?E.startTransition(()=>k()):k()};return E.createElement("form",{ref:g,method:x,action:b,onSubmit:r?l:S,...f,"data-discover":!w&&e==="render"?"true":void 0})});y2.displayName="Form";function x2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function w0(e){let t=E.useContext(Vr);return ge(t,x2(e)),t}function w2(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let u=h0(),h=Cn(),c=ei(e,{relative:i});return E.useCallback(p=>{if(Zb(p,t)){p.preventDefault();let f=n!==void 0?n:Po(h)===Po(c),g=()=>u(e,{replace:f,state:r,preventScrollReset:o,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:s});l?E.startTransition(()=>g()):g()}},[h,u,c,n,r,t,e,o,i,a,s,l])}function C2(e){Ct(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(sl(e)),n=E.useRef(!1),r=Cn(),o=E.useMemo(()=>Jb(r.search,n.current?null:t.current),[r.search]),i=h0(),a=E.useCallback((s,l)=>{const u=sl(typeof s=="function"?s(new URLSearchParams(o)):s);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}var $2=0,S2=()=>`__${String(++$2)}__`;function E2(){let{router:e}=w0("useSubmit"),{basename:t}=E.useContext(ht),n=Hb(),r=e.fetch,o=e.navigate;return E.useCallback(async(i,a={})=>{let{action:s,method:l,encType:u,formData:h,body:c}=n2(i,t);if(a.navigate===!1){let p=a.fetcherKey||S2();await r(p,n,a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:h,body:c,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await o(a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:h,body:c,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}function P2(e,{relative:t}={}){let{basename:n}=E.useContext(ht),r=E.useContext(_t);ge(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ei(e||".",{relative:t})},a=Cn();if(e==null){i.search=a.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(h=>h==="")){s.delete("index"),l.filter(c=>c).forEach(c=>s.append("index",c));let h=s.toString();i.search=h?`?${h}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Ht([n,i.pathname])),Po(i)}function R2(e,{relative:t}={}){let n=E.useContext(u0);ge(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=w0("useViewTransitionState"),o=ei(e,{relative:t});if(!n.isTransitioning)return!1;let i=zt(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=zt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Gi(o.pathname,a)!=null||Gi(o.pathname,i)!=null}var Ro=function(e){var t=e.className;return y.jsx("div",{className:"animate-pulse bg-slate-100 dark:bg-slate-800 ".concat(t)})};function fe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var k2=["color"],M2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,k2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),O2=["color"],T2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,O2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),D2=["color"],_2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,D2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),L2=["color"],C0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,L2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),F2=["color"],I2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,F2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.50009 0.877014C3.84241 0.877014 0.877258 3.84216 0.877258 7.49984C0.877258 11.1575 3.8424 14.1227 7.50009 14.1227C11.1578 14.1227 14.1229 11.1575 14.1229 7.49984C14.1229 3.84216 11.1577 0.877014 7.50009 0.877014ZM1.82726 7.49984C1.82726 4.36683 4.36708 1.82701 7.50009 1.82701C10.6331 1.82701 13.1729 4.36683 13.1729 7.49984C13.1729 10.6328 10.6331 13.1727 7.50009 13.1727C4.36708 13.1727 1.82726 10.6328 1.82726 7.49984ZM8 4.50001C8 4.22387 7.77614 4.00001 7.5 4.00001C7.22386 4.00001 7 4.22387 7 4.50001V7.50001C7 7.63262 7.05268 7.7598 7.14645 7.85357L9.14645 9.85357C9.34171 10.0488 9.65829 10.0488 9.85355 9.85357C10.0488 9.65831 10.0488 9.34172 9.85355 9.14646L8 7.29291V4.50001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),j2=["color"],Lr=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,j2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M13.15 7.49998C13.15 4.66458 10.9402 1.84998 7.50002 1.84998C4.72167 1.84998 3.34849 3.9064 2.76335 5H4.5C4.77614 5 5 5.22386 5 5.5C5 5.77614 4.77614 6 4.5 6H1.5C1.22386 6 1 5.77614 1 5.5V2.5C1 2.22386 1.22386 2 1.5 2C1.77614 2 2 2.22386 2 2.5V4.31318C2.70453 3.07126 4.33406 0.849976 7.50002 0.849976C11.5628 0.849976 14.15 4.18537 14.15 7.49998C14.15 10.8146 11.5628 14.15 7.50002 14.15C5.55618 14.15 3.93778 13.3808 2.78548 12.2084C2.16852 11.5806 1.68668 10.839 1.35816 10.0407C1.25306 9.78536 1.37488 9.49315 1.63024 9.38806C1.8856 9.28296 2.17781 9.40478 2.2829 9.66014C2.56374 10.3425 2.97495 10.9745 3.4987 11.5074C4.47052 12.4963 5.83496 13.15 7.50002 13.15C10.9402 13.15 13.15 10.3354 13.15 7.49998ZM7.5 4.00001C7.77614 4.00001 8 4.22387 8 4.50001V7.29291L9.85355 9.14646C10.0488 9.34172 10.0488 9.65831 9.85355 9.85357C9.65829 10.0488 9.34171 10.0488 9.14645 9.85357L7.14645 7.85357C7.05268 7.7598 7 7.63262 7 7.50001V4.50001C7 4.22387 7.22386 4.00001 7.5 4.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),N2=["color"],nu=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,N2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),A2=["color"],$0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,A2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),K2=["color"],B2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,K2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2.8 1L2.74967 0.99997C2.52122 0.999752 2.32429 0.999564 2.14983 1.04145C1.60136 1.17312 1.17312 1.60136 1.04145 2.14983C0.999564 2.32429 0.999752 2.52122 0.99997 2.74967L1 2.8V5.2L0.99997 5.25033C0.999752 5.47878 0.999564 5.67572 1.04145 5.85017C1.17312 6.39864 1.60136 6.82688 2.14983 6.95856C2.32429 7.00044 2.52122 7.00025 2.74967 7.00003L2.8 7H5.2L5.25033 7.00003C5.47878 7.00025 5.67572 7.00044 5.85017 6.95856C6.39864 6.82688 6.82688 6.39864 6.95856 5.85017C7.00044 5.67572 7.00025 5.47878 7.00003 5.25033L7 5.2V2.8L7.00003 2.74967C7.00025 2.52122 7.00044 2.32429 6.95856 2.14983C6.82688 1.60136 6.39864 1.17312 5.85017 1.04145C5.67572 0.999564 5.47878 0.999752 5.25033 0.99997L5.2 1H2.8ZM2.38328 2.01382C2.42632 2.00348 2.49222 2 2.8 2H5.2C5.50779 2 5.57369 2.00348 5.61672 2.01382C5.79955 2.05771 5.94229 2.20045 5.98619 2.38328C5.99652 2.42632 6 2.49222 6 2.8V5.2C6 5.50779 5.99652 5.57369 5.98619 5.61672C5.94229 5.79955 5.79955 5.94229 5.61672 5.98619C5.57369 5.99652 5.50779 6 5.2 6H2.8C2.49222 6 2.42632 5.99652 2.38328 5.98619C2.20045 5.94229 2.05771 5.79955 2.01382 5.61672C2.00348 5.57369 2 5.50779 2 5.2V2.8C2 2.49222 2.00348 2.42632 2.01382 2.38328C2.05771 2.20045 2.20045 2.05771 2.38328 2.01382ZM9.8 1L9.74967 0.99997C9.52122 0.999752 9.32429 0.999564 9.14983 1.04145C8.60136 1.17312 8.17312 1.60136 8.04145 2.14983C7.99956 2.32429 7.99975 2.52122 7.99997 2.74967L8 2.8V5.2L7.99997 5.25033C7.99975 5.47878 7.99956 5.67572 8.04145 5.85017C8.17312 6.39864 8.60136 6.82688 9.14983 6.95856C9.32429 7.00044 9.52122 7.00025 9.74967 7.00003L9.8 7H12.2L12.2503 7.00003C12.4788 7.00025 12.6757 7.00044 12.8502 6.95856C13.3986 6.82688 13.8269 6.39864 13.9586 5.85017C14.0004 5.67572 14.0003 5.47878 14 5.25033L14 5.2V2.8L14 2.74967C14.0003 2.52122 14.0004 2.32429 13.9586 2.14983C13.8269 1.60136 13.3986 1.17312 12.8502 1.04145C12.6757 0.999564 12.4788 0.999752 12.2503 0.99997L12.2 1H9.8ZM9.38328 2.01382C9.42632 2.00348 9.49222 2 9.8 2H12.2C12.5078 2 12.5737 2.00348 12.6167 2.01382C12.7995 2.05771 12.9423 2.20045 12.9862 2.38328C12.9965 2.42632 13 2.49222 13 2.8V5.2C13 5.50779 12.9965 5.57369 12.9862 5.61672C12.9423 5.79955 12.7995 5.94229 12.6167 5.98619C12.5737 5.99652 12.5078 6 12.2 6H9.8C9.49222 6 9.42632 5.99652 9.38328 5.98619C9.20045 5.94229 9.05771 5.79955 9.01382 5.61672C9.00348 5.57369 9 5.50779 9 5.2V2.8C9 2.49222 9.00348 2.42632 9.01382 2.38328C9.05771 2.20045 9.20045 2.05771 9.38328 2.01382ZM2.74967 7.99997L2.8 8H5.2L5.25033 7.99997C5.47878 7.99975 5.67572 7.99956 5.85017 8.04145C6.39864 8.17312 6.82688 8.60136 6.95856 9.14983C7.00044 9.32429 7.00025 9.52122 7.00003 9.74967L7 9.8V12.2L7.00003 12.2503C7.00025 12.4788 7.00044 12.6757 6.95856 12.8502C6.82688 13.3986 6.39864 13.8269 5.85017 13.9586C5.67572 14.0004 5.47878 14.0003 5.25033 14L5.2 14H2.8L2.74967 14C2.52122 14.0003 2.32429 14.0004 2.14983 13.9586C1.60136 13.8269 1.17312 13.3986 1.04145 12.8502C0.999564 12.6757 0.999752 12.4788 0.99997 12.2503L1 12.2V9.8L0.99997 9.74967C0.999752 9.52122 0.999564 9.32429 1.04145 9.14983C1.17312 8.60136 1.60136 8.17312 2.14983 8.04145C2.32429 7.99956 2.52122 7.99975 2.74967 7.99997ZM2.8 9C2.49222 9 2.42632 9.00348 2.38328 9.01382C2.20045 9.05771 2.05771 9.20045 2.01382 9.38328C2.00348 9.42632 2 9.49222 2 9.8V12.2C2 12.5078 2.00348 12.5737 2.01382 12.6167C2.05771 12.7995 2.20045 12.9423 2.38328 12.9862C2.42632 12.9965 2.49222 13 2.8 13H5.2C5.50779 13 5.57369 12.9965 5.61672 12.9862C5.79955 12.9423 5.94229 12.7995 5.98619 12.6167C5.99652 12.5737 6 12.5078 6 12.2V9.8C6 9.49222 5.99652 9.42632 5.98619 9.38328C5.94229 9.20045 5.79955 9.05771 5.61672 9.01382C5.57369 9.00348 5.50779 9 5.2 9H2.8ZM9.8 8L9.74967 7.99997C9.52122 7.99975 9.32429 7.99956 9.14983 8.04145C8.60136 8.17312 8.17312 8.60136 8.04145 9.14983C7.99956 9.32429 7.99975 9.52122 7.99997 9.74967L8 9.8V12.2L7.99997 12.2503C7.99975 12.4788 7.99956 12.6757 8.04145 12.8502C8.17312 13.3986 8.60136 13.8269 9.14983 13.9586C9.32429 14.0004 9.52122 14.0003 9.74967 14L9.8 14H12.2L12.2503 14C12.4788 14.0003 12.6757 14.0004 12.8502 13.9586C13.3986 13.8269 13.8269 13.3986 13.9586 12.8502C14.0004 12.6757 14.0003 12.4788 14 12.2503L14 12.2V9.8L14 9.74967C14.0003 9.52122 14.0004 9.32429 13.9586 9.14983C13.8269 8.60136 13.3986 8.17312 12.8502 8.04145C12.6757 7.99956 12.4788 7.99975 12.2503 7.99997L12.2 8H9.8ZM9.38328 9.01382C9.42632 9.00348 9.49222 9 9.8 9H12.2C12.5078 9 12.5737 9.00348 12.6167 9.01382C12.7995 9.05771 12.9423 9.20045 12.9862 9.38328C12.9965 9.42632 13 9.49222 13 9.8V12.2C13 12.5078 12.9965 12.5737 12.9862 12.6167C12.9423 12.7995 12.7995 12.9423 12.6167 12.9862C12.5737 12.9965 12.5078 13 12.2 13H9.8C9.49222 13 9.42632 12.9965 9.38328 12.9862C9.20045 12.9423 9.05771 12.7995 9.01382 12.6167C9.00348 12.5737 9 12.5078 9 12.2V9.8C9 9.49222 9.00348 9.42632 9.01382 9.38328C9.05771 9.20045 9.20045 9.05771 9.38328 9.01382Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),H2=["color"],V2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,H2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M1 3.25C1 3.11193 1.11193 3 1.25 3H13.75C13.8881 3 14 3.11193 14 3.25V10.75C14 10.8881 13.8881 11 13.75 11H1.25C1.11193 11 1 10.8881 1 10.75V3.25ZM1.25 2C0.559643 2 0 2.55964 0 3.25V10.75C0 11.4404 0.559644 12 1.25 12H5.07341L4.82991 13.2986C4.76645 13.6371 5.02612 13.95 5.37049 13.95H9.62951C9.97389 13.95 10.2336 13.6371 10.1701 13.2986L9.92659 12H13.75C14.4404 12 15 11.4404 15 10.75V3.25C15 2.55964 14.4404 2 13.75 2H1.25ZM9.01091 12H5.98909L5.79222 13.05H9.20778L9.01091 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),z2=["color"],U2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,z2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),q2=["color"],ll=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,q2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),W2=["color"],G2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,W2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8.625 2.5C8.625 3.12132 8.12132 3.625 7.5 3.625C6.87868 3.625 6.375 3.12132 6.375 2.5C6.375 1.87868 6.87868 1.375 7.5 1.375C8.12132 1.375 8.625 1.87868 8.625 2.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM7.5 13.625C8.12132 13.625 8.625 13.1213 8.625 12.5C8.625 11.8787 8.12132 11.375 7.5 11.375C6.87868 11.375 6.375 11.8787 6.375 12.5C6.375 13.1213 6.87868 13.625 7.5 13.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Q2=["color"],Y2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,Q2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),X2=["color"],Z2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,X2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),J2=["color"],e5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,J2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M12.3536 13.3536C12.1583 13.5488 11.8417 13.5488 11.6465 13.3536L6.39645 8.10355C6.36478 8.07188 6.33824 8.03702 6.31685 8H5.00002C4.78719 8 4.59769 7.86528 4.52777 7.66426L2.12777 0.764277C2.05268 0.548387 2.13355 0.309061 2.3242 0.182972C2.51486 0.0568819 2.76674 0.0761337 2.93602 0.229734L8.336 5.12972C8.44044 5.22449 8.50001 5.35897 8.50001 5.5V5.81684C8.53702 5.83824 8.57189 5.86478 8.60356 5.89645L13.8536 11.1464C14.0488 11.3417 14.0488 11.6583 13.8536 11.8536L12.3536 13.3536ZM8.25 6.95711L7.45711 7.75L12 12.2929L12.7929 11.5L8.25 6.95711ZM3.71669 2.28845L5.35549 7H6.2929L7.50001 5.79289V5.72146L3.71669 2.28845Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),t5=["color"],n5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,t5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),r5=["color"],o5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,r5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.35355 1.85355C3.54882 1.65829 3.54882 1.34171 3.35355 1.14645C3.15829 0.951184 2.84171 0.951184 2.64645 1.14645L0.646447 3.14645C0.451184 3.34171 0.451184 3.65829 0.646447 3.85355L2.64645 5.85355C2.84171 6.04882 3.15829 6.04882 3.35355 5.85355C3.54882 5.65829 3.54882 5.34171 3.35355 5.14645L2.20711 4H9.5C11.433 4 13 5.567 13 7.5C13 7.77614 13.2239 8 13.5 8C13.7761 8 14 7.77614 14 7.5C14 5.01472 11.9853 3 9.5 3H2.20711L3.35355 1.85355ZM2 7.5C2 7.22386 1.77614 7 1.5 7C1.22386 7 1 7.22386 1 7.5C1 9.98528 3.01472 12 5.5 12H12.7929L11.6464 13.1464C11.4512 13.3417 11.4512 13.6583 11.6464 13.8536C11.8417 14.0488 12.1583 14.0488 12.3536 13.8536L14.3536 11.8536C14.5488 11.6583 14.5488 11.3417 14.3536 11.1464L12.3536 9.14645C12.1583 8.95118 11.8417 8.95118 11.6464 9.14645C11.4512 9.34171 11.4512 9.65829 11.6464 9.85355L12.7929 11H5.5C3.567 11 2 9.433 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),i5=["color"],a5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,i5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM4.50003 7C4.22389 7 4.00003 7.22386 4.00003 7.5C4.00003 7.77614 4.22389 8 4.50003 8H10.5C10.7762 8 11 7.77614 11 7.5C11 7.22386 10.7762 7 10.5 7H4.50003Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),s5=["color"],l5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,s5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),u5=["color"],S0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,u5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),c5=["color"],E0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,c5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),d5=["color"],dc=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,d5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),f5=["color"],P0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,f5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM7.50003 4C7.77617 4 8.00003 4.22386 8.00003 4.5V7H10.5C10.7762 7 11 7.22386 11 7.5C11 7.77614 10.7762 8 10.5 8H8.00003V10.5C8.00003 10.7761 7.77617 11 7.50003 11C7.22389 11 7.00003 10.7761 7.00003 10.5V8H4.50003C4.22389 8 4.00003 7.77614 4.00003 7.5C4.00003 7.22386 4.22389 7 4.50003 7H7.00003V4.5C7.00003 4.22386 7.22389 4 7.50003 4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),h5=["color"],p5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,h5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 9.1488 1.47969 10.657 2.4767 11.8162L1.64647 12.6464C1.45121 12.8417 1.45121 13.1583 1.64647 13.3535C1.84173 13.5488 2.15832 13.5488 2.35358 13.3535L3.18383 12.5233C4.34302 13.5202 5.8511 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 5.85107 13.5202 4.34298 12.5233 3.1838L13.3536 2.35355C13.5488 2.15829 13.5488 1.8417 13.3536 1.64644C13.1583 1.45118 12.8417 1.45118 12.6465 1.64644L11.8162 2.47667C10.657 1.47966 9.14883 0.877045 7.49991 0.877045ZM11.1423 3.15065C10.1568 2.32449 8.88644 1.82704 7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 8.88641 2.32452 10.1568 3.15069 11.1422L11.1423 3.15065ZM3.85781 11.8493C4.84322 12.6753 6.11348 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 6.11345 12.6754 4.84319 11.8493 3.85778L3.85781 11.8493Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),g5=["color"],ru=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,g5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M4.10876 14L9.46582 1H10.8178L5.46074 14H4.10876Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),m5=["color"],v5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,m5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),b5=["color"],y5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,b5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M0.900024 7.50002C0.900024 3.85495 3.85495 0.900024 7.50002 0.900024C11.1451 0.900024 14.1 3.85495 14.1 7.50002C14.1 11.1451 11.1451 14.1 7.50002 14.1C3.85495 14.1 0.900024 11.1451 0.900024 7.50002ZM7.50002 1.80002C4.35201 1.80002 1.80002 4.35201 1.80002 7.50002C1.80002 10.648 4.35201 13.2 7.50002 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.35201 10.648 1.80002 7.50002 1.80002ZM3.07504 7.50002C3.07504 5.05617 5.05618 3.07502 7.50004 3.07502C9.94388 3.07502 11.925 5.05617 11.925 7.50002C11.925 9.94386 9.94388 11.925 7.50004 11.925C5.05618 11.925 3.07504 9.94386 3.07504 7.50002ZM7.50004 3.92502C5.52562 3.92502 3.92504 5.52561 3.92504 7.50002C3.92504 9.47442 5.52563 11.075 7.50004 11.075C9.47444 11.075 11.075 9.47442 11.075 7.50002C11.075 5.52561 9.47444 3.92502 7.50004 3.92502ZM7.50004 5.25002C6.2574 5.25002 5.25004 6.25739 5.25004 7.50002C5.25004 8.74266 6.2574 9.75002 7.50004 9.75002C8.74267 9.75002 9.75004 8.74266 9.75004 7.50002C9.75004 6.25738 8.74267 5.25002 7.50004 5.25002ZM6.05004 7.50002C6.05004 6.69921 6.69923 6.05002 7.50004 6.05002C8.30084 6.05002 8.95004 6.69921 8.95004 7.50002C8.95004 8.30083 8.30084 8.95002 7.50004 8.95002C6.69923 8.95002 6.05004 8.30083 6.05004 7.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),x5=["color"],zr=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,x5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);const R0=d.createContext({}),fc=d.createContext(null),w5=d.createContext(null),le=typeof document<"u"?d.useLayoutEffect:()=>{};function C5(e){let[t,n]=d.useState(e),r=d.useRef(t),o=d.useRef(null),i=d.useRef(()=>{if(!o.current)return;let s=o.current.next();if(s.done){o.current=null;return}r.current===s.value?i.current():n(s.value)});le(()=>{r.current=t,o.current&&i.current()});let a=d.useCallback(s=>{o.current=s(r.current),i.current()},[i]);return[t,a]}const k0={prefix:String(Math.round(Math.random()*1e10)),current:0},M0=d.createContext(k0),$5=d.createContext(!1);let ns=new WeakMap;function S5(e=!1){let t=d.useContext(M0),n=d.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=ns.get(i);a==null?ns.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,ns.delete(i))}n.current=++t.current}return n.current}function E5(e){let t=d.useContext(M0),n=S5(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function P5(e){let t=d.useId(),[n]=d.useState($n()),r=n?"react-aria":`react-aria${k0.prefix}`;return e||`${r}-${t}`}const R5=typeof d.useId=="function"?P5:E5;function k5(){return!1}function M5(){return!0}function O5(e){return()=>{}}function $n(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(O5,k5,M5):d.useContext($5)}let T5=!!(typeof window<"u"&&window.document&&window.document.createElement),gr=new Map,co;typeof FinalizationRegistry<"u"&&(co=new FinalizationRegistry(e=>{gr.delete(e)}));function ot(e){let[t,n]=d.useState(e),r=d.useRef(null),o=R5(t),i=d.useRef(null);if(co&&co.register(i,o),T5){const a=gr.get(o);a&&!a.includes(r)?a.push(r):gr.set(o,[r])}return le(()=>{let a=o;return()=>{co&&co.unregister(i),gr.delete(a)}},[o]),d.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),o}function D5(e,t){if(e===t)return e;let n=gr.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=gr.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Bi(e=[]){let t=ot(),[n,r]=C5(t),o=d.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return le(o,[t,o,...e]),n}function Ur(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const oe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},dt=e=>e&&"window"in e&&e.window===e?e:oe(e).defaultView||window;function _5(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function L5(e){return _5(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let F5=!1;function Ma(){return F5}function Ue(e,t){if(!Ma())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:L5(n)?n=n.host:n=n.parentNode}return!1}const Me=(e=document)=>{var t;if(!Ma())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function we(e){return Ma()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class I5{get currentNode(){return this._currentNode}set currentNode(t){if(!Ue(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,o=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=r,s=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=o,this._currentSetFor.add(s),r=o=a.host}else r=r.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return Ue(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(a);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const i=n.shadowRoot;if(i){const a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function j5(e,t,n,r){return Ma()?new I5(e,t,n,r):e.createTreeWalker(t,n,r)}function O0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=O0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=O0(e))&&(r&&(r+=" "),r+=t);return r}function ie(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ur(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Fr(i,a):o==="id"&&i&&a?t.id=D5(i,a):t[o]=a!==void 0?a:i}}return t}function T0(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=hc(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():hc(e[i],null)})}}}function hc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const N5=new Set(["id"]),A5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),K5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),B5=new Set(["dir","lang","hidden","inert","translate"]),pc=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),H5=/^(data-.*)$/;function Ee(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:a}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(N5.has(l)||n&&A5.has(l)||r&&K5.has(l)||o&&B5.has(l)||i&&(pc.has(l)||l.endsWith("Capture")&&pc.has(l.slice(0,-7)))||a!=null&&a.has(l)||H5.test(l))&&(s[l]=e[l]);return s}function $t(e){if(V5())e.focus({preventScroll:!0});else{let t=z5(e);e.focus(),U5(t)}}let mi=null;function V5(){if(mi==null){mi=!1;try{document.createElement("div").focus({get preventScroll(){return mi=!0,!0}})}catch{}}return mi}function z5(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function U5(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Oa(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function ou(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Wt(e){let t=null;return()=>(t==null&&(t=e()),t)}const zn=Wt(function(){return ou(/^Mac/i)}),q5=Wt(function(){return ou(/^iPhone/i)}),D0=Wt(function(){return ou(/^iPad/i)||zn()&&navigator.maxTouchPoints>1}),Ta=Wt(function(){return q5()||D0()}),W5=Wt(function(){return zn()||Ta()}),_0=Wt(function(){return Oa(/AppleWebKit/i)&&!L0()}),L0=Wt(function(){return Oa(/Chrome/i)}),iu=Wt(function(){return Oa(/Android/i)}),G5=Wt(function(){return Oa(/Firefox/i)}),Q5=d.createContext({isNative:!0,open:Z5,useHref:e=>e});function Da(){return d.useContext(Q5)}function Y5(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Ut(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;G5()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(zn()?i=!0:a=!0);let u=_0()&&zn()&&!D0()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Ut.isOpening=n,$t(e),e.dispatchEvent(u),Ut.isOpening=!1}Ut.isOpening=!1;function X5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function Z5(e,t){X5(e,n=>Ut(n,t))}function J5(e){let t=Da();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function ey(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Y5(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let Zt=new Map,ul=new Set;function gc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Zt.get(r.target);o||(o=new Set,Zt.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Zt.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Zt.delete(r.target)),Zt.size===0)){for(let i of ul)i();ul.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?gc():document.addEventListener("DOMContentLoaded",gc));function ty(){for(const[e]of Zt)"isConnected"in e&&!e.isConnected&&Zt.delete(e)}function F0(e){requestAnimationFrame(()=>{ty(),Zt.size===0?e():ul.add(e)})}function _a(){let e=d.useRef(new Map),t=d.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,l,s)},[]),n=d.useCallback((o,i,a,s)=>{var l;let u=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,u,s),e.current.delete(a)},[]),r=d.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return d.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function I0(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=ot(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function qr(e){const t=d.useRef(null),n=d.useRef(void 0),r=d.useCallback(o=>{if(typeof e=="function"){const i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return d.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}var rs;const ny=(rs=d.useInsertionEffect)!==null&&rs!==void 0?rs:le;function cn(e){const t=d.useRef(null);return ny(()=>{t.current=e},[e]),d.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function mc(e,t){const n=d.useRef(!0),r=d.useRef(null);le(()=>(n.current=!0,()=>{n.current=!1}),[]),le(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}function ry(){return typeof window.ResizeObserver<"u"}function Qi(e){const{ref:t,box:n,onResize:r}=e;let o=cn(r);d.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(ry()){const a=new window.ResizeObserver(s=>{s.length&&o()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,n])}function au(e,t){le(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Un(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function j0(e,t){let n=e;for(Un(n,t)&&(n=n.parentElement);n&&!Un(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function oy(e,t){const n=[];for(;e&&e!==document.documentElement;)Un(e,t)&&n.push(e),e=e.parentElement;return n}function lr(e){return zn()?e.metaKey:e.ctrlKey}const iy=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mo(e){return e instanceof HTMLInputElement&&!iy.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let We=typeof document<"u"&&window.visualViewport;function ay(){let e=$n(),[t,n]=d.useState(()=>e?{width:0,height:0}:vc());return d.useEffect(()=>{let r=()=>{We&&We.scale>1||n(a=>{let s=vc();return s.width===a.width&&s.height===a.height?a:s})},o,i=a=>{We&&We.scale>1||mo(a.target)&&(o=requestAnimationFrame(()=>{(!document.activeElement||!mo(document.activeElement))&&n(s=>{let l={width:window.innerWidth,height:window.innerHeight};return l.width===s.width&&l.height===s.height?s:l})}))};return window.addEventListener("blur",i,!0),We?We.addEventListener("resize",r):window.addEventListener("resize",r),()=>{cancelAnimationFrame(o),window.removeEventListener("blur",i,!0),We?We.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function vc(){return{width:We?We.width*We.scale:window.innerWidth,height:We?We.height*We.scale:window.innerHeight}}let sy=0;const os=new Map;function ly(e){let[t,n]=d.useState();return le(()=>{if(!e)return;let r=os.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${sy++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},os.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),os.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function vi(e,t,n,r){let o=cn(n),i=n==null;d.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i])}function N0(e,t){let n=bc(e,t,"left"),r=bc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:h,scrollPaddingRight:c,scrollPaddingBottom:p,scrollPaddingLeft:f}=getComputedStyle(e),g=a+parseInt(u,10),m=s+parseInt(l,10),v=g+e.clientWidth,b=m+e.clientHeight,x=parseInt(h,10)||0,w=parseInt(p,10)||0,S=parseInt(c,10)||0,M=parseInt(f,10)||0;n<=a+M?a=n-parseInt(u,10)-M:n+o>v-S&&(a+=n+o-v+S),r<=m+x?s=r-parseInt(l,10)-x:r+i>b-w&&(s+=r+i-b+w),e.scrollLeft=a,e.scrollTop=s}function bc(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function yc(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement,s=window.getComputedStyle(a).overflow==="hidden";if(s){let l=oy(e);s||l.push(a);for(let u of l)N0(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:c}=e.getBoundingClientRect();if(Math.abs(l-h)>1||Math.abs(u-c)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function A0(e){return e.pointerType===""&&e.isTrusted?!0:iu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function uy(e){return!iu()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const cy="react-aria-clear-focus",dy="react-aria-focus";function La(e,t=!0){let[n,r]=d.useState(!0),o=n&&t;return le(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),K0(e,o,d.useCallback(()=>r(!1),[])),o}function Yi(e,t){let[n,r]=d.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let o=n==="exiting";return K0(e,o,d.useCallback(()=>{r(i=>i==="exiting"?"closed":i)},[])),o}function K0(e,t,n){le(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let o=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{o||Br.flushSync(()=>{n()})}).catch(()=>{}),()=>{o=!0}}},[e,t,n])}const fy=typeof Element<"u"&&"checkVisibility"in Element.prototype;function hy(e){const t=dt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function py(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function su(e,t){return fy?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&hy(e)&&py(e,t)&&(!e.parentElement||su(e.parentElement,e))}const lu=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],gy=lu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";lu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const my=lu.join(':not([hidden]):not([tabindex="-1"]),');function B0(e){return e.matches(gy)&&su(e)&&!V0(e)}function H0(e){return e.matches(my)&&su(e)&&!V0(e)}function V0(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var is;const vy=typeof document<"u"?(is=d.useInsertionEffect)!==null&&is!==void 0?is:d.useLayoutEffect:()=>{};function ti(e,t,n){let[r,o]=d.useState(e||t),i=d.useRef(r),a=d.useRef(e!==void 0),s=e!==void 0;d.useEffect(()=>{a.current,a.current=s},[s]);let l=s?e:r;vy(()=>{i.current=l});let[,u]=d.useReducer(()=>({}),{}),h=d.useCallback((c,...p)=>{let f=typeof c=="function"?c(i.current):c;Object.is(i.current,f)||(i.current=f,o(f),u(),n==null||n(f,...p))},[n]);return[l,h]}function ko(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Xi=Symbol("default");function Sn({values:e,children:t}){for(let[n,r]of e)t=d.createElement(n.Provider,{value:r},t);return t}function pt(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:s}=e;return d.useMemo(()=>{let l,u,h;return typeof t=="function"?l=t({...s,defaultClassName:o}):l=t,typeof n=="function"?u=n({...s,defaultStyle:a||{}}):u=n,typeof r=="function"?h=r({...s,defaultChildren:i}):r==null?h=i:h=r,{className:l??o,style:u||a?{...a,...u}:void 0,children:h??i,"data-rac":""}},[t,n,r,o,i,a,s])}function z0(e,t){let n=d.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Xi;if(!n.slots[r]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return n.slots[r]}return n}function gt(e,t,n){let r=z0(n,e.slot)||{},{ref:o,...i}=r,a=qr(d.useMemo(()=>T0(t,o),[t,o])),s=ie(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?s.style=l=>{let u=typeof i.style=="function"?i.style(l):i.style,h={...l.defaultStyle,...u},c=typeof e.style=="function"?e.style({...l,defaultStyle:h}):e.style;return{...h,...c}}:s.style={...i.style,...e.style}),[s,a]}function U0(e=!0){let[t,n]=d.useState(e),r=d.useRef(!1),o=d.useCallback(i=>{r.current=!0,n(!!i)},[]);return le(()=>{r.current||n(!1)},[]),[o,t]}const q0=7e3;let Et=null;function xc(e,t="assertive",n=q0){Et?Et.announce(e,t,n):(Et=new by,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Et.announce(e,t,n):setTimeout(()=>{Et!=null&&Et.isAttached()&&(Et==null||Et.announce(e,t,n))},100))}class by{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=q0){var o,i;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(a):(i=this.politeLog)===null||i===void 0||i.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const ct={top:"top",bottom:"top",left:"left",right:"left"},Zi={top:"bottom",bottom:"top",left:"right",right:"left"},yy={top:"left",left:"top"},cl={top:"height",left:"width"},W0={width:"totalWidth",height:"totalHeight"},bi={};let xy=()=>typeof document<"u"?window.visualViewport:null;function wc(e,t){let n=0,r=0,o=0,i=0,a=0,s=0,l={};var u;let h=((u=t==null?void 0:t.scale)!==null&&u!==void 0?u:1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let m=document.documentElement;o=m.clientWidth,i=m.clientHeight;var c;n=(c=t==null?void 0:t.width)!==null&&c!==void 0?c:o;var p;r=(p=t==null?void 0:t.height)!==null&&p!==void 0?p:i,l.top=m.scrollTop||e.scrollTop,l.left=m.scrollLeft||e.scrollLeft,t&&(a=t.offsetTop,s=t.offsetLeft)}else({width:n,height:r,top:a,left:s}=Mo(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,o=n,i=r;if(_0()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h){l.top=0,l.left=0;var f;a=(f=t==null?void 0:t.pageTop)!==null&&f!==void 0?f:0;var g;s=(g=t==null?void 0:t.pageLeft)!==null&&g!==void 0?g:0}return{width:n,height:r,totalWidth:o,totalHeight:i,scroll:l,top:a,left:s}}function wy(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Cc(e,t,n,r,o,i,a){var s;let l=(s=o.scroll[e])!==null&&s!==void 0?s:0,u=r[cl[e]],h=a[e]+r.scroll[ct[e]]+i,c=a[e]+r.scroll[ct[e]]+u-i,p=t-l+r.scroll[ct[e]]+a[e]-r[ct[e]],f=t-l+n+r.scroll[ct[e]]+a[e]-r[ct[e]];return p<h?h-p:f>c?Math.max(c-f,h-p):0}function Cy(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function $c(e){if(bi[e])return bi[e];let[t,n]=e.split(" "),r=ct[t]||"right",o=yy[r];ct[n]||(n="center");let i=cl[r],a=cl[o];return bi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},bi[e]}function as(e,t,n,r,o,i,a,s,l,u,h){let{placement:c,crossPlacement:p,axis:f,crossAxis:g,size:m,crossSize:v}=r,b={};var x;b[g]=(x=e[g])!==null&&x!==void 0?x:0;var w,S,M,P;p==="center"?b[g]+=(((w=e[v])!==null&&w!==void 0?w:0)-((S=n[v])!==null&&S!==void 0?S:0))/2:p!==g&&(b[g]+=((M=e[v])!==null&&M!==void 0?M:0)-((P=n[v])!==null&&P!==void 0?P:0)),b[g]+=i;const R=e[g]-n[v]+l+u,k=e[g]+e[v]-l-u;if(b[g]=ko(b[g],R,k),c===f){let D=s?h[m]:h[W0[m]];b[Zi[f]]=Math.floor(D-e[f]+o)}else b[f]=Math.floor(e[f]+e[m]+o);return b}function $y(e,t,n,r,o,i,a,s,l,u,h){var c,p;let f=(e.top!=null?e.top:l[W0.height]-((c=e.bottom)!==null&&c!==void 0?c:0)-a)-((p=l.scroll.top)!==null&&p!==void 0?p:0),g=u?n.top:0;var m,v,b;let x={top:Math.max(t.top+g,((m=h==null?void 0:h.offsetTop)!==null&&m!==void 0?m:t.top)+g),bottom:Math.min(t.top+t.height+g,((v=h==null?void 0:h.offsetTop)!==null&&v!==void 0?v:0)+((b=h==null?void 0:h.height)!==null&&b!==void 0?b:0))};var w,S,M,P;return s!=="top"?Math.max(0,x.bottom-f-(((w=o.top)!==null&&w!==void 0?w:0)+((S=o.bottom)!==null&&S!==void 0?S:0)+i)):Math.max(0,f+a-x.top-(((M=o.top)!==null&&M!==void 0?M:0)+((P=o.bottom)!==null&&P!==void 0?P:0)+i))}function Sc(e,t,n,r,o,i,a,s){let{placement:l,axis:u,size:h}=i;var c,p;if(l===u)return Math.max(0,n[u]-((c=a.scroll[u])!==null&&c!==void 0?c:0)-(e[u]+(s?t[u]:0))-((p=r[u])!==null&&p!==void 0?p:0)-r[Zi[u]]-o);var f,g;return Math.max(0,e[h]+e[u]+(s?t[u]:0)-n[u]-n[h]+((f=a.scroll[u])!==null&&f!==void 0?f:0)-((g=r[u])!==null&&g!==void 0?g:0)-r[Zi[u]]-o)}function Sy(e,t,n,r,o,i,a,s,l,u,h,c,p,f,g,m,v,b){let x=$c(e),{size:w,crossAxis:S,crossSize:M,placement:P,crossPlacement:R}=x,k=as(t,s,n,x,h,c,u,p,g,m,l),D=h,_=Sc(s,u,t,o,i+h,x,l,v);if(a&&n[w]>_){let ye=$c(`${Zi[P]} ${R}`),Q=as(t,s,n,ye,h,c,u,p,g,m,l);Sc(s,u,t,o,i+h,ye,l,v)>_&&(x=ye,k=Q,D=h)}let A="bottom";x.axis==="top"?x.placement==="top"?A="top":x.placement==="bottom"&&(A="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?A="bottom":x.crossPlacement==="bottom"&&(A="top"));let K=Cc(S,k[S],n[M],s,l,i,u);k[S]+=K;let I=$y(k,s,u,p,o,i,n.height,A,l,v,b);f&&f<I&&(I=f),n.height=Math.min(n.height,I),k=as(t,s,n,x,D,c,u,p,g,m,l),K=Cc(S,k[S],n[M],s,l,i,u),k[S]+=K;let z={},O=t[S]-k[S]-o[ct[S]],L=O+.5*t[M];const B=g/2+m;var U,W,$,F;const T=ct[S]==="left"?((U=o.left)!==null&&U!==void 0?U:0)+((W=o.right)!==null&&W!==void 0?W:0):(($=o.top)!==null&&$!==void 0?$:0)+((F=o.bottom)!==null&&F!==void 0?F:0),j=n[M]-T-g/2-m,V=t[S]+g/2-(k[S]+o[ct[S]]),N=t[S]+t[M]-g/2-(k[S]+o[ct[S]]),Z=ko(L,V,N);z[S]=ko(Z,B,j),{placement:P,crossPlacement:R}=x,g?O=z[S]:R==="right"?O+=t[M]:R==="center"&&(O+=t[M]/2);let he=P==="left"||P==="top"?n[w]:0,te={x:P==="top"||P==="bottom"?O:he,y:P==="left"||P==="right"?O:he};return{position:k,maxHeight:I,arrowOffsetLeft:z.left,arrowOffsetTop:z.top,placement:P,triggerAnchorPoint:te}}function Ey(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:u,maxHeight:h,arrowSize:c=0,arrowBoundaryOffset:p=0}=e,f=xy(),g=r instanceof HTMLElement?Py(r):document.documentElement,m=g===document.documentElement;const v=window.getComputedStyle(g).position;let b=!!v&&v!=="static",x=m?Mo(n,!1):Ec(n,g,!1);if(!m){let{marginTop:z,marginLeft:O}=window.getComputedStyle(n);x.top+=parseInt(z,10)||0,x.left+=parseInt(O,10)||0}let w=Mo(r,!0),S=Cy(r);var M,P;w.width+=((M=S.left)!==null&&M!==void 0?M:0)+((P=S.right)!==null&&P!==void 0?P:0);var R,k;w.height+=((R=S.top)!==null&&R!==void 0?R:0)+((k=S.bottom)!==null&&k!==void 0?k:0);let D=wy(o),_=wc(s,f),A=wc(g,f),K=Ec(s,g,!1),I=s.contains(g);return Sy(t,x,w,D,S,i,a,_,A,K,l,u,b,h,c,p,I,f)}function uu(e,t){let{top:n,left:r,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:n,left:r,width:o,height:i}}function Mo(e,t){let{top:n,left:r,width:o,height:i}=uu(e,t),{scrollTop:a,scrollLeft:s,clientTop:l,clientLeft:u}=document.documentElement;return{top:n+a-l,left:r+s-u,width:o,height:i}}function Ec(e,t,n){let r=window.getComputedStyle(e),o;if(r.position==="fixed")o=uu(e,n);else{o=Mo(e,n);let i=Mo(t,n),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(r.marginTop,10)||0,o.left-=parseInt(r.marginLeft,10)||0,o}function Py(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Pc(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Pc(t);)t=t.parentElement;return t||document.documentElement}function Pc(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const G0=new WeakMap;function Ry(e){let{triggerRef:t,isOpen:n,onClose:r}=e;d.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let s=r||G0.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}const ky=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),My=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Oy(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return ky.has(n.script)}let t=e.split("-")[0];return My.has(t)}const Q0=Symbol.for("react-aria.i18n.locale");function Y0(){let e=typeof window<"u"&&window[Q0]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Oy(e)?"rtl":"ltr"}}let dl=Y0(),fo=new Set;function Rc(){dl=Y0();for(let e of fo)e(dl)}function Ty(){let e=$n(),[t,n]=d.useState(dl);return d.useEffect(()=>(fo.size===0&&window.addEventListener("languagechange",Rc),fo.add(n),()=>{fo.delete(n),fo.size===0&&window.removeEventListener("languagechange",Rc)}),[]),e?{locale:typeof window<"u"&&window[Q0]||"en-US",direction:"ltr"}:t}const Dy=d.createContext(null);function Yn(){let e=Ty();return d.useContext(Dy)||e}const _y=Symbol.for("react-aria.i18n.locale"),Ly=Symbol.for("react-aria.i18n.strings");let or;class Fa{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=Fy(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[_y];if(or===void 0){let o=window[Ly];if(!o)return null;or={};for(let i in o)or[i]=new Fa({[n]:o[i]},n)}let r=or==null?void 0:or[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function Fy(e,t,n="en-US"){if(t[e])return t[e];let r=Iy(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function Iy(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const kc=new Map,Mc=new Map;class jy{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=kc.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),kc.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Mc.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Mc.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Oc=new WeakMap;function Ny(e){let t=Oc.get(e);return t||(t=new Fa(e),Oc.set(e,t)),t}function Ay(e,t){return t&&Fa.getGlobalDictionaryForPackage(t)||Ny(e)}function X0(e,t){let{locale:n}=Yn(),r=Ay(e,t);return d.useMemo(()=>new jy(n,r),[n,r])}function Ky(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function By(e,t,n){Ky(e,t),t.set(e,n)}let ss=new Map,fl=!1;try{fl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ji=!1;try{Ji=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Z0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Hy{format(t){let n="";if(!fl&&this.options.signDisplay!=null?n=zy(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Ji){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=Z0[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!fl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Ji&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=Vy(t,n),this.options=n}}function Vy(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Ji){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Z0[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(ss.has(o))return ss.get(o);let i=new Intl.NumberFormat(e,t);return ss.set(o,i),i}function zy(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}function Uy(e={}){let{locale:t}=Yn();return d.useMemo(()=>new Hy(t,e),[t,e])}let ls=new Map;function qy(e){let{locale:t}=Yn(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ls.has(n))return ls.get(n);let r=new Intl.Collator(t,e);return ls.set(n,r),r}let xe=typeof document<"u"?window.visualViewport:null;function J0(e){let{direction:t}=Yn(),{arrowSize:n,targetRef:r,overlayRef:o,arrowRef:i,scrollRef:a=o,placement:s="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:c=0,crossOffset:p=0,shouldUpdatePosition:f=!0,isOpen:g=!0,onClose:m,maxHeight:v,arrowBoundaryOffset:b=0}=e,[x,w]=d.useState(null),S=[f,s,o.current,r.current,i==null?void 0:i.current,a.current,l,u,h,c,p,g,t,v,b,n],M=d.useRef(xe==null?void 0:xe.scale);d.useEffect(()=>{g&&(M.current=xe==null?void 0:xe.scale)},[g]);let P=d.useCallback(()=>{if(f===!1||!g||!o.current||!r.current||!h||(xe==null?void 0:xe.scale)!==M.current)return;let K=null;if(a.current&&a.current.contains(document.activeElement)){var I;let $=(I=document.activeElement)===null||I===void 0?void 0:I.getBoundingClientRect(),F=a.current.getBoundingClientRect();var z;if(K={type:"top",offset:((z=$==null?void 0:$.top)!==null&&z!==void 0?z:0)-F.top},K.offset>F.height/2){K.type="bottom";var O;K.offset=((O=$==null?void 0:$.bottom)!==null&&O!==void 0?O:0)-F.bottom}}let L=o.current;if(!v&&o.current){var B;L.style.top="0px",L.style.bottom="";var U;L.style.maxHeight=((U=(B=window.visualViewport)===null||B===void 0?void 0:B.height)!==null&&U!==void 0?U:window.innerHeight)+"px"}let W=Ey({placement:Gy(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:a.current||o.current,padding:l,shouldFlip:u,boundaryElement:h,offset:c,crossOffset:p,maxHeight:v,arrowSize:n??(i!=null&&i.current?uu(i.current,!0).width:0),arrowBoundaryOffset:b});if(W.position){if(L.style.top="",L.style.bottom="",L.style.left="",L.style.right="",Object.keys(W.position).forEach($=>L.style[$]=W.position[$]+"px"),L.style.maxHeight=W.maxHeight!=null?W.maxHeight+"px":"",K&&document.activeElement&&a.current){let $=document.activeElement.getBoundingClientRect(),F=a.current.getBoundingClientRect(),T=$[K.type]-F[K.type];a.current.scrollTop+=T-K.offset}w(W)}},S);le(P,S),Wy(P),Qi({ref:o,onResize:P}),Qi({ref:r,onResize:P});let R=d.useRef(!1);le(()=>{let K,I=()=>{R.current=!0,clearTimeout(K),K=setTimeout(()=>{R.current=!1},500),P()},z=()=>{R.current&&I()};return xe==null||xe.addEventListener("resize",I),xe==null||xe.addEventListener("scroll",z),()=>{xe==null||xe.removeEventListener("resize",I),xe==null||xe.removeEventListener("scroll",z)}},[P]);let k=d.useCallback(()=>{R.current||m==null||m()},[m,R]);Ry({triggerRef:r,isOpen:g,onClose:m&&k});var D,_,A;return{overlayProps:{style:{position:x?"absolute":"fixed",top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...x==null?void 0:x.position,maxHeight:(D=x==null?void 0:x.maxHeight)!==null&&D!==void 0?D:"100vh"}},placement:(_=x==null?void 0:x.placement)!==null&&_!==void 0?_:null,triggerAnchorPoint:(A=x==null?void 0:x.triggerAnchorPoint)!==null&&A!==void 0?A:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:P}}function Wy(e){le(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Gy(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function cu(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function eh(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function th(e){let t=d.useRef({isFocused:!1,observer:null});return le(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),d.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=i=>{if(t.current.isFocused=!1,r.disabled){let a=cu(i);e==null||e(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let a=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let ea=!1;function Qy(e){for(;e&&!B0(e);)e=e.parentElement;let t=dt(e),n=t.document.activeElement;if(!n||n===e)return;ea=!0;let r=!1,o=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},i=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,$t(n),l()))},a=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,$t(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),ea=!1,r=!1},u=requestAnimationFrame(l);return l}let fr="default",hl="",Hi=new WeakMap;function Yy(e){if(Ta()){if(fr==="default"){const t=oe(e);hl=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Hi.set(e,e.style[t]),e.style[t]="none"}}function Tc(e){if(Ta()){if(fr!=="disabled")return;fr="restoring",setTimeout(()=>{F0(()=>{if(fr==="restoring"){const t=oe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=hl||""),hl="",fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Hi.has(e)){let t=Hi.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Hi.delete(e)}}const Oo=d.createContext({register:()=>{}});Oo.displayName="PressResponderContext";function Xy(e,t){return t.get?t.get.call(e):t.value}function nh(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Zy(e,t){var n=nh(e,t,"get");return Xy(e,n)}function Jy(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Dc(e,t,n){var r=nh(e,t,"set");return Jy(e,r,n),n}function e9(e){let t=d.useContext(Oo);if(t){let{register:n,...r}=t;e=ie(r,e),n()}return au(t,e.ref),e}var yi=new WeakMap;class xi{continuePropagation(){Dc(this,yi,!1)}get shouldStopPropagation(){return Zy(this,yi)}constructor(t,n,r,o){By(this,yi,{writable:!0,value:void 0}),Dc(this,yi,!0);var i;let a=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:r.currentTarget;const s=a==null?void 0:a.getBoundingClientRect();let l,u=0,h,c=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,c=r.clientY),s&&(h!=null&&c!=null?(l=h-s.left,u=c-s.top):(l=s.width/2,u=s.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const _c=Symbol("linkClicked"),Lc="react-aria-pressable-style",Fc="data-react-aria-pressable";function Ia(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:c,ref:p,...f}=e9(e),[g,m]=d.useState(!1),v=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:x,removeGlobalListener:w}=_a(),S=d.useCallback(($,F)=>{let T=v.current;if(s||T.didFirePressStart)return!1;let j=!0;if(T.isTriggeringEvent=!0,r){let V=new xi("pressstart",F,$);r(V),j=V.shouldStopPropagation}return n&&n(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,m(!0),j},[s,r,n]),M=d.useCallback(($,F,T=!0)=>{let j=v.current;if(!j.didFirePressStart)return!1;j.didFirePressStart=!1,j.isTriggeringEvent=!0;let V=!0;if(o){let N=new xi("pressend",F,$);o(N),V=N.shouldStopPropagation}if(n&&n(!1),m(!1),t&&T&&!s){let N=new xi("press",F,$);t(N),V&&(V=N.shouldStopPropagation)}return j.isTriggeringEvent=!1,V},[s,o,n,t]),P=cn(M),R=d.useCallback(($,F)=>{let T=v.current;if(s)return!1;if(i){T.isTriggeringEvent=!0;let j=new xi("pressup",F,$);return i(j),T.isTriggeringEvent=!1,j.shouldStopPropagation}return!0},[s,i]),k=cn(R),D=d.useCallback($=>{let F=v.current;if(F.isPressed&&F.target){F.didFirePressStart&&F.pointerType!=null&&M(Pn(F.target,$),F.pointerType,!1),F.isPressed=!1,U(null),F.isOverTarget=!1,F.activePointerId=null,F.pointerType=null,x(),c||Tc(F.target);for(let T of F.disposables)T();F.disposables=[]}},[c,x,M]),_=cn(D),A=d.useCallback($=>{h&&D($)},[h,D]),K=d.useCallback($=>{s||a==null||a($)},[s,a]),I=d.useCallback(($,F)=>{if(!s&&a){let T=new MouseEvent("click",$);eh(T,F),a(cu(T))}},[s,a]),z=cn(I),[O,L]=d.useState(!1);le(()=>{let $=v.current;if(O){let F=N=>{var Z;if($.isPressed&&$.target&&us(N,$.target)){var he;Ic(we(N),N.key)&&N.preventDefault();let ye=we(N),Q=Ue($.target,we(N));P(Pn($.target,N),"keyboard",Q),Q&&z(N,$.target),x(),N.key!=="Enter"&&du($.target)&&Ue($.target,ye)&&!N[_c]&&(N[_c]=!0,Ut($.target,N,!1)),$.isPressed=!1,L(!1),(he=$.metaKeyEvents)===null||he===void 0||he.delete(N.key)}else if(N.key==="Meta"&&(!((Z=$.metaKeyEvents)===null||Z===void 0)&&Z.size)){var te;let ye=$.metaKeyEvents;$.metaKeyEvents=void 0;for(let Q of ye.values())(te=$.target)===null||te===void 0||te.dispatchEvent(new KeyboardEvent("keyup",Q))}},T=$.target,V=Ur(N=>{T&&us(N,T)&&!N.repeat&&Ue(T,we(N))&&$.target&&k(Pn($.target,N),"keyboard")},F);return b(oe($.target),"keyup",V,!0),()=>{w(oe($.target),"keyup",V,!0)}}},[O,b,x,w]);let[B,U]=d.useState(null);le(()=>{let $=v.current;if(B==="pointer"){let F=j=>{if(j.pointerId===$.activePointerId&&$.isPressed&&j.button===0&&$.target){if(Ue($.target,we(j))&&$.pointerType!=null){let V=!1,N=setTimeout(()=>{$.isPressed&&$.target instanceof HTMLElement&&(V?_(j):($t($.target),$.target.click()))},80);b(j.currentTarget,"click",()=>V=!0,!0),$.disposables.push(()=>clearTimeout(N))}else _(j);$.isOverTarget=!1}},T=j=>{_(j)};return b(oe($.target),"pointerup",F,!1),b(oe($.target),"pointercancel",T,!1),()=>{w(oe($.target),"pointerup",F,!1),w(oe($.target),"pointercancel",T,!1)}}},[B,b,w]);let W=d.useMemo(()=>{let $=v.current,F={onKeyDown(T){if(us(T.nativeEvent,T.currentTarget)&&Ue(T.currentTarget,we(T.nativeEvent))){var j;Ic(we(T.nativeEvent),T.key)&&T.preventDefault();let V=!0;!$.isPressed&&!T.repeat&&($.target=T.currentTarget,$.isPressed=!0,L(!0),$.pointerType="keyboard",V=S(T,"keyboard")),V&&T.stopPropagation(),T.metaKey&&zn()&&((j=$.metaKeyEvents)===null||j===void 0||j.set(T.key,T.nativeEvent))}else T.key==="Meta"&&($.metaKeyEvents=new Map)},onClick(T){if(!(T&&!Ue(T.currentTarget,we(T.nativeEvent)))&&T&&T.button===0&&!$.isTriggeringEvent&&!Ut.isOpening){let j=!0;if(s&&T.preventDefault(),!$.ignoreEmulatedMouseEvents&&!$.isPressed&&($.pointerType==="virtual"||A0(T.nativeEvent))){let V=S(T,"virtual"),N=R(T,"virtual"),Z=M(T,"virtual");K(T),j=V&&N&&Z}else if($.isPressed&&$.pointerType!=="keyboard"){let V=$.pointerType||T.nativeEvent.pointerType||"virtual",N=R(Pn(T.currentTarget,T),V),Z=M(Pn(T.currentTarget,T),V,!0);j=N&&Z,$.isOverTarget=!1,K(T),D(T)}$.ignoreEmulatedMouseEvents=!1,j&&T.stopPropagation()}}};return typeof PointerEvent<"u"&&(F.onPointerDown=T=>{if(T.button!==0||!Ue(T.currentTarget,we(T.nativeEvent)))return;if(uy(T.nativeEvent)){$.pointerType="virtual";return}$.pointerType=T.pointerType;let j=!0;if(!$.isPressed){$.isPressed=!0,U("pointer"),$.isOverTarget=!0,$.activePointerId=T.pointerId,$.target=T.currentTarget,c||Yy($.target),j=S(T,$.pointerType);let V=we(T.nativeEvent);"releasePointerCapture"in V&&V.releasePointerCapture(T.pointerId)}j&&T.stopPropagation()},F.onMouseDown=T=>{if(Ue(T.currentTarget,we(T.nativeEvent))&&T.button===0){if(u){let j=Qy(T.target);j&&$.disposables.push(j)}T.stopPropagation()}},F.onPointerUp=T=>{!Ue(T.currentTarget,we(T.nativeEvent))||$.pointerType==="virtual"||T.button===0&&!$.isPressed&&R(T,$.pointerType||T.pointerType)},F.onPointerEnter=T=>{T.pointerId===$.activePointerId&&$.target&&!$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!0,S(Pn($.target,T),$.pointerType))},F.onPointerLeave=T=>{T.pointerId===$.activePointerId&&$.target&&$.isOverTarget&&$.pointerType!=null&&($.isOverTarget=!1,M(Pn($.target,T),$.pointerType,!1),A(T))},F.onDragStart=T=>{Ue(T.currentTarget,we(T.nativeEvent))&&D(T)}),F},[s,u,x,c,D,A,M,S,R,K,I]);return d.useEffect(()=>{if(!p)return;const $=oe(p.current);if(!$||!$.head||$.getElementById(Lc))return;const F=$.createElement("style");F.id=Lc,F.textContent=`
|
|
20
|
+
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let p=$n(),f;if(t){let w=typeof t=="string"?Vr(t):t;me(h==="/"||((x=w.pathname)==null?void 0:x.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${w.pathname}" was given in the \`location\` prop.`),f=w}else f=p;let m=f.pathname||"/",g=m;if(h!=="/"){let w=h.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=i0(e,{pathname:g});wt(c||v!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),wt(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=Kb(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Ht([h,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?h:Ht([h,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o);return t&&b?E.createElement(ti.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},b):b}function Ib(){let e=Ub(),t=Cb(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:i},"ErrorBoundary")," or"," ",E.createElement("code",{style:i},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,a)}var jb=E.createElement(Ib,null),y0=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Tb(e.digest);n&&(e=n)}let t=e!==void 0?E.createElement(_t.Provider,{value:this.props.routeContext},E.createElement(tu.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?E.createElement(Nb,{error:e},t):t}};y0.contextType=Eb;var rs=new WeakMap;function Nb({children:e,error:t}){let{basename:n}=E.useContext(ft);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Ob(t.digest);if(r){let o=rs.get(t);if(o)throw o;let i=d0(r.location,n);if(c0&&!rs.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw rs.set(t,a),a}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Ab({routeContext:e,match:t,children:n}){let r=E.useContext(zr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(_t.Provider,{value:e},n)}function Kb(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let h=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);me(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,h+1))}let s=!1,l=-1;if(n)for(let h=0;h<i.length;h++){let c=i[h];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(l=h),c.route.id){let{loaderData:p,errors:f}=n,m=c.route.loader&&!p.hasOwnProperty(c.route.id)&&(!f||f[c.route.id]===void 0);if(c.route.lazy||m){s=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}let u=n&&r?(h,c)=>{var p,f;r(h,{location:n.location,params:((f=(p=n.matches)==null?void 0:p[0])==null?void 0:f.params)??{},unstable_pattern:$b(n.matches),errorInfo:c})}:void 0;return i.reduceRight((h,c,p)=>{let f,m=!1,g=null,v=null;n&&(f=a&&c.route.id?a[c.route.id]:void 0,g=c.route.errorElement||jb,s&&(l<0&&p===0?(x0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,v=null):l===p&&(m=!0,v=c.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,p+1)),x=()=>{let w;return f?w=g:m?w=v:c.route.Component?w=E.createElement(c.route.Component,null):c.route.element?w=c.route.element:w=h,E.createElement(Ab,{match:c,routeContext:{outlet:h,matches:b,isDataRoute:n!=null},children:w})};return n&&(c.route.ErrorBoundary||c.route.errorElement||p===0)?E.createElement(y0,{location:n.location,revalidation:n.revalidation,component:g,error:f,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:u}):x()},null)}function nu(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bb(e){let t=E.useContext(zr);return me(t,nu(e)),t}function Hb(e){let t=E.useContext(Pa);return me(t,nu(e)),t}function Vb(e){let t=E.useContext(_t);return me(t,nu(e)),t}function ru(e){let t=Vb(e),n=t.matches[t.matches.length-1];return me(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function zb(){return ru("useRouteId")}function Ub(){var r;let e=E.useContext(tu),t=Hb("useRouteError"),n=ru("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function qb(){let{router:e}=Bb("useNavigate"),t=ru("useNavigate"),n=E.useRef(!1);return m0(()=>{n.current=!0}),E.useCallback(async(o,i={})=>{wt(n.current,g0),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var pc={};function x0(e,t,n){!t&&!pc[e]&&(pc[e]=!0,wt(!1,n))}E.memo(Wb);function Wb({routes:e,future:t,state:n,onError:r}){return b0(e,void 0,n,r,t)}function cl(e){me(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Gb({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:a}){me(!ni(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=E.useMemo(()=>({basename:s,navigator:o,static:i,unstable_useTransitions:a,future:{}}),[s,o,i,a]);typeof n=="string"&&(n=Vr(n));let{pathname:u="/",search:h="",hash:c="",state:p=null,key:f="default"}=n,m=E.useMemo(()=>{let g=zt(u,s);return g==null?null:{location:{pathname:g,search:h,hash:c,state:p,key:f},navigationType:r}},[s,u,h,c,p,f,r]);return wt(m!=null,`<Router basename="${s}"> is not able to match the URL "${u}${h}${c}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:E.createElement(ft.Provider,{value:l},E.createElement(ti.Provider,{children:t,value:m}))}function Qb({children:e,location:t}){return Fb(dl(e),t)}function dl(e,t=[]){let n=[];return E.Children.forEach(e,(r,o)=>{if(!E.isValidElement(r))return;let i=[...t,o];if(r.type===E.Fragment){n.push.apply(n,dl(r.props.children,i));return}me(r.type===cl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),me(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=dl(r.props.children,i)),n.push(a)}),n}var Ki="get",Bi="application/x-www-form-urlencoded";function Ra(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Yb(e){return Ra(e)&&e.tagName.toLowerCase()==="button"}function Xb(e){return Ra(e)&&e.tagName.toLowerCase()==="form"}function Zb(e){return Ra(e)&&e.tagName.toLowerCase()==="input"}function Jb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function e2(e,t){return e.button===0&&(!t||t==="_self")&&!Jb(e)}function fl(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function t2(e,t){let n=fl(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}var mi=null;function n2(){if(mi===null)try{new FormData(document.createElement("form"),0),mi=!1}catch{mi=!0}return mi}var r2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function os(e){return e!=null&&!r2.has(e)?(wt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bi}"`),null):e}function o2(e,t){let n,r,o,i,a;if(Xb(e)){let s=e.getAttribute("action");r=s?zt(s,t):null,n=e.getAttribute("method")||Ki,o=os(e.getAttribute("enctype"))||Bi,i=new FormData(e)}else if(Yb(e)||Zb(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?zt(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Ki,o=os(e.getAttribute("formenctype"))||os(s.getAttribute("enctype"))||Bi,i=new FormData(s,e),!n2()){let{name:u,type:h,value:c}=e;if(h==="image"){let p=u?`${u}.`:"";i.append(`${p}x`,"0"),i.append(`${p}y`,"0")}else u&&i.append(u,c)}}else{if(Ra(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ki,r=null,o=Bi,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ou(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function i2(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&zt(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function a2(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function s2(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function l2(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let a=await a2(i,n);return a.links?a.links():[]}return[]}));return f2(r.flat(1).filter(s2).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function gc(e,t,n,r,o,i){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,s=(l,u)=>{var h;return n[u].pathname!==l.pathname||((h=n[u].route.path)==null?void 0:h.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,u)=>a(l,u)||s(l,u)):i==="data"?t.filter((l,u)=>{var c;let h=r.routes[l.route.id];if(!h||!h.hasLoader)return!1;if(a(l,u)||s(l,u))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function u2(e,t,{includeHydrateFallback:n}={}){return c2(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function c2(e){return[...new Set(e)]}function d2(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function f2(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(d2(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function w0(){let e=E.useContext(zr);return ou(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function h2(){let e=E.useContext(Pa);return ou(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var iu=E.createContext(void 0);iu.displayName="FrameworkContext";function C0(){let e=E.useContext(iu);return ou(e,"You must render this element inside a <HydratedRouter> element"),e}function p2(e,t){let n=E.useContext(iu),[r,o]=E.useState(!1),[i,a]=E.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:h,onTouchStart:c}=t,p=E.useRef(null);E.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let g=b=>{b.forEach(x=>{a(x.isIntersecting)})},v=new IntersectionObserver(g,{threshold:.5});return p.current&&v.observe(p.current),()=>{v.disconnect()}}},[e]),E.useEffect(()=>{if(r){let g=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(g)}}},[r]);let f=()=>{o(!0)},m=()=>{o(!1),a(!1)};return n?e!=="intent"?[i,p,{}]:[i,p,{onFocus:ro(s,f),onBlur:ro(l,m),onMouseEnter:ro(u,f),onMouseLeave:ro(h,m),onTouchStart:ro(c,f)}]:[!1,p,{}]}function ro(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function g2({page:e,...t}){let{router:n}=w0(),r=E.useMemo(()=>i0(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?E.createElement(v2,{page:e,matches:r,...t}):null}function m2(e){let{manifest:t,routeModules:n}=C0(),[r,o]=E.useState([]);return E.useEffect(()=>{let i=!1;return l2(e,t,n).then(a=>{i||o(a)}),()=>{i=!0}},[e,t,n]),r}function v2({page:e,matches:t,...n}){let r=$n(),{future:o,manifest:i,routeModules:a}=C0(),{basename:s}=w0(),{loaderData:l,matches:u}=h2(),h=E.useMemo(()=>gc(e,t,u,i,r,"data"),[e,t,u,i,r]),c=E.useMemo(()=>gc(e,t,u,i,r,"assets"),[e,t,u,i,r]),p=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,v=!1;if(t.forEach(x=>{var $;let w=i.routes[x.route.id];!w||!w.hasLoader||(!h.some(M=>M.route.id===x.route.id)&&x.route.id in l&&(($=a[x.route.id])!=null&&$.shouldRevalidate)||w.hasClientLoader?v=!0:g.add(x.route.id))}),g.size===0)return[];let b=i2(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return v&&g.size>0&&b.searchParams.set("_routes",t.filter(x=>g.has(x.route.id)).map(x=>x.route.id).join(",")),[b.pathname+b.search]},[s,o.unstable_trailingSlashAwareDataRequests,l,r,i,h,t,e,a]),f=E.useMemo(()=>u2(c,i),[c,i]),m=m2(c);return E.createElement(E.Fragment,null,p.map(g=>E.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),f.map(g=>E.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),m.map(({key:g,link:v})=>E.createElement("link",{key:g,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function b2(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var y2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{y2&&(window.__reactRouterVersion="7.13.0")}catch{}function x2({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=E.useRef();o.current==null&&(o.current=Zv({window:r,v5Compat:!0}));let i=o.current,[a,s]=E.useState({action:i.action,location:i.location}),l=E.useCallback(u=>{n===!1?s(u):E.startTransition(()=>s(u))},[n]);return E.useLayoutEffect(()=>i.listen(l),[i,l]),E.createElement(Gb,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i,unstable_useTransitions:n})}var $0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ka=E.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:h,viewTransition:c,unstable_defaultShouldRevalidate:p,...f},m){let{basename:g,unstable_useTransitions:v}=E.useContext(ft),b=typeof u=="string"&&$0.test(u),x=d0(u,g);u=x.to;let w=Db(u,{relative:o}),[$,M,R]=p2(r,f),P=$2(u,{replace:a,state:s,target:l,preventScrollReset:h,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v});function k(L){t&&t(L),L.defaultPrevented||P(L)}let D=E.createElement("a",{...f,...R,href:x.absoluteURL||w,onClick:x.isExternal||i?t:k,ref:b2(m,M),target:l,"data-discover":!b&&n==="render"?"true":void 0});return $&&!b?E.createElement(E.Fragment,null,D,E.createElement(g2,{page:w})):D});ka.displayName="Link";var S0=E.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:a,viewTransition:s,children:l,...u},h){let c=ri(a,{relative:u.relative}),p=$n(),f=E.useContext(Pa),{navigator:m,basename:g}=E.useContext(ft),v=f!=null&&M2(c)&&s===!0,b=m.encodeLocation?m.encodeLocation(c).pathname:c.pathname,x=p.pathname,w=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(x=x.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&g&&(w=zt(w,g)||w);const $=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let M=x===b||!o&&x.startsWith(b)&&x.charAt($)==="/",R=w!=null&&(w===b||!o&&w.startsWith(b)&&w.charAt(b.length)==="/"),P={isActive:M,isPending:R,isTransitioning:v},k=M?t:void 0,D;typeof r=="function"?D=r(P):D=[r,M?"active":null,R?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let L=typeof i=="function"?i(P):i;return E.createElement(ka,{...u,"aria-current":k,className:D,ref:h,style:L,to:a,viewTransition:s},typeof l=="function"?l(P):l)});S0.displayName="NavLink";var w2=E.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=Ki,action:s,onSubmit:l,relative:u,preventScrollReset:h,viewTransition:c,unstable_defaultShouldRevalidate:p,...f},m)=>{let{unstable_useTransitions:g}=E.useContext(ft),v=R2(),b=k2(s,{relative:u}),x=a.toLowerCase()==="get"?"get":"post",w=typeof s=="string"&&$0.test(s),$=M=>{if(l&&l(M),M.defaultPrevented)return;M.preventDefault();let R=M.nativeEvent.submitter,P=(R==null?void 0:R.getAttribute("formmethod"))||a,k=()=>v(R||M.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:o,state:i,relative:u,preventScrollReset:h,viewTransition:c,unstable_defaultShouldRevalidate:p});g&&n!==!1?E.startTransition(()=>k()):k()};return E.createElement("form",{ref:m,method:x,action:b,onSubmit:r?l:$,...f,"data-discover":!w&&e==="render"?"true":void 0})});w2.displayName="Form";function C2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function E0(e){let t=E.useContext(zr);return me(t,C2(e)),t}function $2(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let u=v0(),h=$n(),c=ri(e,{relative:i});return E.useCallback(p=>{if(e2(p,t)){p.preventDefault();let f=n!==void 0?n:Mo(h)===Mo(c),m=()=>u(e,{replace:f,state:r,preventScrollReset:o,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:s});l?E.startTransition(()=>m()):m()}},[h,u,c,n,r,t,e,o,i,a,s,l])}function S2(e){wt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(fl(e)),n=E.useRef(!1),r=$n(),o=E.useMemo(()=>t2(r.search,n.current?null:t.current),[r.search]),i=v0(),a=E.useCallback((s,l)=>{const u=fl(typeof s=="function"?s(new URLSearchParams(o)):s);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}var E2=0,P2=()=>`__${String(++E2)}__`;function R2(){let{router:e}=E0("useSubmit"),{basename:t}=E.useContext(ft),n=zb(),r=e.fetch,o=e.navigate;return E.useCallback(async(i,a={})=>{let{action:s,method:l,encType:u,formData:h,body:c}=o2(i,t);if(a.navigate===!1){let p=a.fetcherKey||P2();await r(p,n,a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:h,body:c,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await o(a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:h,body:c,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}function k2(e,{relative:t}={}){let{basename:n}=E.useContext(ft),r=E.useContext(_t);me(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ri(e||".",{relative:t})},a=$n();if(e==null){i.search=a.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(h=>h==="")){s.delete("index"),l.filter(c=>c).forEach(c=>s.append("index",c));let h=s.toString();i.search=h?`?${h}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Ht([n,i.pathname])),Mo(i)}function M2(e,{relative:t}={}){let n=E.useContext(h0);me(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=E0("useViewTransitionState"),o=ri(e,{relative:t});if(!n.isTransitioning)return!1;let i=zt(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=zt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Gi(o.pathname,a)!=null||Gi(o.pathname,i)!=null}var Oo=function(e){var t=e.className;return y.jsx("div",{className:"animate-pulse bg-slate-100 dark:bg-slate-800 ".concat(t)})};function he(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var O2=["color"],T2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,O2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),D2=["color"],_2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,D2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),L2=["color"],F2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,L2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),I2=["color"],P0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,I2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),j2=["color"],N2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,j2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.50009 0.877014C3.84241 0.877014 0.877258 3.84216 0.877258 7.49984C0.877258 11.1575 3.8424 14.1227 7.50009 14.1227C11.1578 14.1227 14.1229 11.1575 14.1229 7.49984C14.1229 3.84216 11.1577 0.877014 7.50009 0.877014ZM1.82726 7.49984C1.82726 4.36683 4.36708 1.82701 7.50009 1.82701C10.6331 1.82701 13.1729 4.36683 13.1729 7.49984C13.1729 10.6328 10.6331 13.1727 7.50009 13.1727C4.36708 13.1727 1.82726 10.6328 1.82726 7.49984ZM8 4.50001C8 4.22387 7.77614 4.00001 7.5 4.00001C7.22386 4.00001 7 4.22387 7 4.50001V7.50001C7 7.63262 7.05268 7.7598 7.14645 7.85357L9.14645 9.85357C9.34171 10.0488 9.65829 10.0488 9.85355 9.85357C10.0488 9.65831 10.0488 9.34172 9.85355 9.14646L8 7.29291V4.50001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),A2=["color"],Lr=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,A2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M13.15 7.49998C13.15 4.66458 10.9402 1.84998 7.50002 1.84998C4.72167 1.84998 3.34849 3.9064 2.76335 5H4.5C4.77614 5 5 5.22386 5 5.5C5 5.77614 4.77614 6 4.5 6H1.5C1.22386 6 1 5.77614 1 5.5V2.5C1 2.22386 1.22386 2 1.5 2C1.77614 2 2 2.22386 2 2.5V4.31318C2.70453 3.07126 4.33406 0.849976 7.50002 0.849976C11.5628 0.849976 14.15 4.18537 14.15 7.49998C14.15 10.8146 11.5628 14.15 7.50002 14.15C5.55618 14.15 3.93778 13.3808 2.78548 12.2084C2.16852 11.5806 1.68668 10.839 1.35816 10.0407C1.25306 9.78536 1.37488 9.49315 1.63024 9.38806C1.8856 9.28296 2.17781 9.40478 2.2829 9.66014C2.56374 10.3425 2.97495 10.9745 3.4987 11.5074C4.47052 12.4963 5.83496 13.15 7.50002 13.15C10.9402 13.15 13.15 10.3354 13.15 7.49998ZM7.5 4.00001C7.77614 4.00001 8 4.22387 8 4.50001V7.29291L9.85355 9.14646C10.0488 9.34172 10.0488 9.65831 9.85355 9.85357C9.65829 10.0488 9.34171 10.0488 9.14645 9.85357L7.14645 7.85357C7.05268 7.7598 7 7.63262 7 7.50001V4.50001C7 4.22387 7.22386 4.00001 7.5 4.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),K2=["color"],au=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,K2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),B2=["color"],R0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,B2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),H2=["color"],V2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,H2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2.8 1L2.74967 0.99997C2.52122 0.999752 2.32429 0.999564 2.14983 1.04145C1.60136 1.17312 1.17312 1.60136 1.04145 2.14983C0.999564 2.32429 0.999752 2.52122 0.99997 2.74967L1 2.8V5.2L0.99997 5.25033C0.999752 5.47878 0.999564 5.67572 1.04145 5.85017C1.17312 6.39864 1.60136 6.82688 2.14983 6.95856C2.32429 7.00044 2.52122 7.00025 2.74967 7.00003L2.8 7H5.2L5.25033 7.00003C5.47878 7.00025 5.67572 7.00044 5.85017 6.95856C6.39864 6.82688 6.82688 6.39864 6.95856 5.85017C7.00044 5.67572 7.00025 5.47878 7.00003 5.25033L7 5.2V2.8L7.00003 2.74967C7.00025 2.52122 7.00044 2.32429 6.95856 2.14983C6.82688 1.60136 6.39864 1.17312 5.85017 1.04145C5.67572 0.999564 5.47878 0.999752 5.25033 0.99997L5.2 1H2.8ZM2.38328 2.01382C2.42632 2.00348 2.49222 2 2.8 2H5.2C5.50779 2 5.57369 2.00348 5.61672 2.01382C5.79955 2.05771 5.94229 2.20045 5.98619 2.38328C5.99652 2.42632 6 2.49222 6 2.8V5.2C6 5.50779 5.99652 5.57369 5.98619 5.61672C5.94229 5.79955 5.79955 5.94229 5.61672 5.98619C5.57369 5.99652 5.50779 6 5.2 6H2.8C2.49222 6 2.42632 5.99652 2.38328 5.98619C2.20045 5.94229 2.05771 5.79955 2.01382 5.61672C2.00348 5.57369 2 5.50779 2 5.2V2.8C2 2.49222 2.00348 2.42632 2.01382 2.38328C2.05771 2.20045 2.20045 2.05771 2.38328 2.01382ZM9.8 1L9.74967 0.99997C9.52122 0.999752 9.32429 0.999564 9.14983 1.04145C8.60136 1.17312 8.17312 1.60136 8.04145 2.14983C7.99956 2.32429 7.99975 2.52122 7.99997 2.74967L8 2.8V5.2L7.99997 5.25033C7.99975 5.47878 7.99956 5.67572 8.04145 5.85017C8.17312 6.39864 8.60136 6.82688 9.14983 6.95856C9.32429 7.00044 9.52122 7.00025 9.74967 7.00003L9.8 7H12.2L12.2503 7.00003C12.4788 7.00025 12.6757 7.00044 12.8502 6.95856C13.3986 6.82688 13.8269 6.39864 13.9586 5.85017C14.0004 5.67572 14.0003 5.47878 14 5.25033L14 5.2V2.8L14 2.74967C14.0003 2.52122 14.0004 2.32429 13.9586 2.14983C13.8269 1.60136 13.3986 1.17312 12.8502 1.04145C12.6757 0.999564 12.4788 0.999752 12.2503 0.99997L12.2 1H9.8ZM9.38328 2.01382C9.42632 2.00348 9.49222 2 9.8 2H12.2C12.5078 2 12.5737 2.00348 12.6167 2.01382C12.7995 2.05771 12.9423 2.20045 12.9862 2.38328C12.9965 2.42632 13 2.49222 13 2.8V5.2C13 5.50779 12.9965 5.57369 12.9862 5.61672C12.9423 5.79955 12.7995 5.94229 12.6167 5.98619C12.5737 5.99652 12.5078 6 12.2 6H9.8C9.49222 6 9.42632 5.99652 9.38328 5.98619C9.20045 5.94229 9.05771 5.79955 9.01382 5.61672C9.00348 5.57369 9 5.50779 9 5.2V2.8C9 2.49222 9.00348 2.42632 9.01382 2.38328C9.05771 2.20045 9.20045 2.05771 9.38328 2.01382ZM2.74967 7.99997L2.8 8H5.2L5.25033 7.99997C5.47878 7.99975 5.67572 7.99956 5.85017 8.04145C6.39864 8.17312 6.82688 8.60136 6.95856 9.14983C7.00044 9.32429 7.00025 9.52122 7.00003 9.74967L7 9.8V12.2L7.00003 12.2503C7.00025 12.4788 7.00044 12.6757 6.95856 12.8502C6.82688 13.3986 6.39864 13.8269 5.85017 13.9586C5.67572 14.0004 5.47878 14.0003 5.25033 14L5.2 14H2.8L2.74967 14C2.52122 14.0003 2.32429 14.0004 2.14983 13.9586C1.60136 13.8269 1.17312 13.3986 1.04145 12.8502C0.999564 12.6757 0.999752 12.4788 0.99997 12.2503L1 12.2V9.8L0.99997 9.74967C0.999752 9.52122 0.999564 9.32429 1.04145 9.14983C1.17312 8.60136 1.60136 8.17312 2.14983 8.04145C2.32429 7.99956 2.52122 7.99975 2.74967 7.99997ZM2.8 9C2.49222 9 2.42632 9.00348 2.38328 9.01382C2.20045 9.05771 2.05771 9.20045 2.01382 9.38328C2.00348 9.42632 2 9.49222 2 9.8V12.2C2 12.5078 2.00348 12.5737 2.01382 12.6167C2.05771 12.7995 2.20045 12.9423 2.38328 12.9862C2.42632 12.9965 2.49222 13 2.8 13H5.2C5.50779 13 5.57369 12.9965 5.61672 12.9862C5.79955 12.9423 5.94229 12.7995 5.98619 12.6167C5.99652 12.5737 6 12.5078 6 12.2V9.8C6 9.49222 5.99652 9.42632 5.98619 9.38328C5.94229 9.20045 5.79955 9.05771 5.61672 9.01382C5.57369 9.00348 5.50779 9 5.2 9H2.8ZM9.8 8L9.74967 7.99997C9.52122 7.99975 9.32429 7.99956 9.14983 8.04145C8.60136 8.17312 8.17312 8.60136 8.04145 9.14983C7.99956 9.32429 7.99975 9.52122 7.99997 9.74967L8 9.8V12.2L7.99997 12.2503C7.99975 12.4788 7.99956 12.6757 8.04145 12.8502C8.17312 13.3986 8.60136 13.8269 9.14983 13.9586C9.32429 14.0004 9.52122 14.0003 9.74967 14L9.8 14H12.2L12.2503 14C12.4788 14.0003 12.6757 14.0004 12.8502 13.9586C13.3986 13.8269 13.8269 13.3986 13.9586 12.8502C14.0004 12.6757 14.0003 12.4788 14 12.2503L14 12.2V9.8L14 9.74967C14.0003 9.52122 14.0004 9.32429 13.9586 9.14983C13.8269 8.60136 13.3986 8.17312 12.8502 8.04145C12.6757 7.99956 12.4788 7.99975 12.2503 7.99997L12.2 8H9.8ZM9.38328 9.01382C9.42632 9.00348 9.49222 9 9.8 9H12.2C12.5078 9 12.5737 9.00348 12.6167 9.01382C12.7995 9.05771 12.9423 9.20045 12.9862 9.38328C12.9965 9.42632 13 9.49222 13 9.8V12.2C13 12.5078 12.9965 12.5737 12.9862 12.6167C12.9423 12.7995 12.7995 12.9423 12.6167 12.9862C12.5737 12.9965 12.5078 13 12.2 13H9.8C9.49222 13 9.42632 12.9965 9.38328 12.9862C9.20045 12.9423 9.05771 12.7995 9.01382 12.6167C9.00348 12.5737 9 12.5078 9 12.2V9.8C9 9.49222 9.00348 9.42632 9.01382 9.38328C9.05771 9.20045 9.20045 9.05771 9.38328 9.01382Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),z2=["color"],U2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,z2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M1 3.25C1 3.11193 1.11193 3 1.25 3H13.75C13.8881 3 14 3.11193 14 3.25V10.75C14 10.8881 13.8881 11 13.75 11H1.25C1.11193 11 1 10.8881 1 10.75V3.25ZM1.25 2C0.559643 2 0 2.55964 0 3.25V10.75C0 11.4404 0.559644 12 1.25 12H5.07341L4.82991 13.2986C4.76645 13.6371 5.02612 13.95 5.37049 13.95H9.62951C9.97389 13.95 10.2336 13.6371 10.1701 13.2986L9.92659 12H13.75C14.4404 12 15 11.4404 15 10.75V3.25C15 2.55964 14.4404 2 13.75 2H1.25ZM9.01091 12H5.98909L5.79222 13.05H9.20778L9.01091 12Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),q2=["color"],W2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,q2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),G2=["color"],hl=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,G2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Q2=["color"],Y2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,Q2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8.625 2.5C8.625 3.12132 8.12132 3.625 7.5 3.625C6.87868 3.625 6.375 3.12132 6.375 2.5C6.375 1.87868 6.87868 1.375 7.5 1.375C8.12132 1.375 8.625 1.87868 8.625 2.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM7.5 13.625C8.12132 13.625 8.625 13.1213 8.625 12.5C8.625 11.8787 8.12132 11.375 7.5 11.375C6.87868 11.375 6.375 11.8787 6.375 12.5C6.375 13.1213 6.87868 13.625 7.5 13.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),X2=["color"],Z2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,X2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),J2=["color"],e5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,J2);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),t5=["color"],n5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,t5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M12.3536 13.3536C12.1583 13.5488 11.8417 13.5488 11.6465 13.3536L6.39645 8.10355C6.36478 8.07188 6.33824 8.03702 6.31685 8H5.00002C4.78719 8 4.59769 7.86528 4.52777 7.66426L2.12777 0.764277C2.05268 0.548387 2.13355 0.309061 2.3242 0.182972C2.51486 0.0568819 2.76674 0.0761337 2.93602 0.229734L8.336 5.12972C8.44044 5.22449 8.50001 5.35897 8.50001 5.5V5.81684C8.53702 5.83824 8.57189 5.86478 8.60356 5.89645L13.8536 11.1464C14.0488 11.3417 14.0488 11.6583 13.8536 11.8536L12.3536 13.3536ZM8.25 6.95711L7.45711 7.75L12 12.2929L12.7929 11.5L8.25 6.95711ZM3.71669 2.28845L5.35549 7H6.2929L7.50001 5.79289V5.72146L3.71669 2.28845Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),r5=["color"],o5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,r5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),i5=["color"],a5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,i5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.35355 1.85355C3.54882 1.65829 3.54882 1.34171 3.35355 1.14645C3.15829 0.951184 2.84171 0.951184 2.64645 1.14645L0.646447 3.14645C0.451184 3.34171 0.451184 3.65829 0.646447 3.85355L2.64645 5.85355C2.84171 6.04882 3.15829 6.04882 3.35355 5.85355C3.54882 5.65829 3.54882 5.34171 3.35355 5.14645L2.20711 4H9.5C11.433 4 13 5.567 13 7.5C13 7.77614 13.2239 8 13.5 8C13.7761 8 14 7.77614 14 7.5C14 5.01472 11.9853 3 9.5 3H2.20711L3.35355 1.85355ZM2 7.5C2 7.22386 1.77614 7 1.5 7C1.22386 7 1 7.22386 1 7.5C1 9.98528 3.01472 12 5.5 12H12.7929L11.6464 13.1464C11.4512 13.3417 11.4512 13.6583 11.6464 13.8536C11.8417 14.0488 12.1583 14.0488 12.3536 13.8536L14.3536 11.8536C14.5488 11.6583 14.5488 11.3417 14.3536 11.1464L12.3536 9.14645C12.1583 8.95118 11.8417 8.95118 11.6464 9.14645C11.4512 9.34171 11.4512 9.65829 11.6464 9.85355L12.7929 11H5.5C3.567 11 2 9.433 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),s5=["color"],l5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,s5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM4.50003 7C4.22389 7 4.00003 7.22386 4.00003 7.5C4.00003 7.77614 4.22389 8 4.50003 8H10.5C10.7762 8 11 7.77614 11 7.5C11 7.22386 10.7762 7 10.5 7H4.50003Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),u5=["color"],c5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,u5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),d5=["color"],k0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,d5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),f5=["color"],M0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,f5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),h5=["color"],mc=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,h5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),p5=["color"],O0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,p5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM7.50003 4C7.77617 4 8.00003 4.22386 8.00003 4.5V7H10.5C10.7762 7 11 7.22386 11 7.5C11 7.77614 10.7762 8 10.5 8H8.00003V10.5C8.00003 10.7761 7.77617 11 7.50003 11C7.22389 11 7.00003 10.7761 7.00003 10.5V8H4.50003C4.22389 8 4.00003 7.77614 4.00003 7.5C4.00003 7.22386 4.22389 7 4.50003 7H7.00003V4.5C7.00003 4.22386 7.22389 4 7.50003 4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),g5=["color"],m5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,g5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}),d.createElement("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 9.1488 1.47969 10.657 2.4767 11.8162L1.64647 12.6464C1.45121 12.8417 1.45121 13.1583 1.64647 13.3535C1.84173 13.5488 2.15832 13.5488 2.35358 13.3535L3.18383 12.5233C4.34302 13.5202 5.8511 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 5.85107 13.5202 4.34298 12.5233 3.1838L13.3536 2.35355C13.5488 2.15829 13.5488 1.8417 13.3536 1.64644C13.1583 1.45118 12.8417 1.45118 12.6465 1.64644L11.8162 2.47667C10.657 1.47966 9.14883 0.877045 7.49991 0.877045ZM11.1423 3.15065C10.1568 2.32449 8.88644 1.82704 7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 8.88641 2.32452 10.1568 3.15069 11.1422L11.1423 3.15065ZM3.85781 11.8493C4.84322 12.6753 6.11348 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 6.11345 12.6754 4.84319 11.8493 3.85778L3.85781 11.8493Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),v5=["color"],su=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,v5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M4.10876 14L9.46582 1H10.8178L5.46074 14H4.10876Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),b5=["color"],y5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,b5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),x5=["color"],w5=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,x5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M0.900024 7.50002C0.900024 3.85495 3.85495 0.900024 7.50002 0.900024C11.1451 0.900024 14.1 3.85495 14.1 7.50002C14.1 11.1451 11.1451 14.1 7.50002 14.1C3.85495 14.1 0.900024 11.1451 0.900024 7.50002ZM7.50002 1.80002C4.35201 1.80002 1.80002 4.35201 1.80002 7.50002C1.80002 10.648 4.35201 13.2 7.50002 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.35201 10.648 1.80002 7.50002 1.80002ZM3.07504 7.50002C3.07504 5.05617 5.05618 3.07502 7.50004 3.07502C9.94388 3.07502 11.925 5.05617 11.925 7.50002C11.925 9.94386 9.94388 11.925 7.50004 11.925C5.05618 11.925 3.07504 9.94386 3.07504 7.50002ZM7.50004 3.92502C5.52562 3.92502 3.92504 5.52561 3.92504 7.50002C3.92504 9.47442 5.52563 11.075 7.50004 11.075C9.47444 11.075 11.075 9.47442 11.075 7.50002C11.075 5.52561 9.47444 3.92502 7.50004 3.92502ZM7.50004 5.25002C6.2574 5.25002 5.25004 6.25739 5.25004 7.50002C5.25004 8.74266 6.2574 9.75002 7.50004 9.75002C8.74267 9.75002 9.75004 8.74266 9.75004 7.50002C9.75004 6.25738 8.74267 5.25002 7.50004 5.25002ZM6.05004 7.50002C6.05004 6.69921 6.69923 6.05002 7.50004 6.05002C8.30084 6.05002 8.95004 6.69921 8.95004 7.50002C8.95004 8.30083 8.30084 8.95002 7.50004 8.95002C6.69923 8.95002 6.05004 8.30083 6.05004 7.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),C5=["color"],Ur=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=he(e,C5);return d.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),d.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);d.createContext(null);const T0=d.createContext({}),vc=d.createContext(null),$5=d.createContext(null),se=typeof document<"u"?d.useLayoutEffect:()=>{};function S5(e){let[t,n]=d.useState(e),r=d.useRef(t),o=d.useRef(null),i=d.useRef(()=>{if(!o.current)return;let s=o.current.next();if(s.done){o.current=null;return}r.current===s.value?i.current():n(s.value)});se(()=>{r.current=t,o.current&&i.current()});let a=d.useCallback(s=>{o.current=s(r.current),i.current()},[i]);return[t,a]}const D0={prefix:String(Math.round(Math.random()*1e10)),current:0},_0=d.createContext(D0),E5=d.createContext(!1);let is=new WeakMap;function P5(e=!1){let t=d.useContext(_0),n=d.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=is.get(i);a==null?is.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,is.delete(i))}n.current=++t.current}return n.current}function R5(e){let t=d.useContext(_0),n=P5(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function k5(e){let t=d.useId(),[n]=d.useState(Sn()),r=n?"react-aria":`react-aria${D0.prefix}`;return e||`${r}-${t}`}const M5=typeof d.useId=="function"?k5:R5;function O5(){return!1}function T5(){return!0}function D5(e){return()=>{}}function Sn(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(D5,O5,T5):d.useContext(E5)}let _5=!!(typeof window<"u"&&window.document&&window.document.createElement),gr=new Map,po;typeof FinalizationRegistry<"u"&&(po=new FinalizationRegistry(e=>{gr.delete(e)}));function rt(e){let[t,n]=d.useState(e),r=d.useRef(null),o=M5(t),i=d.useRef(null);if(po&&po.register(i,o),_5){const a=gr.get(o);a&&!a.includes(r)?a.push(r):gr.set(o,[r])}return se(()=>{let a=o;return()=>{po&&po.unregister(i),gr.delete(a)}},[o]),d.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),o}function L5(e,t){if(e===t)return e;let n=gr.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=gr.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Hi(e=[]){let t=rt(),[n,r]=S5(t),o=d.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return se(o,[t,o,...e]),n}function qr(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const oe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ct=e=>e&&"window"in e&&e.window===e?e:oe(e).defaultView||window;function F5(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function I5(e){return F5(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let j5=!1;function Ma(){return j5}function te(e,t){if(!Ma())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:I5(n)?n=n.host:n=n.parentNode}return!1}const Oe=(e=document)=>{var t;if(!Ma())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Ce(e){return Ma()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class N5{get currentNode(){return this._currentNode}set currentNode(t){if(!te(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,o=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=r,s=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=o,this._currentSetFor.add(s),r=o=a.host}else r=r.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return te(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let o;if(typeof this.filter=="function"?o=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let i;if(typeof this.filter=="function"?i=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(i=this.filter.acceptNode(n)),i===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(a);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const i=n.shadowRoot;if(i){const a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function A5(e,t,n,r){return Ma()?new N5(e,t,n,r):e.createTreeWalker(t,n,r)}function Oa(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=bc(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():bc(e[i],null)})}}}function bc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function L0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=L0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=L0(e))&&(r&&(r+=" "),r+=t);return r}function ie(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=qr(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Fr(i,a):o==="id"&&i&&a?t.id=L5(i,a):o==="ref"&&i&&a?t.ref=Oa(i,a):t[o]=a!==void 0?a:i}}return t}const K5=new Set(["id"]),B5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),H5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),V5=new Set(["dir","lang","hidden","inert","translate"]),yc=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),z5=/^(data-.*)$/;function Pe(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:a}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(K5.has(l)||n&&B5.has(l)||r&&H5.has(l)||o&&V5.has(l)||i&&(yc.has(l)||l.endsWith("Capture")&&yc.has(l.slice(0,-7)))||a!=null&&a.has(l)||z5.test(l))&&(s[l]=e[l]);return s}function Ct(e){if(U5())e.focus({preventScroll:!0});else{let t=q5(e);e.focus(),W5(t)}}let vi=null;function U5(){if(vi==null){vi=!1;try{document.createElement("div").focus({get preventScroll(){return vi=!0,!0}})}catch{}}return vi}function q5(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function W5(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ta(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function lu(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Wt(e){let t=null;return()=>(t==null&&(t=e()),t)}const Un=Wt(function(){return lu(/^Mac/i)}),G5=Wt(function(){return lu(/^iPhone/i)}),F0=Wt(function(){return lu(/^iPad/i)||Un()&&navigator.maxTouchPoints>1}),Da=Wt(function(){return G5()||F0()}),Q5=Wt(function(){return Un()||Da()}),I0=Wt(function(){return Ta(/AppleWebKit/i)&&!j0()}),j0=Wt(function(){return Ta(/Chrome/i)}),uu=Wt(function(){return Ta(/Android/i)}),Y5=Wt(function(){return Ta(/Firefox/i)}),X5=d.createContext({isNative:!0,open:ey,useHref:e=>e});function _a(){return d.useContext(X5)}function Z5(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Ut(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;Y5()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Un()?i=!0:a=!0);let u=I0()&&Un()&&!F0()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});Ut.isOpening=n,Ct(e),e.dispatchEvent(u),Ut.isOpening=!1}Ut.isOpening=!1;function J5(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function ey(e,t){J5(e,n=>Ut(n,t))}function ty(e){let t=_a();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function ny(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Z5(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let Jt=new Map,pl=new Set;function xc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Jt.get(r.target);o||(o=new Set,Jt.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Jt.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Jt.delete(r.target)),Jt.size===0)){for(let i of pl)i();pl.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?xc():document.addEventListener("DOMContentLoaded",xc));function ry(){for(const[e]of Jt)"isConnected"in e&&!e.isConnected&&Jt.delete(e)}function N0(e){requestAnimationFrame(()=>{ry(),Jt.size===0?e():pl.add(e)})}function La(){let e=d.useRef(new Map),t=d.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,l,s)},[]),n=d.useCallback((o,i,a,s)=>{var l;let u=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,u,s),e.current.delete(a)},[]),r=d.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return d.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function A0(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=rt(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function Wr(e){const t=d.useRef(null),n=d.useRef(void 0),r=d.useCallback(o=>{if(typeof e=="function"){const i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return d.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}var as;const oy=(as=d.useInsertionEffect)!==null&&as!==void 0?as:se;function dn(e){const t=d.useRef(null);return oy(()=>{t.current=e},[e]),d.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function wc(e,t){const n=d.useRef(!0),r=d.useRef(null);se(()=>(n.current=!0,()=>{n.current=!1}),[]),se(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}function iy(){return typeof window.ResizeObserver<"u"}function Qi(e){const{ref:t,box:n,onResize:r}=e;let o=dn(r);d.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(iy()){const a=new window.ResizeObserver(s=>{s.length&&o()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,n])}function cu(e,t){se(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function qn(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function K0(e,t){let n=e;for(qn(n,t)&&(n=n.parentElement);n&&!qn(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ay(e,t){const n=[];for(;e&&e!==document.documentElement;)qn(e,t)&&n.push(e),e=e.parentElement;return n}function lr(e){return Un()?e.metaKey:e.ctrlKey}const sy=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yo(e){return e instanceof HTMLInputElement&&!sy.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let We=typeof document<"u"&&window.visualViewport;function ly(){let e=Sn(),[t,n]=d.useState(()=>e?{width:0,height:0}:ss());return d.useEffect(()=>{let r=s=>{n(l=>s.width===l.width&&s.height===l.height?l:s)},o=()=>{We&&We.scale>1||r(ss())},i,a=s=>{We&&We.scale>1||yo(s.target)&&(i=requestAnimationFrame(()=>{(!document.activeElement||!yo(document.activeElement))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(ss()),window.addEventListener("blur",a,!0),We?We.addEventListener("resize",o):window.addEventListener("resize",o),()=>{cancelAnimationFrame(i),window.removeEventListener("blur",a,!0),We?We.removeEventListener("resize",o):window.removeEventListener("resize",o)}},[]),t}function ss(){return{width:We?We.width*We.scale:document.documentElement.clientWidth,height:We?We.height*We.scale:document.documentElement.clientHeight}}let uy=0;const ls=new Map;function cy(e){let[t,n]=d.useState();return se(()=>{if(!e)return;let r=ls.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${uy++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},ls.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),ls.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function bi(e,t,n,r){let o=dn(n),i=n==null;d.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i])}function B0(e,t){let n=Cc(e,t,"left"),r=Cc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:h,scrollPaddingRight:c,scrollPaddingBottom:p,scrollPaddingLeft:f}=getComputedStyle(e),m=a+parseInt(u,10),g=s+parseInt(l,10),v=m+e.clientWidth,b=g+e.clientHeight,x=parseInt(h,10)||0,w=parseInt(p,10)||0,$=parseInt(c,10)||0,M=parseInt(f,10)||0;n<=a+M?a=n-parseInt(u,10)-M:n+o>v-$&&(a+=n+o-v+$),r<=g+x?s=r-parseInt(l,10)-x:r+i>b-w&&(s+=r+i-b+w),e.scrollLeft=a,e.scrollTop=s}function Cc(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(te(t.offsetParent,e)){o-=e[r];break}t=t.offsetParent}return o}function $c(e,t){if(e&&te(document,e)){let a=document.scrollingElement||document.documentElement,s=window.getComputedStyle(a).overflow==="hidden";if(s){let l=ay(e);s||l.push(a);for(let u of l)B0(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:c}=e.getBoundingClientRect();if(Math.abs(l-h)>1||Math.abs(u-c)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function H0(e){return e.pointerType===""&&e.isTrusted?!0:uu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function dy(e){return!uu()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const fy="react-aria-clear-focus",hy="react-aria-focus";function Fa(e,t=!0){let[n,r]=d.useState(!0),o=n&&t;return se(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),V0(e,o,d.useCallback(()=>r(!1),[])),o}function Yi(e,t){let[n,r]=d.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let o=n==="exiting";return V0(e,o,d.useCallback(()=>{r(i=>i==="exiting"?"closed":i)},[])),o}function V0(e,t,n){se(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let o=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{o||Hr.flushSync(()=>{n()})}).catch(()=>{}),()=>{o=!0}}},[e,t,n])}const py=typeof Element<"u"&&"checkVisibility"in Element.prototype;function gy(e){const t=ct(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function my(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function du(e,t){return py?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&gy(e)&&my(e,t)&&(!e.parentElement||du(e.parentElement,e))}const fu=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],vy=fu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";fu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const by=fu.join(':not([hidden]):not([tabindex="-1"]),');function z0(e){return e.matches(vy)&&du(e)&&!q0(e)}function U0(e){return e.matches(by)&&du(e)&&!q0(e)}function q0(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var us;const yy=typeof document<"u"?(us=d.useInsertionEffect)!==null&&us!==void 0?us:d.useLayoutEffect:()=>{};function oi(e,t,n){let[r,o]=d.useState(e||t),i=d.useRef(r),a=d.useRef(e!==void 0),s=e!==void 0;d.useEffect(()=>{a.current,a.current=s},[s]);let l=s?e:r;yy(()=>{i.current=l});let[,u]=d.useReducer(()=>({}),{}),h=d.useCallback((c,...p)=>{let f=typeof c=="function"?c(i.current):c;Object.is(i.current,f)||(i.current=f,o(f),u(),n==null||n(f,...p))},[n]);return[l,h]}function To(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Xi=Symbol("default");function En({values:e,children:t}){for(let[n,r]of e)t=d.createElement(n.Provider,{value:r},t);return t}function ht(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:s,render:l}=e;return d.useMemo(()=>{let u,h,c;return typeof t=="function"?u=t({...s,defaultClassName:o}):u=t,typeof n=="function"?h=n({...s,defaultStyle:a||{}}):h=n,typeof r=="function"?c=r({...s,defaultChildren:i}):r==null?c=i:c=r,{className:u??o,style:h||a?{...a,...h}:void 0,children:c??i,"data-rac":"",render:l?p=>l(p,s):void 0}},[t,n,r,o,i,a,s,l])}function hu(e,t){let n=d.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Xi;if(!n.slots[r]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return n.slots[r]}return n}function pt(e,t,n){let r=hu(n,e.slot)||{},{ref:o,...i}=r,a=Wr(d.useMemo(()=>Oa(t,o),[t,o])),s=ie(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?s.style=l=>{let u=typeof i.style=="function"?i.style(l):i.style,h={...l.defaultStyle,...u},c=typeof e.style=="function"?e.style({...l,defaultStyle:h}):e.style;return{...h,...c}}:s.style={...i.style,...e.style}),[s,a]}function W0(e=!0){let[t,n]=d.useState(e),r=d.useRef(!1),o=d.useCallback(i=>{r.current=!0,n(!!i)},[]);return se(()=>{r.current||n(!1)},[]),[o,t]}function xy(e,t,n){let{render:r,...o}=t,i=d.useRef(null),a=d.useMemo(()=>Oa(n,i),[n,i]);se(()=>{},[e,r]);let s={...o,ref:a};return r?r(s,void 0):d.createElement(e,s)}const Sc={},Qe=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=Sc[t];return n||(n=d.forwardRef(xy.bind(null,t)),Sc[t]=n),n}}),G0=7e3;let Et=null;function Ec(e,t="assertive",n=G0){Et?Et.announce(e,t,n):(Et=new wy,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Et.announce(e,t,n):setTimeout(()=>{Et!=null&&Et.isAttached()&&(Et==null||Et.announce(e,t,n))},100))}class wy{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=G0){var o,i;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(a):(i=this.politeLog)===null||i===void 0||i.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const ut={top:"top",bottom:"top",left:"left",right:"left"},Zi={top:"bottom",bottom:"top",left:"right",right:"left"},Cy={top:"left",left:"top"},gl={top:"height",left:"width"},Q0={width:"totalWidth",height:"totalHeight"},yi={};let $y=()=>typeof document<"u"?window.visualViewport:null;function Pc(e,t){let n=0,r=0,o=0,i=0,a=0,s=0,l={};var u;let h=((u=t==null?void 0:t.scale)!==null&&u!==void 0?u:1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let g=document.documentElement;o=g.clientWidth,i=g.clientHeight;var c;n=(c=t==null?void 0:t.width)!==null&&c!==void 0?c:o;var p;r=(p=t==null?void 0:t.height)!==null&&p!==void 0?p:i,l.top=g.scrollTop||e.scrollTop,l.left=g.scrollLeft||e.scrollLeft,t&&(a=t.offsetTop,s=t.offsetLeft)}else({width:n,height:r,top:a,left:s}=Do(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,o=n,i=r;if(I0()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h){l.top=0,l.left=0;var f;a=(f=t==null?void 0:t.pageTop)!==null&&f!==void 0?f:0;var m;s=(m=t==null?void 0:t.pageLeft)!==null&&m!==void 0?m:0}return{width:n,height:r,totalWidth:o,totalHeight:i,scroll:l,top:a,left:s}}function Sy(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Rc(e,t,n,r,o,i,a){var s;let l=(s=o.scroll[e])!==null&&s!==void 0?s:0,u=r[gl[e]],h=a[e]+r.scroll[ut[e]]+i,c=a[e]+r.scroll[ut[e]]+u-i,p=t-l+r.scroll[ut[e]]+a[e]-r[ut[e]],f=t-l+n+r.scroll[ut[e]]+a[e]-r[ut[e]];return p<h?h-p:f>c?Math.max(c-f,h-p):0}function Ey(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function kc(e){if(yi[e])return yi[e];let[t,n]=e.split(" "),r=ut[t]||"right",o=Cy[r];ut[n]||(n="center");let i=gl[r],a=gl[o];return yi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},yi[e]}function cs(e,t,n,r,o,i,a,s,l,u,h){let{placement:c,crossPlacement:p,axis:f,crossAxis:m,size:g,crossSize:v}=r,b={};var x;b[m]=(x=e[m])!==null&&x!==void 0?x:0;var w,$,M,R;p==="center"?b[m]+=(((w=e[v])!==null&&w!==void 0?w:0)-(($=n[v])!==null&&$!==void 0?$:0))/2:p!==m&&(b[m]+=((M=e[v])!==null&&M!==void 0?M:0)-((R=n[v])!==null&&R!==void 0?R:0)),b[m]+=i;const P=e[m]-n[v]+l+u,k=e[m]+e[v]-l-u;if(b[m]=To(b[m],P,k),c===f){let D=s?h[g]:h[Q0[g]];b[Zi[f]]=Math.floor(D-e[f]+o)}else b[f]=Math.floor(e[f]+e[g]+o);return b}function Py(e,t,n,r,o,i,a,s,l,u,h){var c,p;let f=(e.top!=null?e.top:l[Q0.height]-((c=e.bottom)!==null&&c!==void 0?c:0)-a)-((p=l.scroll.top)!==null&&p!==void 0?p:0),m=u?n.top:0;var g,v,b;let x={top:Math.max(t.top+m,((g=h==null?void 0:h.offsetTop)!==null&&g!==void 0?g:t.top)+m),bottom:Math.min(t.top+t.height+m,((v=h==null?void 0:h.offsetTop)!==null&&v!==void 0?v:0)+((b=h==null?void 0:h.height)!==null&&b!==void 0?b:0))};var w,$,M,R;return s!=="top"?Math.max(0,x.bottom-f-(((w=o.top)!==null&&w!==void 0?w:0)+(($=o.bottom)!==null&&$!==void 0?$:0)+i)):Math.max(0,f+a-x.top-(((M=o.top)!==null&&M!==void 0?M:0)+((R=o.bottom)!==null&&R!==void 0?R:0)+i))}function Mc(e,t,n,r,o,i,a,s){let{placement:l,axis:u,size:h}=i;var c,p;if(l===u)return Math.max(0,n[u]-((c=a.scroll[u])!==null&&c!==void 0?c:0)-(e[u]+(s?t[u]:0))-((p=r[u])!==null&&p!==void 0?p:0)-r[Zi[u]]-o);var f,m;return Math.max(0,e[h]+e[u]+(s?t[u]:0)-n[u]-n[h]+((f=a.scroll[u])!==null&&f!==void 0?f:0)-((m=r[u])!==null&&m!==void 0?m:0)-r[Zi[u]]-o)}function Ry(e,t,n,r,o,i,a,s,l,u,h,c,p,f,m,g,v,b){let x=kc(e),{size:w,crossAxis:$,crossSize:M,placement:R,crossPlacement:P}=x,k=cs(t,s,n,x,h,c,u,p,m,g,l),D=h,L=Mc(s,u,t,o,i+h,x,l,v);if(a&&n[w]>L){let de=kc(`${Zi[R]} ${P}`),ve=cs(t,s,n,de,h,c,u,p,m,g,l);Mc(s,u,t,o,i+h,de,l,v)>L&&(x=de,k=ve,D=h)}let N="bottom";x.axis==="top"?x.placement==="top"?N="top":x.placement==="bottom"&&(N="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?N="bottom":x.crossPlacement==="bottom"&&(N="top"));let B=Rc($,k[$],n[M],s,l,i,u);k[$]+=B;let A=Py(k,s,u,p,o,i,n.height,N,l,v,b);f&&f<A&&(A=f),n.height=Math.min(n.height,A),k=cs(t,s,n,x,D,c,u,p,m,g,l),B=Rc($,k[$],n[M],s,l,i,u),k[$]+=B;let _={},T=t[$]-k[$]-o[ut[$]],I=T+.5*t[M];const z=m/2+g;var G,q,S,F;const O=ut[$]==="left"?((G=o.left)!==null&&G!==void 0?G:0)+((q=o.right)!==null&&q!==void 0?q:0):((S=o.top)!==null&&S!==void 0?S:0)+((F=o.bottom)!==null&&F!==void 0?F:0),j=n[M]-O-m/2-g,H=t[$]+m/2-(k[$]+o[ut[$]]),K=t[$]+t[M]-m/2-(k[$]+o[ut[$]]),X=To(I,H,K);_[$]=To(X,z,j),{placement:R,crossPlacement:P}=x,m?T=_[$]:P==="right"?T+=t[M]:P==="center"&&(T+=t[M]/2);let pe=R==="left"||R==="top"?n[w]:0,U={x:R==="top"||R==="bottom"?T:pe,y:R==="left"||R==="right"?T:pe};return{position:k,maxHeight:A,arrowOffsetLeft:_.left,arrowOffsetTop:_.top,placement:R,triggerAnchorPoint:U}}function ky(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:u,maxHeight:h,arrowSize:c=0,arrowBoundaryOffset:p=0}=e,f=$y(),m=r instanceof HTMLElement?My(r):document.documentElement,g=m===document.documentElement;const v=window.getComputedStyle(m).position;let b=!!v&&v!=="static",x=g?Do(n,!1):Oc(n,m,!1);if(!g){let{marginTop:_,marginLeft:T}=window.getComputedStyle(n);x.top+=parseInt(_,10)||0,x.left+=parseInt(T,10)||0}let w=Do(r,!0),$=Ey(r);var M,R;w.width+=((M=$.left)!==null&&M!==void 0?M:0)+((R=$.right)!==null&&R!==void 0?R:0);var P,k;w.height+=((P=$.top)!==null&&P!==void 0?P:0)+((k=$.bottom)!==null&&k!==void 0?k:0);let D=Sy(o),L=Pc(s,f),N=Pc(m,f),B=Oc(s,m,!1),A=te(s,m);return Ry(t,x,w,D,$,i,a,L,N,B,l,u,b,h,c,p,A,f)}function pu(e,t){let{top:n,left:r,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:n,left:r,width:o,height:i}}function Do(e,t){let{top:n,left:r,width:o,height:i}=pu(e,t),{scrollTop:a,scrollLeft:s,clientTop:l,clientLeft:u}=document.documentElement;return{top:n+a-l,left:r+s-u,width:o,height:i}}function Oc(e,t,n){let r=window.getComputedStyle(e),o;if(r.position==="fixed")o=pu(e,n);else{o=Do(e,n);let i=Do(t,n),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(r.marginTop,10)||0,o.left-=parseInt(r.marginLeft,10)||0,o}function My(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Tc(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Tc(t);)t=t.parentElement;return t||document.documentElement}function Tc(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Y0=new WeakMap;function Oy(e){let{triggerRef:t,isOpen:n,onClose:r}=e;d.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!te(a,t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let s=r||Y0.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}const Ty=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Dy=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function _y(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Ty.has(n.script)}let t=e.split("-")[0];return Dy.has(t)}const X0=Symbol.for("react-aria.i18n.locale");function Z0(){let e=typeof window<"u"&&window[X0]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:_y(e)?"rtl":"ltr"}}let ml=Z0(),go=new Set;function Dc(){ml=Z0();for(let e of go)e(ml)}function Ly(){let e=Sn(),[t,n]=d.useState(ml);return d.useEffect(()=>(go.size===0&&window.addEventListener("languagechange",Dc),go.add(n),()=>{go.delete(n),go.size===0&&window.removeEventListener("languagechange",Dc)}),[]),e?{locale:typeof window<"u"&&window[X0]||"en-US",direction:"ltr"}:t}const Fy=d.createContext(null);function Xn(){let e=Ly();return d.useContext(Fy)||e}const Iy=Symbol.for("react-aria.i18n.locale"),jy=Symbol.for("react-aria.i18n.strings");let or;class Ia{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=Ny(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Iy];if(or===void 0){let o=window[jy];if(!o)return null;or={};for(let i in o)or[i]=new Ia({[n]:o[i]},n)}let r=or==null?void 0:or[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function Ny(e,t,n="en-US"){if(t[e])return t[e];let r=Ay(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function Ay(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const _c=new Map,Lc=new Map;class Ky{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=_c.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),_c.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Lc.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Lc.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Fc=new WeakMap;function By(e){let t=Fc.get(e);return t||(t=new Ia(e),Fc.set(e,t)),t}function Hy(e,t){return t&&Ia.getGlobalDictionaryForPackage(t)||By(e)}function J0(e,t){let{locale:n}=Xn(),r=Hy(e,t);return d.useMemo(()=>new Ky(n,r),[n,r])}function Vy(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zy(e,t,n){Vy(e,t),t.set(e,n)}let ds=new Map,vl=!1;try{vl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ji=!1;try{Ji=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const eh={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Uy{format(t){let n="";if(!vl&&this.options.signDisplay!=null?n=Wy(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Ji){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=eh[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!vl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Ji&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=qy(t,n),this.options=n}}function qy(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Ji){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=eh[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(ds.has(o))return ds.get(o);let i=new Intl.NumberFormat(e,t);return ds.set(o,i),i}function Wy(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}function Gy(e={}){let{locale:t}=Xn();return d.useMemo(()=>new Uy(t,e),[t,e])}let fs=new Map;function Qy(e){let{locale:t}=Xn(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(fs.has(n))return fs.get(n);let r=new Intl.Collator(t,e);return fs.set(n,r),r}let we=typeof document<"u"?window.visualViewport:null;function th(e){let{direction:t}=Xn(),{arrowSize:n,targetRef:r,overlayRef:o,arrowRef:i,scrollRef:a=o,placement:s="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:c=0,crossOffset:p=0,shouldUpdatePosition:f=!0,isOpen:m=!0,onClose:g,maxHeight:v,arrowBoundaryOffset:b=0}=e,[x,w]=d.useState(null),$=[f,s,o.current,r.current,i==null?void 0:i.current,a.current,l,u,h,c,p,m,t,v,b,n],M=d.useRef(we==null?void 0:we.scale);d.useEffect(()=>{m&&(M.current=we==null?void 0:we.scale)},[m]);let R=d.useCallback(()=>{if(f===!1||!m||!o.current||!r.current||!h||(we==null?void 0:we.scale)!==M.current)return;let B=null;if(a.current&&te(a.current,document.activeElement)){var A;let S=(A=document.activeElement)===null||A===void 0?void 0:A.getBoundingClientRect(),F=a.current.getBoundingClientRect();var _;if(B={type:"top",offset:((_=S==null?void 0:S.top)!==null&&_!==void 0?_:0)-F.top},B.offset>F.height/2){B.type="bottom";var T;B.offset=((T=S==null?void 0:S.bottom)!==null&&T!==void 0?T:0)-F.bottom}}let I=o.current;if(!v&&o.current){var z;I.style.top="0px",I.style.bottom="";var G;I.style.maxHeight=((G=(z=window.visualViewport)===null||z===void 0?void 0:z.height)!==null&&G!==void 0?G:window.innerHeight)+"px"}let q=ky({placement:Xy(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:a.current||o.current,padding:l,shouldFlip:u,boundaryElement:h,offset:c,crossOffset:p,maxHeight:v,arrowSize:n??(i!=null&&i.current?pu(i.current,!0).width:0),arrowBoundaryOffset:b});if(q.position){if(I.style.top="",I.style.bottom="",I.style.left="",I.style.right="",Object.keys(q.position).forEach(S=>I.style[S]=q.position[S]+"px"),I.style.maxHeight=q.maxHeight!=null?q.maxHeight+"px":"",B&&document.activeElement&&a.current){let S=document.activeElement.getBoundingClientRect(),F=a.current.getBoundingClientRect(),O=S[B.type]-F[B.type];a.current.scrollTop+=O-B.offset}w(q)}},$);se(R,$),Yy(R),Qi({ref:o,onResize:R}),Qi({ref:r,onResize:R});let P=d.useRef(!1);se(()=>{let B,A=()=>{P.current=!0,clearTimeout(B),B=setTimeout(()=>{P.current=!1},500),R()},_=()=>{P.current&&A()};return we==null||we.addEventListener("resize",A),we==null||we.addEventListener("scroll",_),()=>{we==null||we.removeEventListener("resize",A),we==null||we.removeEventListener("scroll",_)}},[R]);let k=d.useCallback(()=>{P.current||g==null||g()},[g,P]);Oy({triggerRef:r,isOpen:m,onClose:g&&k});var D,L,N;return{overlayProps:{style:{position:x?"absolute":"fixed",top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...x==null?void 0:x.position,maxHeight:(D=x==null?void 0:x.maxHeight)!==null&&D!==void 0?D:"100vh"}},placement:(L=x==null?void 0:x.placement)!==null&&L!==void 0?L:null,triggerAnchorPoint:(N=x==null?void 0:x.triggerAnchorPoint)!==null&&N!==void 0?N:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:R}}function Yy(e){se(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Xy(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function gu(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function nh(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function rh(e){let t=d.useRef({isFocused:!1,observer:null});return se(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),d.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=i=>{if(t.current.isFocused=!1,r.disabled){let a=gu(i);e==null||e(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let a=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let ea=!1;function Zy(e){for(;e&&!z0(e);)e=e.parentElement;let t=ct(e),n=t.document.activeElement;if(!n||n===e)return;ea=!0;let r=!1,o=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},i=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,Ct(n),l()))},a=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,Ct(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),ea=!1,r=!1},u=requestAnimationFrame(l);return l}let fr="default",bl="",Vi=new WeakMap;function Jy(e){if(Da()){if(fr==="default"){const t=oe(e);bl=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Vi.set(e,e.style[t]),e.style[t]="none"}}function Ic(e){if(Da()){if(fr!=="disabled")return;fr="restoring",setTimeout(()=>{N0(()=>{if(fr==="restoring"){const t=oe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=bl||""),bl="",fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Vi.has(e)){let t=Vi.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Vi.delete(e)}}const _o=d.createContext({register:()=>{}});_o.displayName="PressResponderContext";function e9(e,t){return t.get?t.get.call(e):t.value}function oh(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function t9(e,t){var n=oh(e,t,"get");return e9(e,n)}function n9(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function jc(e,t,n){var r=oh(e,t,"set");return n9(e,r,n),n}function r9(e){let t=d.useContext(_o);if(t){let{register:n,ref:r,...o}=t;e=ie(o,e),n()}return cu(t,e.ref),e}var xi=new WeakMap;class wi{continuePropagation(){jc(this,xi,!1)}get shouldStopPropagation(){return t9(this,xi)}constructor(t,n,r,o){zy(this,xi,{writable:!0,value:void 0}),jc(this,xi,!0);var i;let a=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:r.currentTarget;const s=a==null?void 0:a.getBoundingClientRect();let l,u=0,h,c=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,c=r.clientY),s&&(h!=null&&c!=null?(l=h-s.left,u=c-s.top):(l=s.width/2,u=s.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u,this.key=r.key}}const Nc=Symbol("linkClicked"),Ac="react-aria-pressable-style",Kc="data-react-aria-pressable";function ja(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:c,ref:p,...f}=r9(e),[m,g]=d.useState(!1),v=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:x,removeGlobalListener:w}=La(),$=d.useCallback((S,F)=>{let O=v.current;if(s||O.didFirePressStart)return!1;let j=!0;if(O.isTriggeringEvent=!0,r){let H=new wi("pressstart",F,S);r(H),j=H.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,g(!0),j},[s,r,n]),M=d.useCallback((S,F,O=!0)=>{let j=v.current;if(!j.didFirePressStart)return!1;j.didFirePressStart=!1,j.isTriggeringEvent=!0;let H=!0;if(o){let K=new wi("pressend",F,S);o(K),H=K.shouldStopPropagation}if(n&&n(!1),g(!1),t&&O&&!s){let K=new wi("press",F,S);t(K),H&&(H=K.shouldStopPropagation)}return j.isTriggeringEvent=!1,H},[s,o,n,t]),R=dn(M),P=d.useCallback((S,F)=>{let O=v.current;if(s)return!1;if(i){O.isTriggeringEvent=!0;let j=new wi("pressup",F,S);return i(j),O.isTriggeringEvent=!1,j.shouldStopPropagation}return!0},[s,i]),k=dn(P),D=d.useCallback(S=>{let F=v.current;if(F.isPressed&&F.target){F.didFirePressStart&&F.pointerType!=null&&M(kn(F.target,S),F.pointerType,!1),F.isPressed=!1,G(null),F.isOverTarget=!1,F.activePointerId=null,F.pointerType=null,x(),c||Ic(F.target);for(let O of F.disposables)O();F.disposables=[]}},[c,x,M]),L=dn(D),N=d.useCallback(S=>{h&&D(S)},[h,D]),B=d.useCallback(S=>{s||a==null||a(S)},[s,a]),A=d.useCallback((S,F)=>{if(!s&&a){let O=new MouseEvent("click",S);nh(O,F),a(gu(O))}},[s,a]),_=dn(A),[T,I]=d.useState(!1);se(()=>{let S=v.current;if(T){let F=K=>{var X;if(S.isPressed&&S.target&&hs(K,S.target)){var pe;Bc(Ce(K),K.key)&&K.preventDefault();let de=Ce(K),ve=te(S.target,Ce(K));R(kn(S.target,K),"keyboard",ve),ve&&_(K,S.target),x(),K.key!=="Enter"&&mu(S.target)&&te(S.target,de)&&!K[Nc]&&(K[Nc]=!0,Ut(S.target,K,!1)),S.isPressed=!1,I(!1),(pe=S.metaKeyEvents)===null||pe===void 0||pe.delete(K.key)}else if(K.key==="Meta"&&(!((X=S.metaKeyEvents)===null||X===void 0)&&X.size)){var U;let de=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let ve of de.values())(U=S.target)===null||U===void 0||U.dispatchEvent(new KeyboardEvent("keyup",ve))}},O=S.target,H=qr(K=>{O&&hs(K,O)&&!K.repeat&&te(O,Ce(K))&&S.target&&k(kn(S.target,K),"keyboard")},F);return b(oe(S.target),"keyup",H,!0),()=>{w(oe(S.target),"keyup",H,!0)}}},[T,b,x,w]);let[z,G]=d.useState(null);se(()=>{let S=v.current;if(z==="pointer"){let F=j=>{if(j.pointerId===S.activePointerId&&S.isPressed&&j.button===0&&S.target){if(te(S.target,Ce(j))&&S.pointerType!=null){let H=!1,K=setTimeout(()=>{S.isPressed&&S.target instanceof HTMLElement&&(H?L(j):(Ct(S.target),S.target.click()))},80);b(j.currentTarget,"click",()=>H=!0,!0),S.disposables.push(()=>clearTimeout(K))}else L(j);S.isOverTarget=!1}},O=j=>{L(j)};return b(oe(S.target),"pointerup",F,!1),b(oe(S.target),"pointercancel",O,!1),()=>{w(oe(S.target),"pointerup",F,!1),w(oe(S.target),"pointercancel",O,!1)}}},[z,b,w]);let q=d.useMemo(()=>{let S=v.current,F={onKeyDown(O){if(hs(O.nativeEvent,O.currentTarget)&&te(O.currentTarget,Ce(O.nativeEvent))){var j;Bc(Ce(O.nativeEvent),O.key)&&O.preventDefault();let H=!0;!S.isPressed&&!O.repeat&&(S.target=O.currentTarget,S.isPressed=!0,I(!0),S.pointerType="keyboard",H=$(O,"keyboard")),H&&O.stopPropagation(),O.metaKey&&Un()&&((j=S.metaKeyEvents)===null||j===void 0||j.set(O.key,O.nativeEvent))}else O.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(O){if(!(O&&!te(O.currentTarget,Ce(O.nativeEvent)))&&O&&O.button===0&&!S.isTriggeringEvent&&!Ut.isOpening){let j=!0;if(s&&O.preventDefault(),!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||H0(O.nativeEvent))){let H=$(O,"virtual"),K=P(O,"virtual"),X=M(O,"virtual");B(O),j=H&&K&&X}else if(S.isPressed&&S.pointerType!=="keyboard"){let H=S.pointerType||O.nativeEvent.pointerType||"virtual",K=P(kn(O.currentTarget,O),H),X=M(kn(O.currentTarget,O),H,!0);j=K&&X,S.isOverTarget=!1,B(O),D(O)}S.ignoreEmulatedMouseEvents=!1,j&&O.stopPropagation()}}};return typeof PointerEvent<"u"&&(F.onPointerDown=O=>{if(O.button!==0||!te(O.currentTarget,Ce(O.nativeEvent)))return;if(dy(O.nativeEvent)){S.pointerType="virtual";return}S.pointerType=O.pointerType;let j=!0;if(!S.isPressed){S.isPressed=!0,G("pointer"),S.isOverTarget=!0,S.activePointerId=O.pointerId,S.target=O.currentTarget,c||Jy(S.target),j=$(O,S.pointerType);let H=Ce(O.nativeEvent);"releasePointerCapture"in H&&("hasPointerCapture"in H?H.hasPointerCapture(O.pointerId)&&H.releasePointerCapture(O.pointerId):H.releasePointerCapture(O.pointerId))}j&&O.stopPropagation()},F.onMouseDown=O=>{if(te(O.currentTarget,Ce(O.nativeEvent))&&O.button===0){if(u){let j=Zy(O.target);j&&S.disposables.push(j)}O.stopPropagation()}},F.onPointerUp=O=>{!te(O.currentTarget,Ce(O.nativeEvent))||S.pointerType==="virtual"||O.button===0&&!S.isPressed&&P(O,S.pointerType||O.pointerType)},F.onPointerEnter=O=>{O.pointerId===S.activePointerId&&S.target&&!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,$(kn(S.target,O),S.pointerType))},F.onPointerLeave=O=>{O.pointerId===S.activePointerId&&S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,M(kn(S.target,O),S.pointerType,!1),N(O))},F.onDragStart=O=>{te(O.currentTarget,Ce(O.nativeEvent))&&D(O)}),F},[s,u,x,c,D,N,M,$,P,B,A]);return d.useEffect(()=>{if(!p)return;const S=oe(p.current);if(!S||!S.head||S.getElementById(Ac))return;const F=S.createElement("style");F.id=Ac,F.textContent=`
|
|
21
21
|
@layer {
|
|
22
|
-
[${
|
|
22
|
+
[${Kc}] {
|
|
23
23
|
touch-action: pan-x pan-y pinch-zoom;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`.trim(),$.head.prepend(F)},[p]),d.useEffect(()=>{let $=v.current;return()=>{var F;c||Tc((F=$.target)!==null&&F!==void 0?F:void 0);for(let T of $.disposables)T();$.disposables=[]}},[c]),{isPressed:l||g,pressProps:ie(f,W,{[Fc]:!0})}}function du(e){return e.tagName==="A"&&e.hasAttribute("href")}function us(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof dt(o).HTMLInputElement&&!rh(o,n)||o instanceof dt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&du(o))&&n!=="Enter")}function Pn(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function t9(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!du(e)}function Ic(e,t){return e instanceof HTMLInputElement?!rh(e,t):t9(e)}const n9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function rh(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":n9.has(e.type)}let Wr=null,pl=new Set,vo=new Map,qn=!1,gl=!1;const r9={Tab:!0,Escape:!0};function fu(e,t){for(let n of pl)n(e,t)}function o9(e){return!(e.metaKey||!zn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ta(e){qn=!0,!Ut.isOpening&&o9(e)&&(Wr="keyboard",fu("keyboard",e))}function mr(e){Wr="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(qn=!0,fu("pointer",e))}function oh(e){!Ut.isOpening&&A0(e)&&(qn=!0,Wr="virtual")}function ih(e){e.target===window||e.target===document||ea||!e.isTrusted||(!qn&&!gl&&(Wr="virtual",fu("virtual",e)),qn=!1,gl=!1)}function ah(){ea||(qn=!1,gl=!0)}function ml(e){if(typeof window>"u"||typeof document>"u"||vo.get(dt(e)))return;const t=dt(e),n=oe(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){qn=!0,r.apply(this,arguments)},n.addEventListener("keydown",ta,!0),n.addEventListener("keyup",ta,!0),n.addEventListener("click",oh,!0),t.addEventListener("focus",ih,!0),t.addEventListener("blur",ah,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",mr,!0),n.addEventListener("pointermove",mr,!0),n.addEventListener("pointerup",mr,!0)),t.addEventListener("beforeunload",()=>{sh(e)},{once:!0}),vo.set(t,{focus:r})}const sh=(e,t)=>{const n=dt(e),r=oe(e);t&&r.removeEventListener("DOMContentLoaded",t),vo.has(n)&&(n.HTMLElement.prototype.focus=vo.get(n).focus,r.removeEventListener("keydown",ta,!0),r.removeEventListener("keyup",ta,!0),r.removeEventListener("click",oh,!0),n.removeEventListener("focus",ih,!0),n.removeEventListener("blur",ah,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",mr,!0),r.removeEventListener("pointermove",mr,!0),r.removeEventListener("pointerup",mr,!0)),vo.delete(n))};function i9(e){const t=oe(e);let n;return t.readyState!=="loading"?ml(e):(n=()=>{ml(e)},t.addEventListener("DOMContentLoaded",n)),()=>sh(e,n)}typeof document<"u"&&i9();function To(){return Wr!=="pointer"}function Do(){return Wr}const a9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function s9(e,t,n){let r=oe(n==null?void 0:n.target);const o=typeof window<"u"?dt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?dt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?dt(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?dt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!a9.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof s&&!r9[n.key])}function l9(e,t,n){ml(),d.useEffect(()=>{let r=(o,i)=>{s9(!!(n!=null&&n.isTextInput),o,i)&&e(To())};return pl.add(r),()=>{pl.delete(r)}},t)}function bn(e){const t=oe(e);if(Do()==="virtual"){let n=Me(t);F0(()=>{const r=Me(t);(r===n||r===t.body)&&e.isConnected&&$t(e)})}else $t(e)}function hu(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=d.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=th(i),s=d.useCallback(l=>{const u=oe(l.target),h=u?Me(u):Me();l.target===l.currentTarget&&h===we(l.nativeEvent)&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}function jc(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function lh(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:jc(e.onKeyDown),onKeyUp:jc(e.onKeyUp)}}}let na=d.createContext(null);function u9(e){let t=d.useContext(na)||{};au(t,e);let{ref:n,...r}=t;return r}const c9=d.forwardRef(function(t,n){let{children:r,...o}=t,i=qr(n),a={...o,ref:i};return d.createElement(na.Provider,{value:a},r)});function uh(e,t){let{focusProps:n}=hu(e),{keyboardProps:r}=lh(e),o=ie(n,r),i=u9(t),a=e.isDisabled?{}:i,s=d.useRef(e.autoFocus);d.useEffect(()=>{s.current&&t.current&&bn(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:ie({...o,tabIndex:l},a)}}const ch=d.forwardRef(({children:e,...t},n)=>{let r=d.useRef(!1),o=d.useContext(Oo);n=qr(n||(o==null?void 0:o.ref));let i=ie(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return au(o,n),d.useEffect(()=>{r.current||(r.current=!0)},[]),d.createElement(Oo.Provider,{value:i},e)});function d9({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(Oo.Provider,{value:t},e)}function pu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=d.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=_a(),l=d.useCallback(c=>{c.currentTarget.contains(c.target)&&i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,s(),n&&n(c),o&&o(!1))},[n,o,i,s]),u=th(l),h=d.useCallback(c=>{if(!c.currentTarget.contains(c.target))return;const p=oe(c.target),f=Me(p);if(!i.current.isFocusWithin&&f===we(c.nativeEvent)){r&&r(c),o&&o(!0),i.current.isFocusWithin=!0,u(c);let g=c.currentTarget;a(p,"focus",m=>{if(i.current.isFocusWithin&&!Ue(g,m.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:m.target});eh(v,g);let b=cu(v);l(b)}},{capture:!0})}},[r,o,u,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let vl=!1,wi=0;function f9(){vl=!0,setTimeout(()=>{vl=!1},50)}function Nc(e){e.pointerType==="touch"&&f9()}function h9(){if(!(typeof document>"u"))return wi===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Nc),wi++,()=>{wi--,!(wi>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Nc)}}function Gr(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=d.useState(!1),s=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(h9,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=_a(),{hoverProps:h,triggerHoverEnd:c}=d.useMemo(()=>{let p=(m,v)=>{if(s.pointerType=v,o||v==="touch"||s.isHovered||!m.currentTarget.contains(m.target))return;s.isHovered=!0;let b=m.currentTarget;s.target=b,l(oe(m.target),"pointerover",x=>{s.isHovered&&s.target&&!Ue(s.target,x.target)&&f(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:v}),n&&n(!0),a(!0)},f=(m,v)=>{let b=s.target;s.pointerType="",s.target=null,!(v==="touch"||!s.isHovered||!b)&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:b,pointerType:v}),n&&n(!1),a(!1))},g={};return typeof PointerEvent<"u"&&(g.onPointerEnter=m=>{vl&&m.pointerType==="mouse"||p(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&f(m,m.pointerType)}),{hoverProps:g,triggerHoverEnd:f}},[t,n,r,o,s,l,u]);return d.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:h,isHovered:i}}function p9(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=cn(l=>{n&&Ac(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=cn(l=>{n&&n(l)});d.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,h=oe(u);if(typeof PointerEvent<"u"){let c=p=>{l.isPointerDown&&Ac(p,t)&&s(p),l.isPointerDown=!1};return h.addEventListener("pointerdown",a,!0),h.addEventListener("click",c,!0),()=>{h.removeEventListener("pointerdown",a,!0),h.removeEventListener("click",c,!0)}}},[t,r])}function Ac(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const g9=500;function dh(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=g9,accessibilityDescription:a}=e;const s=d.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=_a(),{pressProps:h}=Ia({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),oe(p.target).activeElement!==p.target&&$t(p.target),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let f=g=>{g.preventDefault()};l(p.target,"contextmenu",f,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",f)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),c=ly(o&&!t?a:void 0);return{longPressProps:ie(h,c)}}const Kc=d.createContext(null),bl="react-aria-focus-scope-restore";let pe=null;function fh(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=d.useRef(null),a=d.useRef(null),s=d.useRef([]),{parentNode:l}=d.useContext(Kc)||{},u=d.useMemo(()=>new xl({scopeRef:s}),[s]);le(()=>{let p=l||$e.root;if($e.getTreeNode(p.scopeRef)&&pe&&!ra(pe,p.scopeRef)){let f=$e.getTreeNode(pe);f&&(p=f)}p.addChild(u),$e.addNode(u)},[u,l]),le(()=>{let p=$e.getTreeNode(s);p&&(p.contain=!!n)},[n]),le(()=>{var p;let f=(p=i.current)===null||p===void 0?void 0:p.nextSibling,g=[],m=v=>v.stopPropagation();for(;f&&f!==a.current;)g.push(f),f.addEventListener(bl,m),f=f.nextSibling;return s.current=g,()=>{for(let v of g)v.removeEventListener(bl,m)}},[t]),w9(s,r,n),b9(s,n),C9(s,r,n),x9(s,o),d.useEffect(()=>{const p=Me(oe(s.current?s.current[0]:void 0));let f=null;if(ft(p,s.current)){for(let g of $e.traverse())g.scopeRef&&ft(p,g.scopeRef.current)&&(f=g);f===$e.getTreeNode(s)&&(pe=f.scopeRef)}},[s]),le(()=>()=>{var p,f,g;let m=(g=(f=$e.getTreeNode(s))===null||f===void 0||(p=f.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&g!==void 0?g:null;(s===pe||ra(s,pe))&&(!m||$e.getTreeNode(m))&&(pe=m),$e.removeTreeNode(s)},[s]);let h=d.useMemo(()=>m9(s),[]),c=d.useMemo(()=>({focusManager:h,parentNode:u}),[u,h]);return d.createElement(Kc.Provider,{value:c},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function m9(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||Me(oe((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[0].previousElementSibling,h=Dn(n),c=nt(h,{tabbable:o,accept:a},n);c.currentNode=ft(l,n)?l:u;let p=c.nextNode();return!p&&i&&(c.currentNode=u,p=c.nextNode()),p&&Ge(p,!0),p},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||Me(oe((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[n.length-1].nextElementSibling,h=Dn(n),c=nt(h,{tabbable:o,accept:a},n);c.currentNode=ft(l,n)?l:u;let p=c.previousNode();return!p&&i&&(c.currentNode=u,p=c.previousNode()),p&&Ge(p,!0),p},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Dn(n),a=nt(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&Ge(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Dn(n),a=nt(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&Ge(s,!0),s}}}function Dn(e){return e[0].parentElement}function ho(e){let t=$e.getTreeNode(pe);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function v9(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...oe(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(i=>!i.form);else{var n,r;let i=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...i??[]]}return t?!t.some(i=>i.checked):!1}function b9(e,t){let n=d.useRef(void 0),r=d.useRef(void 0);le(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=oe(o?o[0]:void 0);let a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!ho(e)||u.isComposing)return;let h=Me(i),c=e.current;if(!c||!ft(h,c))return;let p=Dn(c),f=nt(p,{tabbable:!0},c);if(!h)return;f.currentNode=h;let g=u.shiftKey?f.previousNode():f.nextNode();g||(f.currentNode=u.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,g=u.shiftKey?f.previousNode():f.nextNode()),u.preventDefault(),g&&Ge(g,!0)},s=u=>{(!pe||ra(pe,e))&&ft(we(u),e.current)?(pe=e,n.current=we(u)):ho(e)&&!dn(we(u),e)?n.current?n.current.focus():pe&&pe.current&&yl(pe.current):ho(e)&&(n.current=we(u))},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Do(),c=(h==="virtual"||h===null)&&iu()&&L0(),p=Me(i);if(!c&&p&&ho(e)&&!dn(p,e)){pe=e;let g=we(u);if(g&&g.isConnected){var f;n.current=g,(f=n.current)===null||f===void 0||f.focus()}else pe.current&&yl(pe.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),le(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function hh(e){return dn(e)}function ft(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function dn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of $e.traverse($e.getTreeNode(t)))if(n&&ft(e,n.current))return!0;return!1}function y9(e){return dn(e,pe)}function ra(e,t){var n;let r=(n=$e.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Ge(e,t=!1){if(e!=null&&!t)try{bn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ph(e,t=!0){let n=e[0].previousElementSibling,r=Dn(e),o=nt(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=Dn(e),o=nt(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function yl(e,t=!0){Ge(ph(e,t))}function x9(e,t){const n=d.useRef(t);d.useEffect(()=>{if(n.current){pe=e;const r=oe(e.current?e.current[0]:void 0);!ft(Me(r),pe.current)&&e.current&&yl(e.current)}n.current=!1},[e])}function w9(e,t,n){le(()=>{if(t||n)return;let r=e.current;const o=oe(r?r[0]:void 0);let i=a=>{let s=we(a);ft(s,e.current)?pe=e:hh(s)||(pe=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function Bc(e){let t=$e.getTreeNode(pe);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function C9(e,t,n){const r=d.useRef(typeof document<"u"?Me(oe(e.current?e.current[0]:void 0)):null);le(()=>{let o=e.current;const i=oe(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!pe||ra(pe,e))&&ft(Me(i),e.current)&&(pe=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),le(()=>{const o=oe(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!ho(e)||a.isComposing)return;let s=o.activeElement;if(!dn(s,e)||!Bc(e))return;let l=$e.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,h=nt(o.body,{tabbable:!0});h.currentNode=s;let c=a.shiftKey?h.previousNode():h.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,l.nodeToRestore=void 0),(!c||!dn(c,e))&&u){h.currentNode=u;do c=a.shiftKey?h.previousNode():h.nextNode();while(dn(c,e));a.preventDefault(),a.stopPropagation(),c?Ge(c,!0):hh(u)?Ge(u,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),le(()=>{const o=oe(e.current?e.current[0]:void 0);if(!t)return;let i=$e.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=$e.getTreeNode(e);if(!s)return;let l=s.nodeToRestore,u=Me(o);if(t&&l&&(u&&dn(u,e)||u===o.body&&Bc(e))){let h=$e.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=h.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Hc(c.nodeToRestore);return}c=c.parent}for(c=h.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&$e.getTreeNode(c.scopeRef)){let p=ph(c.scopeRef.current,!0);Hc(p);return}c=c.parent}}})}}}},[e,t])}function Hc(e){e.dispatchEvent(new CustomEvent(bl,{bubbles:!0,cancelable:!0}))&&Ge(e)}function nt(e,t,n){let r=t!=null&&t.tabbable?H0:B0,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=oe(o),a=j5(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(s)||t!=null&&t.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!v9(s)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ft(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}function $9(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(oe(r)),u=nt(r,{tabbable:i,accept:s});r.contains(l)&&(u.currentNode=l);let h=u.nextNode();return!h&&a&&(u.currentNode=r,h=u.nextNode()),h&&Ge(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Me(oe(r)),u=nt(r,{tabbable:i,accept:s});if(r.contains(l))u.currentNode=l;else{let c=cs(u);return c&&Ge(c,!0),c??null}let h=u.previousNode();if(!h&&a){u.currentNode=r;let c=cs(u);if(!c)return null;h=c}return h&&Ge(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=nt(r,{tabbable:o,accept:i}).nextNode();return s&&Ge(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=nt(r,{tabbable:o,accept:i}),s=cs(a);return s&&Ge(s,!0),s??null}}}function cs(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class gu{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new xl({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ft(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new gu;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new xl({scopeRef:null}),this.fastMap.set(null,this.root)}}class xl{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let $e=new gu;function gh(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||To()}),[i,a]=d.useState(!1),[s,l]=d.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=d.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),h=d.useCallback(f=>{o.current.isFocused=f,a(f),u()},[u]);l9(f=>{o.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:c}=hu({isDisabled:r,onFocusChange:h}),{focusWithinProps:p}=pu({isDisabled:!r,onFocusWithinChange:h});return{isFocused:i,isFocusVisible:s,focusProps:r?p:c}}function mh(e){let t=E9(oe(e));t!==e&&(t&&S9(t,e),e&&vh(e,t))}function S9(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function vh(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function E9(e){let t=Me(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const Pt=[];function bh(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;d.useEffect(()=>{if(o&&!Pt.includes(t))return Pt.push(t),()=>{let g=Pt.indexOf(t);g>=0&&Pt.splice(g,1)}},[o,t]);let l=()=>{Pt[Pt.length-1]===t&&n&&n()},u=g=>{(!s||s(g.target))&&Pt[Pt.length-1]===t&&(g.stopPropagation(),g.preventDefault())},h=g=>{(!s||s(g.target))&&(Pt[Pt.length-1]===t&&(g.stopPropagation(),g.preventDefault()),l())},c=g=>{g.key==="Escape"&&!a&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),l())};p9({ref:t,onInteractOutside:i&&o?h:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=pu({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||y9(g.relatedTarget)||(!s||s(g.relatedTarget))&&(n==null||n())}}),f=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:c,...p},underlayProps:{onPointerDown:f}}}function yh(e,t,n){let{type:r}=e,{isOpen:o}=t;d.useEffect(()=>{n&&n.current&&G0.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=ot();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const bo=typeof document<"u"&&window.visualViewport;let Ci=0,ds;function xh(e={}){let{isDisabled:t}=e;le(()=>{if(!t)return Ci++,Ci===1&&(Ta()?ds=R9():ds=P9()),()=>{Ci--,Ci===0&&ds()}},[t])}function P9(){let e=window.innerWidth-document.documentElement.clientWidth;return Ur(e>0&&("scrollbarGutter"in document.documentElement.style?fs(document.documentElement,"scrollbarGutter","stable"):fs(document.documentElement,"paddingRight",`${e}px`)),fs(document.documentElement,"overflow","hidden"))}function R9(){let e,t=!1,n=l=>{let u=l.target;e=Un(u)?u:j0(u,!0),t=!1;let h=u.ownerDocument.defaultView.getSelection();h&&!h.isCollapsed&&h.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},r=document.createElement("style");r.textContent=`
|
|
26
|
+
`.trim(),S.head.prepend(F)},[p]),d.useEffect(()=>{let S=v.current;return()=>{var F;c||Ic((F=S.target)!==null&&F!==void 0?F:void 0);for(let O of S.disposables)O();S.disposables=[]}},[c]),{isPressed:l||m,pressProps:ie(f,q,{[Kc]:!0})}}function mu(e){return e.tagName==="A"&&e.hasAttribute("href")}function hs(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof ct(o).HTMLInputElement&&!ih(o,n)||o instanceof ct(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&mu(o))&&n!=="Enter")}function kn(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function o9(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!mu(e)}function Bc(e,t){return e instanceof HTMLInputElement?!ih(e,t):o9(e)}const i9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ih(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":i9.has(e.type)}let Gr=null;const yl=new Set;let xo=new Map,Wn=!1,xl=!1;const a9={Tab:!0,Escape:!0};function vu(e,t){for(let n of yl)n(e,t)}function s9(e){return!(e.metaKey||!Un()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ta(e){Wn=!0,!Ut.isOpening&&s9(e)&&(Gr="keyboard",vu("keyboard",e))}function mr(e){Gr="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Wn=!0,vu("pointer",e))}function ah(e){!Ut.isOpening&&H0(e)&&(Wn=!0,Gr="virtual")}function sh(e){e.target===window||e.target===document||ea||!e.isTrusted||(!Wn&&!xl&&(Gr="virtual",vu("virtual",e)),Wn=!1,xl=!1)}function lh(){ea||(Wn=!1,xl=!0)}function wl(e){if(typeof window>"u"||typeof document>"u"||xo.get(ct(e)))return;const t=ct(e),n=oe(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Wn=!0,r.apply(this,arguments)},n.addEventListener("keydown",ta,!0),n.addEventListener("keyup",ta,!0),n.addEventListener("click",ah,!0),t.addEventListener("focus",sh,!0),t.addEventListener("blur",lh,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",mr,!0),n.addEventListener("pointermove",mr,!0),n.addEventListener("pointerup",mr,!0)),t.addEventListener("beforeunload",()=>{uh(e)},{once:!0}),xo.set(t,{focus:r})}const uh=(e,t)=>{const n=ct(e),r=oe(e);t&&r.removeEventListener("DOMContentLoaded",t),xo.has(n)&&(n.HTMLElement.prototype.focus=xo.get(n).focus,r.removeEventListener("keydown",ta,!0),r.removeEventListener("keyup",ta,!0),r.removeEventListener("click",ah,!0),n.removeEventListener("focus",sh,!0),n.removeEventListener("blur",lh,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",mr,!0),r.removeEventListener("pointermove",mr,!0),r.removeEventListener("pointerup",mr,!0)),xo.delete(n))};function l9(e){const t=oe(e);let n;return t.readyState!=="loading"?wl(e):(n=()=>{wl(e)},t.addEventListener("DOMContentLoaded",n)),()=>uh(e,n)}typeof document<"u"&&l9();function Ir(){return Gr!=="pointer"}function Lo(){return Gr}const u9=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function c9(e,t,n){let r=oe(n==null?void 0:n.target);const o=typeof window<"u"?ct(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ct(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ct(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?ct(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!u9.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof s&&!a9[n.key])}function d9(e,t,n){wl(),d.useEffect(()=>{if((n==null?void 0:n.enabled)===!1)return;let r=(o,i)=>{c9(!!(n!=null&&n.isTextInput),o,i)&&e(Ir())};return yl.add(r),()=>{yl.delete(r)}},t)}function yn(e){const t=oe(e);if(Lo()==="virtual"){let n=Oe(t);N0(()=>{const r=Oe(t);(r===n||r===t.body)&&e.isConnected&&Ct(e)})}else Ct(e)}function ch(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=d.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=rh(i),s=d.useCallback(l=>{const u=oe(l.target),h=u?Oe(u):Oe();l.target===l.currentTarget&&h===Ce(l.nativeEvent)&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}function Hc(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function dh(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Hc(e.onKeyDown),onKeyUp:Hc(e.onKeyUp)}}}let na=d.createContext(null);function f9(e){let t=d.useContext(na)||{};cu(t,e);let{ref:n,...r}=t;return r}const h9=d.forwardRef(function(t,n){let{children:r,...o}=t,i=Wr(n),a={...o,ref:i};return d.createElement(na.Provider,{value:a},r)});function bu(e,t){let{focusProps:n}=ch(e),{keyboardProps:r}=dh(e),o=ie(n,r),i=f9(t),a=e.isDisabled?{}:i,s=d.useRef(e.autoFocus);d.useEffect(()=>{s.current&&t.current&&yn(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:ie({...o,tabIndex:l},a)}}const fh=d.forwardRef(({children:e,...t},n)=>{let r=d.useRef(!1),o=d.useContext(_o),i=ie(o||{},{...t,register(){r.current=!0,o&&o.register()}});return i.ref=Wr(n||(o==null?void 0:o.ref)),cu(o,i.ref),d.useEffect(()=>{r.current||(r.current=!0)},[]),d.createElement(_o.Provider,{value:i},e)});function p9({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(_o.Provider,{value:t},e)}function yu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=d.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=La(),l=d.useCallback(c=>{te(c.currentTarget,c.target)&&i.current.isFocusWithin&&!te(c.currentTarget,c.relatedTarget)&&(i.current.isFocusWithin=!1,s(),n&&n(c),o&&o(!1))},[n,o,i,s]),u=rh(l),h=d.useCallback(c=>{if(!te(c.currentTarget,c.target))return;const p=oe(c.target),f=Oe(p);if(!i.current.isFocusWithin&&f===Ce(c.nativeEvent)){r&&r(c),o&&o(!0),i.current.isFocusWithin=!0,u(c);let m=c.currentTarget;a(p,"focus",g=>{if(i.current.isFocusWithin&&!te(m,g.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:g.target});nh(v,m);let b=gu(v);l(b)}},{capture:!0})}},[r,o,u,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let Cl=!1,Ci=0;function g9(){Cl=!0,setTimeout(()=>{Cl=!1},50)}function Vc(e){e.pointerType==="touch"&&g9()}function m9(){if(!(typeof document>"u"))return Ci===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Vc),Ci++,()=>{Ci--,!(Ci>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Vc)}}function Qr(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=d.useState(!1),s=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(m9,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=La(),{hoverProps:h,triggerHoverEnd:c}=d.useMemo(()=>{let p=(g,v)=>{if(s.pointerType=v,o||v==="touch"||s.isHovered||!te(g.currentTarget,g.target))return;s.isHovered=!0;let b=g.currentTarget;s.target=b,l(oe(g.target),"pointerover",x=>{s.isHovered&&s.target&&!te(s.target,x.target)&&f(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:v}),n&&n(!0),a(!0)},f=(g,v)=>{let b=s.target;s.pointerType="",s.target=null,!(v==="touch"||!s.isHovered||!b)&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:b,pointerType:v}),n&&n(!1),a(!1))},m={};return typeof PointerEvent<"u"&&(m.onPointerEnter=g=>{Cl&&g.pointerType==="mouse"||p(g,g.pointerType)},m.onPointerLeave=g=>{!o&&te(g.currentTarget,g.target)&&f(g,g.pointerType)}),{hoverProps:m,triggerHoverEnd:f}},[t,n,r,o,s,l,u]);return d.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:h,isHovered:i}}function v9(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=dn(l=>{n&&zc(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=dn(l=>{n&&n(l)});d.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,h=oe(u);if(typeof PointerEvent<"u"){let c=p=>{l.isPointerDown&&zc(p,t)&&s(p),l.isPointerDown=!1};return h.addEventListener("pointerdown",a,!0),h.addEventListener("click",c,!0),()=>{h.removeEventListener("pointerdown",a,!0),h.removeEventListener("click",c,!0)}}},[t,r])}function zc(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!te(n.documentElement,e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const b9=500;function hh(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=b9,accessibilityDescription:a}=e;const s=d.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=La(),{pressProps:h}=ja({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),oe(p.target).activeElement!==p.target&&Ct(p.target),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let f=m=>{m.preventDefault()};l(p.target,"contextmenu",f,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",f)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),c=cy(o&&!t?a:void 0);return{longPressProps:ie(h,c)}}const Uc=d.createContext(null),$l="react-aria-focus-scope-restore";let ge=null;function ph(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=d.useRef(null),a=d.useRef(null),s=d.useRef([]),{parentNode:l}=d.useContext(Uc)||{},u=d.useMemo(()=>new El({scopeRef:s}),[s]);se(()=>{let p=l||Se.root;if(Se.getTreeNode(p.scopeRef)&&ge&&!ra(ge,p.scopeRef)){let f=Se.getTreeNode(ge);f&&(p=f)}p.addChild(u),Se.addNode(u)},[u,l]),se(()=>{let p=Se.getTreeNode(s);p&&(p.contain=!!n)},[n]),se(()=>{var p;let f=(p=i.current)===null||p===void 0?void 0:p.nextSibling,m=[],g=v=>v.stopPropagation();for(;f&&f!==a.current;)m.push(f),f.addEventListener($l,g),f=f.nextSibling;return s.current=m,()=>{for(let v of m)v.removeEventListener($l,g)}},[t]),S9(s,r,n),w9(s,n),E9(s,r,n),$9(s,o),d.useEffect(()=>{const p=Oe(oe(s.current?s.current[0]:void 0));let f=null;if(dt(p,s.current)){for(let m of Se.traverse())m.scopeRef&&dt(p,m.scopeRef.current)&&(f=m);f===Se.getTreeNode(s)&&(ge=f.scopeRef)}},[s]),se(()=>()=>{var p,f,m;let g=(m=(f=Se.getTreeNode(s))===null||f===void 0||(p=f.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&m!==void 0?m:null;(s===ge||ra(s,ge))&&(!g||Se.getTreeNode(g))&&(ge=g),Se.removeTreeNode(s)},[s]);let h=d.useMemo(()=>y9(s),[]),c=d.useMemo(()=>({focusManager:h,parentNode:u}),[u,h]);return d.createElement(Uc.Provider,{value:c},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function y9(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||Oe(oe((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[0].previousElementSibling,h=_n(n),c=tt(h,{tabbable:o,accept:a},n);c.currentNode=dt(l,n)?l:u;let p=c.nextNode();return!p&&i&&(c.currentNode=u,p=c.nextNode()),p&&Ge(p,!0),p},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||Oe(oe((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[n.length-1].nextElementSibling,h=_n(n),c=tt(h,{tabbable:o,accept:a},n);c.currentNode=dt(l,n)?l:u;let p=c.previousNode();return!p&&i&&(c.currentNode=u,p=c.previousNode()),p&&Ge(p,!0),p},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=_n(n),a=tt(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&Ge(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=_n(n),a=tt(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&Ge(s,!0),s}}}function _n(e){return e[0].parentElement}function mo(e){let t=Se.getTreeNode(ge);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function x9(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...oe(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(i=>!i.form);else{var n,r;let i=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...i??[]]}return t?!t.some(i=>i.checked):!1}function w9(e,t){let n=d.useRef(void 0),r=d.useRef(void 0);se(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=oe(o?o[0]:void 0);let a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!mo(e)||u.isComposing)return;let h=Oe(i),c=e.current;if(!c||!dt(h,c))return;let p=_n(c),f=tt(p,{tabbable:!0},c);if(!h)return;f.currentNode=h;let m=u.shiftKey?f.previousNode():f.nextNode();m||(f.currentNode=u.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,m=u.shiftKey?f.previousNode():f.nextNode()),u.preventDefault(),m&&Ge(m,!0)},s=u=>{(!ge||ra(ge,e))&&dt(Ce(u),e.current)?(ge=e,n.current=Ce(u)):mo(e)&&!fn(Ce(u),e)?n.current?n.current.focus():ge&&ge.current&&Sl(ge.current):mo(e)&&(n.current=Ce(u))},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Lo(),c=(h==="virtual"||h===null)&&uu()&&j0(),p=Oe(i);if(!c&&p&&mo(e)&&!fn(p,e)){ge=e;let m=Ce(u);if(m&&m.isConnected){var f;n.current=m,(f=n.current)===null||f===void 0||f.focus()}else ge.current&&Sl(ge.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),se(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function gh(e){return fn(e)}function dt(e,t){return!e||!t?!1:t.some(n=>te(n,e))}function fn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Se.traverse(Se.getTreeNode(t)))if(n&&dt(e,n.current))return!0;return!1}function C9(e){return fn(e,ge)}function ra(e,t){var n;let r=(n=Se.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Ge(e,t=!1){if(e!=null&&!t)try{yn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function mh(e,t=!0){let n=e[0].previousElementSibling,r=_n(e),o=tt(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=_n(e),o=tt(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function Sl(e,t=!0){Ge(mh(e,t))}function $9(e,t){const n=d.useRef(t);d.useEffect(()=>{if(n.current){ge=e;const r=oe(e.current?e.current[0]:void 0);!dt(Oe(r),ge.current)&&e.current&&Sl(e.current)}n.current=!1},[e])}function S9(e,t,n){se(()=>{if(t||n)return;let r=e.current;const o=oe(r?r[0]:void 0);let i=a=>{let s=Ce(a);dt(s,e.current)?ge=e:gh(s)||(ge=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function qc(e){let t=Se.getTreeNode(ge);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function E9(e,t,n){const r=d.useRef(typeof document<"u"?Oe(oe(e.current?e.current[0]:void 0)):null);se(()=>{let o=e.current;const i=oe(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ge||ra(ge,e))&&dt(Oe(i),e.current)&&(ge=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),se(()=>{const o=oe(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!mo(e)||a.isComposing)return;let s=o.activeElement;if(!fn(s,e)||!qc(e))return;let l=Se.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,h=tt(o.body,{tabbable:!0});h.currentNode=s;let c=a.shiftKey?h.previousNode():h.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,l.nodeToRestore=void 0),(!c||!fn(c,e))&&u){h.currentNode=u;do c=a.shiftKey?h.previousNode():h.nextNode();while(fn(c,e));a.preventDefault(),a.stopPropagation(),c?Ge(c,!0):gh(u)?Ge(u,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),se(()=>{const o=oe(e.current?e.current[0]:void 0);if(!t)return;let i=Se.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=Se.getTreeNode(e);if(!s)return;let l=s.nodeToRestore,u=Oe(o);if(t&&l&&(u&&fn(u,e)||u===o.body&&qc(e))){let h=Se.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=h.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Wc(c.nodeToRestore);return}c=c.parent}for(c=h.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Se.getTreeNode(c.scopeRef)){let p=mh(c.scopeRef.current,!0);Wc(p);return}c=c.parent}}})}}}},[e,t])}function Wc(e){e.dispatchEvent(new CustomEvent($l,{bubbles:!0,cancelable:!0}))&&Ge(e)}function tt(e,t,n){let r=t!=null&&t.tabbable?U0:z0,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=oe(o),a=A5(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return te(t==null?void 0:t.from,s)||t!=null&&t.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!x9(s)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||dt(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}function P9(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Oe(oe(r)),u=tt(r,{tabbable:i,accept:s});te(r,l)&&(u.currentNode=l);let h=u.nextNode();return!h&&a&&(u.currentNode=r,h=u.nextNode()),h&&Ge(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||Oe(oe(r)),u=tt(r,{tabbable:i,accept:s});if(te(r,l))u.currentNode=l;else{let c=ps(u);return c&&Ge(c,!0),c??null}let h=u.previousNode();if(!h&&a){u.currentNode=r;let c=ps(u);if(!c)return null;h=c}return h&&Ge(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=tt(r,{tabbable:o,accept:i}).nextNode();return s&&Ge(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=tt(r,{tabbable:o,accept:i}),s=ps(a);return s&&Ge(s,!0),s??null}}}function ps(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class xu{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new El({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&dt(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new xu;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new El({scopeRef:null}),this.fastMap.set(null,this.root)}}class El{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Se=new xu;function vh(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||Ir()}),[i,a]=d.useState(!1),[s,l]=d.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=d.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),h=d.useCallback(f=>{o.current.isFocused=f,o.current.isFocusVisible=Ir(),a(f),u()},[u]);d9(f=>{o.current.isFocusVisible=f,u()},[n,i],{enabled:i,isTextInput:n});let{focusProps:c}=ch({isDisabled:r,onFocusChange:h}),{focusWithinProps:p}=yu({isDisabled:!r,onFocusWithinChange:h});return{isFocused:i,isFocusVisible:s,focusProps:r?p:c}}function bh(e){let t=k9(oe(e));t!==e&&(t&&R9(t,e),e&&yh(e,t))}function R9(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function yh(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function k9(e){let t=Oe(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const Pt=[];function xh(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e,l=d.useRef(void 0);d.useEffect(()=>{if(o&&!Pt.includes(t))return Pt.push(t),()=>{let g=Pt.indexOf(t);g>=0&&Pt.splice(g,1)}},[o,t]);let u=()=>{Pt[Pt.length-1]===t&&n&&n()},h=g=>{const v=Pt[Pt.length-1];l.current=v,(!s||s(g.target))&&v===t&&(g.stopPropagation(),g.preventDefault())},c=g=>{(!s||s(g.target))&&(Pt[Pt.length-1]===t&&(g.stopPropagation(),g.preventDefault()),l.current===t&&u()),l.current=void 0},p=g=>{g.key==="Escape"&&!a&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),u())};v9({ref:t,onInteractOutside:i&&o?c:void 0,onInteractOutsideStart:h});let{focusWithinProps:f}=yu({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||C9(g.relatedTarget)||(!s||s(g.relatedTarget))&&(n==null||n())}}),m=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:p,...f},underlayProps:{onPointerDown:m}}}function wh(e,t,n){let{type:r}=e,{isOpen:o}=t;d.useEffect(()=>{n&&n.current&&Y0.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=rt();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const wo=typeof document<"u"&&window.visualViewport;let $i=0,gs;function Ch(e={}){let{isDisabled:t}=e;se(()=>{if(!t)return $i++,$i===1&&(Da()?gs=O9():gs=M9()),()=>{$i--,$i===0&&gs()}},[t])}function M9(){let e=window.innerWidth-document.documentElement.clientWidth;return qr(e>0&&("scrollbarGutter"in document.documentElement.style?ms(document.documentElement,"scrollbarGutter","stable"):ms(document.documentElement,"paddingRight",`${e}px`)),ms(document.documentElement,"overflow","hidden"))}function O9(){let e,t=!1,n=l=>{let u=l.target;e=qn(u)?u:K0(u,!0),t=!1;let h=u.ownerDocument.defaultView.getSelection();h&&!h.isCollapsed&&h.containsNode(u,!0)&&(t=!0),l.composedPath().some(c=>c instanceof HTMLInputElement&&c.type==="range")&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},r=document.createElement("style");r.textContent=`
|
|
27
27
|
@layer {
|
|
28
28
|
* {
|
|
29
29
|
overscroll-behavior: contain;
|
|
30
30
|
}
|
|
31
|
-
}`.trim(),document.head.prepend(r);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},i=l=>{let u=l.target,h=l.relatedTarget;if(h&&mo(h))h.focus({preventScroll:!0}),Vc(h,mo(u));else if(!h){var c;let p=(c=u.parentElement)===null||c===void 0?void 0:c.closest("[tabindex]");p==null||p.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let u=document.activeElement!=null&&mo(document.activeElement);a.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&Vc(this,u)};let s=Ur(hs(document,"touchstart",n,{passive:!1,capture:!0}),hs(document,"touchmove",o,{passive:!1,capture:!0}),hs(document,"blur",i,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=a}}function fs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function hs(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Vc(e,t){t||!bo?zc(e):bo.addEventListener("resize",()=>zc(e),{once:!0})}function zc(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=j0(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+n.clientHeight){let a=o.bottom;bo&&(a=Math.min(a,bo.offsetTop+bo.height));let s=i.top-o.top-((a-o.top)/2-i.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const k9=d.createContext({});function wh(){var e;return(e=d.useContext(k9))!==null&&e!==void 0?e:{}}const wl=d.createContext(null);function M9(e){let{children:t}=e,n=d.useContext(wl),[r,o]=d.useState(0),i=d.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return d.createElement(wl.Provider,{value:i},t)}function O9(){let e=d.useContext(wl);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function T9(e){let{modalProviderProps:t}=O9();return d.createElement("div",{"data-overlay-container":!0,...e,...t})}function D9(e){return d.createElement(M9,null,d.createElement(T9,e))}function _9(e){let t=$n(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:o}=wh();if(!e.portalContainer&&o&&(n=o()),d.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let i=d.createElement(D9,r);return Br.createPortal(i,n)}var Ch={};Ch={dismiss:"تجاهل"};var $h={};$h={dismiss:"Отхвърляне"};var Sh={};Sh={dismiss:"Odstranit"};var Eh={};Eh={dismiss:"Luk"};var Ph={};Ph={dismiss:"Schließen"};var Rh={};Rh={dismiss:"Απόρριψη"};var kh={};kh={dismiss:"Dismiss"};var Mh={};Mh={dismiss:"Descartar"};var Oh={};Oh={dismiss:"Lõpeta"};var Th={};Th={dismiss:"Hylkää"};var Dh={};Dh={dismiss:"Rejeter"};var _h={};_h={dismiss:"התעלם"};var Lh={};Lh={dismiss:"Odbaci"};var Fh={};Fh={dismiss:"Elutasítás"};var Ih={};Ih={dismiss:"Ignora"};var jh={};jh={dismiss:"閉じる"};var Nh={};Nh={dismiss:"무시"};var Ah={};Ah={dismiss:"Atmesti"};var Kh={};Kh={dismiss:"Nerādīt"};var Bh={};Bh={dismiss:"Lukk"};var Hh={};Hh={dismiss:"Negeren"};var Vh={};Vh={dismiss:"Zignoruj"};var zh={};zh={dismiss:"Descartar"};var Uh={};Uh={dismiss:"Dispensar"};var qh={};qh={dismiss:"Revocare"};var Wh={};Wh={dismiss:"Пропустить"};var Gh={};Gh={dismiss:"Zrušiť"};var Qh={};Qh={dismiss:"Opusti"};var Yh={};Yh={dismiss:"Odbaci"};var Xh={};Xh={dismiss:"Avvisa"};var Zh={};Zh={dismiss:"Kapat"};var Jh={};Jh={dismiss:"Скасувати"};var ep={};ep={dismiss:"取消"};var tp={};tp={dismiss:"關閉"};var np={};np={"ar-AE":Ch,"bg-BG":$h,"cs-CZ":Sh,"da-DK":Eh,"de-DE":Ph,"el-GR":Rh,"en-US":kh,"es-ES":Mh,"et-EE":Oh,"fi-FI":Th,"fr-FR":Dh,"he-IL":_h,"hr-HR":Lh,"hu-HU":Fh,"it-IT":Ih,"ja-JP":jh,"ko-KR":Nh,"lt-LT":Ah,"lv-LV":Kh,"nb-NO":Bh,"nl-NL":Hh,"pl-PL":Vh,"pt-BR":zh,"pt-PT":Uh,"ro-RO":qh,"ru-RU":Wh,"sk-SK":Gh,"sl-SI":Qh,"sr-SP":Yh,"sv-SE":Xh,"tr-TR":Zh,"uk-UA":Jh,"zh-CN":ep,"zh-TW":tp};const Uc={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function L9(e={}){let{style:t,isFocusable:n}=e,[r,o]=d.useState(!1),{focusWithinProps:i}=pu({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=d.useMemo(()=>r?t:t?{...Uc,...t}:Uc,[r]);return{visuallyHiddenProps:{...i,style:a}}}function F9(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=L9(e);return d.createElement(n,ie(i,a),t)}function I9(e){return e&&e.__esModule?e.default:e}function Cl(e){let{onDismiss:t,...n}=e,r=X0(I9(np),"@react-aria/overlays"),o=I0(n,r.format("dismiss")),i=()=>{t&&t()};return d.createElement(F9,null,d.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const j9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let to=new WeakMap,He=[];function rp(e,t){let n=dt(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var o;let i=(o=r==null?void 0:r.root)!==null&&o!==void 0?o:document.body,a=(r==null?void 0:r.shouldUseInert)&&j9,s=new Set(e),l=new Set,u=m=>a&&m instanceof n.HTMLElement?m.inert:m.getAttribute("aria-hidden")==="true",h=(m,v)=>{a&&m instanceof n.HTMLElement?m.inert=v:v?m.setAttribute("aria-hidden","true"):(m.removeAttribute("aria-hidden"),m instanceof n.HTMLElement&&(m.inert=!1))},c=m=>{for(let w of m.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(w);let v=w=>{if(l.has(w)||s.has(w)||w.parentElement&&l.has(w.parentElement)&&w.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let S of s)if(w.contains(S))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},b=document.createTreeWalker(m,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),x=v(m);if(x===NodeFilter.FILTER_ACCEPT&&p(m),x!==NodeFilter.FILTER_REJECT){let w=b.nextNode();for(;w!=null;)p(w),w=b.nextNode()}},p=m=>{var v;let b=(v=to.get(m))!==null&&v!==void 0?v:0;u(m)&&b===0||(b===0&&h(m,!0),l.add(m),to.set(m,b+1))};He.length&&He[He.length-1].disconnect(),c(i);let f=new MutationObserver(m=>{for(let v of m)if(v.type==="childList"&&![...s,...l].some(b=>b.contains(v.target)))for(let b of v.addedNodes)(b instanceof HTMLElement||b instanceof SVGElement)&&(b.dataset.liveAnnouncer==="true"||b.dataset.reactAriaTopLayer==="true")?s.add(b):b instanceof Element&&c(b)});f.observe(i,{childList:!0,subtree:!0});let g={visibleNodes:s,hiddenNodes:l,observe(){f.observe(i,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return He.push(g),()=>{f.disconnect();for(let m of l){let v=to.get(m);v!=null&&(v===1?(h(m,!1),to.delete(m)):to.set(m,v-1))}g===He[He.length-1]?(He.pop(),He.length&&He[He.length-1].observe()):He.splice(He.indexOf(g),1)}}function N9(e){let t=He[He.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function A9(e,t){let{triggerRef:n,popoverRef:r,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...l}=e,u=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:c}=bh({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},o??r),{overlayProps:p,arrowProps:f,placement:g,triggerAnchorPoint:m}=J0({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i&&!u?t.close:null});return xh({isDisabled:i||!t.isOpen}),d.useEffect(()=>{if(t.isOpen&&r.current){var v,b;return i?N9((v=o==null?void 0:o.current)!==null&&v!==void 0?v:r.current):rp([(b=o==null?void 0:o.current)!==null&&b!==void 0?b:r.current],{shouldUseInert:!0})}},[i,t.isOpen,r,o]),{popoverProps:ie(h,p),arrowProps:f,underlayProps:c,placement:g,triggerAnchorPoint:m}}const op=d.createContext(null);function $l(e){let t=$n(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=d.useState(!1),a=d.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=wh();if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=d.createElement(fh,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!r},l)),l=d.createElement(op.Provider,{value:a},d.createElement(d9,null,l)),Br.createPortal(l,n)}function ip(){let e=d.useContext(op),t=e==null?void 0:e.setContain;le(()=>{t==null||t(!0)},[t])}function K9(e,t,n){let{overlayProps:r,underlayProps:o}=bh({...e,isOpen:t.isOpen,onClose:t.close},n);return xh({isDisabled:!t.isOpen}),ip(),d.useEffect(()=>{if(t.isOpen&&n.current)return rp([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:ie(r),underlayProps:o}}function B9(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=ot(t);let a=ot(),s={};n&&(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0});let l=I0({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function Sl(e){return W5()?e.altKey:e.ctrlKey}function Vi(e,t){var n,r;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(o)}const ap=new WeakMap;function H9(e){let t=ot();return ap.set(e,t),t}function V9(e){return ap.get(e)}const z9=1e3;function U9(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=d.useRef({search:"",timeout:void 0}).current,i=a=>{let s=q9(a.key);if(!(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&s===" ")){if(s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},z9)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function q9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function W9(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:c,allowsTabNavigation:p=!1,isVirtualized:f,scrollRef:g=r,linkBehavior:m="action"}=e,{direction:v}=Yn(),b=Da(),x=O=>{var L;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((L=r.current)===null||L===void 0)&&L.contains(O.target)))return;const B=(Q,Ne)=>{if(Q!=null){if(t.isLink(Q)&&m==="selection"&&u&&!Sl(O)){Br.flushSync(()=>{t.setFocusedKey(Q,Ne)});let _e=Vi(r,Q),Jn=t.getItemProps(Q);_e&&b.open(_e,O,Jn.href,Jn.routerOptions);return}if(t.setFocusedKey(Q,Ne),t.isLink(Q)&&m==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Q):u&&!Sl(O)&&t.replaceSelection(Q)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var U,W,$;let Q=t.focusedKey!=null?(U=n.getKeyBelow)===null||U===void 0?void 0:U.call(n,t.focusedKey):(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n);Q==null&&i&&(Q=($=n.getFirstKey)===null||$===void 0?void 0:$.call(n,t.focusedKey)),Q!=null&&(O.preventDefault(),B(Q))}break;case"ArrowUp":if(n.getKeyAbove){var F,T,j;let Q=t.focusedKey!=null?(F=n.getKeyAbove)===null||F===void 0?void 0:F.call(n,t.focusedKey):(T=n.getLastKey)===null||T===void 0?void 0:T.call(n);Q==null&&i&&(Q=(j=n.getLastKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),Q!=null&&(O.preventDefault(),B(Q))}break;case"ArrowLeft":if(n.getKeyLeftOf){var V,N,Z;let Q=t.focusedKey!=null?(V=n.getKeyLeftOf)===null||V===void 0?void 0:V.call(n,t.focusedKey):null;Q==null&&i&&(Q=v==="rtl"?(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n,t.focusedKey):(Z=n.getLastKey)===null||Z===void 0?void 0:Z.call(n,t.focusedKey)),Q!=null&&(O.preventDefault(),B(Q,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var he,te,ye;let Q=t.focusedKey!=null?(he=n.getKeyRightOf)===null||he===void 0?void 0:he.call(n,t.focusedKey):null;Q==null&&i&&(Q=v==="rtl"?(te=n.getLastKey)===null||te===void 0?void 0:te.call(n,t.focusedKey):(ye=n.getFirstKey)===null||ye===void 0?void 0:ye.call(n,t.focusedKey)),Q!=null&&(O.preventDefault(),B(Q,v==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&O.shiftKey)return;O.preventDefault();let Q=n.getFirstKey(t.focusedKey,lr(O));t.setFocusedKey(Q),Q!=null&&(lr(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Q):u&&t.replaceSelection(Q))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&O.shiftKey)return;O.preventDefault();let Q=n.getLastKey(t.focusedKey,lr(O));t.setFocusedKey(Q),Q!=null&&(lr(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Q):u&&t.replaceSelection(Q))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Q=n.getKeyPageBelow(t.focusedKey);Q!=null&&(O.preventDefault(),B(Q))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Q=n.getKeyPageAbove(t.focusedKey);Q!=null&&(O.preventDefault(),B(Q))}break;case"a":lr(O)&&t.selectionMode==="multiple"&&s!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(O.shiftKey)r.current.focus();else{let Q=nt(r.current,{tabbable:!0}),Ne,_e;do _e=Q.lastChild(),_e&&(Ne=_e);while(_e);Ne&&(!Ne.contains(document.activeElement)||document.activeElement&&!H0(document.activeElement))&&$t(Ne)}break}}},w=d.useRef({top:0,left:0});vi(g,"scroll",f?void 0:()=>{var O,L,B,U;w.current={top:(B=(O=g.current)===null||O===void 0?void 0:O.scrollTop)!==null&&B!==void 0?B:0,left:(U=(L=g.current)===null||L===void 0?void 0:L.scrollLeft)!==null&&U!==void 0?U:0}});let S=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var L,B;let $=T=>{T!=null&&(t.setFocusedKey(T),u&&!t.isSelected(T)&&t.replaceSelection(T))},F=O.relatedTarget;var U,W;F&&O.currentTarget.compareDocumentPosition(F)&Node.DOCUMENT_POSITION_FOLLOWING?$((U=t.lastSelectedKey)!==null&&U!==void 0?U:(L=n.getLastKey)===null||L===void 0?void 0:L.call(n)):$((W=t.firstSelectedKey)!==null&&W!==void 0?W:(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n))}else!f&&g.current&&(g.current.scrollTop=w.current.top,g.current.scrollLeft=w.current.left);if(t.focusedKey!=null&&g.current){let $=Vi(r,t.focusedKey);$ instanceof HTMLElement&&(!$.contains(document.activeElement)&&!c&&$t($),Do()==="keyboard"&&yc($,{containingElement:r.current}))}}},M=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)},P=d.useRef(!1);vi(r,dy,c?O=>{let{detail:L}=O;O.stopPropagation(),t.setFocused(!0),(L==null?void 0:L.focusStrategy)==="first"&&(P.current=!0)}:void 0),mc(()=>{if(P.current){var O,L;let B=(L=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&L!==void 0?L:null;if(B==null){let U=Me();mh(r.current),vh(U,null),t.collection.size>0&&(P.current=!1)}else t.setFocusedKey(B),P.current=!1}},[t.collection]),mc(()=>{t.collection.size>0&&(P.current=!1)},[t.focusedKey]),vi(r,cy,c?O=>{var L;O.stopPropagation(),t.setFocused(!1),!((L=O.detail)===null||L===void 0)&&L.clearFocusKey&&t.setFocusedKey(null)}:void 0);const R=d.useRef(o),k=d.useRef(!1);d.useEffect(()=>{if(R.current){var O,L;let W=null;var B;o==="first"&&(W=(B=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&B!==void 0?B:null);var U;o==="last"&&(W=(U=(L=n.getLastKey)===null||L===void 0?void 0:L.call(n))!==null&&U!==void 0?U:null);let $=t.selectedKeys;if($.size){for(let F of $)if(t.canSelectItem(F)){W=F;break}}t.setFocused(!0),t.setFocusedKey(W),W==null&&!c&&r.current&&bn(r.current),t.collection.size>0&&(R.current=!1,k.current=!0)}});let D=d.useRef(t.focusedKey),_=d.useRef(null);d.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||k.current)&&g.current&&r.current){let O=Do(),L=Vi(r,t.focusedKey);if(!(L instanceof HTMLElement))return;(O==="keyboard"||k.current)&&(_.current&&cancelAnimationFrame(_.current),_.current=requestAnimationFrame(()=>{g.current&&(N0(g.current,L),O!=="virtual"&&yc(L,{containingElement:r.current}))}))}!c&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&bn(r.current),D.current=t.focusedKey,k.current=!1}),d.useEffect(()=>()=>{_.current&&cancelAnimationFrame(_.current)},[]),vi(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let A={onKeyDown:x,onFocus:S,onBlur:M,onMouseDown(O){g.current===O.target&&O.preventDefault()}},{typeSelectProps:K}=U9({keyboardDelegate:n,selectionManager:t});h||(A=ie(K,A));let I;c||(I=t.focusedKey==null?0:-1);let z=H9(t.collection);return{collectionProps:ie(A,{tabIndex:I,"data-collection":z})}}function G9(e){let{id:t,selectionManager:n,key:r,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:s,isDisabled:l,onAction:u,allowsDifferentPressOrigin:h,linkBehavior:c="action"}=e,p=Da();t=ot(t);let f=$=>{if($.pointerType==="keyboard"&&Sl($))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(c==="selection"&&o.current){let F=n.getItemProps(r);p.open(o.current,$,F.href,F.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(c==="override"||c==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):$&&$.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||$&&(lr($)||$.pointerType==="touch"||$.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};d.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(a?mh(o.current):s?s():document.activeElement!==o.current&&o.current&&bn(o.current))},[o,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),l=l||n.isDisabled(r);let g={};!a&&!l?g={tabIndex:r===n.focusedKey?0:-1,onFocus($){$.target===o.current&&n.setFocusedKey(r)}}:l&&(g.onMouseDown=$=>{$.preventDefault()});let m=n.isLink(r)&&c==="override",v=u&&e.UNSTABLE_itemBehavior==="action",b=n.isLink(r)&&c!=="selection"&&c!=="none",x=!l&&n.canSelectItem(r)&&!m&&!v,w=(u||b)&&!l,S=w&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),M=w&&x&&n.selectionBehavior==="replace",P=S||M,R=d.useRef(null),k=P&&x,D=d.useRef(!1),_=d.useRef(!1),A=n.getItemProps(r),K=$=>{if(u){var F;u(),(F=o.current)===null||F===void 0||F.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&p.open(o.current,$,A.href,A.routerOptions)},I={ref:o};if(i?(I.onPressStart=$=>{R.current=$.pointerType,D.current=k,$.pointerType==="keyboard"&&(!P||Wc())&&f($)},h?(I.onPressUp=S?void 0:$=>{$.pointerType==="mouse"&&x&&f($)},I.onPress=S?K:$=>{$.pointerType!=="keyboard"&&$.pointerType!=="mouse"&&x&&f($)}):I.onPress=$=>{if(S||M&&$.pointerType!=="mouse"){if($.pointerType==="keyboard"&&!qc())return;K($)}else $.pointerType!=="keyboard"&&x&&f($)}):(I.onPressStart=$=>{R.current=$.pointerType,D.current=k,_.current=S,x&&($.pointerType==="mouse"&&!S||$.pointerType==="keyboard"&&(!w||Wc()))&&f($)},I.onPress=$=>{($.pointerType==="touch"||$.pointerType==="pen"||$.pointerType==="virtual"||$.pointerType==="keyboard"&&P&&qc()||$.pointerType==="mouse"&&_.current)&&(P?K($):x&&f($))}),g["data-collection"]=V9(n.collection),g["data-key"]=r,I.preventFocusOnPress=a,a&&(I=ie(I,{onPressStart($){$.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress($){$.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),A)for(let $ of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])A[$]&&(I[$]=Ur(I[$],A[$]));let{pressProps:z,isPressed:O}=Ia(I),L=M?$=>{R.current==="mouse"&&($.stopPropagation(),$.preventDefault(),K($))}:void 0,{longPressProps:B}=dh({isDisabled:!k,onLongPress($){$.pointerType==="touch"&&(f($),n.setSelectionBehavior("toggle"))}}),U=$=>{R.current==="touch"&&D.current&&$.preventDefault()},W=c!=="none"&&n.isLink(r)?$=>{Ut.isOpening||$.preventDefault()}:void 0;return{itemProps:ie(g,x||S||a&&!l?z:{},k?B:{},{onDoubleClick:L,onDragStartCapture:U,onClick:W,id:t},a?{onMouseDown:$=>$.preventDefault()}:void 0),isPressed:O,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:x,hasAction:P}}function qc(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Wc(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Gc{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Vi(this.ref,t):null;if(!r)return null;let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-o.left-n.clientLeft+n.scrollLeft,y:i.top-o.top-n.clientTop+n.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,o,i;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(o=t==null?void 0:t.clientWidth)!==null&&o!==void 0?o:0,height:(i=t==null?void 0:t.clientHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class Q9{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let o=this.collection.getItem(r);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let a=i;do{if(o=n(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&r(a,i)&&o!=null);return o}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Un(n))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Un(n))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Gc(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Gc(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Y9(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,s=qy({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,u=d.useMemo(()=>i||new Q9({collection:n,disabledKeys:r,disabledBehavior:l,ref:o,collator:s,layoutDelegate:a}),[i,a,n,r,o,s,l]),{collectionProps:h}=W9({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:h}}class X9{build(t,n){return this.context=n,Qc(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(d.isValidElement(n)&&n.type===d.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of r)yield*this.getFullNode({value:i,index:o},{renderer:n}),o++}else{let o=[];d.Children.forEach(n,a=>{a&&o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){if(d.isValidElement(t.element)&&t.element.type===d.Fragment){let v=[];d.Children.forEach(t.element.props.children,x=>{v.push(x)});var i;let b=(i=t.index)!==null&&i!==void 0?i:0;for(const x of v)yield*this.getFullNode({element:x,index:b++},n,r,o);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let v=this.cache.get(t.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=t.index,v.parentKey=o?o.key:null,yield v;return}a=n.renderer(t.value)}if(d.isValidElement(a)){let v=a.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let S=a.type;throw new Error(`Unknown element <${S}> in collection.`)}let b=v.getCollectionNode(a.props,this.context);var s;let x=(s=t.index)!==null&&s!==void 0?s:0,w=b.next();for(;!w.done&&w.value;){let S=w.value;t.index=x;var l;let M=(l=S.key)!==null&&l!==void 0?l:null;M==null&&(M=S.element?null:this.getKey(a,t,n,r));let R=[...this.getFullNode({...S,key:M,index:x,wrapper:Z9(t.wrapper,S.wrapper)},this.getChildState(n,S),r?`${r}${a.key}`:a.key,o)];for(let k of R){var u,h;k.value=(h=(u=S.value)!==null&&u!==void 0?u:t.value)!==null&&h!==void 0?h:null,k.value&&this.cache.set(k.value,k);var c;if(t.type&&k.type!==t.type)throw new Error(`Unsupported type <${ps(k.type)}> in <${ps((c=o==null?void 0:o.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${ps(t.type)}> is supported.`);x++,yield k}w=b.next(R)}return}if(t.key==null||t.type==null)return;let p=this;var f,g;let m={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(f=t.value)!==null&&f!==void 0?f:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(g=t.textValue)!==null&&g!==void 0?g:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Qc(function*(){if(!t.hasChildNodes||!t.childNodes)return;let v=0;for(let b of t.childNodes()){b.key!=null&&(b.key=`${m.key}${b.key}`);let x=p.getFullNode({...b,index:v},p.getChildState(n,b),m.key,m);for(let w of x)v++,yield w}})};yield m}constructor(){this.cache=new WeakMap}}function Qc(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Z9(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function ps(e){return e[0].toUpperCase()+e.slice(1)}function J9(e,t,n){let r=d.useMemo(()=>new X9,[]),{children:o,items:i,collection:a}=e;return d.useMemo(()=>{if(a)return a;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,a,n,t])}function sp(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function e4(e){return t4(e)}function t4(e,t){for(let n of e)return n}function gs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Yc(e,t),t],o=[...Yc(e,n),n],i=r.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Yc(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Xc=new WeakMap;function n4(e){let t=Xc.get(e);if(t!=null)return t;let n=0,r=o=>{for(let i of o)i.type==="section"?r(sp(i,e)):i.type==="item"&&n++};return r(e),Xc.set(e,n),n}var lp={};lp={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var up={};up={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var cp={};cp={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var dp={};dp={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var fp={};fp={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var hp={};hp={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var pp={};pp={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var gp={};gp={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var mp={};mp={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var vp={};vp={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var bp={};bp={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var yp={};yp={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var xp={};xp={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var wp={};wp={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Cp={};Cp={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var $p={};$p={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Sp={};Sp={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Ep={};Ep={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Pp={};Pp={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Rp={};Rp={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var kp={};kp={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Mp={};Mp={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Op={};Op={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Tp={};Tp={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Dp={};Dp={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var _p={};_p={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Lp={};Lp={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Fp={};Fp={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Ip={};Ip={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var jp={};jp={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Np={};Np={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Ap={};Ap={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Kp={};Kp={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Bp={};Bp={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Hp={};Hp={"ar-AE":lp,"bg-BG":up,"cs-CZ":cp,"da-DK":dp,"de-DE":fp,"el-GR":hp,"en-US":pp,"es-ES":gp,"et-EE":mp,"fi-FI":vp,"fr-FR":bp,"he-IL":yp,"hr-HR":xp,"hu-HU":wp,"it-IT":Cp,"ja-JP":$p,"ko-KR":Sp,"lt-LT":Ep,"lv-LV":Pp,"nb-NO":Rp,"nl-NL":kp,"pl-PL":Mp,"pt-BR":Op,"pt-PT":Tp,"ro-RO":Dp,"ru-RU":_p,"sk-SK":Lp,"sl-SI":Fp,"sr-SP":Ip,"sv-SE":jp,"tr-TR":Np,"uk-UA":Ap,"zh-CN":Kp,"zh-TW":Bp};function r4(e){return e&&e.__esModule?e.default:e}function o4(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=ot(),{triggerProps:s,overlayProps:l}=yh({type:r},t,n),u=f=>{if(!o&&!(i==="longPress"&&!f.altKey)&&n&&n.current)switch(f.key){case"Enter":case" ":if(i==="longPress"||f.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),t.toggle("last");break;default:"continuePropagation"in f&&f.continuePropagation()}},h=X0(r4(Hp),"@react-aria/menu"),{longPressProps:c}=dh({isDisabled:o||i!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(f){f.pointerType!=="touch"&&f.pointerType!=="keyboard"&&!o&&($t(f.target),t.open(f.pointerType==="virtual"?"first":null))},onPress(f){f.pointerType==="touch"&&!o&&($t(f.target),t.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?p:c,id:a,onKeyDown:u},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Vp=new WeakMap;function i4(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let s=Ee(e,{labelable:!0}),{listProps:l}=Y9({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Vp.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:ie(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...l,onKeyDown:u=>{var h;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((h=l.onKeyDown)===null||h===void 0||h.call(l,u))}})}}function a4(e,t,n){let{id:r,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:l,onPressUp:u,onPress:h,onPressChange:c,onPressEnd:p,onClick:f,onHoverStart:g,onHoverChange:m,onHoverEnd:v,onKeyDown:b,onKeyUp:x,onFocus:w,onFocusChange:S,onBlur:M,selectionManager:P=t.selectionManager}=e,R=!!s,k=R&&e["aria-expanded"]==="true";var D;let _=(D=e.isDisabled)!==null&&D!==void 0?D:P.isDisabled(o);var A;let K=(A=e.isSelected)!==null&&A!==void 0?A:P.isSelected(o),I=Vp.get(t),z=t.collection.getItem(o),O=e.onClose||I.onClose,L=Da(),B=()=>{var ae;if(!R&&(!(z==null||(ae=z.props)===null||ae===void 0)&&ae.onAction?z.props.onAction():e.onAction&&e.onAction(o),I.onAction)){let Gt=I.onAction;Gt(o)}},U="menuitem";R||(P.selectionMode==="single"?U="menuitemradio":P.selectionMode==="multiple"&&(U="menuitemcheckbox"));let W=Bi(),$=Bi(),F=Bi(),T={id:r,"aria-disabled":_||void 0,role:U,"aria-label":e["aria-label"],"aria-labelledby":W,"aria-describedby":[$,F].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};P.selectionMode!=="none"&&!R&&(T["aria-checked"]=K),a&&(T["aria-posinset"]=z==null?void 0:z.index,T["aria-setsize"]=n4(t.collection));let j=d.useRef(!1),V=ae=>{c==null||c(ae),j.current=ae},N=d.useRef(null),Z=ae=>{ae.pointerType!=="keyboard"&&(N.current={pointerType:ae.pointerType}),ae.pointerType==="mouse"&&(j.current||ae.target.click()),u==null||u(ae)},he=ae=>{var Gt,Qe;f==null||f(ae),B(),ey(ae,L,z.props.href,z==null?void 0:z.props.routerOptions);let Zr=((Gt=N.current)===null||Gt===void 0?void 0:Gt.pointerType)==="keyboard"?((Qe=N.current)===null||Qe===void 0?void 0:Qe.key)==="Enter"||P.selectionMode==="none"||P.isLink(o):P.selectionMode!=="multiple"||P.isLink(o);Zr=i??Zr,O&&!R&&Zr&&O(),N.current=null},{itemProps:te,isFocused:ye}=G9({id:r,selectionManager:P,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:I.shouldUseVirtualFocus}),{pressProps:Q,isPressed:Ne}=Ia({onPressStart:l,onPress:h,onPressUp:Z,onPressChange:V,onPressEnd:p,isDisabled:_}),{hoverProps:_e}=Gr({isDisabled:_,onHoverStart(ae){!To()&&!(k&&s)&&(P.setFocused(!0),P.setFocusedKey(o)),g==null||g(ae)},onHoverChange:m,onHoverEnd:v}),{keyboardProps:Jn}=lh({onKeyDown:ae=>{if(ae.repeat){ae.continuePropagation();return}switch(ae.key){case" ":N.current={pointerType:"keyboard",key:" "},ae.target.click();break;case"Enter":N.current={pointerType:"keyboard",key:"Enter"},ae.target.tagName!=="A"&&ae.target.click();break;default:R||ae.continuePropagation(),b==null||b(ae);break}},onKeyUp:x}),{focusProps:Xr}=hu({onBlur:M,onFocus:w,onFocusChange:S}),ii=Ee(z==null?void 0:z.props);delete ii.id;let ai=J5(z==null?void 0:z.props);return{menuItemProps:{...T,...ie(ii,ai,R?{onFocus:te.onFocus,"data-collection":te["data-collection"],"data-key":te["data-key"]}:te,Q,_e,Jn,Xr,I.shouldUseVirtualFocus||R?{onMouseDown:ae=>ae.preventDefault()}:void 0,_?void 0:{onClick:he}),tabIndex:te.tabIndex!=null&&k&&!I.shouldUseVirtualFocus?-1:te.tabIndex},labelProps:{id:W},descriptionProps:{id:$},keyboardShortcutProps:{id:F},isFocused:ye,isFocusVisible:ye&&P.isFocused&&To()&&!k,isSelected:K,isPressed:Ne,isDisabled:_}}function s4(e){let{heading:t,"aria-label":n}=e,r=ot();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class Qr{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let o=this.clone();return n.addDescendants(o,t),o}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}}class zp extends Qr{filter(t,n,r){let[o,i]=qp(t,n,this.firstChildKey,r),a=this.clone();return a.firstChildKey=o,a.lastChildKey=i,a}}class l4 extends Qr{}l4.type="header";class u4 extends Qr{}u4.type="loader";class Up extends zp{filter(t,n,r){if(r(this.textValue,this)){let o=this.clone();return n.addDescendants(o,t),o}return null}}Up.type="item";class c4 extends zp{filter(t,n,r){let o=super.filter(t,n,r);if(o&&o.lastChildKey!==null){let i=t.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}}c4.type="section";class d4{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let o of r)this.addDescendants(o,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,o]=qp(this,n,this.firstKey,t);return n==null||n.commit(r,o),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function qp(e,t,n,r){if(n==null)return[null,null];let o=null,i=null,a=e.getItem(n);for(;a!=null;){let u=a.filter(e,t,r);u!=null&&(u.nextKey=null,i&&(u.prevKey=i.key,i.nextKey=u.key),o==null&&(o=u),t.addNode(u),i=u),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let u=i.prevKey;t.removeNode(i.key),u?(i=t.getItem(u),i.nextKey=null):i=null}var s,l;return[(s=o==null?void 0:o.key)!==null&&s!==void 0?s:null,(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null]}class Wp{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class vr extends Wp{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof vr?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,o,i,a,s,l;let u=this.nextVisibleSibling,h=this.getMutableNode();if(h!=null){h.index=this.index,h.level=this.level;var c;h.parentKey=this.parentNode instanceof vr&&(c=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&c!==void 0?c:null;var p;h.prevKey=(p=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&p!==void 0?p:null;var f;h.nextKey=(f=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&f!==void 0?f:null,h.hasChildNodes=!!this.firstChild;var g;h.firstChildKey=(g=(a=this.firstVisibleChild)===null||a===void 0||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&g!==void 0?g:null;var m;if(h.lastChildKey=(m=(l=this.lastVisibleChild)===null||l===void 0||(s=l.node)===null||s===void 0?void 0:s.key)!==null&&m!==void 0?m:null,(h.colSpan!=null||h.colIndex!=null)&&u){var v,b;let x=((v=h.colIndex)!==null&&v!==void 0?v:h.index)+((b=h.colSpan)!==null&&b!==void 0?b:1);if(u.node!=null&&x!==u.node.colIndex){let w=u.getMutableNode();w.colIndex=x}}}}setProps(t,n,r,o,i){let a,{value:s,textValue:l,id:u,...h}=t;if(this.node==null?(a=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),h.ref=n,a.props=h,a.rendered=o,a.render=i,a.value=s,t["aria-label"]&&(a["aria-label"]=t["aria-label"]),a.textValue=l||(typeof h.children=="string"?h.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");h.colSpan!=null&&(a.colSpan=h.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,s=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),s&&t.ownerDocument.markDirty(s),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class f4 extends Wp{get isConnected(){return!0}createElement(t){return new vr(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof vr&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof vr?(s.isConnected&&!s.isHidden&&(s.updateNode(),this.addNode(s)),s.node&&this.dirtyNodes.delete(s),s.isMutated=!1):this.dirtyNodes.delete(s);if(this.nextCollection){var t,n,r,o,i,a;this.nextCollection.commit((i=(n=this.firstVisibleChild)===null||n===void 0||(t=n.node)===null||t===void 0?void 0:t.key)!==null&&i!==void 0?i:null,(a=(o=this.lastVisibleChild)===null||o===void 0||(r=o.node)===null||r===void 0?void 0:r.key)!==null&&a!==void 0?a:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function Gp(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=d.useMemo(()=>new WeakMap,i);return d.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let h of n){let c=a.get(h);if(!c){c=t(h);var s,l;let p=(l=(s=c.props.id)!==null&&s!==void 0?s:h.key)!==null&&l!==void 0?l:h.id;if(p==null)throw new Error("Could not determine key for item");r!=null&&(p=r+":"+p),c=d.cloneElement(c,o?{key:p,id:p,value:h}:{key:p}),a.set(h,c)}u.push(c)}return u}else if(typeof t!="function")return t},[t,n,a,r,o])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const oa=d.createContext(!1);function h4(e){if(d.useContext(oa))return d.createElement(d.Fragment,null,e.children);let n=d.createElement(oa.Provider,{value:!0},e.children);return d.createElement("template",{"data-react-aria-hidden":!0},n)}function p4(e){let t=(n,r)=>d.useContext(oa)?null:e(n,r);return t.displayName=e.displayName||e.name,d.forwardRef(t)}function g4(){return d.useContext(oa)}var Qp={exports:{}},Yp={};/**
|
|
31
|
+
}`.trim(),document.head.prepend(r);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},i=l=>{let u=l.target,h=l.relatedTarget;if(h&&yo(h))h.focus({preventScroll:!0}),Gc(h,yo(u));else if(!h){var c;let p=(c=u.parentElement)===null||c===void 0?void 0:c.closest("[tabindex]");p==null||p.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let u=document.activeElement!=null&&yo(document.activeElement);a.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&Gc(this,u)};let s=qr(vs(document,"touchstart",n,{passive:!1,capture:!0}),vs(document,"touchmove",o,{passive:!1,capture:!0}),vs(document,"blur",i,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=a}}function ms(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function vs(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Gc(e,t){t||!wo?Qc(e):wo.addEventListener("resize",()=>Qc(e),{once:!0})}function Qc(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=K0(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+n.clientHeight){let a=o.bottom;wo&&(a=Math.min(a,wo.offsetTop+wo.height));let s=i.top-o.top-((a-o.top)/2-i.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const T9=d.createContext({});function $h(){var e;return(e=d.useContext(T9))!==null&&e!==void 0?e:{}}const Pl=d.createContext(null);function D9(e){let{children:t}=e,n=d.useContext(Pl),[r,o]=d.useState(0),i=d.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return d.createElement(Pl.Provider,{value:i},t)}function _9(){let e=d.useContext(Pl);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function L9(e){let{modalProviderProps:t}=_9();return d.createElement("div",{"data-overlay-container":!0,...e,...t})}function F9(e){return d.createElement(D9,null,d.createElement(L9,e))}function I9(e){let t=Sn(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:o}=$h();if(!e.portalContainer&&o&&(n=o()),d.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let i=d.createElement(F9,r);return Hr.createPortal(i,n)}var Sh={};Sh={dismiss:"تجاهل"};var Eh={};Eh={dismiss:"Отхвърляне"};var Ph={};Ph={dismiss:"Odstranit"};var Rh={};Rh={dismiss:"Luk"};var kh={};kh={dismiss:"Schließen"};var Mh={};Mh={dismiss:"Απόρριψη"};var Oh={};Oh={dismiss:"Dismiss"};var Th={};Th={dismiss:"Descartar"};var Dh={};Dh={dismiss:"Lõpeta"};var _h={};_h={dismiss:"Hylkää"};var Lh={};Lh={dismiss:"Rejeter"};var Fh={};Fh={dismiss:"התעלם"};var Ih={};Ih={dismiss:"Odbaci"};var jh={};jh={dismiss:"Elutasítás"};var Nh={};Nh={dismiss:"Ignora"};var Ah={};Ah={dismiss:"閉じる"};var Kh={};Kh={dismiss:"무시"};var Bh={};Bh={dismiss:"Atmesti"};var Hh={};Hh={dismiss:"Nerādīt"};var Vh={};Vh={dismiss:"Lukk"};var zh={};zh={dismiss:"Negeren"};var Uh={};Uh={dismiss:"Zignoruj"};var qh={};qh={dismiss:"Descartar"};var Wh={};Wh={dismiss:"Dispensar"};var Gh={};Gh={dismiss:"Revocare"};var Qh={};Qh={dismiss:"Пропустить"};var Yh={};Yh={dismiss:"Zrušiť"};var Xh={};Xh={dismiss:"Opusti"};var Zh={};Zh={dismiss:"Odbaci"};var Jh={};Jh={dismiss:"Avvisa"};var ep={};ep={dismiss:"Kapat"};var tp={};tp={dismiss:"Скасувати"};var np={};np={dismiss:"取消"};var rp={};rp={dismiss:"關閉"};var op={};op={"ar-AE":Sh,"bg-BG":Eh,"cs-CZ":Ph,"da-DK":Rh,"de-DE":kh,"el-GR":Mh,"en-US":Oh,"es-ES":Th,"et-EE":Dh,"fi-FI":_h,"fr-FR":Lh,"he-IL":Fh,"hr-HR":Ih,"hu-HU":jh,"it-IT":Nh,"ja-JP":Ah,"ko-KR":Kh,"lt-LT":Bh,"lv-LV":Hh,"nb-NO":Vh,"nl-NL":zh,"pl-PL":Uh,"pt-BR":qh,"pt-PT":Wh,"ro-RO":Gh,"ru-RU":Qh,"sk-SK":Yh,"sl-SI":Xh,"sr-SP":Zh,"sv-SE":Jh,"tr-TR":ep,"uk-UA":tp,"zh-CN":np,"zh-TW":rp};const Yc={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function j9(e={}){let{style:t,isFocusable:n}=e,[r,o]=d.useState(!1),{focusWithinProps:i}=yu({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=d.useMemo(()=>r?t:t?{...Yc,...t}:Yc,[r]);return{visuallyHiddenProps:{...i,style:a}}}function N9(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=j9(e);return d.createElement(n,ie(i,a),t)}function A9(e){return e&&e.__esModule?e.default:e}function Rl(e){let{onDismiss:t,...n}=e,r=J0(A9(op),"@react-aria/overlays"),o=A0(n,r.format("dismiss")),i=()=>{t&&t()};return d.createElement(N9,null,d.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const K9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let oo=new WeakMap,Ve=[];function ip(e,t){let n=ct(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var o;let i=(o=r==null?void 0:r.root)!==null&&o!==void 0?o:document.body,a=(r==null?void 0:r.shouldUseInert)&&K9,s=new Set(e),l=new Set,u=g=>a&&g instanceof n.HTMLElement?g.inert:g.getAttribute("aria-hidden")==="true",h=(g,v)=>{a&&g instanceof n.HTMLElement?g.inert=v:v?g.setAttribute("aria-hidden","true"):(g.removeAttribute("aria-hidden"),g instanceof n.HTMLElement&&(g.inert=!1))},c=g=>{for(let w of g.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(w);let v=w=>{if(l.has(w)||s.has(w)||w.parentElement&&l.has(w.parentElement)&&w.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let $ of s)if(te(w,$))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},b=document.createTreeWalker(g,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),x=v(g);if(x===NodeFilter.FILTER_ACCEPT&&p(g),x!==NodeFilter.FILTER_REJECT){let w=b.nextNode();for(;w!=null;)p(w),w=b.nextNode()}},p=g=>{var v;let b=(v=oo.get(g))!==null&&v!==void 0?v:0;u(g)&&b===0||(b===0&&h(g,!0),l.add(g),oo.set(g,b+1))};Ve.length&&Ve[Ve.length-1].disconnect(),c(i);let f=new MutationObserver(g=>{for(let v of g)if(v.type==="childList"&&v.target.isConnected&&![...s,...l].some(b=>te(b,v.target)))for(let b of v.addedNodes)(b instanceof HTMLElement||b instanceof SVGElement)&&(b.dataset.liveAnnouncer==="true"||b.dataset.reactAriaTopLayer==="true")?s.add(b):b instanceof Element&&c(b)});f.observe(i,{childList:!0,subtree:!0});let m={visibleNodes:s,hiddenNodes:l,observe(){f.observe(i,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return Ve.push(m),()=>{f.disconnect();for(let g of l){let v=oo.get(g);v!=null&&(v===1?(h(g,!1),oo.delete(g)):oo.set(g,v-1))}m===Ve[Ve.length-1]?(Ve.pop(),Ve.length&&Ve[Ve.length-1].observe()):Ve.splice(Ve.indexOf(m),1)}}function B9(e){let t=Ve[Ve.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function H9(e,t){let{triggerRef:n,popoverRef:r,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...l}=e,u=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:c}=xh({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},o??r),{overlayProps:p,arrowProps:f,placement:m,triggerAnchorPoint:g}=th({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i&&!u?t.close:null});return Ch({isDisabled:i||!t.isOpen}),d.useEffect(()=>{if(t.isOpen&&r.current){var v,b;return i?B9((v=o==null?void 0:o.current)!==null&&v!==void 0?v:r.current):ip([(b=o==null?void 0:o.current)!==null&&b!==void 0?b:r.current],{shouldUseInert:!0})}},[i,t.isOpen,r,o]),{popoverProps:ie(h,p),arrowProps:f,underlayProps:c,placement:m,triggerAnchorPoint:g}}const ap=d.createContext(null);function kl(e){let t=Sn(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=d.useState(!1),a=d.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=$h();if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=d.createElement(ph,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!r},l)),l=d.createElement(ap.Provider,{value:a},d.createElement(p9,null,l)),Hr.createPortal(l,n)}function sp(){let e=d.useContext(ap),t=e==null?void 0:e.setContain;se(()=>{t==null||t(!0)},[t])}function V9(e,t,n){let{overlayProps:r,underlayProps:o}=xh({...e,isOpen:t.isOpen,onClose:t.close},n);return Ch({isDisabled:!t.isOpen}),sp(),d.useEffect(()=>{if(t.isOpen&&n.current)return ip([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:ie(r),underlayProps:o}}function z9(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=rt(t);let a=rt(),s={};n&&(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0});let l=A0({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function Ml(e){return Q5()?e.altKey:e.ctrlKey}function zi(e,t){var n,r;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(o)}const lp=new WeakMap;function U9(e){let t=rt();return lp.set(e,t),t}function q9(e){return lp.get(e)}const W9=1e3;function G9(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=d.useRef({search:"",timeout:void 0}).current,i=a=>{let s=Q9(a.key);if(!(!s||a.ctrlKey||a.metaKey||!te(a.currentTarget,a.target)||o.search.length===0&&s===" ")){if(s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},W9)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function Q9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Y9(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:c,allowsTabNavigation:p=!1,scrollRef:f=r,linkBehavior:m="action"}=e,{direction:g}=Xn(),v=_a(),b=_=>{if(_.altKey&&_.key==="Tab"&&_.preventDefault(),!r.current||!te(r.current,_.target))return;const T=(U,de)=>{if(U!=null){if(t.isLink(U)&&m==="selection"&&u&&!Ml(_)){Hr.flushSync(()=>{t.setFocusedKey(U,de)});let ve=zi(r,U),St=t.getItemProps(U);ve&&v.open(ve,_,St.href,St.routerOptions);return}if(t.setFocusedKey(U,de),t.isLink(U)&&m==="override")return;_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(U):u&&!Ml(_)&&t.replaceSelection(U)}};switch(_.key){case"ArrowDown":if(n.getKeyBelow){var I,z,G;let U=t.focusedKey!=null?(I=n.getKeyBelow)===null||I===void 0?void 0:I.call(n,t.focusedKey):(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n);U==null&&i&&(U=(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n,t.focusedKey)),U!=null&&(_.preventDefault(),T(U))}break;case"ArrowUp":if(n.getKeyAbove){var q,S,F;let U=t.focusedKey!=null?(q=n.getKeyAbove)===null||q===void 0?void 0:q.call(n,t.focusedKey):(S=n.getLastKey)===null||S===void 0?void 0:S.call(n);U==null&&i&&(U=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n,t.focusedKey)),U!=null&&(_.preventDefault(),T(U))}break;case"ArrowLeft":if(n.getKeyLeftOf){var O,j,H;let U=t.focusedKey!=null?(O=n.getKeyLeftOf)===null||O===void 0?void 0:O.call(n,t.focusedKey):null;U==null&&i&&(U=g==="rtl"?(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,t.focusedKey):(H=n.getLastKey)===null||H===void 0?void 0:H.call(n,t.focusedKey)),U!=null&&(_.preventDefault(),T(U,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var K,X,pe;let U=t.focusedKey!=null?(K=n.getKeyRightOf)===null||K===void 0?void 0:K.call(n,t.focusedKey):null;U==null&&i&&(U=g==="rtl"?(X=n.getLastKey)===null||X===void 0?void 0:X.call(n,t.focusedKey):(pe=n.getFirstKey)===null||pe===void 0?void 0:pe.call(n,t.focusedKey)),U!=null&&(_.preventDefault(),T(U,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&_.shiftKey)return;_.preventDefault();let U=n.getFirstKey(t.focusedKey,lr(_));t.setFocusedKey(U),U!=null&&(lr(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(U):u&&t.replaceSelection(U))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&_.shiftKey)return;_.preventDefault();let U=n.getLastKey(t.focusedKey,lr(_));t.setFocusedKey(U),U!=null&&(lr(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(U):u&&t.replaceSelection(U))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let U=n.getKeyPageBelow(t.focusedKey);U!=null&&(_.preventDefault(),T(U))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let U=n.getKeyPageAbove(t.focusedKey);U!=null&&(_.preventDefault(),T(U))}break;case"a":lr(_)&&t.selectionMode==="multiple"&&s!==!0&&(_.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(_.stopPropagation(),_.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(_.shiftKey)r.current.focus();else{let U=tt(r.current,{tabbable:!0}),de,ve;do ve=U.lastChild(),ve&&(de=ve);while(ve);de&&(!te(de,document.activeElement)||document.activeElement&&!U0(document.activeElement))&&Ct(de)}break}}},x=d.useRef({top:0,left:0});bi(f,"scroll",()=>{var _,T,I,z;x.current={top:(I=(_=f.current)===null||_===void 0?void 0:_.scrollTop)!==null&&I!==void 0?I:0,left:(z=(T=f.current)===null||T===void 0?void 0:T.scrollLeft)!==null&&z!==void 0?z:0}});let w=_=>{if(t.isFocused){te(_.currentTarget,_.target)||t.setFocused(!1);return}if(te(_.currentTarget,_.target)){if(t.setFocused(!0),t.focusedKey==null){var T,I;let q=F=>{F!=null&&(t.setFocusedKey(F),u&&!t.isSelected(F)&&t.replaceSelection(F))},S=_.relatedTarget;var z,G;S&&_.currentTarget.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?q((z=t.lastSelectedKey)!==null&&z!==void 0?z:(T=n.getLastKey)===null||T===void 0?void 0:T.call(n)):q((G=t.firstSelectedKey)!==null&&G!==void 0?G:(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n))}else f.current&&(f.current.scrollTop=x.current.top,f.current.scrollLeft=x.current.left);if(t.focusedKey!=null&&f.current){let q=zi(r,t.focusedKey);q instanceof HTMLElement&&(!te(q,document.activeElement)&&!c&&Ct(q),Lo()==="keyboard"&&$c(q,{containingElement:r.current}))}}},$=_=>{te(_.currentTarget,_.relatedTarget)||t.setFocused(!1)},M=d.useRef(!1);bi(r,hy,c?_=>{let{detail:T}=_;_.stopPropagation(),t.setFocused(!0),(T==null?void 0:T.focusStrategy)==="first"&&(M.current=!0)}:void 0),wc(()=>{if(M.current){var _,T;let I=(T=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n))!==null&&T!==void 0?T:null;if(I==null){let z=Oe();bh(r.current),yh(z,null),t.collection.size>0&&(M.current=!1)}else t.setFocusedKey(I),M.current=!1}},[t.collection]),wc(()=>{t.collection.size>0&&(M.current=!1)},[t.focusedKey]),bi(r,fy,c?_=>{var T;_.stopPropagation(),t.setFocused(!1),!((T=_.detail)===null||T===void 0)&&T.clearFocusKey&&t.setFocusedKey(null)}:void 0);const R=d.useRef(o),P=d.useRef(!1);d.useEffect(()=>{if(R.current){var _,T;let G=null;var I;o==="first"&&(G=(I=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n))!==null&&I!==void 0?I:null);var z;o==="last"&&(G=(z=(T=n.getLastKey)===null||T===void 0?void 0:T.call(n))!==null&&z!==void 0?z:null);let q=t.selectedKeys;if(q.size){for(let S of q)if(t.canSelectItem(S)){G=S;break}}t.setFocused(!0),t.setFocusedKey(G),G==null&&!c&&r.current&&yn(r.current),t.collection.size>0&&(R.current=!1,P.current=!0)}});let k=d.useRef(t.focusedKey),D=d.useRef(null);d.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==k.current||P.current)&&f.current&&r.current){let _=Lo(),T=zi(r,t.focusedKey);if(!(T instanceof HTMLElement))return;(_==="keyboard"||P.current)&&(D.current&&cancelAnimationFrame(D.current),D.current=requestAnimationFrame(()=>{f.current&&(B0(f.current,T),_!=="virtual"&&$c(T,{containingElement:r.current}))}))}!c&&t.isFocused&&t.focusedKey==null&&k.current!=null&&r.current&&yn(r.current),k.current=t.focusedKey,P.current=!1}),d.useEffect(()=>()=>{D.current&&cancelAnimationFrame(D.current)},[]),bi(r,"react-aria-focus-scope-restore",_=>{_.preventDefault(),t.setFocused(!0)});let L={onKeyDown:b,onFocus:w,onBlur:$,onMouseDown(_){f.current===_.target&&_.preventDefault()}},{typeSelectProps:N}=G9({keyboardDelegate:n,selectionManager:t});h||(L=ie(N,L));let B;c||(B=t.focusedKey==null?0:-1);let A=U9(t.collection);return{collectionProps:ie(L,{tabIndex:B,"data-collection":A})}}function X9(e){let{id:t,selectionManager:n,key:r,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:s,isDisabled:l,onAction:u,allowsDifferentPressOrigin:h,linkBehavior:c="action"}=e,p=_a();t=rt(t);let f=S=>{if(S.pointerType==="keyboard"&&Ml(S))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(c==="selection"&&o.current){let F=n.getItemProps(r);p.open(o.current,S,F.href,F.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(c==="override"||c==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):S&&S.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||S&&(lr(S)||S.pointerType==="touch"||S.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};d.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(a?bh(o.current):s?s():document.activeElement!==o.current&&o.current&&yn(o.current))},[o,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),l=l||n.isDisabled(r);let m={};!a&&!l?m={tabIndex:r===n.focusedKey?0:-1,onFocus(S){S.target===o.current&&n.setFocusedKey(r)}}:l&&(m.onMouseDown=S=>{S.preventDefault()}),d.useEffect(()=>{l&&n.focusedKey===r&&n.setFocusedKey(null)},[n,l,r]);let g=n.isLink(r)&&c==="override",v=u&&e.UNSTABLE_itemBehavior==="action",b=n.isLink(r)&&c!=="selection"&&c!=="none",x=!l&&n.canSelectItem(r)&&!g&&!v,w=(u||b)&&!l,$=w&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),M=w&&x&&n.selectionBehavior==="replace",R=$||M,P=d.useRef(null),k=R&&x,D=d.useRef(!1),L=d.useRef(!1),N=n.getItemProps(r),B=S=>{if(u){var F;u(),(F=o.current)===null||F===void 0||F.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&p.open(o.current,S,N.href,N.routerOptions)},A={ref:o};if(i?(A.onPressStart=S=>{P.current=S.pointerType,D.current=k,S.pointerType==="keyboard"&&(!R||Zc(S.key))&&f(S)},h?(A.onPressUp=$?void 0:S=>{S.pointerType==="mouse"&&x&&f(S)},A.onPress=$?B:S=>{S.pointerType!=="keyboard"&&S.pointerType!=="mouse"&&x&&f(S)}):A.onPress=S=>{if($||M&&S.pointerType!=="mouse"){if(S.pointerType==="keyboard"&&!Xc(S.key))return;B(S)}else S.pointerType!=="keyboard"&&x&&f(S)}):(A.onPressStart=S=>{P.current=S.pointerType,D.current=k,L.current=$,x&&(S.pointerType==="mouse"&&!$||S.pointerType==="keyboard"&&(!w||Zc(S.key)))&&f(S)},A.onPress=S=>{(S.pointerType==="touch"||S.pointerType==="pen"||S.pointerType==="virtual"||S.pointerType==="keyboard"&&R&&Xc(S.key)||S.pointerType==="mouse"&&L.current)&&(R?B(S):x&&f(S))}),m["data-collection"]=q9(n.collection),m["data-key"]=r,A.preventFocusOnPress=a,a&&(A=ie(A,{onPressStart(S){S.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(S){S.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),N)for(let S of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])N[S]&&(A[S]=qr(A[S],N[S]));let{pressProps:_,isPressed:T}=ja(A),I=M?S=>{P.current==="mouse"&&(S.stopPropagation(),S.preventDefault(),B(S))}:void 0,{longPressProps:z}=hh({isDisabled:!k,onLongPress(S){S.pointerType==="touch"&&(f(S),n.setSelectionBehavior("toggle"))}}),G=S=>{P.current==="touch"&&D.current&&S.preventDefault()},q=c!=="none"&&n.isLink(r)?S=>{Ut.isOpening||S.preventDefault()}:void 0;return{itemProps:ie(m,x||$||a&&!l?_:{},k?z:{},{onDoubleClick:I,onDragStartCapture:G,onClick:q,id:t},a?{onMouseDown:S=>S.preventDefault()}:void 0),isPressed:T,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:x,hasAction:R}}function Xc(e){return e==="Enter"}function Zc(e){return e===" "}class Jc{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?zi(this.ref,t):null;if(!r)return null;let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-o.left-n.clientLeft+n.scrollLeft,y:i.top-o.top-n.clientTop+n.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,o,i;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(o=t==null?void 0:t.clientWidth)!==null&&o!==void 0?o:0,height:(i=t==null?void 0:t.clientHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class Z9{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let o=this.collection.getItem(r);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let a=i;do{if(o=n(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&r(a,i)&&o!=null);return o}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!qn(n))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i&&o!=null;)o=this.getKeyAbove(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!qn(n))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<i&&o!=null;)o=this.getKeyBelow(o),r=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Jc(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Jc(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function J9(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,s=Qy({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,u=d.useMemo(()=>i||new Z9({collection:n,disabledKeys:r,disabledBehavior:l,ref:o,collator:s,layoutDelegate:a}),[i,a,n,r,o,s,l]),{collectionProps:h}=Y9({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:h}}class e4{build(t,n){return this.context=n,ed(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(d.isValidElement(n)&&n.type===d.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of r)yield*this.getFullNode({value:i,index:o},{renderer:n}),o++}else{let o=[];d.Children.forEach(n,a=>{a&&o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){if(d.isValidElement(t.element)&&t.element.type===d.Fragment){let v=[];d.Children.forEach(t.element.props.children,x=>{v.push(x)});var i;let b=(i=t.index)!==null&&i!==void 0?i:0;for(const x of v)yield*this.getFullNode({element:x,index:b++},n,r,o);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let v=this.cache.get(t.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=t.index,v.parentKey=o?o.key:null,yield v;return}a=n.renderer(t.value)}if(d.isValidElement(a)){let v=a.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let $=a.type;throw new Error(`Unknown element <${$}> in collection.`)}let b=v.getCollectionNode(a.props,this.context);var s;let x=(s=t.index)!==null&&s!==void 0?s:0,w=b.next();for(;!w.done&&w.value;){let $=w.value;t.index=x;var l;let M=(l=$.key)!==null&&l!==void 0?l:null;M==null&&(M=$.element?null:this.getKey(a,t,n,r));let P=[...this.getFullNode({...$,key:M,index:x,wrapper:t4(t.wrapper,$.wrapper)},this.getChildState(n,$),r?`${r}${a.key}`:a.key,o)];for(let k of P){var u,h;k.value=(h=(u=$.value)!==null&&u!==void 0?u:t.value)!==null&&h!==void 0?h:null,k.value&&this.cache.set(k.value,k);var c;if(t.type&&k.type!==t.type)throw new Error(`Unsupported type <${bs(k.type)}> in <${bs((c=o==null?void 0:o.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${bs(t.type)}> is supported.`);x++,yield k}w=b.next(P)}return}if(t.key==null||t.type==null)return;let p=this;var f,m;let g={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(f=t.value)!==null&&f!==void 0?f:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(m=t.textValue)!==null&&m!==void 0?m:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:ed(function*(){if(!t.hasChildNodes||!t.childNodes)return;let v=0;for(let b of t.childNodes()){b.key!=null&&(b.key=`${g.key}${b.key}`);let x=p.getFullNode({...b,index:v},p.getChildState(n,b),g.key,g);for(let w of x)v++,yield w}})};yield g}constructor(){this.cache=new WeakMap}}function ed(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function t4(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function bs(e){return e[0].toUpperCase()+e.slice(1)}function n4(e,t,n){let r=d.useMemo(()=>new e4,[]),{children:o,items:i,collection:a}=e;return d.useMemo(()=>{if(a)return a;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,a,n,t])}function up(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function r4(e){return o4(e)}function o4(e,t){for(let n of e)return n}function ys(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...td(e,t),t],o=[...td(e,n),n],i=r.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function td(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const nd=new WeakMap;function i4(e){let t=nd.get(e);if(t!=null)return t;let n=0,r=o=>{for(let i of o)i.type==="section"?r(up(i,e)):i.type==="item"&&n++};return r(e),nd.set(e,n),n}var cp={};cp={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var dp={};dp={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var fp={};fp={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var hp={};hp={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var pp={};pp={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var gp={};gp={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var mp={};mp={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var vp={};vp={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var bp={};bp={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var yp={};yp={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var xp={};xp={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var wp={};wp={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Cp={};Cp={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var $p={};$p={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Sp={};Sp={longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"};var Ep={};Ep={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Pp={};Pp={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Rp={};Rp={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var kp={};kp={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Mp={};Mp={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Op={};Op={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Tp={};Tp={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Dp={};Dp={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var _p={};_p={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Lp={};Lp={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Fp={};Fp={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Ip={};Ip={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var jp={};jp={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Np={};Np={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Ap={};Ap={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Kp={};Kp={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Bp={};Bp={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Hp={};Hp={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Vp={};Vp={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var zp={};zp={"ar-AE":cp,"bg-BG":dp,"cs-CZ":fp,"da-DK":hp,"de-DE":pp,"el-GR":gp,"en-US":mp,"es-ES":vp,"et-EE":bp,"fi-FI":yp,"fr-FR":xp,"he-IL":wp,"hr-HR":Cp,"hu-HU":$p,"it-IT":Sp,"ja-JP":Ep,"ko-KR":Pp,"lt-LT":Rp,"lv-LV":kp,"nb-NO":Mp,"nl-NL":Op,"pl-PL":Tp,"pt-BR":Dp,"pt-PT":_p,"ro-RO":Lp,"ru-RU":Fp,"sk-SK":Ip,"sl-SI":jp,"sr-SP":Np,"sv-SE":Ap,"tr-TR":Kp,"uk-UA":Bp,"zh-CN":Hp,"zh-TW":Vp};function a4(e){return e&&e.__esModule?e.default:e}function s4(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=rt(),{triggerProps:s,overlayProps:l}=wh({type:r},t,n),u=f=>{if(!o&&!(i==="longPress"&&!f.altKey)&&n&&n.current)switch(f.key){case"Enter":case" ":if(i==="longPress"||f.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in f||f.stopPropagation(),f.preventDefault(),t.toggle("last");break;default:"continuePropagation"in f&&f.continuePropagation()}},h=J0(a4(zp),"@react-aria/menu"),{longPressProps:c}=hh({isDisabled:o||i!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(f){f.pointerType!=="touch"&&f.pointerType!=="keyboard"&&!o&&(Ct(f.target),t.open(f.pointerType==="virtual"?"first":null))},onPress(f){f.pointerType==="touch"&&!o&&(Ct(f.target),t.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?p:c,id:a,onKeyDown:u},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Up=new WeakMap;function l4(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let s=Pe(e,{labelable:!0}),{listProps:l}=J9({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Up.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:ie(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...l,onKeyDown:u=>{var h;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((h=l.onKeyDown)===null||h===void 0||h.call(l,u))}})}}function u4(e,t,n){let{id:r,key:o,closeOnSelect:i,shouldCloseOnSelect:a,isVirtualized:s,"aria-haspopup":l,onPressStart:u,onPressUp:h,onPress:c,onPressChange:p,onPressEnd:f,onClick:m,onHoverStart:g,onHoverChange:v,onHoverEnd:b,onKeyDown:x,onKeyUp:w,onFocus:$,onFocusChange:M,onBlur:R,selectionManager:P=t.selectionManager}=e,k=!!l,D=k&&e["aria-expanded"]==="true";var L;let N=(L=e.isDisabled)!==null&&L!==void 0?L:P.isDisabled(o);var B;let A=(B=e.isSelected)!==null&&B!==void 0?B:P.isSelected(o),_=Up.get(t),T=t.collection.getItem(o),I=e.onClose||_.onClose,z=_a(),G=()=>{var le;if(!k&&(!(T==null||(le=T.props)===null||le===void 0)&&le.onAction?T.props.onAction():e.onAction&&e.onAction(o),_.onAction)){let Ae=_.onAction;Ae(o)}},q="menuitem";k||(P.selectionMode==="single"?q="menuitemradio":P.selectionMode==="multiple"&&(q="menuitemcheckbox"));let S=Hi(),F=Hi(),O=Hi(),j={id:r,"aria-disabled":N||void 0,role:q,"aria-label":e["aria-label"],"aria-labelledby":S,"aria-describedby":[F,O].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};P.selectionMode!=="none"&&!k&&(j["aria-checked"]=A),s&&(j["aria-posinset"]=T==null?void 0:T.index,j["aria-setsize"]=i4(t.collection));let H=d.useRef(!1),K=le=>{p==null||p(le),H.current=le},X=d.useRef(null),pe=le=>{le.pointerType!=="keyboard"&&(X.current={pointerType:le.pointerType}),le.pointerType==="mouse"&&(H.current||le.target.click()),h==null||h(le)},U=le=>{var Ae,eo;m==null||m(le),G(),ny(le,z,T.props.href,T==null?void 0:T.props.routerOptions);let to=((Ae=X.current)===null||Ae===void 0?void 0:Ae.pointerType)==="keyboard"?((eo=X.current)===null||eo===void 0?void 0:eo.key)==="Enter"||P.selectionMode==="none"||P.isLink(o):P.selectionMode!=="multiple"||P.isLink(o);var De;to=(De=a??i)!==null&&De!==void 0?De:to,I&&!k&&to&&I(),X.current=null},{itemProps:de,isFocused:ve}=X9({id:r,selectionManager:P,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:_.shouldUseVirtualFocus}),{pressProps:St,isPressed:Gt}=ja({onPressStart:u,onPress:c,onPressUp:pe,onPressChange:K,onPressEnd:f,isDisabled:N}),{hoverProps:Wa}=Qr({isDisabled:N,onHoverStart(le){!Ir()&&!(D&&l)&&(P.setFocused(!0),P.setFocusedKey(o)),g==null||g(le)},onHoverChange:v,onHoverEnd:b}),{keyboardProps:Zr}=dh({onKeyDown:le=>{if(le.repeat){le.continuePropagation();return}switch(le.key){case" ":X.current={pointerType:"keyboard",key:" "},le.target.click();break;case"Enter":X.current={pointerType:"keyboard",key:"Enter"},le.target.tagName!=="A"&&le.target.click();break;default:k||le.continuePropagation(),x==null||x(le);break}},onKeyUp:w}),{focusableProps:Ga}=bu({onBlur:R,onFocus:$,onFocusChange:M},n),Jr=Pe(T==null?void 0:T.props);delete Jr.id;let Pn=ty(T==null?void 0:T.props);return{menuItemProps:{...j,...ie(Jr,Pn,k?{onFocus:de.onFocus,"data-collection":de["data-collection"],"data-key":de["data-key"]}:de,St,Wa,Zr,Ga,_.shouldUseVirtualFocus||k?{onMouseDown:le=>le.preventDefault()}:void 0,N?void 0:{onClick:U}),tabIndex:de.tabIndex!=null&&D&&!_.shouldUseVirtualFocus?-1:de.tabIndex},labelProps:{id:S},descriptionProps:{id:F},keyboardShortcutProps:{id:O},isFocused:ve,isFocusVisible:ve&&P.isFocused&&Ir()&&!D,isSelected:A,isPressed:Gt,isDisabled:N}}function c4(e){let{heading:t,"aria-label":n}=e,r=rt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class Yr{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let o=this.clone();return n.addDescendants(o,t),o}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}}class qp extends Yr{filter(t,n,r){let[o,i]=Gp(t,n,this.firstChildKey,r),a=this.clone();return a.firstChildKey=o,a.lastChildKey=i,a}}class d4 extends Yr{}d4.type="header";class f4 extends Yr{}f4.type="loader";class Wp extends qp{filter(t,n,r){if(r(this.textValue,this)){let o=this.clone();return n.addDescendants(o,t),o}return null}}Wp.type="item";class h4 extends qp{filter(t,n,r){let o=super.filter(t,n,r);if(o&&o.lastChildKey!==null){let i=t.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}}h4.type="section";class p4{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let o of r)this.addDescendants(o,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,o]=Gp(this,n,this.firstKey,t);return n==null||n.commit(r,o),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Gp(e,t,n,r){if(n==null)return[null,null];let o=null,i=null,a=e.getItem(n);for(;a!=null;){let u=a.filter(e,t,r);u!=null&&(u.nextKey=null,i&&(u.prevKey=i.key,i.nextKey=u.key),o==null&&(o=u),t.addNode(u),i=u),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let u=i.prevKey;t.removeNode(i.key),u?(i=t.getItem(u),i.nextKey=null):i=null}var s,l;return[(s=o==null?void 0:o.key)!==null&&s!==void 0?s:null,(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null]}class Qp{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class vr extends Qp{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof vr?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,o,i,a,s,l;let u=this.nextVisibleSibling,h=this.getMutableNode();if(h!=null){h.index=this.index,h.level=this.level;var c;h.parentKey=this.parentNode instanceof vr&&(c=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&c!==void 0?c:null;var p;h.prevKey=(p=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&p!==void 0?p:null;var f;h.nextKey=(f=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&f!==void 0?f:null,h.hasChildNodes=!!this.firstChild;var m;h.firstChildKey=(m=(a=this.firstVisibleChild)===null||a===void 0||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&m!==void 0?m:null;var g;if(h.lastChildKey=(g=(l=this.lastVisibleChild)===null||l===void 0||(s=l.node)===null||s===void 0?void 0:s.key)!==null&&g!==void 0?g:null,(h.colSpan!=null||h.colIndex!=null)&&u){var v,b;let x=((v=h.colIndex)!==null&&v!==void 0?v:h.index)+((b=h.colSpan)!==null&&b!==void 0?b:1);if(u.node!=null&&x!==u.node.colIndex){let w=u.getMutableNode();w.colIndex=x}}}}setProps(t,n,r,o,i){let a,{value:s,textValue:l,id:u,...h}=t;if(this.node==null?(a=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),h.ref=n,a.props=h,a.rendered=o,a.render=i,a.value=s,t["aria-label"]&&(a["aria-label"]=t["aria-label"]),a.textValue=l||(typeof h.children=="string"?h.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");h.colSpan!=null&&(a.colSpan=h.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,s=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),s&&t.ownerDocument.markDirty(s),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class g4 extends Qp{get isConnected(){return!0}createElement(t){return new vr(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof vr&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof vr?(s.isConnected&&!s.isHidden&&(s.updateNode(),this.addNode(s)),s.node&&this.dirtyNodes.delete(s),s.isMutated=!1):this.dirtyNodes.delete(s);if(this.nextCollection){var t,n,r,o,i,a;this.nextCollection.commit((i=(n=this.firstVisibleChild)===null||n===void 0||(t=n.node)===null||t===void 0?void 0:t.key)!==null&&i!==void 0?i:null,(a=(o=this.lastVisibleChild)===null||o===void 0||(r=o.node)===null||r===void 0?void 0:r.key)!==null&&a!==void 0?a:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function Yp(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=d.useMemo(()=>new WeakMap,i);return d.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let h of n){let c=a.get(h);if(!c){c=t(h);var s,l;let p=(l=(s=c.props.id)!==null&&s!==void 0?s:h.key)!==null&&l!==void 0?l:h.id;if(p==null)throw new Error("Could not determine key for item");r!=null&&(p=r+":"+p),c=d.cloneElement(c,o?{key:p,id:p,value:h}:{key:p}),a.set(h,c)}u.push(c)}return u}else if(typeof t!="function")return t},[t,n,a,r,o])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const oa=d.createContext(!1);function m4(e){if(d.useContext(oa))return d.createElement(d.Fragment,null,e.children);let n=d.createElement(oa.Provider,{value:!0},e.children);return d.createElement("template",{"data-react-aria-hidden":!0},n)}function v4(e){let t=(n,r)=>d.useContext(oa)?null:e(n,r);return t.displayName=e.displayName||e.name,d.forwardRef(t)}function b4(){return d.useContext(oa)}var Xp={exports:{}},Zp={};/**
|
|
32
32
|
* @license React
|
|
33
33
|
* use-sync-external-store-shim.production.js
|
|
34
34
|
*
|
|
@@ -36,7 +36,7 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
|
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var Ir=d;function m4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var v4=typeof Object.is=="function"?Object.is:m4,b4=Ir.useState,y4=Ir.useEffect,x4=Ir.useLayoutEffect,w4=Ir.useDebugValue;function C4(e,t){var n=t(),r=b4({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return x4(function(){o.value=n,o.getSnapshot=t,ms(o)&&i({inst:o})},[e,n,t]),y4(function(){return ms(o)&&i({inst:o}),e(function(){ms(o)&&i({inst:o})})},[e]),w4(n),n}function ms(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!v4(e,n)}catch{return!0}}function $4(e,t){return t()}var S4=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$4:C4;Yp.useSyncExternalStore=Ir.useSyncExternalStore!==void 0?Ir.useSyncExternalStore:S4;Qp.exports=Yp;var E4=Qp.exports;const Xp=d.createContext(!1),_o=d.createContext(null);function P4(e){if(d.useContext(_o))return e.content;let{collection:n,document:r}=O4(e.createCollection);return d.createElement(d.Fragment,null,d.createElement(h4,null,d.createElement(_o.Provider,{value:r},e.content)),d.createElement(R4,{render:e.children,collection:n}))}function R4({collection:e,render:t}){return t(e)}function k4(e,t,n){let r=$n(),o=d.useRef(r);o.current=r;let i=d.useCallback(()=>o.current?n():t(),[t,n]);return E4.useSyncExternalStore(e,i)}const M4=typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore:k4;function O4(e){let[t]=d.useState(()=>new f4((e==null?void 0:e())||new d4)),n=d.useCallback(a=>t.subscribe(a),[t]),r=d.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=d.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:M4(n,r,o),document:t}}const El=d.createContext(null);function T4(e){var t;return t=class extends Qr{},t.type=e,t}function D4(e,t,n,r,o,i){typeof e=="string"&&(e=T4(e));let a=d.useCallback(l=>{l==null||l.setProps(t,n,e,r,i)},[t,n,r,i,e]),s=d.useContext(El);if(s){let l=s.ownerDocument.nodesByProps.get(t);return l||(l=s.ownerDocument.createElement(e.type),l.setProps(t,n,e,r,i),s.appendChild(l),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,l)),o?d.createElement(El.Provider,{value:l},o):null}return d.createElement(e.type,{ref:a},o)}function _4(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=d.forwardRef((o,i)=>{let a=d.useContext(na);if(!d.useContext(Xp)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return D4(e,o,i,"children"in o?o.children:null,null,l=>d.createElement(na.Provider,{value:a},d.createElement(n,{node:l})))});return r.displayName=t.name,r}function L4(e){return Gp({...e,addIdAndValue:!0})}const Zc=d.createContext(null);function F4(e){let t=d.useContext(Zc),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies);var r;let o=(r=e.idScope)!==null&&r!==void 0?r:t==null?void 0:t.idScope,i=L4({...e,idScope:o,dependencies:n});return d.useContext(_o)&&(i=d.createElement(I4,null,i)),t=d.useMemo(()=>({dependencies:n,idScope:o}),[o,...n]),d.createElement(Zc.Provider,{value:t},i)}function I4({children:e}){let t=d.useContext(_o),n=d.useMemo(()=>d.createElement(_o.Provider,{value:null},d.createElement(Xp.Provider,{value:!0},e)),[e]);return $n()?d.createElement(El.Provider,{value:t},n):Br.createPortal(n,t)}const j4=d.createContext(null),N4={CollectionRoot({collection:e,renderDropIndicator:t}){return Jc(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Jc(e,t,n)}};function Jc(e,t,n){return Gp({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){let o=r.render(r);return!n||r.type!=="item"?o:d.createElement(d.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),o,A4(e,r,n))}})}function A4(e,t,n){let r=t.key,o=e.getKeyAfter(r),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let s=[];if(a==null){let l=t;for(;(l==null?void 0:l.type)==="item"&&(!i||l.parentKey!==i.parentKey&&i.level<l.level);){let u=n({type:"item",key:l.key,dropPosition:"after"});d.isValidElement(u)&&s.push(d.cloneElement(u,{key:`${l.key}-after`})),l=l.parentKey!=null?e.getItem(l.parentKey):null}}return s}const Zp=d.createContext(N4);function K4(e){return d.useMemo(()=>e!=null?new Set([e]):null,[e])}function Jp(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:h,onClick:c,href:p,target:f,rel:g,type:m="button"}=e,v;n==="button"?v={type:m,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:v={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?f:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?g:void 0};let{pressProps:b,isPressed:x}=Ia({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,onClick:c,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:w}=uh(e,t);h&&(w.tabIndex=r?-1:w.tabIndex);let S=ie(w,b,Ee(e,{labelable:!0}));return{isPressed:x,buttonProps:ie(v,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function e1(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=Jp({...e,onPress:Ur(t.toggle,e.onPress)},n);return{isPressed:o,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:ie(i,{"aria-pressed":r})}}function B4(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=e;let[i,a]=d.useState(!1);le(()=>{var g;a(!!(t.current&&(!((g=t.current.parentElement)===null||g===void 0)&&g.closest('[role="toolbar"]'))))});const{direction:s}=Yn(),l=s==="rtl"&&o==="horizontal";let u=$9(t);const h=g=>{if(g.currentTarget.contains(g.target)){if(o==="horizontal"&&g.key==="ArrowRight"||o==="vertical"&&g.key==="ArrowDown")l?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&g.key==="ArrowLeft"||o==="vertical"&&g.key==="ArrowUp")l?u.focusNext():u.focusPrevious();else if(g.key==="Tab"){g.stopPropagation(),c.current=document.activeElement,g.shiftKey?u.focusFirst():u.focusLast();return}else return;g.stopPropagation(),g.preventDefault()}},c=d.useRef(null),p=g=>{!g.currentTarget.contains(g.relatedTarget)&&!c.current&&(c.current=g.target)},f=g=>{var m;if(c.current&&!g.currentTarget.contains(g.relatedTarget)&&(!((m=t.current)===null||m===void 0)&&m.contains(g.target))){var v;(v=c.current)===null||v===void 0||v.focus(),c.current=null}};return{toolbarProps:{...Ee(e,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:i?void 0:h,onFocusCapture:i?void 0:f,onBlurCapture:i?void 0:p}}}function H4(e,t,n){let{isDisabled:r}=e,{toolbarProps:o}=B4(e,n);return{groupProps:{...o,role:t.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":r}}}function V4(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),defaultSelected:!1,setSelected(l){t.setSelected(e.id,l)},toggle(){t.toggleKey(e.id)}},{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}=e1({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode==="single"&&(s.role="radio",s["aria-checked"]=r.isSelected,delete s["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}}function z4(e={}){let{isReadOnly:t}=e,[n,r]=ti(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=d.useState(n);function i(l){t||r(l)}function a(){t||r(!n)}var s;return{isSelected:n,defaultSelected:(s=e.defaultSelected)!==null&&s!==void 0?s:o,setSelected:i,toggle:a}}function U4(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:r=!1}=e,[o,i]=ti(d.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),d.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:o,setSelectedKeys:i,toggleKey(a){let s;t==="multiple"?(s=new Set(o),s.has(a)&&(!n||s.size>1)?s.delete(a):s.add(a)):s=new Set(o.has(a)&&!n?[]:[a]),i(s)},setSelected(a,s){s!==o.has(a)&&this.toggleKey(a)}}}function q4(e,t){let{role:n="dialog"}=e,r=Bi();r=e["aria-label"]?void 0:r;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){bn(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),bn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),ip(),{dialogProps:{...Ee(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function W4(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=Ee(e,{labelable:!0}),{labelProps:l,fieldProps:u}=B9({...e,labelElementType:"span"});t=ko(t,n,r);let h=(t-n)/(r-n),c=Uy(a);if(!i&&!o){let p=a.style==="percent"?h:t;o=c.format(p)}return{progressBarProps:ie(s,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}function G4(e){let{progressBarProps:t,labelProps:n}=W4(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}function Q4(e,t){let n=Ee(e,{labelable:!0}),{hoverProps:r}=Gr({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:ie(n,r,{role:"tooltip"})}}function Y4(e,t,n){let{isDisabled:r,trigger:o,shouldCloseOnPress:i=!0}=e,a=ot(),s=d.useRef(!1),l=d.useRef(!1),u=()=>{(s.current||l.current)&&t.open(l.current)},h=x=>{!s.current&&!l.current&&t.close(x)};d.useEffect(()=>{let x=w=>{n&&n.current&&w.key==="Escape"&&(w.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",x,!0),()=>{document.removeEventListener("keydown",x,!0)}},[n,t]);let c=()=>{o!=="focus"&&(Do()==="pointer"?s.current=!0:s.current=!1,u())},p=()=>{o!=="focus"&&(l.current=!1,s.current=!1,h())},f=()=>{i&&(l.current=!1,s.current=!1,h(!0))},g=()=>{To()&&(l.current=!0,u())},m=()=>{l.current=!1,s.current=!1,h(!0)},{hoverProps:v}=Gr({isDisabled:r,onHoverStart:c,onHoverEnd:p}),{focusableProps:b}=uh({isDisabled:r,onFocus:g,onBlur:m},n);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...ie(b,v,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:a}}}const X4=d.createContext({}),Z4=d.createContext(null),t1=d.createContext({}),mu=p4(function(t,n){[t,n]=gt(t,n,t1);let r=t,{isPending:o}=r,{buttonProps:i,isPressed:a}=Jp(t,n);i=J4(i,o);let{focusProps:s,isFocused:l,isFocusVisible:u}=gh(t),{hoverProps:h,isHovered:c}=Gr({...t,isDisabled:t.isDisabled||o}),p={isHovered:c,isPressed:(r.isPressed||a)&&!o,isFocused:l,isFocusVisible:u,isDisabled:t.isDisabled||!1,isPending:o??!1},f=pt({...t,values:p,defaultClassName:"react-aria-Button"}),g=ot(i.id),m=ot(),v=i["aria-labelledby"];o&&(v?v=`${v} ${m}`:i["aria-label"]&&(v=`${g} ${m}`));let b=d.useRef(o);d.useEffect(()=>{let w={"aria-labelledby":v||g};(!b.current&&l&&o||b.current&&l&&!o)&&xc(w,"assertive"),b.current=o},[o,l,v,g]);let x=Ee(t,{global:!0});return delete x.onClick,d.createElement("button",{...ie(x,f,i,s,h),type:i.type==="submit"&&o?"button":i.type,id:g,ref:n,"aria-labelledby":v,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":o||void 0,"data-focus-visible":u||void 0},d.createElement(Z4.Provider,{value:{id:m}},f.children))});function J4(e,t){if(t){for(const n in e)n.startsWith("on")&&!(n.includes("Focus")||n.includes("Blur"))&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const e3=d.createContext({});class xt extends Set{constructor(t,n,r){super(t),t instanceof xt?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function t3(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function n1(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=d.useRef(!1),[,s]=d.useState(!1),l=d.useRef(null),u=d.useRef(null),[,h]=d.useState(null),c=d.useMemo(()=>ed(e.selectedKeys),[e.selectedKeys]),p=d.useMemo(()=>ed(e.defaultSelectedKeys,new xt),[e.defaultSelectedKeys]),[f,g]=ti(c,p,e.onSelectionChange),m=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,b]=d.useState(o);o==="replace"&&v==="toggle"&&typeof f=="object"&&f.size===0&&b("replace");let x=d.useRef(o);return d.useEffect(()=>{o!==x.current&&(b(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(w){a.current=w,s(w)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(w,S="first"){l.current=w,u.current=S,h(w)},selectedKeys:f,setSelectedKeys(w){(r||!t3(w,f))&&g(w)},disabledKeys:m,disabledBehavior:i}}function ed(e,t){return e?e==="all"?"all":new xt(e):t}class ja{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&gs(this.collection,o,t)<0)&&(t=o)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&gs(this.collection,o,t)>0)&&(t=o)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new xt([n],n,n);else{let a=this.state.selectedKeys;var o;let s=(o=a.anchorKey)!==null&&o!==void 0?o:n;r=new xt(a,s,n);var i;for(let l of this.getKeyRange(s,(i=a.currentKey)!==null&&i!==void 0?i:n))r.delete(l);for(let l of this.getKeyRange(n,s))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?gs(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===n)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new xt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new xt([n],n,n):new xt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new xt;for(let r of t){let o=this.getKey(r);if(o!=null&&(n.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var o;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var i;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((i=(o=e4(sp(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new xt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new ja(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function Na(e){let[t,n]=ti(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=d.useCallback(()=>{n(!0)},[n]),o=d.useCallback(()=>{n(!1)},[n]),i=d.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function vu(e){let t=Na(e),[n,r]=d.useState(null),[o,i]=d.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:n,...t,open(u=null){r(u),t.open()},toggle(u=null){r(u),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(u,h)=>{i(c=>h>c.length?c:[...c.slice(0,h),u])},closeSubmenu:(u,h)=>{i(c=>c[h]===u?c.slice(0,h):c)}}}const n3=1500,td=500;let Rn={},r3=0,no=!1,Lt=null,kn=null;function r1(e={}){let{delay:t=n3,closeDelay:n=td}=e,{isOpen:r,open:o,close:i}=Na(e),a=d.useMemo(()=>`${++r3}`,[]),s=d.useRef(null),l=d.useRef(i),u=()=>{Rn[a]=p},h=()=>{for(let g in Rn)g!==a&&(Rn[g](!0),delete Rn[g])},c=()=>{s.current&&clearTimeout(s.current),s.current=null,h(),u(),no=!0,o(),Lt&&(clearTimeout(Lt),Lt=null),kn&&(clearTimeout(kn),kn=null)},p=g=>{g||n<=0?(s.current&&clearTimeout(s.current),s.current=null,l.current()):s.current||(s.current=setTimeout(()=>{s.current=null,l.current()},n)),Lt&&(clearTimeout(Lt),Lt=null),no&&(kn&&clearTimeout(kn),kn=setTimeout(()=>{delete Rn[a],kn=null,no=!1},Math.max(td,n)))},f=()=>{h(),u(),!r&&!Lt&&!no?Lt=setTimeout(()=>{Lt=null,no=!0,c()},t):r||c()};return d.useEffect(()=>{l.current=i},[i]),d.useEffect(()=>()=>{s.current&&clearTimeout(s.current),Rn[a]&&delete Rn[a]},[a]),{isOpen:r,open:g=>{!g&&t>0&&!s.current?f():c()},close:p}}class o3{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&(s.type==="section"||n.has(s.key)))for(let l of s.childNodes)r(l)};for(let s of t)r(s);let o=null,i=0;for(let[s,l]of this.keyMap)o?(o.nextKey=s,l.prevKey=o.key):(this.firstKey=s,l.prevKey=void 0),l.type==="item"&&(l.index=i++),o=l,o.nextKey=void 0;var a;this.lastKey=(a=o==null?void 0:o.key)!==null&&a!==void 0?a:null}}function i3(e){let{onExpandedChange:t}=e,[n,r]=ti(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=n1(e),i=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=J9(e,d.useCallback(l=>new o3(l,{expandedKeys:n}),[n]),null);return d.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:n,disabledKeys:i,toggleKey:l=>{r(a3(n,l))},setExpandedKeys:r,selectionManager:new ja(a,o)}}function a3(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const s3=d.createContext({}),l3=d.createContext(null);function o1(e){let t=d.useRef({});return d.createElement(l3.Provider,{value:t},e.children)}const i1=d.createContext({isSelected:!1}),u3=d.createContext({});class c3 extends Qr{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let o=this.clone();return n.addDescendants(o,t),o}return null}}c3.type="separator";const a1=d.createContext({placement:"bottom"}),bu=d.createContext(null),nd=d.createContext(null),d3=d.forwardRef(function(t,n){[t,n]=gt(t,n,bu);let r=d.useContext(Xn),o=Na(t),i=t.isOpen!=null||t.defaultOpen!=null||!r?o:r,a=Yi(n,i.isOpen)||t.isExiting||!1,s=g4(),{direction:l}=Yn();if(s){let u=t.children;return typeof u=="function"&&(u=u({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),d.createElement(d.Fragment,null,u)}return i&&!i.isOpen&&!a?null:d.createElement(f3,{...t,triggerRef:t.triggerRef,state:i,popoverRef:n,isExiting:a,dir:l})});function f3({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...o}){let i=d.useRef(null),a=d.useRef(null),s=d.useContext(nd),l=s&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:h,underlayProps:c,arrowProps:p,placement:f,triggerAnchorPoint:g}=A9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:l?s:a},e),m=o.popoverRef,v=La(m,!!f)||o.isEntering||!1,b=pt({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:f,isEntering:v,isExiting:t}}),x=!o.isNonModal||o.trigger==="SubmenuTrigger",[w,S]=d.useState(!1);le(()=>{m.current&&S(x&&!m.current.querySelector("[role=dialog]"))},[m,x]),d.useEffect(()=>{w&&o.trigger!=="SubmenuTrigger"&&m.current&&!m.current.contains(document.activeElement)&&bn(m.current)},[w,m,o.trigger]);let M=d.useMemo(()=>{let D=b.children;if(r)for(let _ of r)D=d.createElement(_.Provider,{value:null},D);return D},[b.children,r]),P={...h.style,"--trigger-anchor-point":g?`${g.x}px ${g.y}px`:void 0,...b.style},R=d.createElement("div",{...ie(Ee(o,{global:!0}),h),...b,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:m,slot:o.slot||void 0,style:P,dir:o.dir,"data-trigger":o.trigger,"data-placement":f,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&d.createElement(Cl,{onDismiss:e.close}),d.createElement(a1.Provider,{value:{...p,placement:f,ref:i}},M),d.createElement(Cl,{onDismiss:e.close}));if(!l)return d.createElement($l,{...o,shouldContainFocus:w,isExiting:t,portalContainer:n},!o.isNonModal&&e.isOpen&&d.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),d.createElement("div",{ref:a,style:{display:"contents"}},d.createElement(nd.Provider,{value:a},R)));var k;return d.createElement($l,{...o,shouldContainFocus:w,isExiting:t,portalContainer:(k=n??(s==null?void 0:s.current))!==null&&k!==void 0?k:void 0},R)}const h3=d.createContext({}),s1=d.createContext(null),yu=d.createContext(null),ia=d.createContext(null),aa=d.createContext(null);function p3(e){let t=vu(e),n=d.useRef(null),{menuTriggerProps:r,menuProps:o}=o4({...e,type:"menu"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);Qi({ref:n,onResize:s});let l=d.useRef(null);return d.createElement(Sn,{values:[[s1,{...o,ref:l}],[Xn,t],[ia,t],[bu,{trigger:"MenuTrigger",triggerRef:n,scrollRef:l,placement:"bottom start",style:{"--trigger-width":i},"aria-labelledby":o["aria-labelledby"]}]]},d.createElement(ch,{...r,ref:n,isPressed:t.isOpen},e.children))}const g3=d.createContext(null);class m3 extends Qr{filter(t,n,r){let o=t.getItem(this.firstChildKey);if(o&&r(o.textValue,this)){let i=this.clone();return n.addDescendants(i,t),i}return null}}m3.type="submenutrigger";const v3=d.forwardRef(function(t,n){return[t,n]=gt(t,n,s1),d.createElement(P4,{content:d.createElement(F4,t)},r=>d.createElement(b3,{props:t,collection:r,menuRef:n}))});function b3({props:e,collection:t,menuRef:n}){[e,n]=gt(e,n,fc);let{filter:r,...o}=e,i=d.useMemo(()=>r?t.filter(r):t,[t,r]),a=i3({...e,collection:i,children:void 0}),s=d.useContext(ia),{isVirtualized:l,CollectionRoot:u}=d.useContext(Zp),{menuProps:h}=i4({...e,isVirtualized:l,onClose:e.onClose||(s==null?void 0:s.close)},a,n),c=pt({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:a.collection.size===0}}),p=null;a.collection.size===0&&e.renderEmptyState&&(p=d.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let f=Ee(e,{global:!0});return d.createElement(fh,null,d.createElement("div",{...ie(f,c,h),ref:n,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},d.createElement(Sn,{values:[[yu,a],[u3,{elementType:"div"}],[j4,{name:"MenuSection",render:x3}],[g3,{parentMenuRef:n,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[Pl,null],[fc,null],[w5,null],[aa,a.selectionManager],[ia,s??vu({})]]},d.createElement(o1,null,d.createElement(u,{collection:a.collection,persistedKeys:K4(a.selectionManager.focusedKey),scrollRef:n}))),p))}class y3 extends ja{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(t,n){super(t.collection,n),this.parent=t}}function x3(e,t,n,r="react-aria-MenuSection"){var o,i;let a=d.useContext(yu),{CollectionBranch:s}=d.useContext(Zp),[l,u]=U0();var h;let{headingProps:c,groupProps:p}=s4({heading:u,"aria-label":(h=n.props["aria-label"])!==null&&h!==void 0?h:void 0}),f=pt({defaultClassName:r,className:(o=n.props)===null||o===void 0?void 0:o.className,style:(i=n.props)===null||i===void 0?void 0:i.style,values:{}}),g=d.useContext(aa),m=n1(e),v=e.selectionMode!=null?new y3(g,m):g,b=Ee(e,{global:!0});return delete b.id,d.createElement("section",{...ie(b,f,p),ref:t},d.createElement(Sn,{values:[[s3,{...c,ref:l}],[aa,v]]},d.createElement(s,{collection:a.collection,parent:n})))}const Pl=d.createContext(null),w3=_4(Up,function(t,n,r){var o;[t,n]=gt(t,n,Pl);let i=(o=z0(Pl))===null||o===void 0?void 0:o.id,a=d.useContext(yu),s=qr(n),l=d.useContext(aa),{menuItemProps:u,labelProps:h,descriptionProps:c,keyboardShortcutProps:p,...f}=a4({...t,id:i,key:r.key,selectionManager:l},a,s),{hoverProps:g,isHovered:m}=Gr({isDisabled:f.isDisabled}),v=pt({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),b=t.href?"a":"div",x=Ee(t,{global:!0});return delete x.id,delete x.onClick,d.createElement(b,{...ie(x,v,u,g),ref:s,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0},d.createElement(Sn,{values:[[e3,{slots:{[Xi]:h,label:h,description:c}}],[h3,p],[i1,{isSelected:f.isSelected}]]},v.children))}),l1=d.createContext(null),Xn=d.createContext(null);function u1(e){let t=vu(e),n=d.useRef(null),{triggerProps:r,overlayProps:o}=yh({type:"dialog"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);return Qi({ref:n,onResize:s}),r.id=ot(),o["aria-labelledby"]=r.id,d.createElement(Sn,{values:[[Xn,t],[ia,t],[l1,o],[bu,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},d.createElement(ch,{...r,ref:n,isPressed:t.isOpen},e.children))}const Aa=d.forwardRef(function(t,n){let r=t["aria-labelledby"];[t,n]=gt(t,n,l1);let{dialogProps:o,titleProps:i}=q4({...t,"aria-labelledby":r},n),a=d.useContext(Xn);!o["aria-label"]&&!o["aria-labelledby"]&&t["aria-labelledby"]&&(o["aria-labelledby"]=t["aria-labelledby"]);let s=pt({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(a==null?void 0:a.close)||(()=>{})}}),l=Ee(t,{global:!0});return d.createElement("section",{...ie(l,s,o),ref:n,slot:t.slot||void 0},d.createElement(Sn,{values:[[R0,{slots:{[Xi]:{},title:{...i,level:2}}}],[t1,{slots:{[Xi]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},s.children))}),Ka=d.forwardRef(function(t,n){[t,n]=gt(t,n,R0);let{children:r,level:o=3,className:i,...a}=t,s=`h${o}`;return d.createElement(s,{...a,ref:n,className:i??"react-aria-Heading"},r)}),C3=d.createContext(null),$3=d.forwardRef(function(t,n){[t,n]=gt(t,n,C3);let{value:r=0,minValue:o=0,maxValue:i=100}=t;r=ko(r,o,i);let[a,s]=U0(!t["aria-label"]&&!t["aria-labelledby"]),{meterProps:l,labelProps:u}=G4({...t,label:s}),h=(r-o)/(i-o)*100,c=pt({...t,defaultClassName:"react-aria-Meter",values:{percentage:h,valueText:l["aria-valuetext"]}}),p=Ee(t,{global:!0});return d.createElement("div",{...ie(p,c,l),ref:n,slot:t.slot||void 0},d.createElement(X4.Provider,{value:{...u,ref:a,elementType:"span"}},c.children))}),S3=d.createContext(null),xu=d.createContext(null),Ba=d.forwardRef(function(t,n){if(d.useContext(xu))return d.createElement(rd,{...t,modalRef:n},t.children);let{isDismissable:o,isKeyboardDismissDisabled:i,isOpen:a,defaultOpen:s,onOpenChange:l,children:u,isEntering:h,isExiting:c,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:f,...g}=t;return d.createElement(P3,{isDismissable:o,isKeyboardDismissDisabled:i,isOpen:a,defaultOpen:s,onOpenChange:l,isEntering:h,isExiting:c,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:f},d.createElement(rd,{...g,modalRef:n},u))});function E3(e,t){[e,t]=gt(e,t,S3);let n=d.useContext(Xn),r=Na(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=qr(t),a=d.useRef(null),s=Yi(i,o.isOpen),l=Yi(a,o.isOpen),u=s||l||e.isExiting||!1,h=$n();return!o.isOpen&&!u||h?null:d.createElement(R3,{...e,state:o,isExiting:u,overlayRef:i,modalRef:a})}const P3=d.forwardRef(E3);function R3({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=K9(t,r,n),a=La(t.overlayRef)||t.isEntering||!1,s=pt({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=ay(),u;if(typeof document<"u"){let c=Un(document.body)?document.body:document.scrollingElement||document.documentElement,p=c.getBoundingClientRect().height%1;u=c.scrollHeight-p}let h={...s.style,"--visual-viewport-height":l.height+"px","--page-height":u!==void 0?u+"px":void 0};return d.createElement($l,{isExiting:t.isExiting,portalContainer:e},d.createElement("div",{...ie(Ee(t,{global:!0}),i),...s,style:h,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},d.createElement(Sn,{values:[[xu,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Xn,r]]},s.children)))}function rd(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=d.useContext(xu),i=d.useContext(Xn),a=d.useMemo(()=>T0(e.modalRef,n),[e.modalRef,n]),s=qr(a),l=La(s),u=pt({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return d.createElement("div",{...ie(Ee(e,{global:!0}),t),...u,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&d.createElement(Cl,{onDismiss:i.close}),u.children)}const k3=d.createContext({}),c1=d.createContext(null),M3=d.forwardRef(function(t,n){[t,n]=gt(t,n,k3);let r=U4(t),{groupProps:o}=H4(t,r,n),i=pt({...t,values:{orientation:t.orientation||"horizontal",isDisabled:r.isDisabled,state:r},defaultClassName:"react-aria-ToggleButtonGroup"}),a=Ee(t,{global:!0});return d.createElement("div",{...ie(a,i,o),ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal","data-disabled":t.isDisabled||void 0},d.createElement(c1.Provider,{value:r},d.createElement(o1,null,i.children)))}),O3=d.createContext({}),T3=d.forwardRef(function(t,n){[t,n]=gt(t,n,O3);let r=d.useContext(c1),o=z4(r&&t.id!=null?{isSelected:r.selectedKeys.has(t.id),onChange(v){r.setSelected(t.id,v)}}:t),{buttonProps:i,isPressed:a,isSelected:s,isDisabled:l}=r&&t.id!=null?V4({...t,id:t.id},r,n):e1({...t,id:t.id!=null?String(t.id):void 0},o,n),{focusProps:u,isFocused:h,isFocusVisible:c}=gh(t),{hoverProps:p,isHovered:f}=Gr(t),g=pt({...t,id:void 0,values:{isHovered:f,isPressed:a,isFocused:h,isSelected:o.isSelected,isFocusVisible:c,isDisabled:l,state:o},defaultClassName:"react-aria-ToggleButton"}),m=Ee(t,{global:!0});return delete m.id,delete m.onClick,d.createElement("button",{...ie(m,g,i,u,p),ref:n,slot:t.slot||void 0,"data-focused":h||void 0,"data-disabled":l||void 0,"data-pressed":a||void 0,"data-selected":s||void 0,"data-hovered":f||void 0,"data-focus-visible":c||void 0},d.createElement(i1.Provider,{value:{isSelected:s}},g.children))}),wu=d.createContext(null),d1=d.createContext(null);function D3(e){let t=r1(e),n=d.useRef(null),{triggerProps:r,tooltipProps:o}=Y4(e,t,n);return d.createElement(Sn,{values:[[wu,t],[d1,{...o,triggerRef:n}]]},d.createElement(c9,{...r,ref:n},e.children))}const _3=d.forwardRef(function({UNSTABLE_portalContainer:t,...n},r){[n,r]=gt(n,r,d1);let o=d.useContext(wu),i=r1(n),a=n.isOpen!=null||n.defaultOpen!=null||!o?i:o,s=Yi(r,a.isOpen)||n.isExiting||!1;return!a.isOpen&&!s?null:d.createElement(_9,{portalContainer:t},d.createElement(L3,{...n,tooltipRef:r,isExiting:s}))});function L3(e){let t=d.useContext(wu),n=d.useRef(null),{overlayProps:r,arrowProps:o,placement:i,triggerAnchorPoint:a}=J0({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=La(e.tooltipRef,!!i)||e.isEntering||!1,l=pt({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:s,isExiting:e.isExiting,state:t}});e=ie(e,r);let{tooltipProps:u}=Q4(e,t),h=Ee(e,{global:!0});return d.createElement("div",{...ie(h,l,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":a?`${a.x}px ${a.y}px`:void 0,...l.style},"data-placement":i??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},d.createElement(a1.Provider,{value:{...o,placement:i,ref:n}},l.children))}function F3(e,t){var n=d.useState(function(){if(typeof window>"u")return t;try{for(var a=window.localStorage.getItem(e),s=a?JSON.parse(a):t,l=0,u=Object.entries(t);l<u.length;l++){var h=u[l][0];if(typeof s[h]>"u")throw new Error("Missing key in local storage")}return s}catch(c){return console.log(c),t}}),r=n[0],o=n[1],i=function(a){try{var s=a instanceof Function?a(r):a;o(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch(l){console.log(l)}};return[r,i]}var I3=function(){var e=F3("user-preferences",{theme:"system"}),t=e[0],n=e[1];return y.jsx(M3,{className:"flex h-7 space-x-0.5 rounded-md bg-slate-100 p-0.5 dark:bg-slate-700",defaultSelectedKeys:["system"],"aria-label":"Theme",selectedKeys:[t.theme],onSelectionChange:function(r){r.has("system")?n({theme:"system"}):r.has("light")?(document.documentElement.classList.remove("dark"),n({theme:"light"})):r.has("dark")&&(document.documentElement.classList.add("dark"),n({theme:"dark"}))},children:[{value:"system",icon:function(){return y.jsx(V2,{})},ariaLabel:"System theme"},{value:"light",icon:function(){return y.jsx(v5,{})},ariaLabel:"Light theme"},{value:"dark",icon:function(){return y.jsx(l5,{})},ariaLabel:"Dark theme"}].map(function(r){return y.jsx(T3,{className:"flex aspect-square h-full items-center justify-center rounded-md text-slate-900 transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 data-[selected=true]:bg-slate-200 data-[selected=true]:shadow-sm dark:text-slate-50 dark:hover:bg-slate-500 dark:data-[selected=true]:bg-slate-500",id:r.value,"aria-label":r.ariaLabel,children:r.icon()},r.value)})})},Rl=function(e){var t=e.message;return y.jsx("div",{className:"flex items-center justify-center rounded-md bg-red-50 py-4 dark:bg-red-950/50",children:y.jsx("div",{className:"flex flex-col justify-center",children:y.jsx("p",{className:"text-sm text-red-900 dark:text-red-200",children:t})})})},od=function(e){var t=e.to,n=e.label,r=e.icon;return y.jsxs(x0,{to:t,className:function(o){var i=o.isActive;return"relative -ml-px backdrop-blur-50 flex w-full items-center space-x-2 rounded-md pl-4 py-1 transition duration-150 ease-in-out ".concat(i?"bg-slate-100/90 font-medium text-slate-900 dark:bg-slate-900 dark:text-brand-300":"text-slate-500 dark:text-slate-400 border-slate-100 hover:bg-slate-50 dark:hover:bg-slate-900 hover:border-slate-300 hover:text-slate-900 dark:border-slate-700 dark:hover:border-slate-600 dark:hover:text-slate-100")},children:[r,y.jsx("span",{className:"block truncate",children:n})]})},f1=function(e){var t=e.children,n=ue.queue.list.useQuery(),r=n.data,o=n.isLoading,i=n.isError;return y.jsxs("div",{className:"grid xl:grid-cols-[auto,1fr]",children:[y.jsx("div",{className:"hidden w-64 xl:block",children:y.jsxs("div",{className:"sticky top-0 isolate flex h-full max-h-screen min-h-screen flex-col justify-between overflow-hidden border-r border-brand-50 px-4 pb-4 pt-8 shadow-sm dark:border-slate-700 dark:bg-black",children:[y.jsxs("svg",{viewBox:"0 0 1108 632","aria-hidden":"true",className:"absolute left-[calc(50%-24rem)] top-10 -z-10 w-[69.25rem] max-w-none rotate-90 transform-gpu opacity-50 blur-3xl lg:top-[calc(50%-30rem)]",children:[y.jsx("path",{fill:"url(#175c433f-44f6-4d59-93f0-c5c51ad5566d)",fillOpacity:".2",d:"M235.233 402.609 57.541 321.573.83 631.05l234.404-228.441 320.018 145.945c-65.036-115.261-134.286-322.756 109.01-230.655C968.382 433.026 1031 651.247 1092.23 459.36c48.98-153.51-34.51-321.107-82.37-385.717L810.952 324.222 648.261.088 235.233 402.609Z"}),y.jsx("defs",{children:y.jsxs("linearGradient",{id:"175c433f-44f6-4d59-93f0-c5c51ad5566d",x1:"1220.59",x2:"-85.053",y1:"432.766",y2:"638.714",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#bbebff"}),y.jsx("stop",{offset:1,stopColor:"#ffffff"})]})})]}),y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex items-center space-x-2 text-slate-900 dark:text-brand-50",children:[y.jsx(p5,{width:28,height:28}),y.jsx("p",{className:"text-lg font-semibold",children:"QueueDash"})]}),y.jsxs("div",{className:"w-full space-y-4",children:[y.jsx(od,{label:"Overview",icon:y.jsx(B2,{className:"mb-0.5",height:16,width:16}),to:"../"}),y.jsx("div",{className:"h-px w-full bg-slate-100 dark:bg-slate-700"}),y.jsx("div",{className:"w-full space-y-1",children:o?Be([],new Array(10),!0).map(function(a,s){return y.jsx(Ro,{className:"h-8 w-full"},s)}):i?y.jsx(Rl,{message:"Could not fetch queues"}):r==null?void 0:r.map(function(a){return y.jsx(od,{to:"../".concat(a.name),label:a.displayName},a.name)})})]})]}),y.jsxs("div",{className:"flex w-full items-center justify-between",children:[y.jsx("a",{href:"https://github.com/alexbudure/queuedash",target:"_blank",rel:"noreferrer",className:"flex size-7 items-center justify-center rounded-md bg-slate-100 text-slate-900 shadow-sm transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 dark:bg-slate-600 dark:text-slate-50 dark:hover:bg-slate-500",children:y.jsx(Z2,{})}),y.jsx(I3,{})]})]})}),y.jsx("div",{className:"bg-white px-4 py-3 dark:bg-[#121212] lg:px-10 lg:py-8",children:y.jsx("div",{className:"max-w-screen-xl",children:t})})]})};/**
|
|
39
|
+
*/var jr=d;function y4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var x4=typeof Object.is=="function"?Object.is:y4,w4=jr.useState,C4=jr.useEffect,$4=jr.useLayoutEffect,S4=jr.useDebugValue;function E4(e,t){var n=t(),r=w4({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return $4(function(){o.value=n,o.getSnapshot=t,xs(o)&&i({inst:o})},[e,n,t]),C4(function(){return xs(o)&&i({inst:o}),e(function(){xs(o)&&i({inst:o})})},[e]),S4(n),n}function xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!x4(e,n)}catch{return!0}}function P4(e,t){return t()}var R4=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?P4:E4;Zp.useSyncExternalStore=jr.useSyncExternalStore!==void 0?jr.useSyncExternalStore:R4;Xp.exports=Zp;var k4=Xp.exports;const Jp=d.createContext(!1),Fo=d.createContext(null);function M4(e){if(d.useContext(Fo))return e.content;let{collection:n,document:r}=_4(e.createCollection);return d.createElement(d.Fragment,null,d.createElement(m4,null,d.createElement(Fo.Provider,{value:r},e.content)),d.createElement(O4,{render:e.children,collection:n}))}function O4({collection:e,render:t}){return t(e)}function T4(e,t,n){let r=Sn(),o=d.useRef(r);o.current=r;let i=d.useCallback(()=>o.current?n():t(),[t,n]);return k4.useSyncExternalStore(e,i)}const D4=typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore:T4;function _4(e){let[t]=d.useState(()=>new g4((e==null?void 0:e())||new p4)),n=d.useCallback(a=>t.subscribe(a),[t]),r=d.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=d.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:D4(n,r,o),document:t}}const Ol=d.createContext(null);function L4(e){var t;return t=class extends Yr{},t.type=e,t}function F4(e,t,n,r,o,i){typeof e=="string"&&(e=L4(e));let a=d.useCallback(l=>{l==null||l.setProps(t,n,e,r,i)},[t,n,r,i,e]),s=d.useContext(Ol);if(s){let l=s.ownerDocument.nodesByProps.get(t);return l||(l=s.ownerDocument.createElement(e.type),l.setProps(t,n,e,r,i),s.appendChild(l),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,l)),o?d.createElement(Ol.Provider,{value:l},o):null}return d.createElement(e.type,{ref:a},o)}function I4(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=d.forwardRef((o,i)=>{let a=d.useContext(na);if(!d.useContext(Jp)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return F4(e,o,i,"children"in o?o.children:null,null,l=>d.createElement(na.Provider,{value:a},d.createElement(n,{node:l})))});return r.displayName=t.name,r}function j4(e){return Yp({...e,addIdAndValue:!0})}const rd=d.createContext(null);function N4(e){let t=d.useContext(rd),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies);var r;let o=(r=e.idScope)!==null&&r!==void 0?r:t==null?void 0:t.idScope,i=j4({...e,idScope:o,dependencies:n});return d.useContext(Fo)&&(i=d.createElement(A4,null,i)),t=d.useMemo(()=>({dependencies:n,idScope:o}),[o,...n]),d.createElement(rd.Provider,{value:t},i)}function A4({children:e}){let t=d.useContext(Fo),n=d.useMemo(()=>d.createElement(Fo.Provider,{value:null},d.createElement(Jp.Provider,{value:!0},e)),[e]);return Sn()?d.createElement(Ol.Provider,{value:t},n):Hr.createPortal(n,t)}const K4=d.createContext(null),B4={CollectionRoot({collection:e,renderDropIndicator:t}){return od(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return od(e,t,n)}};function od(e,t,n){return Yp({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){let o=r.render(r);return!n||r.type!=="item"?o:d.createElement(d.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),o,H4(e,r,n))}})}function H4(e,t,n){let r=t.key,o=e.getKeyAfter(r),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let s=[];if(a==null){let l=t;for(;(l==null?void 0:l.type)==="item"&&(!i||l.parentKey!==i.parentKey&&i.level<l.level);){let u=n({type:"item",key:l.key,dropPosition:"after"});d.isValidElement(u)&&s.push(d.cloneElement(u,{key:`${l.key}-after`})),l=l.parentKey!=null?e.getItem(l.parentKey):null}}return s}const e1=d.createContext(B4);function V4(e){return d.useMemo(()=>e!=null?new Set([e]):null,[e])}function t1(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:h,onClick:c,href:p,target:f,rel:m,type:g="button"}=e,v;n==="button"?v={type:g,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:v={role:"button",href:n==="a"&&!r?p:void 0,target:n==="a"?f:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?m:void 0};let{pressProps:b,isPressed:x}=ja({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,onClick:c,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:w}=bu(e,t);h&&(w.tabIndex=r?-1:w.tabIndex);let $=ie(w,b,Pe(e,{labelable:!0}));return{isPressed:x,buttonProps:ie(v,$,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function n1(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=t1({...e,onPress:qr(t.toggle,e.onPress)},n);return{isPressed:o,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:ie(i,{"aria-pressed":r})}}function z4(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=e;let[i,a]=d.useState(!1);se(()=>{var m;a(!!(t.current&&(!((m=t.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]'))))});const{direction:s}=Xn(),l=s==="rtl"&&o==="horizontal";let u=P9(t);const h=m=>{if(te(m.currentTarget,m.target)){if(o==="horizontal"&&m.key==="ArrowRight"||o==="vertical"&&m.key==="ArrowDown")l?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&m.key==="ArrowLeft"||o==="vertical"&&m.key==="ArrowUp")l?u.focusNext():u.focusPrevious();else if(m.key==="Tab"){m.stopPropagation(),c.current=document.activeElement,m.shiftKey?u.focusFirst():u.focusLast();return}else return;m.stopPropagation(),m.preventDefault()}},c=d.useRef(null),p=m=>{!te(m.currentTarget,m.relatedTarget)&&!c.current&&(c.current=m.target)},f=m=>{if(c.current&&!te(m.currentTarget,m.relatedTarget)&&te(t.current,m.target)){var g;(g=c.current)===null||g===void 0||g.focus(),c.current=null}};return{toolbarProps:{...Pe(e,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:i?void 0:h,onFocusCapture:i?void 0:f,onBlurCapture:i?void 0:p}}}function U4(e,t,n){let{isDisabled:r}=e,{toolbarProps:o}=z4(e,n);return{groupProps:{...o,role:t.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":r}}}function q4(e,t,n){let r={isSelected:t.selectedKeys.has(e.id),defaultSelected:!1,setSelected(l){t.setSelected(e.id,l)},toggle(){t.toggleKey(e.id)}},{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}=n1({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},r,n);return t.selectionMode==="single"&&(s.role="radio",s["aria-checked"]=r.isSelected,delete s["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}}function W4(e={}){let{isReadOnly:t}=e,[n,r]=oi(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=d.useState(n);function i(l){t||r(l)}function a(){t||r(!n)}var s;return{isSelected:n,defaultSelected:(s=e.defaultSelected)!==null&&s!==void 0?s:o,setSelected:i,toggle:a}}function G4(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:r=!1}=e,[o,i]=oi(d.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),d.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:r,selectedKeys:o,setSelectedKeys:i,toggleKey(a){let s;t==="multiple"?(s=new Set(o),s.has(a)&&(!n||s.size>1)?s.delete(a):s.add(a)):s=new Set(o.has(a)&&!n?[]:[a]),i(s)},setSelected(a,s){s!==o.has(a)&&this.toggleKey(a)}}}function Q4(e,t){let{role:n="dialog"}=e,r=Hi();r=e["aria-label"]?void 0:r;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!te(t.current,document.activeElement)){yn(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),yn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),sp(),{dialogProps:{...Pe(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function Y4(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=Pe(e,{labelable:!0}),{labelProps:l,fieldProps:u}=z9({...e,labelElementType:"span"});t=To(t,n,r);let h=(t-n)/(r-n),c=Gy(a);if(!i&&!o){let p=a.style==="percent"?h:t;o=c.format(p)}return{progressBarProps:ie(s,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}function X4(e){let{progressBarProps:t,labelProps:n}=Y4(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}function Z4(e,t){let n=Pe(e,{labelable:!0}),{hoverProps:r}=Qr({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:ie(n,r,{role:"tooltip"})}}function J4(e,t,n){let{isDisabled:r,trigger:o,shouldCloseOnPress:i=!0}=e,a=rt(),s=d.useRef(!1),l=d.useRef(!1),u=()=>{(s.current||l.current)&&t.open(l.current)},h=x=>{!s.current&&!l.current&&t.close(x)};d.useEffect(()=>{let x=w=>{n&&n.current&&w.key==="Escape"&&(w.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",x,!0),()=>{document.removeEventListener("keydown",x,!0)}},[n,t]);let c=()=>{o!=="focus"&&(Lo()==="pointer"?s.current=!0:s.current=!1,u())},p=()=>{o!=="focus"&&(l.current=!1,s.current=!1,h())},f=()=>{i&&(l.current=!1,s.current=!1,h(!0))},m=()=>{Ir()&&(l.current=!0,u())},g=()=>{l.current=!1,s.current=!1,h(!0)},{hoverProps:v}=Qr({isDisabled:r,onHoverStart:c,onHoverEnd:p}),{focusableProps:b}=bu({isDisabled:r,onFocus:m,onBlur:g},n);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...ie(b,v,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:a}}}const e3=d.createContext({}),t3=d.createContext(null),r1=d.createContext({}),wu=v4(function(t,n){[t,n]=pt(t,n,r1);let r=t,{isPending:o}=r,{buttonProps:i,isPressed:a}=t1(t,n);i=n3(i,o);let{focusProps:s,isFocused:l,isFocusVisible:u}=vh(t),{hoverProps:h,isHovered:c}=Qr({...t,isDisabled:t.isDisabled||o}),p={isHovered:c,isPressed:(r.isPressed||a)&&!o,isFocused:l,isFocusVisible:u,isDisabled:t.isDisabled||!1,isPending:o??!1},f=ht({...t,values:p,defaultClassName:"react-aria-Button"}),m=rt(i.id),g=rt(),v=i["aria-labelledby"];o&&(v?v=`${v} ${g}`:i["aria-label"]&&(v=`${m} ${g}`));let b=d.useRef(o);d.useEffect(()=>{let w={"aria-labelledby":v||m};(!b.current&&l&&o||b.current&&l&&!o)&&Ec(w,"assertive"),b.current=o},[o,l,v,m]);let x=Pe(t,{global:!0});return delete x.onClick,d.createElement(Qe.button,{...ie(x,f,i,s,h),type:i.type==="submit"&&o?"button":i.type,id:m,ref:n,"aria-labelledby":v,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":o||void 0,"data-focus-visible":u||void 0},d.createElement(t3.Provider,{value:{id:g}},f.children))});function n3(e,t){if(t){for(const n in e)n.startsWith("on")&&!(n.includes("Focus")||n.includes("Blur"))&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const r3=d.createContext({});class yt extends Set{constructor(t,n,r){super(t),t instanceof yt?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function o3(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function o1(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=d.useRef(!1),[,s]=d.useState(!1),l=d.useRef(null),u=d.useRef(null),[,h]=d.useState(null),c=d.useMemo(()=>id(e.selectedKeys),[e.selectedKeys]),p=d.useMemo(()=>id(e.defaultSelectedKeys,new yt),[e.defaultSelectedKeys]),[f,m]=oi(c,p,e.onSelectionChange),g=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,b]=d.useState(o);o==="replace"&&v==="toggle"&&typeof f=="object"&&f.size===0&&b("replace");let x=d.useRef(o);return d.useEffect(()=>{o!==x.current&&(b(o),x.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(w){a.current=w,s(w)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(w,$="first"){l.current=w,u.current=$,h(w)},selectedKeys:f,setSelectedKeys(w){(r||!o3(w,f))&&m(w)},disabledKeys:g,disabledBehavior:i}}function id(e,t){return e?e==="all"?"all":new yt(e):t}class Na{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&ys(this.collection,o,t)<0)&&(t=o)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&ys(this.collection,o,t)>0)&&(t=o)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new yt([n],n,n);else{let a=this.state.selectedKeys;var o;let s=(o=a.anchorKey)!==null&&o!==void 0?o:n;r=new yt(a,s,n);var i;for(let l of this.getKeyRange(s,(i=a.currentKey)!==null&&i!==void 0?i:n))r.delete(l);for(let l of this.getKeyRange(n,s))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?ys(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===n)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new yt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new yt([n],n,n):new yt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new yt;for(let r of t){let o=this.getKey(r);if(o!=null&&(n.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var o;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var i;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((i=(o=r4(up(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new yt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Na(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function Aa(e){let[t,n]=oi(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=d.useCallback(()=>{n(!0)},[n]),o=d.useCallback(()=>{n(!1)},[n]),i=d.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function Cu(e){let t=Aa(e),[n,r]=d.useState(null),[o,i]=d.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:n,...t,open(u=null){r(u),t.open()},toggle(u=null){r(u),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(u,h)=>{i(c=>h>c.length?c:[...c.slice(0,h),u])},closeSubmenu:(u,h)=>{i(c=>c[h]===u?c.slice(0,h):c)}}}const i3=1500,ad=500;let Mn={},a3=0,io=!1,Lt=null,On=null;function i1(e={}){let{delay:t=i3,closeDelay:n=ad}=e,{isOpen:r,open:o,close:i}=Aa(e),a=d.useMemo(()=>`${++a3}`,[]),s=d.useRef(null),l=d.useRef(i),u=()=>{Mn[a]=p},h=()=>{for(let m in Mn)m!==a&&(Mn[m](!0),delete Mn[m])},c=()=>{s.current&&clearTimeout(s.current),s.current=null,h(),u(),io=!0,o(),Lt&&(clearTimeout(Lt),Lt=null),On&&(clearTimeout(On),On=null)},p=m=>{m||n<=0?(s.current&&clearTimeout(s.current),s.current=null,l.current()):s.current||(s.current=setTimeout(()=>{s.current=null,l.current()},n)),Lt&&(clearTimeout(Lt),Lt=null),io&&(On&&clearTimeout(On),On=setTimeout(()=>{delete Mn[a],On=null,io=!1},Math.max(ad,n)))},f=()=>{h(),u(),!r&&!Lt&&!io?Lt=setTimeout(()=>{Lt=null,io=!0,c()},t):r||c()};return d.useEffect(()=>{l.current=i},[i]),d.useEffect(()=>()=>{s.current&&clearTimeout(s.current),Mn[a]&&delete Mn[a]},[a]),{isOpen:r,open:m=>{!m&&t>0&&!s.current?f():c()},close:p}}class s3{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&(s.type==="section"||n.has(s.key)))for(let l of s.childNodes)r(l)};for(let s of t)r(s);let o=null,i=0;for(let[s,l]of this.keyMap)o?(o.nextKey=s,l.prevKey=o.key):(this.firstKey=s,l.prevKey=void 0),l.type==="item"&&(l.index=i++),o=l,o.nextKey=void 0;var a;this.lastKey=(a=o==null?void 0:o.key)!==null&&a!==void 0?a:null}}function l3(e){let{onExpandedChange:t}=e,[n,r]=oi(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=o1(e),i=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=n4(e,d.useCallback(l=>new s3(l,{expandedKeys:n}),[n]),null);return d.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:n,disabledKeys:i,toggleKey:l=>{r(u3(n,l))},setExpandedKeys:r,selectionManager:new Na(a,o)}}function u3(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const c3=d.createContext({}),d3=d.createContext(null);function a1(e){let t=d.useRef({});return d.createElement(d3.Provider,{value:t},e.children)}const s1=d.createContext({isSelected:!1}),f3=d.createContext({});class h3 extends Yr{filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let o=this.clone();return n.addDescendants(o,t),o}return null}}h3.type="separator";const l1=d.createContext({placement:"bottom"}),$u=d.createContext(null),sd=d.createContext(null),p3=d.forwardRef(function(t,n){[t,n]=pt(t,n,$u);let r=d.useContext(Zn),o=Aa(t),i=t.isOpen!=null||t.defaultOpen!=null||!r?o:r,a=Yi(n,i.isOpen)||t.isExiting||!1,s=b4(),{direction:l}=Xn();if(s){let u=t.children;return typeof u=="function"&&(u=u({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),d.createElement(d.Fragment,null,u)}return i&&!i.isOpen&&!a?null:d.createElement(g3,{...t,triggerRef:t.triggerRef,state:i,popoverRef:n,isExiting:a,dir:l})});function g3({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...o}){let i=d.useRef(null),a=d.useRef(null),s=d.useContext(sd),l=s&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:h,underlayProps:c,arrowProps:p,placement:f,triggerAnchorPoint:m}=H9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:l?s:a},e),g=o.popoverRef,v=Fa(g,!!f)||o.isEntering||!1,b=ht({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:f,isEntering:v,isExiting:t}}),x=!o.isNonModal||o.trigger==="SubmenuTrigger",[w,$]=d.useState(!1);se(()=>{g.current&&$(x&&!g.current.querySelector("[role=dialog]"))},[g,x]),d.useEffect(()=>{w&&o.trigger!=="SubmenuTrigger"&&g.current&&!te(g.current,document.activeElement)&&yn(g.current)},[w,g,o.trigger]);let M=d.useMemo(()=>{let D=b.children;if(r)for(let L of r)D=d.createElement(L.Provider,{value:null},D);return D},[b.children,r]),R={...h.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...b.style},P=d.createElement(Qe.div,{...ie(Pe(o,{global:!0}),h),...b,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:g,slot:o.slot||void 0,style:R,dir:o.dir,"data-trigger":o.trigger,"data-placement":f,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&d.createElement(Rl,{onDismiss:e.close}),d.createElement(l1.Provider,{value:{...p,placement:f,ref:i}},M),d.createElement(Rl,{onDismiss:e.close}));if(!l)return d.createElement(kl,{...o,shouldContainFocus:w,isExiting:t,portalContainer:n},!o.isNonModal&&e.isOpen&&d.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),d.createElement("div",{ref:a,style:{display:"contents"}},d.createElement(sd.Provider,{value:a},P)));var k;return d.createElement(kl,{...o,shouldContainFocus:w,isExiting:t,portalContainer:(k=n??(s==null?void 0:s.current))!==null&&k!==void 0?k:void 0},P)}const m3=d.createContext({}),u1=d.createContext(null),Su=d.createContext(null),ia=d.createContext(null),aa=d.createContext(null);function v3(e){let t=Cu(e),n=d.useRef(null),{menuTriggerProps:r,menuProps:o}=s4({...e,type:"menu"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);Qi({ref:n,onResize:s});let l=d.useRef(null);return d.createElement(En,{values:[[u1,{...o,ref:l}],[Zn,t],[ia,t],[$u,{trigger:"MenuTrigger",triggerRef:n,scrollRef:l,placement:"bottom start",style:{"--trigger-width":i},"aria-labelledby":o["aria-labelledby"]}]]},d.createElement(fh,{...r,ref:n,isPressed:t.isOpen},e.children))}const b3=d.createContext(null);class y3 extends Yr{filter(t,n,r){let o=t.getItem(this.firstChildKey);if(o&&r(o.textValue,this)){let i=this.clone();return n.addDescendants(i,t),i}return null}}y3.type="submenutrigger";const x3=d.forwardRef(function(t,n){return[t,n]=pt(t,n,u1),d.createElement(M4,{content:d.createElement(N4,t)},r=>d.createElement(w3,{props:t,collection:r,menuRef:n}))});function w3({props:e,collection:t,menuRef:n}){[e,n]=pt(e,n,vc);let{filter:r,...o}=e,i=d.useMemo(()=>r?t.filter(r):t,[t,r]),a=l3({...e,collection:i,children:void 0}),s=d.useContext(ia),{isVirtualized:l,CollectionRoot:u}=d.useContext(e1),{menuProps:h}=l4({...e,isVirtualized:l,onClose:e.onClose||(s==null?void 0:s.close)},a,n),c=ht({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:a.collection.size===0}}),p=null;a.collection.size===0&&e.renderEmptyState&&(p=d.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let f=Pe(e,{global:!0});return d.createElement(ph,null,d.createElement(Qe.div,{...ie(f,c,h),ref:n,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},d.createElement(En,{values:[[Su,a],[f3,{elementType:"div"}],[K4,{name:"MenuSection",render:$3}],[b3,{parentMenuRef:n,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[Io,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[vc,null],[$5,null],[aa,a.selectionManager],[ia,s??Cu({})]]},d.createElement(a1,null,d.createElement(u,{collection:a.collection,persistedKeys:V4(a.selectionManager.focusedKey),scrollRef:n}))),p))}class C3 extends Na{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(t,n){super(t.collection,n),this.parent=t}}function $3(e,t,n,r="react-aria-MenuSection"){var o,i,a;let s=d.useContext(Su),{CollectionBranch:l}=d.useContext(e1),[u,h]=W0();var c;let{headingProps:p,groupProps:f}=c4({heading:h,"aria-label":(c=n.props["aria-label"])!==null&&c!==void 0?c:void 0}),m=ht({...e,id:void 0,children:void 0,defaultClassName:r,className:(o=n.props)===null||o===void 0?void 0:o.className,style:(i=n.props)===null||i===void 0?void 0:i.style,values:void 0}),g=d.useContext(aa),v=o1(e),b=e.selectionMode!=null?new C3(g,v):g,x=(a=hu(Io))===null||a===void 0?void 0:a.shouldCloseOnSelect,w=Pe(e,{global:!0});delete w.id;var $;return d.createElement(Qe.section,{...ie(w,m,f),ref:t},d.createElement(En,{values:[[c3,{...p,ref:u}],[aa,b],[Io,{shouldCloseOnSelect:($=e.shouldCloseOnSelect)!==null&&$!==void 0?$:x}]]},d.createElement(l,{collection:s.collection,parent:n})))}const Io=d.createContext(null),S3=I4(Wp,function(t,n,r){var o;[t,n]=pt(t,n,Io);let i=(o=hu(Io))===null||o===void 0?void 0:o.id,a=d.useContext(Su),s=Wr(n),l=d.useContext(aa),{menuItemProps:u,labelProps:h,descriptionProps:c,keyboardShortcutProps:p,...f}=u4({...t,id:i,key:r.key,selectionManager:l},a,s),{hoverProps:m,isHovered:g}=Qr({isDisabled:f.isDisabled}),v=ht({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:g,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),b=t.href?Qe.a:Qe.div,x=Pe(t,{global:!0});return delete x.id,delete x.onClick,d.createElement(b,{...ie(x,v,u,m),ref:s,"data-disabled":f.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0},d.createElement(En,{values:[[r3,{slots:{[Xi]:h,label:h,description:c}}],[m3,p],[s1,{isSelected:f.isSelected}]]},v.children))}),c1=d.createContext(null),Zn=d.createContext(null);function d1(e){let t=Cu(e),n=d.useRef(null),{triggerProps:r,overlayProps:o}=wh({type:"dialog"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);return Qi({ref:n,onResize:s}),r.id=rt(),o["aria-labelledby"]=r.id,d.createElement(En,{values:[[Zn,t],[ia,t],[c1,o],[$u,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},d.createElement(fh,{...r,ref:n,isPressed:t.isOpen},e.children))}const Ka=d.forwardRef(function(t,n){let r=t["aria-labelledby"];[t,n]=pt(t,n,c1);let{dialogProps:o,titleProps:i}=Q4({...t,"aria-labelledby":r},n),a=d.useContext(Zn);!o["aria-label"]&&!o["aria-labelledby"]&&t["aria-labelledby"]&&(o["aria-labelledby"]=t["aria-labelledby"]);let s=ht({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(a==null?void 0:a.close)||(()=>{})}}),l=Pe(t,{global:!0});return d.createElement(Qe.section,{...ie(l,s,o),render:t.render,ref:n,slot:t.slot||void 0},d.createElement(En,{values:[[T0,{slots:{[Xi]:{},title:{...i,level:2}}}],[r1,{slots:{[Xi]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},s.children))}),Ba=d.forwardRef(function(t,n){[t,n]=pt(t,n,T0);let{children:r,level:o=3,className:i,...a}=t,s=Qe[`h${o}`];return d.createElement(s,{...a,ref:n,className:i??"react-aria-Heading"},r)}),E3=d.createContext(null),P3=d.forwardRef(function(t,n){[t,n]=pt(t,n,E3);let{value:r=0,minValue:o=0,maxValue:i=100}=t;r=To(r,o,i);let[a,s]=W0(!t["aria-label"]&&!t["aria-labelledby"]),{meterProps:l,labelProps:u}=X4({...t,label:s}),h=(r-o)/(i-o)*100,c=ht({...t,defaultClassName:"react-aria-Meter",values:{percentage:h,valueText:l["aria-valuetext"]}}),p=Pe(t,{global:!0});return d.createElement(Qe.div,{...ie(p,c,l),ref:n,slot:t.slot||void 0},d.createElement(e3.Provider,{value:{...u,ref:a,elementType:"span"}},c.children))}),R3=d.createContext(null),Eu=d.createContext(null),Ha=d.forwardRef(function(t,n){if(d.useContext(Eu))return d.createElement(ld,{...t,modalRef:n},t.children);let{isDismissable:o,isKeyboardDismissDisabled:i,isOpen:a,defaultOpen:s,onOpenChange:l,children:u,isEntering:h,isExiting:c,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:f,...m}=t;return d.createElement(M3,{isDismissable:o,isKeyboardDismissDisabled:i,isOpen:a,defaultOpen:s,onOpenChange:l,isEntering:h,isExiting:c,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:f},d.createElement(ld,{...m,modalRef:n},u))});function k3(e,t){[e,t]=pt(e,t,R3);let n=d.useContext(Zn),r=Aa(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Wr(t),a=d.useRef(null),s=Yi(i,o.isOpen),l=Yi(a,o.isOpen),u=s||l||e.isExiting||!1,h=Sn();return!o.isOpen&&!u||h?null:d.createElement(O3,{...e,state:o,isExiting:u,overlayRef:i,modalRef:a})}const M3=d.forwardRef(k3);function O3({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=V9(t,r,n),a=Fa(t.overlayRef)||t.isEntering||!1,s=ht({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=ly(),u;if(typeof document<"u"){let c=qn(document.body)?document.body:document.scrollingElement||document.documentElement,p=c.getBoundingClientRect().height%1;u=c.scrollHeight-p}let h={...s.style,"--visual-viewport-height":l.height+"px","--page-height":u!==void 0?u+"px":void 0};return d.createElement(kl,{isExiting:t.isExiting,portalContainer:e},d.createElement(Qe.div,{...ie(Pe(t,{global:!0}),i),...s,style:h,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},d.createElement(En,{values:[[Eu,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Zn,r]]},s.children)))}function ld(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=d.useContext(Eu),i=d.useContext(Zn),a=d.useMemo(()=>Oa(e.modalRef,n),[e.modalRef,n]),s=Wr(a),l=Fa(s),u=ht({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return d.createElement(Qe.div,{...ie(Pe(e,{global:!0}),t),...u,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&d.createElement(Rl,{onDismiss:i.close}),u.children)}const T3=d.createContext({}),f1=d.createContext(null),D3=d.forwardRef(function(t,n){[t,n]=pt(t,n,T3);let r=G4(t),{groupProps:o}=U4(t,r,n),i=ht({...t,values:{orientation:t.orientation||"horizontal",isDisabled:r.isDisabled,state:r},defaultClassName:"react-aria-ToggleButtonGroup"}),a=Pe(t,{global:!0});return d.createElement(Qe.div,{...ie(a,i,o),ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal","data-disabled":t.isDisabled||void 0},d.createElement(f1.Provider,{value:r},d.createElement(a1,null,i.children)))}),_3=d.createContext({}),L3=d.forwardRef(function(t,n){[t,n]=pt(t,n,_3);let r=d.useContext(f1),o=W4(r&&t.id!=null?{isSelected:r.selectedKeys.has(t.id),onChange(v){r.setSelected(t.id,v)}}:t),{buttonProps:i,isPressed:a,isSelected:s,isDisabled:l}=r&&t.id!=null?q4({...t,id:t.id},r,n):n1({...t,id:t.id!=null?String(t.id):void 0},o,n),{focusProps:u,isFocused:h,isFocusVisible:c}=vh(t),{hoverProps:p,isHovered:f}=Qr({...t,isDisabled:l}),m=ht({...t,id:void 0,values:{isHovered:f,isPressed:a,isFocused:h,isSelected:o.isSelected,isFocusVisible:c,isDisabled:l,state:o},defaultClassName:"react-aria-ToggleButton"}),g=Pe(t,{global:!0});return delete g.id,delete g.onClick,d.createElement(Qe.button,{...ie(g,m,i,u,p),ref:n,slot:t.slot||void 0,"data-focused":h||void 0,"data-disabled":l||void 0,"data-pressed":a||void 0,"data-selected":s||void 0,"data-hovered":f||void 0,"data-focus-visible":c||void 0},d.createElement(s1.Provider,{value:{isSelected:s}},m.children))}),Pu=d.createContext(null),h1=d.createContext(null);function F3(e){let t=i1(e),n=d.useRef(null),{triggerProps:r,tooltipProps:o}=J4(e,t,n);return d.createElement(En,{values:[[Pu,t],[h1,{...o,triggerRef:n}]]},d.createElement(h9,{...r,ref:n},e.children))}const I3=d.forwardRef(function({UNSTABLE_portalContainer:t,...n},r){[n,r]=pt(n,r,h1);let o=d.useContext(Pu),i=i1(n),a=n.isOpen!=null||n.defaultOpen!=null||!o?i:o,s=Yi(r,a.isOpen)||n.isExiting||!1;return!a.isOpen&&!s?null:d.createElement(I9,{portalContainer:t},d.createElement(j3,{...n,tooltipRef:r,isExiting:s}))});function j3(e){let t=d.useContext(Pu),n=d.useRef(null),{overlayProps:r,arrowProps:o,placement:i,triggerAnchorPoint:a}=th({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=Fa(e.tooltipRef,!!i)||e.isEntering||!1,l=ht({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:s,isExiting:e.isExiting,state:t}});e=ie(e,r);let{tooltipProps:u}=Z4(e,t),h=Pe(e,{global:!0});return d.createElement(Qe.div,{...ie(h,l,u),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":a?`${a.x}px ${a.y}px`:void 0,...l.style},"data-placement":i??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},d.createElement(l1.Provider,{value:{...o,placement:i,ref:n}},l.children))}function N3(e,t){var n=d.useState(function(){if(typeof window>"u")return t;try{for(var a=window.localStorage.getItem(e),s=a?JSON.parse(a):t,l=0,u=Object.entries(t);l<u.length;l++){var h=u[l][0];if(typeof s[h]>"u")throw new Error("Missing key in local storage")}return s}catch(c){return console.log(c),t}}),r=n[0],o=n[1],i=function(a){try{var s=a instanceof Function?a(r):a;o(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch(l){console.log(l)}};return[r,i]}var A3=function(){var e=N3("user-preferences",{theme:"system"}),t=e[0],n=e[1];return y.jsx(D3,{className:"flex h-7 space-x-0.5 rounded-md bg-slate-100 p-0.5 dark:bg-slate-700",defaultSelectedKeys:["system"],"aria-label":"Theme",selectedKeys:[t.theme],onSelectionChange:function(r){r.has("system")?n({theme:"system"}):r.has("light")?(document.documentElement.classList.remove("dark"),n({theme:"light"})):r.has("dark")&&(document.documentElement.classList.add("dark"),n({theme:"dark"}))},children:[{value:"system",icon:function(){return y.jsx(U2,{})},ariaLabel:"System theme"},{value:"light",icon:function(){return y.jsx(y5,{})},ariaLabel:"Light theme"},{value:"dark",icon:function(){return y.jsx(c5,{})},ariaLabel:"Dark theme"}].map(function(r){return y.jsx(L3,{className:"flex aspect-square h-full items-center justify-center rounded-md text-slate-900 transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 data-[selected=true]:bg-slate-200 data-[selected=true]:shadow-sm dark:text-slate-50 dark:hover:bg-slate-500 dark:data-[selected=true]:bg-slate-500",id:r.value,"aria-label":r.ariaLabel,children:r.icon()},r.value)})})},Tl=function(e){var t=e.message;return y.jsx("div",{className:"flex items-center justify-center rounded-md bg-red-50 py-4 dark:bg-red-950/50",children:y.jsx("div",{className:"flex flex-col justify-center",children:y.jsx("p",{className:"text-sm text-red-900 dark:text-red-200",children:t})})})},ud=function(e){var t=e.to,n=e.label,r=e.icon;return y.jsxs(S0,{to:t,className:function(o){var i=o.isActive;return"relative -ml-px backdrop-blur-50 flex w-full items-center space-x-2 rounded-md pl-4 py-1 transition duration-150 ease-in-out ".concat(i?"bg-slate-100/90 font-medium text-slate-900 dark:bg-slate-900 dark:text-brand-300":"text-slate-500 dark:text-slate-400 border-slate-100 hover:bg-slate-50 dark:hover:bg-slate-900 hover:border-slate-300 hover:text-slate-900 dark:border-slate-700 dark:hover:border-slate-600 dark:hover:text-slate-100")},children:[r,y.jsx("span",{className:"block truncate",children:n})]})},p1=function(e){var t=e.children,n=ue.queue.list.useQuery(),r=n.data,o=n.isLoading,i=n.isError;return y.jsxs("div",{className:"grid xl:grid-cols-[auto,1fr]",children:[y.jsx("div",{className:"hidden w-64 xl:block",children:y.jsxs("div",{className:"sticky top-0 isolate flex h-full max-h-screen min-h-screen flex-col justify-between overflow-hidden border-r border-brand-50 px-4 pb-4 pt-8 shadow-sm dark:border-slate-700 dark:bg-black",children:[y.jsxs("svg",{viewBox:"0 0 1108 632","aria-hidden":"true",className:"absolute left-[calc(50%-24rem)] top-10 -z-10 w-[69.25rem] max-w-none rotate-90 transform-gpu opacity-50 blur-3xl lg:top-[calc(50%-30rem)]",children:[y.jsx("path",{fill:"url(#175c433f-44f6-4d59-93f0-c5c51ad5566d)",fillOpacity:".2",d:"M235.233 402.609 57.541 321.573.83 631.05l234.404-228.441 320.018 145.945c-65.036-115.261-134.286-322.756 109.01-230.655C968.382 433.026 1031 651.247 1092.23 459.36c48.98-153.51-34.51-321.107-82.37-385.717L810.952 324.222 648.261.088 235.233 402.609Z"}),y.jsx("defs",{children:y.jsxs("linearGradient",{id:"175c433f-44f6-4d59-93f0-c5c51ad5566d",x1:"1220.59",x2:"-85.053",y1:"432.766",y2:"638.714",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{stopColor:"#bbebff"}),y.jsx("stop",{offset:1,stopColor:"#ffffff"})]})})]}),y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex items-center space-x-2 text-slate-900 dark:text-brand-50",children:[y.jsx(m5,{width:28,height:28}),y.jsx("p",{className:"text-lg font-semibold",children:"QueueDash"})]}),y.jsxs("div",{className:"w-full space-y-4",children:[y.jsx(ud,{label:"Overview",icon:y.jsx(V2,{className:"mb-0.5",height:16,width:16}),to:"../"}),y.jsx("div",{className:"h-px w-full bg-slate-100 dark:bg-slate-700"}),y.jsx("div",{className:"w-full space-y-1",children:o?He([],new Array(10),!0).map(function(a,s){return y.jsx(Oo,{className:"h-8 w-full"},s)}):i?y.jsx(Tl,{message:"Could not fetch queues"}):r==null?void 0:r.map(function(a){return y.jsx(ud,{to:"../".concat(a.name),label:a.displayName},a.name)})})]})]}),y.jsxs("div",{className:"flex w-full items-center justify-between",children:[y.jsx("a",{href:"https://github.com/alexbudure/queuedash",target:"_blank",rel:"noreferrer",className:"flex size-7 items-center justify-center rounded-md bg-slate-100 text-slate-900 shadow-sm transition duration-150 ease-in-out hover:bg-slate-200 active:bg-slate-300 dark:bg-slate-600 dark:text-slate-50 dark:hover:bg-slate-500",children:y.jsx(e5,{})}),y.jsx(A3,{})]})]})}),y.jsx("div",{className:"bg-white px-4 py-3 dark:bg-[#121212] lg:px-10 lg:py-8",children:y.jsx("div",{className:"max-w-screen-xl",children:t})})]})};/**
|
|
40
40
|
* table-core
|
|
41
41
|
*
|
|
42
42
|
* Copyright (c) TanStack
|
|
@@ -45,10 +45,10 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
|
|
|
45
45
|
* LICENSE.md file in the root directory of this source tree.
|
|
46
46
|
*
|
|
47
47
|
* @license MIT
|
|
48
|
-
*/function
|
|
48
|
+
*/function g1(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function hn(e,t){return typeof e=="function"?e(t):e}function ot(e,t){return n=>{t.setState(r=>({...r,[e]:hn(n,r[e])}))}}function Va(e){return e instanceof Function}function K3(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function B3(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const a=t(i);a!=null&&a.length&&r(a)})};return r(e),n}function J(e,t,n){let r=[],o;return i=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(i);if(!(s.length!==r.length||s.some((h,c)=>r[c]!==h)))return o;r=s;let u;if(n.key&&n.debug&&(u=Date.now()),o=t(...s),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const h=Math.round((Date.now()-a)*100)/100,c=Math.round((Date.now()-u)*100)/100,p=c/16,f=(m,g)=>{for(m=String(m);m.length<g;)m=" "+m;return m};console.info(`%c⏱ ${f(c,5)} /${f(h,5)} ms`,`
|
|
49
49
|
font-size: .6rem;
|
|
50
50
|
font-weight: bold;
|
|
51
|
-
color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,n==null?void 0:n.key)}return o}}function ee(e,t,n,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[t]},key:!1,onChange:r}}function A3(e,t,n,r){const o=()=>{var a;return(a=i.getValue())!=null?a:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:J(()=>[e,n,t,i],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),ee(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(i,n,t,e)},{}),i}function K3(e,t,n,r){var o,i;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(o=(i=s.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?o:typeof s.header=="string"?s.header:void 0,h;if(s.accessorFn?h=s.accessorFn:l&&(l.includes(".")?h=p=>{let f=p;for(const m of l.split(".")){var g;f=(g=f)==null?void 0:g[m]}return f}:h=p=>p[s.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:h,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:J(()=>[!0],()=>{var p;return[c,...(p=c.columns)==null?void 0:p.flatMap(f=>f.getFlatColumns())]},ee(e.options,"debugColumns")),getLeafColumns:J(()=>[e._getOrderColumnsFn()],p=>{var f;if((f=c.columns)!=null&&f.length){let g=c.columns.flatMap(m=>m.getLeafColumns());return p(g)}return[c]},ee(e.options,"debugColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(c,e);return c}const Fe="debugHeaders";function id(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(i),a},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(i,e)}),i}const B3={createTable:e=>{e.getHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;const s=(i=r==null?void 0:r.map(c=>n.find(p=>p.id===c)).filter(Boolean))!=null?i:[],l=(a=o==null?void 0:o.map(c=>n.find(p=>p.id===c)).filter(Boolean))!=null?a:[],u=n.filter(c=>!(r!=null&&r.includes(c.id))&&!(o!=null&&o.includes(c.id)));return $i(t,[...s,...u,...l],e)},ee(e.options,Fe)),e.getCenterHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),$i(t,n,e,"center")),ee(e.options,Fe)),e.getLeftHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return $i(t,i,e,"left")},ee(e.options,Fe)),e.getRightHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return $i(t,i,e,"right")},ee(e.options,Fe)),e.getFooterGroups=J(()=>[e.getHeaderGroups()],t=>[...t].reverse(),ee(e.options,Fe)),e.getLeftFooterGroups=J(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),ee(e.options,Fe)),e.getCenterFooterGroups=J(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),ee(e.options,Fe)),e.getRightFooterGroups=J(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),ee(e.options,Fe)),e.getFlatHeaders=J(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Fe)),e.getLeftFlatHeaders=J(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Fe)),e.getCenterFlatHeaders=J(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Fe)),e.getRightFlatHeaders=J(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Fe)),e.getCenterLeafHeaders=J(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ee(e.options,Fe)),e.getLeftLeafHeaders=J(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ee(e.options,Fe)),e.getRightLeafHeaders=J(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ee(e.options,Fe)),e.getLeafHeaders=J(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,a,s,l,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(h=>h.getLeafHeaders()).flat()},ee(e.options,Fe))}};function $i(e,t,n,r){var o,i;let a=0;const s=function(p,f){f===void 0&&(f=1),a=Math.max(a,f),p.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&s(g.columns,f+1)},0)};s(e);let l=[];const u=(p,f)=>{const g={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},m=[];p.forEach(v=>{const b=[...m].reverse()[0],x=v.column.depth===g.depth;let w,S=!1;if(x&&v.column.parent?w=v.column.parent:(w=v.column,S=!0),b&&(b==null?void 0:b.column)===w)b.subHeaders.push(v);else{const M=id(n,w,{id:[r,f,w.id,v==null?void 0:v.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${m.filter(P=>P.column===w).length}`:void 0,depth:f,index:m.length});M.subHeaders.push(v),m.push(M)}g.headers.push(v),v.headerGroup=g}),l.push(g),f>0&&u(m,f-1)},h=t.map((p,f)=>id(n,p,{depth:a,index:f}));u(h,a-1),l.reverse();const c=p=>p.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,v=0,b=[0];g.subHeaders&&g.subHeaders.length?(b=[],c(g.subHeaders).forEach(w=>{let{colSpan:S,rowSpan:M}=w;m+=S,b.push(M)})):m=1;const x=Math.min(...b);return v=v+x,g.colSpan=m,g.rowSpan=v,{colSpan:m,rowSpan:v}});return c((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const H3=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>N3(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const h=u.getParentRow();if(!h)break;l.push(h),u=h}return l.reverse()},getAllCells:J(()=>[e.getAllLeafColumns()],l=>l.map(u=>A3(e,s,u,u.id)),ee(e.options,"debugRows")),_getAllCellsByColumnId:J(()=>[s.getAllCells()],l=>l.reduce((u,h)=>(u[h.column.id]=h,u),{}),ee(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},V3={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},p1=(e,t,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};p1.autoRemove=e=>wt(e);const g1=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};g1.autoRemove=e=>wt(e);const m1=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};m1.autoRemove=e=>wt(e);const v1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};v1.autoRemove=e=>wt(e);const b1=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});b1.autoRemove=e=>wt(e)||!(e!=null&&e.length);const y1=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});y1.autoRemove=e=>wt(e)||!(e!=null&&e.length);const x1=(e,t,n)=>e.getValue(t)===n;x1.autoRemove=e=>wt(e);const w1=(e,t,n)=>e.getValue(t)==n;w1.autoRemove=e=>wt(e);const Cu=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Cu.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,a=n===null||Number.isNaN(o)?1/0:o;if(i>a){const s=i;i=a,a=s}return[i,a]};Cu.autoRemove=e=>wt(e)||wt(e[0])&&wt(e[1]);const jt={includesString:p1,includesStringSensitive:g1,equalsString:m1,arrIncludes:v1,arrIncludesAll:b1,arrIncludesSome:y1,equals:x1,weakEquals:w1,inNumberRange:Cu};function wt(e){return e==null||e===""}const z3={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:it("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?jt.includesString:typeof r=="number"?jt.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?jt.equals:Array.isArray(r)?jt.arrIncludes:jt.weakEquals},e.getFilterFn=()=>{var n,r;return Ha(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:jt[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r==null?void 0:r.find(h=>h.id===e.id),a=fn(n,i?i.value:void 0);if(ad(o,a,e)){var s;return(s=r==null?void 0:r.filter(h=>h.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(i){var u;return(u=r==null?void 0:r.map(h=>h.id===e.id?l:h))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=fn(t,o))==null?void 0:i.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(ad(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function ad(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const U3=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),q3=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},W3=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},G3=(e,t,n)=>{let r,o;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r===void 0?a>=a&&(r=o=a):(r>a&&(r=a),o<a&&(o=a)))}),[r,o]},Q3=(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},Y3=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!j3(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,a)=>i-a);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},X3=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Z3=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,J3=(e,t)=>t.length,vs={sum:U3,min:q3,max:W3,extent:G3,mean:Q3,median:Y3,unique:X3,uniqueCount:Z3,count:J3},e8={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:it("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return vs.sum;if(Object.prototype.toString.call(r)==="[object Date]")return vs.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Ha(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:vs[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function t8(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(a=>a.id===i)).filter(Boolean),...r]}const n8={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:it("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=J(n=>[yo(t,n)],n=>n.findIndex(r=>r.id===e.id),ee(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=yo(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=yo(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=J(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const a=[...t],s=[...o];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(h=>h.id===l);u>-1&&i.push(s.splice(u,1)[0])}i=[...i,...s]}return t8(i,n,r)},ee(e.options,"debugTable"))}},bs=()=>({left:[],right:[]}),r8={getInitialState:e=>({columnPinning:bs(),...e}),getDefaultOptions:e=>({onColumnPinningChange:it("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,a;if(n==="right"){var s,l;return{left:((s=o==null?void 0:o.left)!=null?s:[]).filter(c=>!(r!=null&&r.includes(c))),right:[...((l=o==null?void 0:o.right)!=null?l:[]).filter(c=>!(r!=null&&r.includes(c))),...r]}}if(n==="left"){var u,h;return{left:[...((u=o==null?void 0:o.left)!=null?u:[]).filter(c=>!(r!=null&&r.includes(c))),...r],right:((h=o==null?void 0:o.right)!=null?h:[]).filter(c=>!(r!=null&&r.includes(c)))}}return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(c=>!(r!=null&&r.includes(c))),right:((a=o==null?void 0:o.right)!=null?a:[]).filter(c=>!(r!=null&&r.includes(c)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,a;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=J(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(a=>!i.includes(a.column.id))},ee(t.options,"debugRows")),e.getLeftVisibleCells=J(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),ee(t.options,"debugRows")),e.getRightVisibleCells=J(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),ee(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?bs():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:bs())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=J(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),ee(e.options,"debugColumns")),e.getRightLeafColumns=J(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),ee(e.options,"debugColumns")),e.getCenterLeafColumns=J(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},ee(e.options,"debugColumns"))}};function o8(e){return e||(typeof document<"u"?document:null)}const Si={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ys=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),i8={getDefaultColumnDef:()=>Si,getInitialState:e=>({columnSizing:{},columnSizingInfo:ys(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:it("columnSizing",e),onColumnSizingInfoChange:it("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Si.minSize,(r=i??e.columnDef.size)!=null?r:Si.size),(o=e.columnDef.maxSize)!=null?o:Si.maxSize)},e.getStart=J(n=>[n,yo(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),ee(t.options,"debugColumns")),e.getAfter=J(n=>[n,yo(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),ee(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),xs(i)&&i.touches&&i.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],l=xs(i)?Math.round(i.touches[0].clientX):i.clientX,u={},h=(b,x)=>{typeof x=="number"&&(t.setColumnSizingInfo(w=>{var S,M;const P=t.options.columnResizeDirection==="rtl"?-1:1,R=(x-((S=w==null?void 0:w.startOffset)!=null?S:0))*P,k=Math.max(R/((M=w==null?void 0:w.startSize)!=null?M:0),-.999999);return w.columnSizingStart.forEach(D=>{let[_,A]=D;u[_]=Math.round(Math.max(A+A*k,0)*100)/100}),{...w,deltaOffset:R,deltaPercentage:k}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(w=>({...w,...u})))},c=b=>h("move",b),p=b=>{h("end",b),t.setColumnSizingInfo(x=>({...x,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=o8(n),g={moveHandler:b=>c(b.clientX),upHandler:b=>{f==null||f.removeEventListener("mousemove",g.moveHandler),f==null||f.removeEventListener("mouseup",g.upHandler),p(b.clientX)}},m={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),c(b.touches[0].clientX),!1),upHandler:b=>{var x;f==null||f.removeEventListener("touchmove",m.moveHandler),f==null||f.removeEventListener("touchend",m.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),p((x=b.touches[0])==null?void 0:x.clientX)}},v=a8()?{passive:!1}:!1;xs(i)?(f==null||f.addEventListener("touchmove",m.moveHandler,v),f==null||f.addEventListener("touchend",m.upHandler,v)):(f==null||f.addEventListener("mousemove",g.moveHandler,v),f==null||f.addEventListener("mouseup",g.upHandler,v)),t.setColumnSizingInfo(b=>({...b,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?ys():(n=e.initialState.columnSizingInfo)!=null?n:ys())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let Ei=null;function a8(){if(typeof Ei=="boolean")return Ei;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Ei=e,Ei}function xs(e){return e.type==="touchstart"}const s8={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:it("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=J(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),ee(t.options,"debugRows")),e.getVisibleCells=J(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],ee(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>J(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),ee(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function yo(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const l8={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},u8={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:it("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>jt.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Ha(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:jt[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},c8={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:it("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const a=i.split(".");r=Math.max(r,a.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(o=n)!=null?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},kl=0,Ml=10,ws=()=>({pageIndex:kl,pageSize:Ml}),d8={getInitialState:e=>({...e,pagination:{...ws(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:it("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=i=>fn(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?ws():(o=e.initialState.pagination)!=null?o:ws())},e.setPageIndex=r=>{e.setPagination(o=>{let i=fn(r,o.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,a)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?kl:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:kl)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?Ml:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:Ml)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,fn(r,o.pageSize)),a=o.pageSize*o.pageIndex,s=Math.floor(a/i);return{...o,pageIndex:s,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let a=fn(r,(i=e.options.pageCount)!=null?i:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=J(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,a)=>a)),o},ee(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Cs=()=>({top:[],bottom:[]}),f8={getInitialState:e=>({rowPinning:Cs(),...e}),getDefaultOptions:e=>({onRowPinningChange:it("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=o?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...a,e.id,...i]);t.setRowPinning(l=>{var u,h;if(n==="bottom"){var c,p;return{top:((c=l==null?void 0:l.top)!=null?c:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((p=l==null?void 0:l.bottom)!=null?p:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var f,g;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((h=l==null?void 0:l.bottom)!=null?h:[]).filter(m=>!(s!=null&&s.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=i==null?void 0:i.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Cs():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Cs())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(a=>t.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=J(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),ee(e.options,"debugRows")),e.getBottomRows=J(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),ee(e.options,"debugRows")),e.getCenterRows=J(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},ee(e.options,"debugRows"))}},h8={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:it("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{Ol(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=J(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?$s(e,n):{rows:[],flatRows:[],rowsById:{}},ee(e.options,"debugTable")),e.getFilteredSelectedRowModel=J(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?$s(e,n):{rows:[],flatRows:[],rowsById:{}},ee(e.options,"debugTable")),e.getGroupedSelectedRowModel=J(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?$s(e,n):{rows:[],flatRows:[],rowsById:{}},ee(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var a;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return Ol(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return $u(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Tl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Tl(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Ol=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=a.subRows)!=null&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>Ol(e,s.id,n,r,o))};function $s(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(a,s){return a.map(l=>{var u;const h=$u(l,n);if(h&&(r.push(l),o[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:i(l.subRows)}),h)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function $u(e,t){var n;return(n=t[e.id])!=null?n:!1}function Tl(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(a=>{if(!(i&&!o)&&(a.getCanSelect()&&($u(a,t)?i=!0:o=!1),a.subRows&&a.subRows.length)){const s=Tl(a,t);s==="all"?i=!0:(s==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Dl=/([0-9]+)/gm,p8=(e,t,n)=>C1(yn(e.getValue(n)).toLowerCase(),yn(t.getValue(n)).toLowerCase()),g8=(e,t,n)=>C1(yn(e.getValue(n)),yn(t.getValue(n))),m8=(e,t,n)=>Su(yn(e.getValue(n)).toLowerCase(),yn(t.getValue(n)).toLowerCase()),v8=(e,t,n)=>Su(yn(e.getValue(n)),yn(t.getValue(n))),b8=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},y8=(e,t,n)=>Su(e.getValue(n),t.getValue(n));function Su(e,t){return e===t?0:e>t?1:-1}function yn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function C1(e,t){const n=e.split(Dl).filter(Boolean),r=t.split(Dl).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),a=parseInt(o,10),s=parseInt(i,10),l=[a,s].sort();if(isNaN(l[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const ro={alphanumeric:p8,alphanumericCaseSensitive:g8,text:m8,textCaseSensitive:v8,datetime:b8,basic:y8},x8={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:it("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return ro.datetime;if(typeof i=="string"&&(r=!0,i.split(Dl).length>1))return ro.alphanumeric}return r?ro.text:ro.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Ha(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:ro[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(f=>f.id===e.id),l=a==null?void 0:a.findIndex(f=>f.id===e.id);let u=[],h,c=i?n:o==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?h="toggle":h="add":a!=null&&a.length&&l!==a.length-1?h="replace":s?h="toggle":h="replace",h==="toggle"&&(i||o||(h="remove")),h==="add"){var p;u=[...a,{id:e.id,desc:c}],u.splice(0,u.length-((p=t.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else h==="toggle"?u=a.map(f=>f.id===e.id?{...f,desc:c}:f):h==="remove"?u=a.filter(f=>f.id!==e.id):u=[{id:e.id,desc:c}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:a==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},w8=[B3,s8,n8,r8,V3,z3,l8,u8,x8,e8,c8,d8,f8,h8,i8];function C8(e){var t,n;const r=[...w8,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((p,f)=>Object.assign(p,f.getDefaultOptions==null?void 0:f.getDefaultOptions(o)),{}),a=p=>o.options.mergeOptions?o.options.mergeOptions(i,p):{...i,...p};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(p=>{var f;l=(f=p.getInitialState==null?void 0:p.getInitialState(l))!=null?f:l});const u=[];let h=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:p=>{u.push(p),h||(h=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();h=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{o.setState(o.initialState)},setOptions:p=>{const f=fn(p,o.options);o.options=a(f)},getState:()=>o.options.state,setState:p=>{o.options.onStateChange==null||o.options.onStateChange(p)},_getRowId:(p,f,g)=>{var m;return(m=o.options.getRowId==null?void 0:o.options.getRowId(p,f,g))!=null?m:`${g?[g.id,f].join("."):f}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(p,f)=>{let g=(f?o.getPrePaginationRowModel():o.getRowModel()).rowsById[p];if(!g&&(g=o.getCoreRowModel().rowsById[p],!g))throw new Error;return g},_getDefaultColumnDef:J(()=>[o.options.defaultColumn],p=>{var f;return p=(f=p)!=null?f:{},{header:g=>{const m=g.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:g=>{var m,v;return(m=(v=g.renderValue())==null||v.toString==null?void 0:v.toString())!=null?m:null},...o._features.reduce((g,m)=>Object.assign(g,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...p}},ee(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:J(()=>[o._getColumnDefs()],p=>{const f=function(g,m,v){return v===void 0&&(v=0),g.map(b=>{const x=K3(o,b,v,m),w=b;return x.columns=w.columns?f(w.columns,x,v+1):[],x})};return f(p)},ee(e,"debugColumns")),getAllFlatColumns:J(()=>[o.getAllColumns()],p=>p.flatMap(f=>f.getFlatColumns()),ee(e,"debugColumns")),_getAllFlatColumnsById:J(()=>[o.getAllFlatColumns()],p=>p.reduce((f,g)=>(f[g.id]=g,f),{}),ee(e,"debugColumns")),getAllLeafColumns:J(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(p,f)=>{let g=p.flatMap(m=>m.getLeafColumns());return f(g)},ee(e,"debugColumns")),getColumn:p=>o._getAllFlatColumnsById()[p]};Object.assign(o,c);for(let p=0;p<o._features.length;p++){const f=o._features[p];f==null||f.createTable==null||f.createTable(o)}return o}function $1(){return e=>J(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,a){i===void 0&&(i=0);const s=[];for(let u=0;u<o.length;u++){const h=H3(e,e._getRowId(o[u],u,a),o[u],u,i,void 0,a==null?void 0:a.id);if(n.flatRows.push(h),n.rowsById[h.id]=h,s.push(h),e.options.getSubRows){var l;h.originalSubRows=e.options.getSubRows(o[u],u),(l=h.originalSubRows)!=null&&l.length&&(h.subRows=r(h.originalSubRows,i+1,h))}}return s};return n.rows=r(t),n},ee(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
|
51
|
+
color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,n==null?void 0:n.key)}return o}}function ee(e,t,n,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[t]},key:!1,onChange:r}}function H3(e,t,n,r){const o=()=>{var a;return(a=i.getValue())!=null?a:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:J(()=>[e,n,t,i],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),ee(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(i,n,t,e)},{}),i}function V3(e,t,n,r){var o,i;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(o=(i=s.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?o:typeof s.header=="string"?s.header:void 0,h;if(s.accessorFn?h=s.accessorFn:l&&(l.includes(".")?h=p=>{let f=p;for(const g of l.split(".")){var m;f=(m=f)==null?void 0:m[g]}return f}:h=p=>p[s.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:h,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:J(()=>[!0],()=>{var p;return[c,...(p=c.columns)==null?void 0:p.flatMap(f=>f.getFlatColumns())]},ee(e.options,"debugColumns")),getLeafColumns:J(()=>[e._getOrderColumnsFn()],p=>{var f;if((f=c.columns)!=null&&f.length){let m=c.columns.flatMap(g=>g.getLeafColumns());return p(m)}return[c]},ee(e.options,"debugColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(c,e);return c}const Ie="debugHeaders";function cd(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(i),a},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(i,e)}),i}const z3={createTable:e=>{e.getHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;const s=(i=r==null?void 0:r.map(c=>n.find(p=>p.id===c)).filter(Boolean))!=null?i:[],l=(a=o==null?void 0:o.map(c=>n.find(p=>p.id===c)).filter(Boolean))!=null?a:[],u=n.filter(c=>!(r!=null&&r.includes(c.id))&&!(o!=null&&o.includes(c.id)));return Si(t,[...s,...u,...l],e)},ee(e.options,Ie)),e.getCenterHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),Si(t,n,e,"center")),ee(e.options,Ie)),e.getLeftHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return Si(t,i,e,"left")},ee(e.options,Ie)),e.getRightHeaderGroups=J(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return Si(t,i,e,"right")},ee(e.options,Ie)),e.getFooterGroups=J(()=>[e.getHeaderGroups()],t=>[...t].reverse(),ee(e.options,Ie)),e.getLeftFooterGroups=J(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),ee(e.options,Ie)),e.getCenterFooterGroups=J(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),ee(e.options,Ie)),e.getRightFooterGroups=J(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),ee(e.options,Ie)),e.getFlatHeaders=J(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Ie)),e.getLeftFlatHeaders=J(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Ie)),e.getCenterFlatHeaders=J(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Ie)),e.getRightFlatHeaders=J(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),ee(e.options,Ie)),e.getCenterLeafHeaders=J(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ee(e.options,Ie)),e.getLeftLeafHeaders=J(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ee(e.options,Ie)),e.getRightLeafHeaders=J(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ee(e.options,Ie)),e.getLeafHeaders=J(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,a,s,l,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(h=>h.getLeafHeaders()).flat()},ee(e.options,Ie))}};function Si(e,t,n,r){var o,i;let a=0;const s=function(p,f){f===void 0&&(f=1),a=Math.max(a,f),p.filter(m=>m.getIsVisible()).forEach(m=>{var g;(g=m.columns)!=null&&g.length&&s(m.columns,f+1)},0)};s(e);let l=[];const u=(p,f)=>{const m={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},g=[];p.forEach(v=>{const b=[...g].reverse()[0],x=v.column.depth===m.depth;let w,$=!1;if(x&&v.column.parent?w=v.column.parent:(w=v.column,$=!0),b&&(b==null?void 0:b.column)===w)b.subHeaders.push(v);else{const M=cd(n,w,{id:[r,f,w.id,v==null?void 0:v.id].filter(Boolean).join("_"),isPlaceholder:$,placeholderId:$?`${g.filter(R=>R.column===w).length}`:void 0,depth:f,index:g.length});M.subHeaders.push(v),g.push(M)}m.headers.push(v),v.headerGroup=m}),l.push(m),f>0&&u(g,f-1)},h=t.map((p,f)=>cd(n,p,{depth:a,index:f}));u(h,a-1),l.reverse();const c=p=>p.filter(m=>m.column.getIsVisible()).map(m=>{let g=0,v=0,b=[0];m.subHeaders&&m.subHeaders.length?(b=[],c(m.subHeaders).forEach(w=>{let{colSpan:$,rowSpan:M}=w;g+=$,b.push(M)})):g=1;const x=Math.min(...b);return v=v+x,m.colSpan=g,m.rowSpan=v,{colSpan:g,rowSpan:v}});return c((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const U3=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>B3(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const h=u.getParentRow();if(!h)break;l.push(h),u=h}return l.reverse()},getAllCells:J(()=>[e.getAllLeafColumns()],l=>l.map(u=>H3(e,s,u,u.id)),ee(e.options,"debugRows")),_getAllCellsByColumnId:J(()=>[s.getAllCells()],l=>l.reduce((u,h)=>(u[h.column.id]=h,u),{}),ee(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},q3={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},m1=(e,t,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};m1.autoRemove=e=>xt(e);const v1=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};v1.autoRemove=e=>xt(e);const b1=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};b1.autoRemove=e=>xt(e);const y1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};y1.autoRemove=e=>xt(e);const x1=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});x1.autoRemove=e=>xt(e)||!(e!=null&&e.length);const w1=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});w1.autoRemove=e=>xt(e)||!(e!=null&&e.length);const C1=(e,t,n)=>e.getValue(t)===n;C1.autoRemove=e=>xt(e);const $1=(e,t,n)=>e.getValue(t)==n;$1.autoRemove=e=>xt(e);const Ru=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Ru.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,a=n===null||Number.isNaN(o)?1/0:o;if(i>a){const s=i;i=a,a=s}return[i,a]};Ru.autoRemove=e=>xt(e)||xt(e[0])&&xt(e[1]);const jt={includesString:m1,includesStringSensitive:v1,equalsString:b1,arrIncludes:y1,arrIncludesAll:x1,arrIncludesSome:w1,equals:C1,weakEquals:$1,inNumberRange:Ru};function xt(e){return e==null||e===""}const W3={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:ot("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?jt.includesString:typeof r=="number"?jt.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?jt.equals:Array.isArray(r)?jt.arrIncludes:jt.weakEquals},e.getFilterFn=()=>{var n,r;return Va(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:jt[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r==null?void 0:r.find(h=>h.id===e.id),a=hn(n,i?i.value:void 0);if(dd(o,a,e)){var s;return(s=r==null?void 0:r.filter(h=>h.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(i){var u;return(u=r==null?void 0:r.map(h=>h.id===e.id?l:h))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=hn(t,o))==null?void 0:i.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(dd(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function dd(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const G3=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),Q3=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},Y3=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},X3=(e,t,n)=>{let r,o;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r===void 0?a>=a&&(r=o=a):(r>a&&(r=a),o<a&&(o=a)))}),[r,o]},Z3=(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},J3=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!K3(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,a)=>i-a);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},e8=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),t8=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,n8=(e,t)=>t.length,ws={sum:G3,min:Q3,max:Y3,extent:X3,mean:Z3,median:J3,unique:e8,uniqueCount:t8,count:n8},r8={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:ot("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return ws.sum;if(Object.prototype.toString.call(r)==="[object Date]")return ws.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Va(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:ws[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function o8(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(a=>a.id===i)).filter(Boolean),...r]}const i8={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:ot("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=J(n=>[Co(t,n)],n=>n.findIndex(r=>r.id===e.id),ee(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=Co(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=Co(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=J(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const a=[...t],s=[...o];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(h=>h.id===l);u>-1&&i.push(s.splice(u,1)[0])}i=[...i,...s]}return o8(i,n,r)},ee(e.options,"debugTable"))}},Cs=()=>({left:[],right:[]}),a8={getInitialState:e=>({columnPinning:Cs(),...e}),getDefaultOptions:e=>({onColumnPinningChange:ot("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,a;if(n==="right"){var s,l;return{left:((s=o==null?void 0:o.left)!=null?s:[]).filter(c=>!(r!=null&&r.includes(c))),right:[...((l=o==null?void 0:o.right)!=null?l:[]).filter(c=>!(r!=null&&r.includes(c))),...r]}}if(n==="left"){var u,h;return{left:[...((u=o==null?void 0:o.left)!=null?u:[]).filter(c=>!(r!=null&&r.includes(c))),...r],right:((h=o==null?void 0:o.right)!=null?h:[]).filter(c=>!(r!=null&&r.includes(c)))}}return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(c=>!(r!=null&&r.includes(c))),right:((a=o==null?void 0:o.right)!=null?a:[]).filter(c=>!(r!=null&&r.includes(c)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,a;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=J(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(a=>!i.includes(a.column.id))},ee(t.options,"debugRows")),e.getLeftVisibleCells=J(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),ee(t.options,"debugRows")),e.getRightVisibleCells=J(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),ee(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Cs():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Cs())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=J(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),ee(e.options,"debugColumns")),e.getRightLeafColumns=J(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),ee(e.options,"debugColumns")),e.getCenterLeafColumns=J(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},ee(e.options,"debugColumns"))}};function s8(e){return e||(typeof document<"u"?document:null)}const Ei={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},$s=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),l8={getDefaultColumnDef:()=>Ei,getInitialState:e=>({columnSizing:{},columnSizingInfo:$s(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:ot("columnSizing",e),onColumnSizingInfoChange:ot("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Ei.minSize,(r=i??e.columnDef.size)!=null?r:Ei.size),(o=e.columnDef.maxSize)!=null?o:Ei.maxSize)},e.getStart=J(n=>[n,Co(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),ee(t.options,"debugColumns")),e.getAfter=J(n=>[n,Co(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),ee(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),Ss(i)&&i.touches&&i.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],l=Ss(i)?Math.round(i.touches[0].clientX):i.clientX,u={},h=(b,x)=>{typeof x=="number"&&(t.setColumnSizingInfo(w=>{var $,M;const R=t.options.columnResizeDirection==="rtl"?-1:1,P=(x-(($=w==null?void 0:w.startOffset)!=null?$:0))*R,k=Math.max(P/((M=w==null?void 0:w.startSize)!=null?M:0),-.999999);return w.columnSizingStart.forEach(D=>{let[L,N]=D;u[L]=Math.round(Math.max(N+N*k,0)*100)/100}),{...w,deltaOffset:P,deltaPercentage:k}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(w=>({...w,...u})))},c=b=>h("move",b),p=b=>{h("end",b),t.setColumnSizingInfo(x=>({...x,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=s8(n),m={moveHandler:b=>c(b.clientX),upHandler:b=>{f==null||f.removeEventListener("mousemove",m.moveHandler),f==null||f.removeEventListener("mouseup",m.upHandler),p(b.clientX)}},g={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),c(b.touches[0].clientX),!1),upHandler:b=>{var x;f==null||f.removeEventListener("touchmove",g.moveHandler),f==null||f.removeEventListener("touchend",g.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),p((x=b.touches[0])==null?void 0:x.clientX)}},v=u8()?{passive:!1}:!1;Ss(i)?(f==null||f.addEventListener("touchmove",g.moveHandler,v),f==null||f.addEventListener("touchend",g.upHandler,v)):(f==null||f.addEventListener("mousemove",m.moveHandler,v),f==null||f.addEventListener("mouseup",m.upHandler,v)),t.setColumnSizingInfo(b=>({...b,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?$s():(n=e.initialState.columnSizingInfo)!=null?n:$s())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let Pi=null;function u8(){if(typeof Pi=="boolean")return Pi;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Pi=e,Pi}function Ss(e){return e.type==="touchstart"}const c8={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:ot("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=J(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),ee(t.options,"debugRows")),e.getVisibleCells=J(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],ee(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>J(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),ee(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Co(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const d8={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},f8={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:ot("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>jt.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Va(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:jt[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},h8={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:ot("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const a=i.split(".");r=Math.max(r,a.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(o=n)!=null?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Dl=0,_l=10,Es=()=>({pageIndex:Dl,pageSize:_l}),p8={getInitialState:e=>({...e,pagination:{...Es(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:ot("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=i=>hn(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Es():(o=e.initialState.pagination)!=null?o:Es())},e.setPageIndex=r=>{e.setPagination(o=>{let i=hn(r,o.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,a)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?Dl:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Dl)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?_l:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:_l)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,hn(r,o.pageSize)),a=o.pageSize*o.pageIndex,s=Math.floor(a/i);return{...o,pageIndex:s,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let a=hn(r,(i=e.options.pageCount)!=null?i:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=J(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,a)=>a)),o},ee(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Ps=()=>({top:[],bottom:[]}),g8={getInitialState:e=>({rowPinning:Ps(),...e}),getDefaultOptions:e=>({onRowPinningChange:ot("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=o?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...a,e.id,...i]);t.setRowPinning(l=>{var u,h;if(n==="bottom"){var c,p;return{top:((c=l==null?void 0:l.top)!=null?c:[]).filter(g=>!(s!=null&&s.has(g))),bottom:[...((p=l==null?void 0:l.bottom)!=null?p:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)]}}if(n==="top"){var f,m;return{top:[...((f=l==null?void 0:l.top)!=null?f:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)],bottom:((m=l==null?void 0:l.bottom)!=null?m:[]).filter(g=>!(s!=null&&s.has(g)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(g=>!(s!=null&&s.has(g))),bottom:((h=l==null?void 0:l.bottom)!=null?h:[]).filter(g=>!(s!=null&&s.has(g)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=i==null?void 0:i.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Ps():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Ps())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(a=>t.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=J(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),ee(e.options,"debugRows")),e.getBottomRows=J(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),ee(e.options,"debugRows")),e.getCenterRows=J(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},ee(e.options,"debugRows"))}},m8={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:ot("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{Ll(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=J(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Rs(e,n):{rows:[],flatRows:[],rowsById:{}},ee(e.options,"debugTable")),e.getFilteredSelectedRowModel=J(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Rs(e,n):{rows:[],flatRows:[],rowsById:{}},ee(e.options,"debugTable")),e.getGroupedSelectedRowModel=J(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Rs(e,n):{rows:[],flatRows:[],rowsById:{}},ee(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var a;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return Ll(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return ku(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Fl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Fl(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Ll=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=a.subRows)!=null&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>Ll(e,s.id,n,r,o))};function Rs(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(a,s){return a.map(l=>{var u;const h=ku(l,n);if(h&&(r.push(l),o[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:i(l.subRows)}),h)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function ku(e,t){var n;return(n=t[e.id])!=null?n:!1}function Fl(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(a=>{if(!(i&&!o)&&(a.getCanSelect()&&(ku(a,t)?i=!0:o=!1),a.subRows&&a.subRows.length)){const s=Fl(a,t);s==="all"?i=!0:(s==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Il=/([0-9]+)/gm,v8=(e,t,n)=>S1(xn(e.getValue(n)).toLowerCase(),xn(t.getValue(n)).toLowerCase()),b8=(e,t,n)=>S1(xn(e.getValue(n)),xn(t.getValue(n))),y8=(e,t,n)=>Mu(xn(e.getValue(n)).toLowerCase(),xn(t.getValue(n)).toLowerCase()),x8=(e,t,n)=>Mu(xn(e.getValue(n)),xn(t.getValue(n))),w8=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},C8=(e,t,n)=>Mu(e.getValue(n),t.getValue(n));function Mu(e,t){return e===t?0:e>t?1:-1}function xn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function S1(e,t){const n=e.split(Il).filter(Boolean),r=t.split(Il).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),a=parseInt(o,10),s=parseInt(i,10),l=[a,s].sort();if(isNaN(l[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const ao={alphanumeric:v8,alphanumericCaseSensitive:b8,text:y8,textCaseSensitive:x8,datetime:w8,basic:C8},$8={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:ot("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return ao.datetime;if(typeof i=="string"&&(r=!0,i.split(Il).length>1))return ao.alphanumeric}return r?ao.text:ao.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Va(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:ao[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(f=>f.id===e.id),l=a==null?void 0:a.findIndex(f=>f.id===e.id);let u=[],h,c=i?n:o==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?h="toggle":h="add":a!=null&&a.length&&l!==a.length-1?h="replace":s?h="toggle":h="replace",h==="toggle"&&(i||o||(h="remove")),h==="add"){var p;u=[...a,{id:e.id,desc:c}],u.splice(0,u.length-((p=t.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else h==="toggle"?u=a.map(f=>f.id===e.id?{...f,desc:c}:f):h==="remove"?u=a.filter(f=>f.id!==e.id):u=[{id:e.id,desc:c}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:a==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},S8=[z3,c8,i8,a8,q3,W3,d8,f8,$8,r8,h8,p8,g8,m8,l8];function E8(e){var t,n;const r=[...S8,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((p,f)=>Object.assign(p,f.getDefaultOptions==null?void 0:f.getDefaultOptions(o)),{}),a=p=>o.options.mergeOptions?o.options.mergeOptions(i,p):{...i,...p};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(p=>{var f;l=(f=p.getInitialState==null?void 0:p.getInitialState(l))!=null?f:l});const u=[];let h=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:p=>{u.push(p),h||(h=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();h=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{o.setState(o.initialState)},setOptions:p=>{const f=hn(p,o.options);o.options=a(f)},getState:()=>o.options.state,setState:p=>{o.options.onStateChange==null||o.options.onStateChange(p)},_getRowId:(p,f,m)=>{var g;return(g=o.options.getRowId==null?void 0:o.options.getRowId(p,f,m))!=null?g:`${m?[m.id,f].join("."):f}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(p,f)=>{let m=(f?o.getPrePaginationRowModel():o.getRowModel()).rowsById[p];if(!m&&(m=o.getCoreRowModel().rowsById[p],!m))throw new Error;return m},_getDefaultColumnDef:J(()=>[o.options.defaultColumn],p=>{var f;return p=(f=p)!=null?f:{},{header:m=>{const g=m.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:m=>{var g,v;return(g=(v=m.renderValue())==null||v.toString==null?void 0:v.toString())!=null?g:null},...o._features.reduce((m,g)=>Object.assign(m,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...p}},ee(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:J(()=>[o._getColumnDefs()],p=>{const f=function(m,g,v){return v===void 0&&(v=0),m.map(b=>{const x=V3(o,b,v,g),w=b;return x.columns=w.columns?f(w.columns,x,v+1):[],x})};return f(p)},ee(e,"debugColumns")),getAllFlatColumns:J(()=>[o.getAllColumns()],p=>p.flatMap(f=>f.getFlatColumns()),ee(e,"debugColumns")),_getAllFlatColumnsById:J(()=>[o.getAllFlatColumns()],p=>p.reduce((f,m)=>(f[m.id]=m,f),{}),ee(e,"debugColumns")),getAllLeafColumns:J(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(p,f)=>{let m=p.flatMap(g=>g.getLeafColumns());return f(m)},ee(e,"debugColumns")),getColumn:p=>o._getAllFlatColumnsById()[p]};Object.assign(o,c);for(let p=0;p<o._features.length;p++){const f=o._features[p];f==null||f.createTable==null||f.createTable(o)}return o}function E1(){return e=>J(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,a){i===void 0&&(i=0);const s=[];for(let u=0;u<o.length;u++){const h=U3(e,e._getRowId(o[u],u,a),o[u],u,i,void 0,a==null?void 0:a.id);if(n.flatRows.push(h),n.rowsById[h.id]=h,s.push(h),e.options.getSubRows){var l;h.originalSubRows=e.options.getSubRows(o[u],u),(l=h.originalSubRows)!=null&&l.length&&(h.subRows=r(h.originalSubRows,i+1,h))}}return s};return n.rows=r(t),n},ee(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
|
52
52
|
* react-table
|
|
53
53
|
*
|
|
54
54
|
* Copyright (c) TanStack
|
|
@@ -57,10 +57,10 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
|
|
|
57
57
|
* LICENSE.md file in the root directory of this source tree.
|
|
58
58
|
*
|
|
59
59
|
* @license MIT
|
|
60
|
-
*/function sa(e,t){return e?$8(e)?E.createElement(e,t):e:null}function $8(e){return S8(e)||typeof e=="function"||E8(e)}function S8(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function E8(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function S1(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=E.useState(()=>({current:C8(t)})),[r,o]=E.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),n.current}const E1=6048e5,P8=864e5,sd=6e4,ld=525600,hr=43200,la=1440,ud=Symbol.for("constructDateFrom");function qt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ud in e?e[ud](t):e instanceof Date?new e.constructor(t):new Date(t)}function Oe(e,t){return qt(t||e,e)}let R8={};function Yr(){return R8}function Lo(e,t){var s,l,u,h;const n=Yr(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,o=Oe(e,t==null?void 0:t.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function ua(e,t){return Lo(e,{...t,weekStartsOn:1})}function P1(e,t){const n=Oe(e,t==null?void 0:t.in),r=n.getFullYear(),o=qt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=ua(o),a=qt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=ua(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function jr(e){const t=Oe(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ni(e,...t){const n=qt.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function cd(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function k8(e,t,n){const[r,o]=ni(n==null?void 0:n.in,e,t),i=cd(r),a=cd(o),s=+i-jr(i),l=+a-jr(a);return Math.round((s-l)/P8)}function M8(e,t){const n=P1(e,t),r=qt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ua(r)}function xo(e,t){const n=+Oe(e)-+Oe(t);return n<0?-1:n>0?1:n}function O8(e){return qt(e,Date.now())}function T8(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function D8(e){return!(!T8(e)&&typeof e!="number"||isNaN(+Oe(e)))}function _8(e,t,n){const[r,o]=ni(n==null?void 0:n.in,e,t),i=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return i*12+a}function R1(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function L8(e,t){return+Oe(e)-+Oe(t)}function F8(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function I8(e,t){const n=Oe(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function j8(e,t){const n=Oe(e,t==null?void 0:t.in);return+F8(n,t)==+I8(n,t)}function N8(e,t,n){const[r,o,i]=ni(n==null?void 0:n.in,e,e,t),a=xo(o,i),s=Math.abs(_8(o,i));if(s<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-a*s);let l=xo(o,i)===-a;j8(r)&&s===1&&xo(r,i)===1&&(l=!1);const u=a*(s-+l);return u===0?0:u}function A8(e,t,n){const r=L8(e,t)/1e3;return R1(n==null?void 0:n.roundingMethod)(r)}function K8(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const B8={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},H8=(e,t,n)=>{let r;const o=B8[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ss(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const V8={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},z8={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},U8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},q8={date:Ss({formats:V8,defaultWidth:"full"}),time:Ss({formats:z8,defaultWidth:"full"}),dateTime:Ss({formats:U8,defaultWidth:"full"})},W8={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},G8=(e,t,n,r)=>W8[e];function oo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;o=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const Q8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Y8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},X8={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Z8={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},J8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},e7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},t7=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},n7={ordinalNumber:t7,era:oo({values:Q8,defaultWidth:"wide"}),quarter:oo({values:Y8,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oo({values:X8,defaultWidth:"wide"}),day:oo({values:Z8,defaultWidth:"wide"}),dayPeriod:oo({values:J8,defaultWidth:"wide",formattingValues:e7,defaultFormattingWidth:"wide"})};function io(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?o7(s,c=>c.test(a)):r7(s,c=>c.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const h=t.slice(a.length);return{value:u,rest:h}}}function r7(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function o7(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function i7(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(o.length);return{value:a,rest:s}}}const a7=/^(\d+)(th|st|nd|rd)?/i,s7=/\d+/i,l7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},u7={any:[/^b/i,/^(a|c)/i]},c7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d7={any:[/1/i,/2/i,/3/i,/4/i]},f7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},p7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},g7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},m7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},v7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b7={ordinalNumber:i7({matchPattern:a7,parsePattern:s7,valueCallback:e=>parseInt(e,10)}),era:io({matchPatterns:l7,defaultMatchWidth:"wide",parsePatterns:u7,defaultParseWidth:"any"}),quarter:io({matchPatterns:c7,defaultMatchWidth:"wide",parsePatterns:d7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:io({matchPatterns:f7,defaultMatchWidth:"wide",parsePatterns:h7,defaultParseWidth:"any"}),day:io({matchPatterns:p7,defaultMatchWidth:"wide",parsePatterns:g7,defaultParseWidth:"any"}),dayPeriod:io({matchPatterns:m7,defaultMatchWidth:"any",parsePatterns:v7,defaultParseWidth:"any"})},Eu={code:"en-US",formatDistance:H8,formatLong:q8,formatRelative:G8,localize:n7,match:b7,options:{weekStartsOn:0,firstWeekContainsDate:1}};function y7(e,t){const n=Oe(e,t==null?void 0:t.in);return k8(n,K8(n))+1}function x7(e,t){const n=Oe(e,t==null?void 0:t.in),r=+ua(n)-+M8(n);return Math.round(r/E1)+1}function k1(e,t){var h,c,p,f;const n=Oe(e,t==null?void 0:t.in),r=n.getFullYear(),o=Yr(),i=(t==null?void 0:t.firstWeekContainsDate)??((c=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:c.firstWeekContainsDate)??o.firstWeekContainsDate??((f=(p=o.locale)==null?void 0:p.options)==null?void 0:f.firstWeekContainsDate)??1,a=qt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=Lo(a,t),l=qt((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=Lo(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function w7(e,t){var s,l,u,h;const n=Yr(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??1,o=k1(e,t),i=qt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Lo(i,t)}function C7(e,t){const n=Oe(e,t==null?void 0:t.in),r=+Lo(n,t)-+w7(n,t);return Math.round(r/E1)+1}function de(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Yt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return de(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):de(n+1,2)},d(e,t){return de(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return de(e.getHours()%12||12,t.length)},H(e,t){return de(e.getHours(),t.length)},m(e,t){return de(e.getMinutes(),t.length)},s(e,t){return de(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return de(o,t.length)}},ir={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dd={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Yt.y(e,t)},Y:function(e,t,n,r){const o=k1(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return de(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):de(i,t.length)},R:function(e,t){const n=P1(e);return de(n,t.length)},u:function(e,t){const n=e.getFullYear();return de(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return de(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return de(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Yt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return de(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=C7(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):de(o,t.length)},I:function(e,t,n){const r=x7(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):de(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Yt.d(e,t)},D:function(e,t,n){const r=y7(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):de(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return de(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return de(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return de(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=ir.noon:r===0?o=ir.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=ir.evening:r>=12?o=ir.afternoon:r>=4?o=ir.morning:o=ir.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Yt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Yt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Yt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Yt.s(e,t)},S:function(e,t){return Yt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return hd(r);case"XXXX":case"XX":return On(r);case"XXXXX":case"XXX":default:return On(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hd(r);case"xxxx":case"xx":return On(r);case"xxxxx":case"xxx":default:return On(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fd(r,":");case"OOOO":default:return"GMT"+On(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fd(r,":");case"zzzz":default:return"GMT"+On(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return de(r,t.length)},T:function(e,t,n){return de(+e,t.length)}};function fd(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+de(i,2)}function hd(e,t){return e%60===0?(e>0?"-":"+")+de(Math.abs(e)/60,2):On(e,t)}function On(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=de(Math.trunc(r/60),2),i=de(r%60,2);return n+o+t+i}const pd=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},M1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},$7=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return pd(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",pd(r,t)).replace("{{time}}",M1(o,t))},S7={p:M1,P:$7},E7=/^D+$/,P7=/^Y+$/,R7=["D","DD","YY","YYYY"];function k7(e){return E7.test(e)}function M7(e){return P7.test(e)}function O7(e,t,n){const r=T7(e,t,n);if(console.warn(r),R7.includes(e))throw new RangeError(r)}function T7(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const D7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L7=/^'([^]*?)'?$/,F7=/''/g,I7=/[a-zA-Z]/;function O1(e,t,n){var h,c,p,f;const r=Yr(),o=r.locale??Eu,i=r.firstWeekContainsDate??((c=(h=r.locale)==null?void 0:h.options)==null?void 0:c.firstWeekContainsDate)??1,a=r.weekStartsOn??((f=(p=r.locale)==null?void 0:p.options)==null?void 0:f.weekStartsOn)??0,s=Oe(e,n==null?void 0:n.in);if(!D8(s))throw new RangeError("Invalid time value");let l=t.match(_7).map(g=>{const m=g[0];if(m==="p"||m==="P"){const v=S7[m];return v(g,o.formatLong)}return g}).join("").match(D7).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const m=g[0];if(m==="'")return{isToken:!1,value:j7(g)};if(dd[m])return{isToken:!0,value:g};if(m.match(I7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:g}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(g=>{if(!g.isToken)return g.value;const m=g.value;(M7(m)||k7(m))&&O7(m,t,String(e));const v=dd[m[0]];return v(s,m,o.localize,u)}).join("")}function j7(e){const t=e.match(L7);return t?t[1].replace(F7,"'"):e}function N7(e,t,n){const r=Yr(),o=(n==null?void 0:n.locale)??r.locale??Eu,i=2520,a=xo(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[l,u]=ni(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),h=A8(u,l),c=(jr(u)-jr(l))/1e3,p=Math.round((h-c)/60);let f;if(p<2)return p===0?o.formatDistance("lessThanXMinutes",1,s):o.formatDistance("xMinutes",p,s);if(p<45)return o.formatDistance("xMinutes",p,s);if(p<90)return o.formatDistance("aboutXHours",1,s);if(p<la){const g=Math.round(p/60);return o.formatDistance("aboutXHours",g,s)}else{if(p<i)return o.formatDistance("xDays",1,s);if(p<hr){const g=Math.round(p/la);return o.formatDistance("xDays",g,s)}else if(p<hr*2)return f=Math.round(p/hr),o.formatDistance("aboutXMonths",f,s)}if(f=N8(u,l),f<12){const g=Math.round(p/hr);return o.formatDistance("xMonths",g,s)}else{const g=f%12,m=Math.trunc(f/12);return g<3?o.formatDistance("aboutXYears",m,s):g<9?o.formatDistance("overXYears",m,s):o.formatDistance("almostXYears",m+1,s)}}function A7(e,t,n){const r=Yr(),o=(n==null?void 0:n.locale)??r.locale??Eu,i=xo(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i}),[s,l]=ni(n==null?void 0:n.in,...i>0?[t,e]:[e,t]),u=R1((n==null?void 0:n.roundingMethod)??"round"),h=l.getTime()-s.getTime(),c=h/sd,p=jr(l)-jr(s),f=(h-p)/sd,g=n==null?void 0:n.unit;let m;if(g?m=g:c<1?m="second":c<60?m="minute":c<la?m="hour":f<hr?m="day":f<ld?m="month":m="year",m==="second"){const v=u(h/1e3);return o.formatDistance("xSeconds",v,a)}else if(m==="minute"){const v=u(c);return o.formatDistance("xMinutes",v,a)}else if(m==="hour"){const v=u(c/60);return o.formatDistance("xHours",v,a)}else if(m==="day"){const v=u(f/la);return o.formatDistance("xDays",v,a)}else if(m==="month"){const v=u(f/hr);return v===12&&g!=="month"?o.formatDistance("xYears",1,a):o.formatDistance("xMonths",v,a)}else{const v=u(f/ld);return o.formatDistance("xYears",v,a)}}function T1(e,t){return N7(e,O8(e),t)}var _l=new Map,Pi=new WeakMap,gd=0,K7=void 0;function B7(e){return e?(Pi.has(e)||(gd+=1,Pi.set(e,gd.toString())),Pi.get(e)):"0"}function H7(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?B7(e.root):e[t]}`).toString()}function V7(e){const t=H7(e);let n=_l.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(s=>{var l;const u=s.isIntersecting&&o.some(h=>s.intersectionRatio>=h);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=u),(l=r.get(s.target))==null||l.forEach(h=>{h(u,s)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},_l.set(t,n)}return n}function z7(e,t,n={},r=K7){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:i,elements:a}=V7(n),s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),_l.delete(o))}}function U7({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:s,fallbackInView:l,onChange:u}={}){var h;const[c,p]=E.useState(null),f=E.useRef(u),[g,m]=E.useState({inView:!!s,entry:void 0});f.current=u,E.useEffect(()=>{if(a||!c)return;let w;return w=z7(c,(S,M)=>{m({inView:S,entry:M}),f.current&&f.current(S,M),M.isIntersecting&&i&&w&&(w(),w=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{w&&w()}},[Array.isArray(e)?e.toString():e,c,o,r,i,a,n,l,t]);const v=(h=g.entry)==null?void 0:h.target,b=E.useRef(void 0);!c&&v&&!i&&!a&&b.current!==v&&(b.current=v,m({inView:!!s,entry:void 0}));const x=[p,g.inView,g.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}var D1=function(e){var t=e.isLastRow,n=e.children,r=e.isSelected,o=e.onClick,i=e.layoutVariant;return y.jsx("div",{onClick:function(a){return o(a)},"aria-label":"button",className:"group grid w-full cursor-pointer p-2 transition-colors duration-150 active:bg-slate-50/25 dark:active:bg-slate-800/25 ".concat(t?"border-b border-slate-200 dark:border-slate-700":""," ").concat(i==="job"?"grid-cols-[auto,350px,576px,1fr]":"grid-cols-[auto,350px,1fr,1fr]"," ").concat(r?"bg-slate-200/50 dark:bg-slate-800/50":"hover:bg-slate-50/50 dark:hover:bg-slate-900"),children:n})},Ll=30,Fo=2e3,Fl=2,_1=function(){return y.jsxs("div",{children:[y.jsx("div",{className:"rounded-t-md border-b border-slate-200 bg-slate-50 p-2 text-left text-sm font-semibold dark:border-slate-700 dark:bg-slate-800",children:y.jsx("span",{className:"opacity-0",children:"Placeholder"})}),Be([],new Array(Ll),!0).map(function(e,t){return y.jsx("div",{className:Fr("p-2",Ll!==t+1?"border-b border-slate-200 dark:border-slate-700":""),children:y.jsx(Ro,{className:"h-6 w-full"})},t)})]})};function md(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function L1(...e){return t=>{let n=!1;const r=e.map(o=>{const i=md(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():md(e[o],null)}}}}function Pu(...e){return E.useCallback(L1(...e),e)}function q7(e,t=[]){let n=[];function r(i,a){const s=E.createContext(a),l=n.length;n=[...n,a];const u=c=>{var b;const{scope:p,children:f,...g}=c,m=((b=p==null?void 0:p[e])==null?void 0:b[l])||s,v=E.useMemo(()=>g,Object.values(g));return y.jsx(m.Provider,{value:v,children:f})};u.displayName=i+"Provider";function h(c,p){var m;const f=((m=p==null?void 0:p[e])==null?void 0:m[l])||s,g=E.useContext(f);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,h]}const o=()=>{const i=n.map(a=>E.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,W7(o,...t)]}function W7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function vd(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ca=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},G7=E[" useInsertionEffect ".trim().toString()]||ca;function Q7({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Y7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const h=E.useRef(e!==void 0);E.useEffect(()=>{const c=h.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=s},[s,r])}const u=E.useCallback(h=>{var c;if(s){const p=X7(h)?h(e):h;p!==e&&((c=a.current)==null||c.call(a,p))}else i(h)},[s,e,i,a]);return[l,u]}function Y7({defaultProp:e,onChange:t}){const[n,r]=E.useState(e),o=E.useRef(n),i=E.useRef(t);return G7(()=>{i.current=t},[t]),E.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function X7(e){return typeof e=="function"}function Z7(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function J7(e){const[t,n]=E.useState(void 0);return ca(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function ex(e,t){return E.useReducer((n,r)=>t[n][r]??n,e)}var F1=e=>{const{present:t,children:n}=e,r=tx(t),o=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),i=Pu(r.ref,nx(o));return typeof n=="function"||r.isPresent?E.cloneElement(o,{ref:i}):null};F1.displayName="Presence";function tx(e){const[t,n]=E.useState(),r=E.useRef(null),o=E.useRef(e),i=E.useRef("none"),a=e?"mounted":"unmounted",[s,l]=ex(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=Ri(r.current);i.current=s==="mounted"?u:"none"},[s]),ca(()=>{const u=r.current,h=o.current;if(h!==e){const p=i.current,f=Ri(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(h&&p!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ca(()=>{if(t){let u;const h=t.ownerDocument.defaultView??window,c=f=>{const m=Ri(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&m&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=f=>{f.target===t&&(i.current=Ri(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{h.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:E.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ri(e){return(e==null?void 0:e.animationName)||"none"}function nx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function rx(e){const t=ox(e),n=E.forwardRef((r,o)=>{const{children:i,...a}=r,s=E.Children.toArray(i),l=s.find(ax);if(l){const u=l.props.children,h=s.map(c=>c===l?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:c);return y.jsx(t,{...a,ref:o,children:E.isValidElement(u)?E.cloneElement(u,void 0,h):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function ox(e){const t=E.forwardRef((n,r)=>{const{children:o,...i}=n;if(E.isValidElement(o)){const a=lx(o),s=sx(i,o.props);return o.type!==E.Fragment&&(s.ref=r?L1(r,a):a),E.cloneElement(o,s)}return E.Children.count(o)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ix=Symbol("radix.slottable");function ax(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ix}function sx(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function lx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ux=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ru=ux.reduce((e,t)=>{const n=rx(`Primitive.${t}`),r=E.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Va="Checkbox",[cx]=q7(Va),[dx,ku]=cx(Va);function fx(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:u,value:h="on",internal_do_not_use_render:c}=e,[p,f]=Q7({prop:n,defaultProp:o??!1,onChange:l,caller:Va}),[g,m]=E.useState(null),[v,b]=E.useState(null),x=E.useRef(!1),w=g?!!a||!!g.closest("form"):!0,S={checked:p,disabled:i,setChecked:f,control:g,setControl:m,name:s,form:a,value:h,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:pn(o)?!1:o,isFormControl:w,bubbleInput:v,setBubbleInput:b};return y.jsx(dx,{scope:t,...S,children:hx(c)?c(S):r})}var I1="CheckboxTrigger",j1=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:a,disabled:s,checked:l,required:u,setControl:h,setChecked:c,hasConsumerStoppedPropagationRef:p,isFormControl:f,bubbleInput:g}=ku(I1,e),m=Pu(o,h),v=E.useRef(l);return E.useEffect(()=>{const b=i==null?void 0:i.form;if(b){const x=()=>c(v.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[i,c]),y.jsx(Ru.button,{type:"button",role:"checkbox","aria-checked":pn(l)?"mixed":l,"aria-required":u,"data-state":V1(l),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:m,onKeyDown:vd(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:vd(n,b=>{c(x=>pn(x)?!0:!x),g&&f&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});j1.displayName=I1;var N1=E.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:u,form:h,...c}=e;return y.jsx(fx,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:u,name:r,form:h,value:l,internal_do_not_use_render:({isFormControl:p})=>y.jsxs(y.Fragment,{children:[y.jsx(j1,{...c,ref:t,__scopeCheckbox:n}),p&&y.jsx(H1,{__scopeCheckbox:n})]})})});N1.displayName=Va;var A1="CheckboxIndicator",K1=E.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=ku(A1,n);return y.jsx(F1,{present:r||pn(i.checked)||i.checked===!0,children:y.jsx(Ru.span,{"data-state":V1(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});K1.displayName=A1;var B1="CheckboxBubbleInput",H1=E.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:u,value:h,form:c,bubbleInput:p,setBubbleInput:f}=ku(B1,e),g=Pu(n,f),m=Z7(i),v=J7(r);E.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,M=Object.getOwnPropertyDescriptor(w,"checked").set,P=!o.current;if(m!==i&&M){const R=new Event("click",{bubbles:P});x.indeterminate=pn(i),M.call(x,pn(i)?!1:i),x.dispatchEvent(R)}},[p,m,i,o]);const b=E.useRef(pn(i)?!1:i);return y.jsx(Ru.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??b.current,required:s,disabled:l,name:u,value:h,form:c,...t,tabIndex:-1,ref:g,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});H1.displayName=B1;function hx(e){return typeof e=="function"}function pn(e){return e==="indeterminate"}function V1(e){return pn(e)?"indeterminate":e?"checked":"unchecked"}var da=function(e){var t=e.className,n=Cv(e,["className"]);return y.jsx(N1,{className:Fr("flex size-4 cursor-pointer rounded-sm border shadow-sm",t,{"border-slate-300 hover:border-slate-500 hover:bg-slate-100 dark:border-slate-600 dark:hover:border-slate-400 dark:hover:bg-slate-800":!n.checked,"border-brand-500 bg-brand-500 text-brand-50 hover:border-brand-600 hover:bg-brand-600":n.checked===!0,"border-slate-500 text-slate-500 hover:border-slate-700 hover:bg-slate-100 dark:border-slate-400 dark:text-slate-400 dark:hover:border-slate-300 dark:hover:bg-slate-800":n.checked==="indeterminate"}),onClick:function(r){return r.stopPropagation()},...n,children:y.jsxs(K1,{className:"flex size-full items-center justify-center",children:[n.checked==="indeterminate"&&y.jsx(U2,{height:12,width:12}),n.checked===!0&&y.jsx(_2,{height:12,width:12})]})})},ao=function(e){var t=e.label,n=e.icon;return y.jsxs("div",{className:"flex cursor-default items-center justify-center space-x-1.5 rounded-md bg-slate-100 px-2 py-0.5 text-sm text-slate-900 transition duration-150 ease-in-out dark:bg-slate-800 dark:text-slate-300",children:[n,y.jsx("span",{children:t})]})},Mu=function(e){var t=e.children,n=e.message;return y.jsxs(D3,{children:[y.jsx(mu,{children:t}),y.jsx(_3,{offset:6,className:"rounded-md bg-white px-2 py-1 text-sm text-slate-900 shadow-md dark:bg-slate-800 dark:text-slate-100",children:n})]})},z1={exports:{}},U1={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},q1={exports:{}},px=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},gx=px,mx=Array.prototype.concat,vx=Array.prototype.slice,bd=q1.exports=function(t){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];gx(i)?n=mx.call(n,vx.call(i)):n.push(i)}return n};bd.wrap=function(e){return function(){return e(bd(arguments))}};var bx=q1.exports,wo=U1,ri=bx,W1=Object.hasOwnProperty,G1=Object.create(null);for(var Es in wo)W1.call(wo,Es)&&(G1[wo[Es]]=Es);var rt=z1.exports={to:{},get:{}};rt.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case"hsl":n=rt.get.hsl(e),r="hsl";break;case"hwb":n=rt.get.hwb(e),r="hwb";break;default:n=rt.get.rgb(e),r="rgb";break}return n?{model:r,value:n}:null};rt.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^(\w+)$/,a=[0,0,0,1],s,l,u;if(s=e.match(n)){for(u=s[2],s=s[1],l=0;l<3;l++){var h=l*2;a[l]=parseInt(s.slice(h,h+2),16)}u&&(a[3]=parseInt(u,16)/255)}else if(s=e.match(t)){for(s=s[1],u=s[3],l=0;l<3;l++)a[l]=parseInt(s[l]+s[l],16);u&&(a[3]=parseInt(u+u,16)/255)}else if(s=e.match(r)){for(l=0;l<3;l++)a[l]=parseInt(s[l+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=e.match(o)){for(l=0;l<3;l++)a[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=e.match(i))?s[1]==="transparent"?[0,0,0,0]:W1.call(wo,s[1])?(a=wo[s[1]],a[3]=1,a):null:null;for(l=0;l<3;l++)a[l]=gn(a[l],0,255);return a[3]=gn(a[3],0,1),a};rt.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,i=gn(parseFloat(n[2]),0,100),a=gn(parseFloat(n[3]),0,100),s=gn(isNaN(r)?1:r,0,1);return[o,i,a,s]}return null};rt.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,i=gn(parseFloat(n[2]),0,100),a=gn(parseFloat(n[3]),0,100),s=gn(isNaN(r)?1:r,0,1);return[o,i,a,s]}return null};rt.to.hex=function(){var e=ri(arguments);return"#"+ki(e[0])+ki(e[1])+ki(e[2])+(e[3]<1?ki(Math.round(e[3]*255)):"")};rt.to.rgb=function(){var e=ri(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};rt.to.rgb.percent=function(){var e=ri(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};rt.to.hsl=function(){var e=ri(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};rt.to.hwb=function(){var e=ri(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};rt.to.keyword=function(e){return G1[e.slice(0,3)]};function gn(e,t,n){return Math.min(Math.max(t,e),n)}function ki(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var yx=z1.exports;const Io=U1,Q1={};for(const e of Object.keys(Io))Q1[Io[e]]=e;const Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Y1=Y;for(const e of Object.keys(Y)){if(!("channels"in Y[e]))throw new Error("missing channels property: "+e);if(!("labels"in Y[e]))throw new Error("missing channel labels property: "+e);if(Y[e].labels.length!==Y[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Y[e];delete Y[e].channels,delete Y[e].labels,Object.defineProperty(Y[e],"channels",{value:t}),Object.defineProperty(Y[e],"labels",{value:n})}Y.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let s,l;i===o?s=0:t===i?s=(n-r)/a:n===i?s=2+(r-t)/a:r===i&&(s=4+(t-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(o+i)/2;return i===o?l=0:u<=.5?l=a/(i+o):l=a/(2-i-o),[s,l*100,u*100]};Y.rgb.hsv=function(e){let t,n,r,o,i;const a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),h=u-Math.min(a,s,l),c=function(p){return(u-p)/6/h+1/2};return h===0?(o=0,i=0):(i=h/u,t=c(a),n=c(s),r=c(l),a===u?o=r-n:s===u?o=1/3+t-r:l===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,u*100]};Y.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=Y.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,i*100,r*100]};Y.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),i=(1-t-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[i*100,a*100,s*100,o*100]};function xx(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Y.rgb.keyword=function(e){const t=Q1[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(Io)){const i=Io[o],a=xx(e,i);a<n&&(n=a,r=o)}return r};Y.keyword.rgb=function(e){return Io[e]};Y.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,i=t*.2126+n*.7152+r*.0722,a=t*.0193+n*.1192+r*.9505;return[o*100,i*100,a*100]};Y.rgb.lab=function(e){const t=Y.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const i=116*r-16,a=500*(n-r),s=200*(r-o);return[i,a,s]};Y.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,a;if(n===0)return a=r*255,[a,a,a];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,l=[0,0,0];for(let u=0;u<3;u++)i=t+1/3*-(u-1),i<0&&i++,i>1&&i--,6*i<1?a=s+(o-s)*6*i:2*i<1?a=o:3*i<2?a=s+(o-s)*(2/3-i)*6:a=s,l[u]=a*255;return l};Y.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;const a=(r+n)/2,s=r===0?2*o/(i+o):2*n/(r+n);return[t,s*100,a*100]};Y.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}};Y.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-n)*r;const s=(2-n)*o;return i=n*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,i*100,a*100]};Y.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const a=Math.floor(6*t),s=1-r;i=6*t-a,a&1&&(i=1-i);const l=n+i*(s-n);let u,h,c;switch(a){default:case 6:case 0:u=s,h=l,c=n;break;case 1:u=l,h=s,c=n;break;case 2:u=n,h=s,c=l;break;case 3:u=n,h=l,c=s;break;case 4:u=l,h=n,c=s;break;case 5:u=s,h=n,c=l;break}return[u*255,h*255,c*255]};Y.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),a=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[i*255,a*255,s*255]};Y.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,a;return o=t*3.2406+n*-1.5372+r*-.4986,i=t*-.9689+n*1.8758+r*.0415,a=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[o*255,i*255,a*255]};Y.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,i=500*(t-n),a=200*(n-r);return[o,i,a]};Y.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,i,a;i=(t+16)/116,o=n/500+i,a=i-r/200;const s=i**3,l=o**3,u=a**3;return i=s>.008856?s:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o*=95.047,i*=100,a*=108.883,[o,i,a]};Y.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const a=Math.sqrt(n*n+r*r);return[t,a,o]};Y.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,i=n*Math.cos(o),a=n*Math.sin(o);return[t,i,a]};Y.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=t===null?Y.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let a=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return i===2&&(a+=60),a};Y.hsv.ansi16=function(e){return Y.rgb.ansi16(Y.hsv.rgb(e),e[2])};Y.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Y.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]};Y.ansi256.rgb=function(e){if(e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};Y.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};Y.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,i=r>>8&255,a=r&255;return[o,i,a]};Y.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;let s,l;return a<1?s=i/(1-a):s=0,a<=0?l=0:o===t?l=(n-r)/a%6:o===n?l=2+(r-t)/a:l=4+(t-n)/a,l/=6,l%=1,[l*360,a*100,s*100]};Y.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};Y.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};Y.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]};Y.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};Y.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};Y.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};Y.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],o*100,i*100]};Y.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Y.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Y.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Y.gray.hsl=function(e){return[0,0,e[0]]};Y.gray.hsv=Y.gray.hsl;Y.gray.hwb=function(e){return[0,100,e[0]]};Y.gray.cmyk=function(e){return[0,0,0,e[0]]};Y.gray.lab=function(e){return[e[0],0,0]};Y.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};Y.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const fa=Y1;function wx(){const e={},t=Object.keys(fa);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function Cx(e){const t=wx(),n=[e];for(t[e].distance=0;n.length;){const r=n.pop(),o=Object.keys(fa[r]);for(let i=o.length,a=0;a<i;a++){const s=o[a],l=t[s];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(s))}}return t}function $x(e,t){return function(n){return t(e(n))}}function Sx(e,t){const n=[t[e].parent,e];let r=fa[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=$x(fa[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}var Ex=function(e){const t=Cx(e),n={},r=Object.keys(t);for(let o=r.length,i=0;i<o;i++){const a=r[i];t[a].parent!==null&&(n[a]=Sx(a,t))}return n};const Il=Y1,Px=Ex,ur={},Rx=Object.keys(Il);function kx(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Mx(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let i=o.length,a=0;a<i;a++)o[a]=Math.round(o[a]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}Rx.forEach(e=>{ur[e]={},Object.defineProperty(ur[e],"channels",{value:Il[e].channels}),Object.defineProperty(ur[e],"labels",{value:Il[e].labels});const t=Px(e);Object.keys(t).forEach(r=>{const o=t[r];ur[e][r]=Mx(o),ur[e][r].raw=kx(o)})});var Ox=ur;const cr=yx,tt=Ox,X1=["keyword","gray","hex"],jl={};for(const e of Object.keys(tt))jl[[...tt[e].labels].sort().join("")]=e;const ha={};function ke(e,t){if(!(this instanceof ke))return new ke(e,t);if(t&&t in X1&&(t=null),t&&!(t in tt))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof ke)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const o=cr.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,r=tt[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=tt[this.model].channels;const o=Array.prototype.slice.call(e,0,r);this.color=Nl(o,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const i=o.sort().join("");if(!(i in jl))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=jl[i];const{labels:a}=tt[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=Nl(s)}if(ha[this.model])for(r=tt[this.model].channels,n=0;n<r;n++){const o=ha[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ke.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in cr.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return cr.to[t.model](n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return cr.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=tt[this.model],{labels:n}=tt[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new ke([...this.color.map(Dx(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new ke([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:me("rgb",0,Se(255)),green:me("rgb",1,Se(255)),blue:me("rgb",2,Se(255)),hue:me(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:me("hsl",1,Se(100)),lightness:me("hsl",2,Se(100)),saturationv:me("hsv",1,Se(100)),value:me("hsv",2,Se(100)),chroma:me("hcg",1,Se(100)),gray:me("hcg",2,Se(100)),white:me("hwb",1,Se(100)),wblack:me("hwb",2,Se(100)),cyan:me("cmyk",0,Se(100)),magenta:me("cmyk",1,Se(100)),yellow:me("cmyk",2,Se(100)),black:me("cmyk",3,Se(100)),x:me("xyz",0,Se(95.047)),y:me("xyz",1,Se(100)),z:me("xyz",2,Se(108.833)),l:me("lab",0,Se(100)),a:me("lab",1),b:me("lab",2),keyword(e){return e!==void 0?new ke(e):tt[this.model].keyword(this.color)},hex(e){return e!==void 0?new ke(e):cr.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new ke(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),cr.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const o=r/255;t[n]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return ke.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=t===void 0?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),s=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,l=1-s;return ke.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(tt)){if(X1.includes(e))continue;const{channels:t}=tt[e];ke.prototype[e]=function(...n){return this.model===e?new ke(this):n.length>0?new ke(n,e):new ke([..._x(tt[this.model][e].raw(this.color)),this.valpha],e)},ke[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=Nl(n,t)),new ke(r,e)}}function Tx(e,t){return Number(e.toFixed(t))}function Dx(e){return function(t){return Tx(t,e)}}function me(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(ha[r]||(ha[r]=[]))[t]=n;return e=e[0],function(r){let o;return r!==void 0?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function Se(e){return function(t){return Math.max(0,Math.min(e,t))}}function _x(e){return Array.isArray(e)?e:[e]}function Nl(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var Lx=ke;const yd=ff(Lx);var Fx=typeof global=="object"&&global&&global.Object===Object&&global,Ix=typeof self=="object"&&self&&self.Object===Object&&self,Zn=Fx||Ix||Function("return this")(),pa=Zn.Symbol,Z1=Object.prototype,jx=Z1.hasOwnProperty,Nx=Z1.toString,so=pa?pa.toStringTag:void 0;function Ax(e){var t=jx.call(e,so),n=e[so];try{e[so]=void 0;var r=!0}catch{}var o=Nx.call(e);return r&&(t?e[so]=n:delete e[so]),o}var Kx=Object.prototype,Bx=Kx.toString;function Hx(e){return Bx.call(e)}var Vx="[object Null]",zx="[object Undefined]",xd=pa?pa.toStringTag:void 0;function J1(e){return e==null?e===void 0?zx:Vx:xd&&xd in Object(e)?Ax(e):Hx(e)}function eg(e){return e!=null&&typeof e=="object"}var Ux="[object Symbol]";function qx(e){return typeof e=="symbol"||eg(e)&&J1(e)==Ux}var Wx=Array.isArray,Gx=/\s/;function Qx(e){for(var t=e.length;t--&&Gx.test(e.charAt(t)););return t}var Yx=/^\s+/;function Xx(e){return e&&e.slice(0,Qx(e)+1).replace(Yx,"")}function Nr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wd=NaN,Zx=/^[-+]0x[0-9a-f]+$/i,Jx=/^0b[01]+$/i,e6=/^0o[0-7]+$/i,t6=parseInt;function n6(e){if(typeof e=="number")return e;if(qx(e))return wd;if(Nr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Nr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Xx(e);var n=Jx.test(e);return n||e6.test(e)?t6(e.slice(2),n?2:8):Zx.test(e)?wd:+e}var Cd=1/0,r6=17976931348623157e292;function o6(e){if(!e)return e===0?e:0;if(e=n6(e),e===Cd||e===-Cd){var t=e<0?-1:1;return t*r6}return e===e?e:0}function $d(e){var t=o6(e),n=t%1;return t===t?n?t-n:t:0}function tg(e){return e}var i6="[object AsyncFunction]",a6="[object Function]",s6="[object GeneratorFunction]",l6="[object Proxy]";function u6(e){if(!Nr(e))return!1;var t=J1(e);return t==a6||t==s6||t==i6||t==l6}var Ps=Zn["__core-js_shared__"],Sd=function(){var e=/[^.]+$/.exec(Ps&&Ps.keys&&Ps.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function c6(e){return!!Sd&&Sd in e}var d6=Function.prototype,f6=d6.toString;function h6(e){if(e!=null){try{return f6.call(e)}catch{}try{return e+""}catch{}}return""}var p6=/[\\^$.*+?()[\]{}|]/g,g6=/^\[object .+?Constructor\]$/,m6=Function.prototype,v6=Object.prototype,b6=m6.toString,y6=v6.hasOwnProperty,x6=RegExp("^"+b6.call(y6).replace(p6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w6(e){if(!Nr(e)||c6(e))return!1;var t=u6(e)?x6:g6;return t.test(h6(e))}function C6(e,t){return e==null?void 0:e[t]}function ng(e,t){var n=C6(e,t);return w6(n)?n:void 0}var Ed=ng(Zn,"WeakMap"),ga=Ed&&new Ed,rg=ga?function(e,t){return ga.set(e,t),e}:tg,Pd=Object.create,Ou=function(){function e(){}return function(t){if(!Nr(t))return{};if(Pd)return Pd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function jo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ou(e.prototype),r=e.apply(n,t);return Nr(r)?r:n}}var $6=1;function S6(e,t,n){var r=t&$6,o=jo(e);function i(){var a=this&&this!==Zn&&this instanceof i?o:e;return a.apply(r?n:this,arguments)}return i}function og(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var E6=Math.max;function ig(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=E6(i-a,0),h=Array(l+u),c=!r;++s<l;)h[s]=t[s];for(;++o<a;)(c||o<i)&&(h[n[o]]=e[o]);for(;u--;)h[s++]=e[o++];return h}var P6=Math.max;function ag(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,h=P6(i-s,0),c=Array(h+u),p=!r;++o<h;)c[o]=e[o];for(var f=o;++l<u;)c[f+l]=t[l];for(;++a<s;)(p||o<i)&&(c[f+n[a]]=e[o++]);return c}function R6(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function Tu(){}var k6=4294967295;function Ar(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k6,this.__views__=[]}Ar.prototype=Ou(Tu.prototype);Ar.prototype.constructor=Ar;function M6(){}var sg=ga?function(e){return ga.get(e)}:M6,Rd={},O6=Object.prototype,T6=O6.hasOwnProperty;function D6(e){for(var t=e.name+"",n=Rd[t],r=T6.call(Rd,t)?n.length:0;r--;){var o=n[r],i=o.func;if(i==null||i==e)return o.name}return t}function Kr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Kr.prototype=Ou(Tu.prototype);Kr.prototype.constructor=Kr;function lg(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function _6(e){if(e instanceof Ar)return e.clone();var t=new Kr(e.__wrapped__,e.__chain__);return t.__actions__=lg(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var L6=Object.prototype,F6=L6.hasOwnProperty;function ma(e){if(eg(e)&&!Wx(e)&&!(e instanceof Ar)){if(e instanceof Kr)return e;if(F6.call(e,"__wrapped__"))return _6(e)}return new Kr(e)}ma.prototype=Tu.prototype;ma.prototype.constructor=ma;function I6(e){var t=D6(e),n=ma[t];if(typeof n!="function"||!(t in Ar.prototype))return!1;if(e===n)return!0;var r=sg(n);return!!r&&e===r[0]}var j6=800,N6=16,A6=Date.now;function ug(e){var t=0,n=0;return function(){var r=A6(),o=N6-(r-n);if(n=r,o>0){if(++t>=j6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var cg=ug(rg),K6=/\{\n\/\* \[wrapped with (.+)\] \*/,B6=/,? & /;function H6(e){var t=e.match(K6);return t?t[1].split(B6):[]}var V6=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function z6(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(V6,`{
|
|
60
|
+
*/function sa(e,t){return e?P8(e)?E.createElement(e,t):e:null}function P8(e){return R8(e)||typeof e=="function"||k8(e)}function R8(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function k8(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function P1(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=E.useState(()=>({current:E8(t)})),[r,o]=E.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),n.current}const R1=6048e5,M8=864e5,fd=6e4,hd=525600,hr=43200,la=1440,pd=Symbol.for("constructDateFrom");function qt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&pd in e?e[pd](t):e instanceof Date?new e.constructor(t):new Date(t)}function Te(e,t){return qt(t||e,e)}let O8={};function Xr(){return O8}function jo(e,t){var s,l,u,h;const n=Xr(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,o=Te(e,t==null?void 0:t.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function ua(e,t){return jo(e,{...t,weekStartsOn:1})}function k1(e,t){const n=Te(e,t==null?void 0:t.in),r=n.getFullYear(),o=qt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=ua(o),a=qt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=ua(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Nr(e){const t=Te(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ii(e,...t){const n=qt.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function gd(e,t){const n=Te(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function T8(e,t,n){const[r,o]=ii(n==null?void 0:n.in,e,t),i=gd(r),a=gd(o),s=+i-Nr(i),l=+a-Nr(a);return Math.round((s-l)/M8)}function D8(e,t){const n=k1(e,t),r=qt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ua(r)}function $o(e,t){const n=+Te(e)-+Te(t);return n<0?-1:n>0?1:n}function _8(e){return qt(e,Date.now())}function L8(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function F8(e){return!(!L8(e)&&typeof e!="number"||isNaN(+Te(e)))}function I8(e,t,n){const[r,o]=ii(n==null?void 0:n.in,e,t),i=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return i*12+a}function M1(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function j8(e,t){return+Te(e)-+Te(t)}function N8(e,t){const n=Te(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function A8(e,t){const n=Te(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function K8(e,t){const n=Te(e,t==null?void 0:t.in);return+N8(n,t)==+A8(n,t)}function B8(e,t,n){const[r,o,i]=ii(n==null?void 0:n.in,e,e,t),a=$o(o,i),s=Math.abs(I8(o,i));if(s<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-a*s);let l=$o(o,i)===-a;K8(r)&&s===1&&$o(r,i)===1&&(l=!1);const u=a*(s-+l);return u===0?0:u}function H8(e,t,n){const r=j8(e,t)/1e3;return M1(n==null?void 0:n.roundingMethod)(r)}function V8(e,t){const n=Te(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const z8={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},U8=(e,t,n)=>{let r;const o=z8[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ks(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const q8={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},W8={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},G8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Q8={date:ks({formats:q8,defaultWidth:"full"}),time:ks({formats:W8,defaultWidth:"full"}),dateTime:ks({formats:G8,defaultWidth:"full"})},Y8={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},X8=(e,t,n,r)=>Y8[e];function so(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;o=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const Z8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},J8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},o7=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},i7={ordinalNumber:o7,era:so({values:Z8,defaultWidth:"wide"}),quarter:so({values:J8,defaultWidth:"wide",argumentCallback:e=>e-1}),month:so({values:e7,defaultWidth:"wide"}),day:so({values:t7,defaultWidth:"wide"}),dayPeriod:so({values:n7,defaultWidth:"wide",formattingValues:r7,defaultFormattingWidth:"wide"})};function lo(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?s7(s,c=>c.test(a)):a7(s,c=>c.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const h=t.slice(a.length);return{value:u,rest:h}}}function a7(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function s7(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function l7(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(o.length);return{value:a,rest:s}}}const u7=/^(\d+)(th|st|nd|rd)?/i,c7=/\d+/i,d7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},f7={any:[/^b/i,/^(a|c)/i]},h7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},p7={any:[/1/i,/2/i,/3/i,/4/i]},g7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},m7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},b7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},x7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},w7={ordinalNumber:l7({matchPattern:u7,parsePattern:c7,valueCallback:e=>parseInt(e,10)}),era:lo({matchPatterns:d7,defaultMatchWidth:"wide",parsePatterns:f7,defaultParseWidth:"any"}),quarter:lo({matchPatterns:h7,defaultMatchWidth:"wide",parsePatterns:p7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:lo({matchPatterns:g7,defaultMatchWidth:"wide",parsePatterns:m7,defaultParseWidth:"any"}),day:lo({matchPatterns:v7,defaultMatchWidth:"wide",parsePatterns:b7,defaultParseWidth:"any"}),dayPeriod:lo({matchPatterns:y7,defaultMatchWidth:"any",parsePatterns:x7,defaultParseWidth:"any"})},Ou={code:"en-US",formatDistance:U8,formatLong:Q8,formatRelative:X8,localize:i7,match:w7,options:{weekStartsOn:0,firstWeekContainsDate:1}};function C7(e,t){const n=Te(e,t==null?void 0:t.in);return T8(n,V8(n))+1}function $7(e,t){const n=Te(e,t==null?void 0:t.in),r=+ua(n)-+D8(n);return Math.round(r/R1)+1}function O1(e,t){var h,c,p,f;const n=Te(e,t==null?void 0:t.in),r=n.getFullYear(),o=Xr(),i=(t==null?void 0:t.firstWeekContainsDate)??((c=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:c.firstWeekContainsDate)??o.firstWeekContainsDate??((f=(p=o.locale)==null?void 0:p.options)==null?void 0:f.firstWeekContainsDate)??1,a=qt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=jo(a,t),l=qt((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=jo(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function S7(e,t){var s,l,u,h;const n=Xr(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??1,o=O1(e,t),i=qt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),jo(i,t)}function E7(e,t){const n=Te(e,t==null?void 0:t.in),r=+jo(n,t)-+S7(n,t);return Math.round(r/R1)+1}function fe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Yt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return fe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):fe(n+1,2)},d(e,t){return fe(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return fe(e.getHours()%12||12,t.length)},H(e,t){return fe(e.getHours(),t.length)},m(e,t){return fe(e.getMinutes(),t.length)},s(e,t){return fe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return fe(o,t.length)}},ir={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},md={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Yt.y(e,t)},Y:function(e,t,n,r){const o=O1(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return fe(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):fe(i,t.length)},R:function(e,t){const n=k1(e);return fe(n,t.length)},u:function(e,t){const n=e.getFullYear();return fe(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return fe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return fe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Yt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return fe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=E7(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):fe(o,t.length)},I:function(e,t,n){const r=$7(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):fe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Yt.d(e,t)},D:function(e,t,n){const r=C7(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):fe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return fe(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return fe(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return fe(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=ir.noon:r===0?o=ir.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=ir.evening:r>=12?o=ir.afternoon:r>=4?o=ir.morning:o=ir.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Yt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Yt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):fe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):fe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Yt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Yt.s(e,t)},S:function(e,t){return Yt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return bd(r);case"XXXX":case"XX":return Tn(r);case"XXXXX":case"XXX":default:return Tn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return bd(r);case"xxxx":case"xx":return Tn(r);case"xxxxx":case"xxx":default:return Tn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vd(r,":");case"OOOO":default:return"GMT"+Tn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vd(r,":");case"zzzz":default:return"GMT"+Tn(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return fe(r,t.length)},T:function(e,t,n){return fe(+e,t.length)}};function vd(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+fe(i,2)}function bd(e,t){return e%60===0?(e>0?"-":"+")+fe(Math.abs(e)/60,2):Tn(e,t)}function Tn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=fe(Math.trunc(r/60),2),i=fe(r%60,2);return n+o+t+i}const yd=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},T1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},P7=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return yd(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",yd(r,t)).replace("{{time}}",T1(o,t))},R7={p:T1,P:P7},k7=/^D+$/,M7=/^Y+$/,O7=["D","DD","YY","YYYY"];function T7(e){return k7.test(e)}function D7(e){return M7.test(e)}function _7(e,t,n){const r=L7(e,t,n);if(console.warn(r),O7.includes(e))throw new RangeError(r)}function L7(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const F7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,I7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,j7=/^'([^]*?)'?$/,N7=/''/g,A7=/[a-zA-Z]/;function D1(e,t,n){var h,c,p,f;const r=Xr(),o=r.locale??Ou,i=r.firstWeekContainsDate??((c=(h=r.locale)==null?void 0:h.options)==null?void 0:c.firstWeekContainsDate)??1,a=r.weekStartsOn??((f=(p=r.locale)==null?void 0:p.options)==null?void 0:f.weekStartsOn)??0,s=Te(e,n==null?void 0:n.in);if(!F8(s))throw new RangeError("Invalid time value");let l=t.match(I7).map(m=>{const g=m[0];if(g==="p"||g==="P"){const v=R7[g];return v(m,o.formatLong)}return m}).join("").match(F7).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const g=m[0];if(g==="'")return{isToken:!1,value:K7(m)};if(md[g])return{isToken:!0,value:m};if(g.match(A7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:m}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(m=>{if(!m.isToken)return m.value;const g=m.value;(D7(g)||T7(g))&&_7(g,t,String(e));const v=md[g[0]];return v(s,g,o.localize,u)}).join("")}function K7(e){const t=e.match(j7);return t?t[1].replace(N7,"'"):e}function B7(e,t,n){const r=Xr(),o=(n==null?void 0:n.locale)??r.locale??Ou,i=2520,a=$o(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[l,u]=ii(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),h=H8(u,l),c=(Nr(u)-Nr(l))/1e3,p=Math.round((h-c)/60);let f;if(p<2)return p===0?o.formatDistance("lessThanXMinutes",1,s):o.formatDistance("xMinutes",p,s);if(p<45)return o.formatDistance("xMinutes",p,s);if(p<90)return o.formatDistance("aboutXHours",1,s);if(p<la){const m=Math.round(p/60);return o.formatDistance("aboutXHours",m,s)}else{if(p<i)return o.formatDistance("xDays",1,s);if(p<hr){const m=Math.round(p/la);return o.formatDistance("xDays",m,s)}else if(p<hr*2)return f=Math.round(p/hr),o.formatDistance("aboutXMonths",f,s)}if(f=B8(u,l),f<12){const m=Math.round(p/hr);return o.formatDistance("xMonths",m,s)}else{const m=f%12,g=Math.trunc(f/12);return m<3?o.formatDistance("aboutXYears",g,s):m<9?o.formatDistance("overXYears",g,s):o.formatDistance("almostXYears",g+1,s)}}function H7(e,t,n){const r=Xr(),o=(n==null?void 0:n.locale)??r.locale??Ou,i=$o(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i}),[s,l]=ii(n==null?void 0:n.in,...i>0?[t,e]:[e,t]),u=M1((n==null?void 0:n.roundingMethod)??"round"),h=l.getTime()-s.getTime(),c=h/fd,p=Nr(l)-Nr(s),f=(h-p)/fd,m=n==null?void 0:n.unit;let g;if(m?g=m:c<1?g="second":c<60?g="minute":c<la?g="hour":f<hr?g="day":f<hd?g="month":g="year",g==="second"){const v=u(h/1e3);return o.formatDistance("xSeconds",v,a)}else if(g==="minute"){const v=u(c);return o.formatDistance("xMinutes",v,a)}else if(g==="hour"){const v=u(c/60);return o.formatDistance("xHours",v,a)}else if(g==="day"){const v=u(f/la);return o.formatDistance("xDays",v,a)}else if(g==="month"){const v=u(f/hr);return v===12&&m!=="month"?o.formatDistance("xYears",1,a):o.formatDistance("xMonths",v,a)}else{const v=u(f/hd);return o.formatDistance("xYears",v,a)}}function _1(e,t){return B7(e,_8(e),t)}var jl=new Map,Ri=new WeakMap,xd=0,V7=void 0;function z7(e){return e?(Ri.has(e)||(xd+=1,Ri.set(e,xd.toString())),Ri.get(e)):"0"}function U7(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?z7(e.root):e[t]}`).toString()}function q7(e){const t=U7(e);let n=jl.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(s=>{var l;const u=s.isIntersecting&&o.some(h=>s.intersectionRatio>=h);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=u),(l=r.get(s.target))==null||l.forEach(h=>{h(u,s)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},jl.set(t,n)}return n}function W7(e,t,n={},r=V7){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:i,elements:a}=q7(n),s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),jl.delete(o))}}function G7({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:s,fallbackInView:l,onChange:u}={}){var h;const[c,p]=E.useState(null),f=E.useRef(u),[m,g]=E.useState({inView:!!s,entry:void 0});f.current=u,E.useEffect(()=>{if(a||!c)return;let w;return w=W7(c,($,M)=>{g({inView:$,entry:M}),f.current&&f.current($,M),M.isIntersecting&&i&&w&&(w(),w=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{w&&w()}},[Array.isArray(e)?e.toString():e,c,o,r,i,a,n,l,t]);const v=(h=m.entry)==null?void 0:h.target,b=E.useRef(void 0);!c&&v&&!i&&!a&&b.current!==v&&(b.current=v,g({inView:!!s,entry:void 0}));const x=[p,m.inView,m.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}var L1=function(e){var t=e.isLastRow,n=e.children,r=e.isSelected,o=e.onClick,i=e.layoutVariant;return y.jsx("div",{onClick:function(a){return o(a)},"aria-label":"button",className:"group grid w-full cursor-pointer p-2 transition-colors duration-150 active:bg-slate-50/25 dark:active:bg-slate-800/25 ".concat(t?"border-b border-slate-200 dark:border-slate-700":""," ").concat(i==="job"?"grid-cols-[auto,350px,576px,1fr]":"grid-cols-[auto,350px,1fr,1fr]"," ").concat(r?"bg-slate-200/50 dark:bg-slate-800/50":"hover:bg-slate-50/50 dark:hover:bg-slate-900"),children:n})},Nl=30,No=2e3,Al=2,F1=function(){return y.jsxs("div",{children:[y.jsx("div",{className:"rounded-t-md border-b border-slate-200 bg-slate-50 p-2 text-left text-sm font-semibold dark:border-slate-700 dark:bg-slate-800",children:y.jsx("span",{className:"opacity-0",children:"Placeholder"})}),He([],new Array(Nl),!0).map(function(e,t){return y.jsx("div",{className:Fr("p-2",Nl!==t+1?"border-b border-slate-200 dark:border-slate-700":""),children:y.jsx(Oo,{className:"h-6 w-full"})},t)})]})};function wd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function I1(...e){return t=>{let n=!1;const r=e.map(o=>{const i=wd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():wd(e[o],null)}}}}function Tu(...e){return E.useCallback(I1(...e),e)}function Q7(e,t=[]){let n=[];function r(i,a){const s=E.createContext(a),l=n.length;n=[...n,a];const u=c=>{var b;const{scope:p,children:f,...m}=c,g=((b=p==null?void 0:p[e])==null?void 0:b[l])||s,v=E.useMemo(()=>m,Object.values(m));return y.jsx(g.Provider,{value:v,children:f})};u.displayName=i+"Provider";function h(c,p){var g;const f=((g=p==null?void 0:p[e])==null?void 0:g[l])||s,m=E.useContext(f);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,h]}const o=()=>{const i=n.map(a=>E.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,Y7(o,...t)]}function Y7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Cd(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ca=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},X7=E[" useInsertionEffect ".trim().toString()]||ca;function Z7({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=J7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const h=E.useRef(e!==void 0);E.useEffect(()=>{const c=h.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=s},[s,r])}const u=E.useCallback(h=>{var c;if(s){const p=ex(h)?h(e):h;p!==e&&((c=a.current)==null||c.call(a,p))}else i(h)},[s,e,i,a]);return[l,u]}function J7({defaultProp:e,onChange:t}){const[n,r]=E.useState(e),o=E.useRef(n),i=E.useRef(t);return X7(()=>{i.current=t},[t]),E.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function ex(e){return typeof e=="function"}function tx(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function nx(e){const[t,n]=E.useState(void 0);return ca(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function rx(e,t){return E.useReducer((n,r)=>t[n][r]??n,e)}var j1=e=>{const{present:t,children:n}=e,r=ox(t),o=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),i=Tu(r.ref,ix(o));return typeof n=="function"||r.isPresent?E.cloneElement(o,{ref:i}):null};j1.displayName="Presence";function ox(e){const[t,n]=E.useState(),r=E.useRef(null),o=E.useRef(e),i=E.useRef("none"),a=e?"mounted":"unmounted",[s,l]=rx(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=ki(r.current);i.current=s==="mounted"?u:"none"},[s]),ca(()=>{const u=r.current,h=o.current;if(h!==e){const p=i.current,f=ki(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(h&&p!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ca(()=>{if(t){let u;const h=t.ownerDocument.defaultView??window,c=f=>{const g=ki(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&g&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=f=>{f.target===t&&(i.current=ki(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{h.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:E.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ki(e){return(e==null?void 0:e.animationName)||"none"}function ix(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ax(e){const t=sx(e),n=E.forwardRef((r,o)=>{const{children:i,...a}=r,s=E.Children.toArray(i),l=s.find(ux);if(l){const u=l.props.children,h=s.map(c=>c===l?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:c);return y.jsx(t,{...a,ref:o,children:E.isValidElement(u)?E.cloneElement(u,void 0,h):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function sx(e){const t=E.forwardRef((n,r)=>{const{children:o,...i}=n;if(E.isValidElement(o)){const a=dx(o),s=cx(i,o.props);return o.type!==E.Fragment&&(s.ref=r?I1(r,a):a),E.cloneElement(o,s)}return E.Children.count(o)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lx=Symbol("radix.slottable");function ux(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lx}function cx(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function dx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Du=fx.reduce((e,t)=>{const n=ax(`Primitive.${t}`),r=E.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),za="Checkbox",[hx]=Q7(za),[px,_u]=hx(za);function gx(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:u,value:h="on",internal_do_not_use_render:c}=e,[p,f]=Z7({prop:n,defaultProp:o??!1,onChange:l,caller:za}),[m,g]=E.useState(null),[v,b]=E.useState(null),x=E.useRef(!1),w=m?!!a||!!m.closest("form"):!0,$={checked:p,disabled:i,setChecked:f,control:m,setControl:g,name:s,form:a,value:h,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:gn(o)?!1:o,isFormControl:w,bubbleInput:v,setBubbleInput:b};return y.jsx(px,{scope:t,...$,children:mx(c)?c($):r})}var N1="CheckboxTrigger",A1=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:a,disabled:s,checked:l,required:u,setControl:h,setChecked:c,hasConsumerStoppedPropagationRef:p,isFormControl:f,bubbleInput:m}=_u(N1,e),g=Tu(o,h),v=E.useRef(l);return E.useEffect(()=>{const b=i==null?void 0:i.form;if(b){const x=()=>c(v.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[i,c]),y.jsx(Du.button,{type:"button",role:"checkbox","aria-checked":gn(l)?"mixed":l,"aria-required":u,"data-state":U1(l),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:g,onKeyDown:Cd(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:Cd(n,b=>{c(x=>gn(x)?!0:!x),m&&f&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});A1.displayName=N1;var K1=E.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:u,form:h,...c}=e;return y.jsx(gx,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:u,name:r,form:h,value:l,internal_do_not_use_render:({isFormControl:p})=>y.jsxs(y.Fragment,{children:[y.jsx(A1,{...c,ref:t,__scopeCheckbox:n}),p&&y.jsx(z1,{__scopeCheckbox:n})]})})});K1.displayName=za;var B1="CheckboxIndicator",H1=E.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=_u(B1,n);return y.jsx(j1,{present:r||gn(i.checked)||i.checked===!0,children:y.jsx(Du.span,{"data-state":U1(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});H1.displayName=B1;var V1="CheckboxBubbleInput",z1=E.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:u,value:h,form:c,bubbleInput:p,setBubbleInput:f}=_u(V1,e),m=Tu(n,f),g=tx(i),v=nx(r);E.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,M=Object.getOwnPropertyDescriptor(w,"checked").set,R=!o.current;if(g!==i&&M){const P=new Event("click",{bubbles:R});x.indeterminate=gn(i),M.call(x,gn(i)?!1:i),x.dispatchEvent(P)}},[p,g,i,o]);const b=E.useRef(gn(i)?!1:i);return y.jsx(Du.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??b.current,required:s,disabled:l,name:u,value:h,form:c,...t,tabIndex:-1,ref:m,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});z1.displayName=V1;function mx(e){return typeof e=="function"}function gn(e){return e==="indeterminate"}function U1(e){return gn(e)?"indeterminate":e?"checked":"unchecked"}var da=function(e){var t=e.className,n=Sv(e,["className"]);return y.jsx(K1,{className:Fr("flex size-4 cursor-pointer rounded-sm border shadow-sm",t,{"border-slate-300 hover:border-slate-500 hover:bg-slate-100 dark:border-slate-600 dark:hover:border-slate-400 dark:hover:bg-slate-800":!n.checked,"border-brand-500 bg-brand-500 text-brand-50 hover:border-brand-600 hover:bg-brand-600":n.checked===!0,"border-slate-500 text-slate-500 hover:border-slate-700 hover:bg-slate-100 dark:border-slate-400 dark:text-slate-400 dark:hover:border-slate-300 dark:hover:bg-slate-800":n.checked==="indeterminate"}),onClick:function(r){return r.stopPropagation()},...n,children:y.jsxs(H1,{className:"flex size-full items-center justify-center",children:[n.checked==="indeterminate"&&y.jsx(W2,{height:12,width:12}),n.checked===!0&&y.jsx(F2,{height:12,width:12})]})})},uo=function(e){var t=e.label,n=e.icon;return y.jsxs("div",{className:"flex cursor-default items-center justify-center space-x-1.5 rounded-md bg-slate-100 px-2 py-0.5 text-sm text-slate-900 transition duration-150 ease-in-out dark:bg-slate-800 dark:text-slate-300",children:[n,y.jsx("span",{children:t})]})},Lu=function(e){var t=e.children,n=e.message;return y.jsxs(F3,{children:[y.jsx(wu,{children:t}),y.jsx(I3,{offset:6,className:"rounded-md bg-white px-2 py-1 text-sm text-slate-900 shadow-md dark:bg-slate-800 dark:text-slate-100",children:n})]})},q1={exports:{}},W1={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},G1={exports:{}},vx=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},bx=vx,yx=Array.prototype.concat,xx=Array.prototype.slice,$d=G1.exports=function(t){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];bx(i)?n=yx.call(n,xx.call(i)):n.push(i)}return n};$d.wrap=function(e){return function(){return e($d(arguments))}};var wx=G1.exports,So=W1,ai=wx,Q1=Object.hasOwnProperty,Y1=Object.create(null);for(var Ms in So)Q1.call(So,Ms)&&(Y1[So[Ms]]=Ms);var nt=q1.exports={to:{},get:{}};nt.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case"hsl":n=nt.get.hsl(e),r="hsl";break;case"hwb":n=nt.get.hwb(e),r="hwb";break;default:n=nt.get.rgb(e),r="rgb";break}return n?{model:r,value:n}:null};nt.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^(\w+)$/,a=[0,0,0,1],s,l,u;if(s=e.match(n)){for(u=s[2],s=s[1],l=0;l<3;l++){var h=l*2;a[l]=parseInt(s.slice(h,h+2),16)}u&&(a[3]=parseInt(u,16)/255)}else if(s=e.match(t)){for(s=s[1],u=s[3],l=0;l<3;l++)a[l]=parseInt(s[l]+s[l],16);u&&(a[3]=parseInt(u+u,16)/255)}else if(s=e.match(r)){for(l=0;l<3;l++)a[l]=parseInt(s[l+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=e.match(o)){for(l=0;l<3;l++)a[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=e.match(i))?s[1]==="transparent"?[0,0,0,0]:Q1.call(So,s[1])?(a=So[s[1]],a[3]=1,a):null:null;for(l=0;l<3;l++)a[l]=mn(a[l],0,255);return a[3]=mn(a[3],0,1),a};nt.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,i=mn(parseFloat(n[2]),0,100),a=mn(parseFloat(n[3]),0,100),s=mn(isNaN(r)?1:r,0,1);return[o,i,a,s]}return null};nt.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),o=(parseFloat(n[1])%360+360)%360,i=mn(parseFloat(n[2]),0,100),a=mn(parseFloat(n[3]),0,100),s=mn(isNaN(r)?1:r,0,1);return[o,i,a,s]}return null};nt.to.hex=function(){var e=ai(arguments);return"#"+Mi(e[0])+Mi(e[1])+Mi(e[2])+(e[3]<1?Mi(Math.round(e[3]*255)):"")};nt.to.rgb=function(){var e=ai(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};nt.to.rgb.percent=function(){var e=ai(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};nt.to.hsl=function(){var e=ai(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};nt.to.hwb=function(){var e=ai(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};nt.to.keyword=function(e){return Y1[e.slice(0,3)]};function mn(e,t,n){return Math.min(Math.max(t,e),n)}function Mi(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var Cx=q1.exports;const Ao=W1,X1={};for(const e of Object.keys(Ao))X1[Ao[e]]=e;const Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Z1=Y;for(const e of Object.keys(Y)){if(!("channels"in Y[e]))throw new Error("missing channels property: "+e);if(!("labels"in Y[e]))throw new Error("missing channel labels property: "+e);if(Y[e].labels.length!==Y[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Y[e];delete Y[e].channels,delete Y[e].labels,Object.defineProperty(Y[e],"channels",{value:t}),Object.defineProperty(Y[e],"labels",{value:n})}Y.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let s,l;i===o?s=0:t===i?s=(n-r)/a:n===i?s=2+(r-t)/a:r===i&&(s=4+(t-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(o+i)/2;return i===o?l=0:u<=.5?l=a/(i+o):l=a/(2-i-o),[s,l*100,u*100]};Y.rgb.hsv=function(e){let t,n,r,o,i;const a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),h=u-Math.min(a,s,l),c=function(p){return(u-p)/6/h+1/2};return h===0?(o=0,i=0):(i=h/u,t=c(a),n=c(s),r=c(l),a===u?o=r-n:s===u?o=1/3+t-r:l===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,u*100]};Y.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=Y.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,i*100,r*100]};Y.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),i=(1-t-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[i*100,a*100,s*100,o*100]};function $x(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Y.rgb.keyword=function(e){const t=X1[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(Ao)){const i=Ao[o],a=$x(e,i);a<n&&(n=a,r=o)}return r};Y.keyword.rgb=function(e){return Ao[e]};Y.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,i=t*.2126+n*.7152+r*.0722,a=t*.0193+n*.1192+r*.9505;return[o*100,i*100,a*100]};Y.rgb.lab=function(e){const t=Y.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const i=116*r-16,a=500*(n-r),s=200*(r-o);return[i,a,s]};Y.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,a;if(n===0)return a=r*255,[a,a,a];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,l=[0,0,0];for(let u=0;u<3;u++)i=t+1/3*-(u-1),i<0&&i++,i>1&&i--,6*i<1?a=s+(o-s)*6*i:2*i<1?a=o:3*i<2?a=s+(o-s)*(2/3-i)*6:a=s,l[u]=a*255;return l};Y.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;const a=(r+n)/2,s=r===0?2*o/(i+o):2*n/(r+n);return[t,s*100,a*100]};Y.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}};Y.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-n)*r;const s=(2-n)*o;return i=n*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,i*100,a*100]};Y.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const a=Math.floor(6*t),s=1-r;i=6*t-a,a&1&&(i=1-i);const l=n+i*(s-n);let u,h,c;switch(a){default:case 6:case 0:u=s,h=l,c=n;break;case 1:u=l,h=s,c=n;break;case 2:u=n,h=s,c=l;break;case 3:u=n,h=l,c=s;break;case 4:u=l,h=n,c=s;break;case 5:u=s,h=n,c=l;break}return[u*255,h*255,c*255]};Y.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),a=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[i*255,a*255,s*255]};Y.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,a;return o=t*3.2406+n*-1.5372+r*-.4986,i=t*-.9689+n*1.8758+r*.0415,a=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[o*255,i*255,a*255]};Y.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,i=500*(t-n),a=200*(n-r);return[o,i,a]};Y.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,i,a;i=(t+16)/116,o=n/500+i,a=i-r/200;const s=i**3,l=o**3,u=a**3;return i=s>.008856?s:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o*=95.047,i*=100,a*=108.883,[o,i,a]};Y.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const a=Math.sqrt(n*n+r*r);return[t,a,o]};Y.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,i=n*Math.cos(o),a=n*Math.sin(o);return[t,i,a]};Y.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=t===null?Y.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let a=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return i===2&&(a+=60),a};Y.hsv.ansi16=function(e){return Y.rgb.ansi16(Y.hsv.rgb(e),e[2])};Y.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Y.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]};Y.ansi256.rgb=function(e){if(e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};Y.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};Y.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,i=r>>8&255,a=r&255;return[o,i,a]};Y.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;let s,l;return a<1?s=i/(1-a):s=0,a<=0?l=0:o===t?l=(n-r)/a%6:o===n?l=2+(r-t)/a:l=4+(t-n)/a,l/=6,l%=1,[l*360,a*100,s*100]};Y.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};Y.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};Y.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]};Y.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};Y.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};Y.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};Y.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],o*100,i*100]};Y.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Y.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Y.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Y.gray.hsl=function(e){return[0,0,e[0]]};Y.gray.hsv=Y.gray.hsl;Y.gray.hwb=function(e){return[0,100,e[0]]};Y.gray.cmyk=function(e){return[0,0,0,e[0]]};Y.gray.lab=function(e){return[e[0],0,0]};Y.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};Y.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const fa=Z1;function Sx(){const e={},t=Object.keys(fa);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function Ex(e){const t=Sx(),n=[e];for(t[e].distance=0;n.length;){const r=n.pop(),o=Object.keys(fa[r]);for(let i=o.length,a=0;a<i;a++){const s=o[a],l=t[s];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(s))}}return t}function Px(e,t){return function(n){return t(e(n))}}function Rx(e,t){const n=[t[e].parent,e];let r=fa[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=Px(fa[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}var kx=function(e){const t=Ex(e),n={},r=Object.keys(t);for(let o=r.length,i=0;i<o;i++){const a=r[i];t[a].parent!==null&&(n[a]=Rx(a,t))}return n};const Kl=Z1,Mx=kx,ur={},Ox=Object.keys(Kl);function Tx(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Dx(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let i=o.length,a=0;a<i;a++)o[a]=Math.round(o[a]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}Ox.forEach(e=>{ur[e]={},Object.defineProperty(ur[e],"channels",{value:Kl[e].channels}),Object.defineProperty(ur[e],"labels",{value:Kl[e].labels});const t=Mx(e);Object.keys(t).forEach(r=>{const o=t[r];ur[e][r]=Dx(o),ur[e][r].raw=Tx(o)})});var _x=ur;const cr=Cx,et=_x,J1=["keyword","gray","hex"],Bl={};for(const e of Object.keys(et))Bl[[...et[e].labels].sort().join("")]=e;const ha={};function Me(e,t){if(!(this instanceof Me))return new Me(e,t);if(t&&t in J1&&(t=null),t&&!(t in et))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Me)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const o=cr.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,r=et[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=et[this.model].channels;const o=Array.prototype.slice.call(e,0,r);this.color=Hl(o,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const i=o.sort().join("");if(!(i in Bl))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Bl[i];const{labels:a}=et[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=Hl(s)}if(ha[this.model])for(r=et[this.model].channels,n=0;n<r;n++){const o=ha[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Me.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in cr.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return cr.to[t.model](n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return cr.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=et[this.model],{labels:n}=et[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new Me([...this.color.map(Fx(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new Me([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:be("rgb",0,Ee(255)),green:be("rgb",1,Ee(255)),blue:be("rgb",2,Ee(255)),hue:be(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:be("hsl",1,Ee(100)),lightness:be("hsl",2,Ee(100)),saturationv:be("hsv",1,Ee(100)),value:be("hsv",2,Ee(100)),chroma:be("hcg",1,Ee(100)),gray:be("hcg",2,Ee(100)),white:be("hwb",1,Ee(100)),wblack:be("hwb",2,Ee(100)),cyan:be("cmyk",0,Ee(100)),magenta:be("cmyk",1,Ee(100)),yellow:be("cmyk",2,Ee(100)),black:be("cmyk",3,Ee(100)),x:be("xyz",0,Ee(95.047)),y:be("xyz",1,Ee(100)),z:be("xyz",2,Ee(108.833)),l:be("lab",0,Ee(100)),a:be("lab",1),b:be("lab",2),keyword(e){return e!==void 0?new Me(e):et[this.model].keyword(this.color)},hex(e){return e!==void 0?new Me(e):cr.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Me(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),cr.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const o=r/255;t[n]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Me.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=t===void 0?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),s=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,l=1-s;return Me.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(et)){if(J1.includes(e))continue;const{channels:t}=et[e];Me.prototype[e]=function(...n){return this.model===e?new Me(this):n.length>0?new Me(n,e):new Me([...Ix(et[this.model][e].raw(this.color)),this.valpha],e)},Me[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=Hl(n,t)),new Me(r,e)}}function Lx(e,t){return Number(e.toFixed(t))}function Fx(e){return function(t){return Lx(t,e)}}function be(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(ha[r]||(ha[r]=[]))[t]=n;return e=e[0],function(r){let o;return r!==void 0?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function Ee(e){return function(t){return Math.max(0,Math.min(e,t))}}function Ix(e){return Array.isArray(e)?e:[e]}function Hl(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var jx=Me;const Sd=vf(jx);var Nx=typeof global=="object"&&global&&global.Object===Object&&global,Ax=typeof self=="object"&&self&&self.Object===Object&&self,Jn=Nx||Ax||Function("return this")(),pa=Jn.Symbol,eg=Object.prototype,Kx=eg.hasOwnProperty,Bx=eg.toString,co=pa?pa.toStringTag:void 0;function Hx(e){var t=Kx.call(e,co),n=e[co];try{e[co]=void 0;var r=!0}catch{}var o=Bx.call(e);return r&&(t?e[co]=n:delete e[co]),o}var Vx=Object.prototype,zx=Vx.toString;function Ux(e){return zx.call(e)}var qx="[object Null]",Wx="[object Undefined]",Ed=pa?pa.toStringTag:void 0;function tg(e){return e==null?e===void 0?Wx:qx:Ed&&Ed in Object(e)?Hx(e):Ux(e)}function ng(e){return e!=null&&typeof e=="object"}var Gx="[object Symbol]";function Qx(e){return typeof e=="symbol"||ng(e)&&tg(e)==Gx}var Yx=Array.isArray,Xx=/\s/;function Zx(e){for(var t=e.length;t--&&Xx.test(e.charAt(t)););return t}var Jx=/^\s+/;function e6(e){return e&&e.slice(0,Zx(e)+1).replace(Jx,"")}function Ar(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pd=NaN,t6=/^[-+]0x[0-9a-f]+$/i,n6=/^0b[01]+$/i,r6=/^0o[0-7]+$/i,o6=parseInt;function i6(e){if(typeof e=="number")return e;if(Qx(e))return Pd;if(Ar(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ar(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e6(e);var n=n6.test(e);return n||r6.test(e)?o6(e.slice(2),n?2:8):t6.test(e)?Pd:+e}var Rd=1/0,a6=17976931348623157e292;function s6(e){if(!e)return e===0?e:0;if(e=i6(e),e===Rd||e===-Rd){var t=e<0?-1:1;return t*a6}return e===e?e:0}function kd(e){var t=s6(e),n=t%1;return t===t?n?t-n:t:0}function rg(e){return e}var l6="[object AsyncFunction]",u6="[object Function]",c6="[object GeneratorFunction]",d6="[object Proxy]";function f6(e){if(!Ar(e))return!1;var t=tg(e);return t==u6||t==c6||t==l6||t==d6}var Os=Jn["__core-js_shared__"],Md=function(){var e=/[^.]+$/.exec(Os&&Os.keys&&Os.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function h6(e){return!!Md&&Md in e}var p6=Function.prototype,g6=p6.toString;function m6(e){if(e!=null){try{return g6.call(e)}catch{}try{return e+""}catch{}}return""}var v6=/[\\^$.*+?()[\]{}|]/g,b6=/^\[object .+?Constructor\]$/,y6=Function.prototype,x6=Object.prototype,w6=y6.toString,C6=x6.hasOwnProperty,$6=RegExp("^"+w6.call(C6).replace(v6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S6(e){if(!Ar(e)||h6(e))return!1;var t=f6(e)?$6:b6;return t.test(m6(e))}function E6(e,t){return e==null?void 0:e[t]}function og(e,t){var n=E6(e,t);return S6(n)?n:void 0}var Od=og(Jn,"WeakMap"),ga=Od&&new Od,ig=ga?function(e,t){return ga.set(e,t),e}:rg,Td=Object.create,Fu=function(){function e(){}return function(t){if(!Ar(t))return{};if(Td)return Td(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ko(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fu(e.prototype),r=e.apply(n,t);return Ar(r)?r:n}}var P6=1;function R6(e,t,n){var r=t&P6,o=Ko(e);function i(){var a=this&&this!==Jn&&this instanceof i?o:e;return a.apply(r?n:this,arguments)}return i}function ag(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var k6=Math.max;function sg(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=k6(i-a,0),h=Array(l+u),c=!r;++s<l;)h[s]=t[s];for(;++o<a;)(c||o<i)&&(h[n[o]]=e[o]);for(;u--;)h[s++]=e[o++];return h}var M6=Math.max;function lg(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,h=M6(i-s,0),c=Array(h+u),p=!r;++o<h;)c[o]=e[o];for(var f=o;++l<u;)c[f+l]=t[l];for(;++a<s;)(p||o<i)&&(c[f+n[a]]=e[o++]);return c}function O6(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function Iu(){}var T6=4294967295;function Kr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=T6,this.__views__=[]}Kr.prototype=Fu(Iu.prototype);Kr.prototype.constructor=Kr;function D6(){}var ug=ga?function(e){return ga.get(e)}:D6,Dd={},_6=Object.prototype,L6=_6.hasOwnProperty;function F6(e){for(var t=e.name+"",n=Dd[t],r=L6.call(Dd,t)?n.length:0;r--;){var o=n[r],i=o.func;if(i==null||i==e)return o.name}return t}function Br(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Br.prototype=Fu(Iu.prototype);Br.prototype.constructor=Br;function cg(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function I6(e){if(e instanceof Kr)return e.clone();var t=new Br(e.__wrapped__,e.__chain__);return t.__actions__=cg(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var j6=Object.prototype,N6=j6.hasOwnProperty;function ma(e){if(ng(e)&&!Yx(e)&&!(e instanceof Kr)){if(e instanceof Br)return e;if(N6.call(e,"__wrapped__"))return I6(e)}return new Br(e)}ma.prototype=Iu.prototype;ma.prototype.constructor=ma;function A6(e){var t=F6(e),n=ma[t];if(typeof n!="function"||!(t in Kr.prototype))return!1;if(e===n)return!0;var r=ug(n);return!!r&&e===r[0]}var K6=800,B6=16,H6=Date.now;function dg(e){var t=0,n=0;return function(){var r=H6(),o=B6-(r-n);if(n=r,o>0){if(++t>=K6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var fg=dg(ig),V6=/\{\n\/\* \[wrapped with (.+)\] \*/,z6=/,? & /;function U6(e){var t=e.match(V6);return t?t[1].split(z6):[]}var q6=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function W6(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(q6,`{
|
|
61
61
|
/* [wrapped with `+t+`] */
|
|
62
|
-
`)}function U6(e){return function(){return e}}var kd=function(){try{var e=ng(Object,"defineProperty");return e({},"",{}),e}catch{}}(),q6=kd?function(e,t){return kd(e,"toString",{configurable:!0,enumerable:!1,value:U6(t),writable:!0})}:tg,W6=ug(q6);function G6(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Q6(e,t,n,r){for(var o=e.length,i=n+-1;++i<o;)if(t(e[i],i,e))return i;return-1}function Y6(e){return e!==e}function X6(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function Z6(e,t,n){return t===t?X6(e,t,n):Q6(e,Y6,n)}function J6(e,t){var n=e==null?0:e.length;return!!n&&Z6(e,t,0)>-1}var ew=1,tw=2,nw=8,rw=16,ow=32,iw=64,aw=128,sw=256,lw=512,uw=[["ary",aw],["bind",ew],["bindKey",tw],["curry",nw],["curryRight",rw],["flip",lw],["partial",ow],["partialRight",iw],["rearg",sw]];function cw(e,t){return G6(uw,function(n){var r="_."+n[0];t&n[1]&&!J6(e,r)&&e.push(r)}),e.sort()}function dg(e,t,n){var r=t+"";return W6(e,z6(r,cw(H6(r),n)))}var dw=4,fw=8,Md=32,Od=64;function fg(e,t,n,r,o,i,a,s,l,u){var h=t&fw,c=h?a:void 0,p=h?void 0:a,f=h?i:void 0,g=h?void 0:i;t|=h?Md:Od,t&=~(h?Od:Md),t&dw||(t&=-4);var m=[e,t,o,f,c,g,p,s,l,u],v=n.apply(void 0,m);return I6(e)&&cg(v,m),v.placeholder=r,dg(v,e,t)}function hg(e){var t=e;return t.placeholder}var hw=9007199254740991,pw=/^(?:0|[1-9]\d*)$/;function gw(e,t){var n=typeof e;return t=t??hw,!!t&&(n=="number"||n!="symbol"&&pw.test(e))&&e>-1&&e%1==0&&e<t}var mw=Math.min;function vw(e,t){for(var n=e.length,r=mw(t.length,n),o=lg(e);r--;){var i=t[r];e[r]=gw(i,n)?o[i]:void 0}return e}var Td="__lodash_placeholder__";function va(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];(a===t||a===Td)&&(e[n]=Td,i[o++]=n)}return i}var bw=1,yw=2,xw=8,ww=16,Cw=128,$w=512;function Du(e,t,n,r,o,i,a,s,l,u){var h=t&Cw,c=t&bw,p=t&yw,f=t&(xw|ww),g=t&$w,m=p?void 0:jo(e);function v(){for(var b=arguments.length,x=Array(b),w=b;w--;)x[w]=arguments[w];if(f)var S=hg(v),M=R6(x,S);if(r&&(x=ig(x,r,o,f)),i&&(x=ag(x,i,a,f)),b-=M,f&&b<u){var P=va(x,S);return fg(e,t,Du,v.placeholder,n,x,P,s,l,u-b)}var R=c?n:this,k=p?R[e]:e;return b=x.length,s?x=vw(x,s):g&&b>1&&x.reverse(),h&&l<b&&(x.length=l),this&&this!==Zn&&this instanceof v&&(k=m||jo(k)),k.apply(R,x)}return v}function Sw(e,t,n){var r=jo(e);function o(){for(var i=arguments.length,a=Array(i),s=i,l=hg(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:va(a,l);if(i-=u.length,i<n)return fg(e,t,Du,o.placeholder,void 0,a,u,void 0,void 0,n-i);var h=this&&this!==Zn&&this instanceof o?r:e;return og(h,this,a)}return o}var Ew=1;function Pw(e,t,n,r){var o=t&Ew,i=jo(e);function a(){for(var s=-1,l=arguments.length,u=-1,h=r.length,c=Array(h+l),p=this&&this!==Zn&&this instanceof a?i:e;++u<h;)c[u]=r[u];for(;l--;)c[u++]=arguments[++s];return og(p,o?n:this,c)}return a}var Dd="__lodash_placeholder__",Rs=1,Rw=2,kw=4,_d=8,lo=128,Ld=256,Mw=Math.min;function Ow(e,t){var n=e[1],r=t[1],o=n|r,i=o<(Rs|Rw|lo),a=r==lo&&n==_d||r==lo&&n==Ld&&e[7].length<=t[8]||r==(lo|Ld)&&t[7].length<=t[8]&&n==_d;if(!(i||a))return e;r&Rs&&(e[2]=t[2],o|=n&Rs?0:kw);var s=t[3];if(s){var l=e[3];e[3]=l?ig(l,s,t[4]):s,e[4]=l?va(e[3],Dd):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?ag(l,s,t[6]):s,e[6]=l?va(e[5],Dd):t[6]),s=t[7],s&&(e[7]=s),r&lo&&(e[8]=e[8]==null?t[8]:Mw(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}var Tw="Expected a function",Fd=1,Dw=2,Id=8,jd=16,Nd=32,_w=64,Ad=Math.max;function Lw(e,t,n,r,o,i,a,s){var l=t&Dw;if(!l&&typeof e!="function")throw new TypeError(Tw);var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),a=a===void 0?a:Ad($d(a),0),s=s===void 0?s:$d(s),u-=o?o.length:0,t&_w){var h=r,c=o;r=o=void 0}var p=l?void 0:sg(e),f=[e,t,n,r,o,h,c,i,a,s];if(p&&Ow(f,p),e=f[0],t=f[1],n=f[2],r=f[3],o=f[4],s=f[9]=f[9]===void 0?l?0:e.length:Ad(f[9]-u,0),!s&&t&(Id|jd)&&(t&=-25),!t||t==Fd)var g=S6(e,t,n);else t==Id||t==jd?g=Sw(e,t,s):(t==Nd||t==(Fd|Nd))&&!o.length?g=Pw(e,t,n,r):g=Du.apply(void 0,f);var m=p?rg:cg;return dg(m(g,f),e,t)}var Fw=8;function ba(e,t,n){t=n?void 0:t;var r=Lw(e,Fw,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=ba.placeholder,r}ba.placeholder={};function Iw(e){const t=e[0],n=e[1],r=e[2];let o,i,a;return o=t*1+n*0+r*1.13983,i=t*1+n*-.39465+r*-.5806,a=t*1+n*2.02311+r*0,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[o*255,i*255,a*255]}function jw(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=t*.299+n*.587+r*.114,i=t*-.14713+n*-.28886+r*.436,a=t*.615+n*-.51499+r*-.10001;return[o,i,a]}const Nw={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},Aw={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},Kw={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},Bw={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},Hw={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},Vw={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},zw={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},Uw={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},qw={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},Ww={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},Gw={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},Qw={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},Yw={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},Xw={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},Zw={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},Jw={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},eC={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},tC={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},nC={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},rC={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},oC={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},iC={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},aC={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},sC={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},lC={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},uC={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},cC={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},dC={scheme:"nicinabox",author:"nicinabox (http://github.com/nicinabox)",base00:"#2A2F3A",base01:"#3C444F",base02:"#4F5A65",base03:"#BEBEBE",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#FFFFFF",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#FC6D24",base0A:"#ddb26f",base0B:"#A1C659",base0C:"#12cfc0",base0D:"#6FB3D2",base0E:"#D381C3",base0F:"#deaf8f"},fC={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},hC={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},pC={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},gC={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},mC={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},vC={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},bC={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},yC={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},xC={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},wC={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},pg={threezerotwofour:Nw,apathy:Aw,ashes:Kw,atelierDune:Bw,atelierForest:Hw,atelierHeath:Vw,atelierLakeside:zw,atelierSeaside:Uw,bespin:qw,brewer:Ww,bright:Gw,chalk:Qw,codeschool:Yw,colors:Xw,default:Zw,eighties:Jw,embers:eC,flat:tC,google:nC,grayscale:rC,greenscreen:oC,harmonic:iC,hopscotch:aC,isotope:sC,marrakesh:lC,mocha:uC,monokai:cC,nicinabox:dC,ocean:fC,paraiso:hC,pop:pC,railscasts:gC,shapeshifter:mC,solarized:vC,summerfruit:bC,tomorrow:yC,tube:xC,twilight:wC},gg=pg.default,Kd=Object.keys(gg),CC=e=>e<.25?1:e<.5?.9-e:1.1-e,$C=e=>{const t=yd(e),[n,r,o]=jw(t.array()),i=[CC(n),r,o],a=Iw(i);return yd.rgb(a).hex()},ar=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),SC=(e,t)=>{if(e===void 0)return t;if(t===void 0)return e;const n=typeof e,r=typeof t;switch(n){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return ar({className:e,style:t});case"function":return(o,...i)=>ar({className:e})(t(o,...i))}break;case"object":switch(r){case"string":return ar({className:t,style:e});case"object":return{...t,...e};case"function":return(o,...i)=>ar({style:e})(t(o,...i))}break;case"function":switch(r){case"string":return(o,...i)=>e(ar(o)({className:t}),...i);case"object":return(o,...i)=>e(ar(o)({style:t}),...i);case"function":return(o,...i)=>e(t(o,...i),...i)}}},EC=(e,t)=>{const n=Object.keys(t);for(const r in e)n.indexOf(r)===-1&&n.push(r);return n.reduce((r,o)=>(r[o]=SC(e[o],t[o]),r),{})},PC=(e,t,...n)=>{if(t===null)return e;Array.isArray(t)||(t=[t]);const o=t.map(i=>e[i]).filter(Boolean).reduce((i,a)=>(typeof a=="string"?i.className=[i.className,a].filter(Boolean).join(" "):typeof a=="object"?i.style={...i.style,...a}:typeof a=="function"&&(i={...i,...a(i,...n)}),i),{className:"",style:{}});return o.className||delete o.className,Object.keys(o.style).length===0&&delete o.style,o},Al=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?$C(e[n]):n==="scheme"?e[n]+":inverted":e[n],t),{}),RC=ba((e,t={},n={},...r)=>{const{defaultBase16:o=gg,base16Themes:i=null}=t,a=kC(n,i);a&&(n={...a,...n});const s=Kd.reduce((c,p)=>(c[p]=n[p]||o[p],c),{}),l=Object.keys(n).reduce((c,p)=>(Kd.indexOf(p)===-1&&(c[p]=n[p]),c),{}),u=e(s),h=EC(l,u);return ba(PC,2)(h,...r)},3),mg=e=>!!e.extend,kC=(e,t)=>{if(e&&mg(e)&&e.extend&&(e=e.extend),typeof e=="string"){const[n,r]=e.split(":");t?e=t[n]:e=pg[n],r==="inverted"&&(e=Al(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},MC=e=>typeof e=="string"?`${e}:inverted`:e&&mg(e)&&e.extend?typeof e.extend=="string"?{...e,extend:`${e.extend}:inverted`}:{...e,extend:Al(e.extend)}:e&&Al(e);function OC(e){const t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&typeof e[Symbol.iterator]=="function"?"Iterable":t==="Custom"&&e.constructor!==Object&&e instanceof Object?"Object":t}function vg({styling:e,arrowStyle:t="single",expanded:n,nodeType:r,onClick:o}){return d.createElement("div",{...e("arrowContainer",t),onClick:o},d.createElement("div",{...e(["arrow","arrowSign"],r,n,t)},"▶",t==="double"&&d.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function TC(e,t){return e==="Object"?Object.keys(t).length:e==="Array"?t.length:1/0}function DC(e){return typeof e.set=="function"}function _C(e,t,n,r=0,o=1/0){let i;if(e==="Object"){let a=Object.getOwnPropertyNames(t);n&&a.sort(n===!0?void 0:n),a=a.slice(r,o+1),i={entries:a.map(s=>({key:s,value:t[s]}))}}else if(e==="Array")i={entries:t.slice(r,o+1).map((a,s)=>({key:s+r,value:a}))};else{let a=0;const s=[];let l=!0;const u=DC(t);for(const h of t){if(a>o){l=!1;break}r<=a&&(u&&Array.isArray(h)?typeof h[0]=="string"||typeof h[0]=="number"?s.push({key:h[0],value:h[1]}):s.push({key:`[entry ${a}]`,value:{"[key]":h[0],"[value]":h[1]}}):s.push({key:a,value:h})),a++}i={hasMore:!l,entries:s}}return i}function ks(e,t,n){const r=[];for(;t-e>n*n;)n=n*n;for(let o=e;o<=t;o+=n)r.push({from:o,to:Math.min(t,o+n-1)});return r}function LC(e,t,n,r,o=0,i=1/0){const a=_C.bind(null,e,t,n);if(!r)return a().entries;const s=i<1/0,l=Math.min(i-o,TC(e,t));if(e!=="Iterable"){if(l<=r||r<7)return a(o,i).entries}else if(l<=r&&!s)return a(o,i).entries;let u;if(e==="Iterable"){const{hasMore:h,entries:c}=a(o,o+r-1);u=h?[...c,...ks(o+r,o+2*r-1,r)]:c}else u=s?ks(o,i,r):[...a(0,r-5).entries,...ks(r-4,l-5,r),...a(l-4,l-1).entries];return u}function FC(e){const{styling:t,from:n,to:r,renderChildNodes:o,nodeType:i}=e,[a,s]=d.useState(!1),l=d.useCallback(()=>{s(!a)},[a]);return a?d.createElement("div",{...t("itemRange",a)},o(e,n,r)):d.createElement("div",{...t("itemRange",a),onClick:l},d.createElement(vg,{nodeType:i,styling:t,expanded:!1,onClick:l,arrowStyle:"double"}),`${n} ... ${r}`)}function IC(e){return e.to!==void 0}function bg(e,t,n){const{nodeType:r,data:o,collectionLimit:i,circularCache:a,keyPath:s,postprocessValue:l,sortObjectKeys:u}=e,h=[];return LC(r,o,u,i,t,n).forEach(c=>{if(IC(c))h.push(d.createElement(FC,{...e,key:`ItemRange--${c.from}-${c.to}`,from:c.from,to:c.to,renderChildNodes:bg}));else{const{key:p,value:f}=c,g=a.includes(f);h.push(d.createElement(yg,{...e,postprocessValue:l,collectionLimit:i,key:`Node--${p}`,keyPath:[p,...s],value:l(f),circularCache:[...a,f],isCircular:g,hideRoot:!1}))}}),h}function _u(e){const{circularCache:t=[],collectionLimit:n,createItemString:r,data:o,expandable:i,getItemString:a,hideRoot:s,isCircular:l,keyPath:u,labelRenderer:h,level:c=0,nodeType:p,nodeTypeIndicator:f,shouldExpandNodeInitially:g,styling:m}=e,[v,b]=d.useState(l?!1:g(u,o,c)),x=d.useCallback(()=>{i&&b(!v)},[i,v]),w=v||s&&c===0?bg({...e,circularCache:t,level:c+1}):null,S=d.createElement("span",{...m("nestedNodeItemType",v)},f),M=a(p,o,S,r(o,n),u),P=[u,p,v,i];return s?d.createElement("li",{...m("rootNode",...P)},d.createElement("ul",{...m("rootNodeChildren",...P)},w)):d.createElement("li",{...m("nestedNode",...P)},i&&d.createElement(vg,{styling:m,nodeType:p,expanded:v,onClick:x}),d.createElement("label",{...m(["label","nestedNodeLabel"],...P),onClick:x},h(...P)),d.createElement("span",{...m("nestedNodeItemString",...P),onClick:x},M),d.createElement("ul",{...m("nestedNodeChildren",...P)},w))}function jC(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function NC({data:e,...t}){return d.createElement(_u,{...t,data:e,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:jC,expandable:Object.getOwnPropertyNames(e).length>0})}function AC(e){return`${e.length} ${e.length!==1?"items":"item"}`}function KC({data:e,...t}){return d.createElement(_u,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:AC,expandable:e.length>0})}function BC(e,t){let n=0,r=!1;if(Number.isSafeInteger(e.size))n=e.size;else for(const o of e){if(t&&n+1>t){r=!0;break}n+=1}return`${r?">":""}${n} ${n!==1?"entries":"entry"}`}function HC(e){return d.createElement(_u,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:BC,expandable:!0})}function Ft({nodeType:e,styling:t,labelRenderer:n,keyPath:r,valueRenderer:o,value:i,valueGetter:a=s=>s}){return d.createElement("li",{...t("value",e,r)},d.createElement("label",{...t(["label","valueLabel"],e,r)},n(r,e,!1,!1)),d.createElement("span",{...t("valueText",e,r)},o(a(i),i,...r)))}function yg({getItemString:e,keyPath:t,labelRenderer:n,styling:r,value:o,valueRenderer:i,isCustomNode:a,...s}){const l=a(o)?"Custom":OC(o),u={getItemString:e,key:t[0],keyPath:t,labelRenderer:n,nodeType:l,styling:r,value:o,valueRenderer:i},h={...s,...u,data:o,isCustomNode:a};switch(l){case"Object":case"Error":case"WeakMap":case"WeakSet":return d.createElement(NC,{...h});case"Array":return d.createElement(KC,{...h});case"Iterable":case"Map":case"Set":return d.createElement(HC,{...h});case"String":return d.createElement(Ft,{...u,valueGetter:c=>`"${c}"`});case"Number":return d.createElement(Ft,{...u});case"Boolean":return d.createElement(Ft,{...u,valueGetter:c=>c?"true":"false"});case"Date":return d.createElement(Ft,{...u,valueGetter:c=>c.toISOString()});case"Null":return d.createElement(Ft,{...u,valueGetter:()=>"null"});case"Undefined":return d.createElement(Ft,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return d.createElement(Ft,{...u,valueGetter:c=>c.toString()});case"Custom":return d.createElement(Ft,{...u});default:return d.createElement(Ft,{...u,valueGetter:()=>`<${l}>`})}}const VC={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},zC=e=>({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}),UC=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR}),qC=e=>{const t=zC(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:({style:n},r,o)=>({style:{...n,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:o.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}),label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:({style:n},r)=>({style:{...n,color:UC(t)[r]}}),itemRange:(n,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:n},r,o)=>({style:{...n,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:o?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:o?"rotateZ(90deg)":"rotateZ(0deg)",transform:o?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:n},r)=>({style:{...n,display:"inline-block",paddingRight:"0.5em",paddingLeft:r==="double"?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:n},r,o,i,a)=>({style:{...n,position:"relative",paddingTop:"0.25em",marginLeft:r.length>1?"0.875em":0,paddingLeft:a?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:n},r,o,i,a)=>({style:{...n,margin:0,padding:0,WebkitUserSelect:a?"inherit":"text",MozUserSelect:a?"inherit":"text",cursor:a?"pointer":"default"}}),nestedNodeItemString:({style:n},r,o,i)=>({style:{...n,paddingLeft:"0.5em",cursor:"default",color:i?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}),nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:({style:n},r,o)=>({style:{...n,padding:0,margin:0,listStyle:"none",display:o?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},WC=RC(qC,{defaultBase16:VC}),Bd=e=>e,GC=(e,t,n)=>n===0,QC=(e,t,n,r)=>d.createElement("span",null,n," ",r),YC=([e])=>d.createElement("span",null,e,":"),XC=()=>!1;function Co({data:e,theme:t,invertTheme:n,keyPath:r=["root"],labelRenderer:o=YC,valueRenderer:i=Bd,shouldExpandNodeInitially:a=GC,hideRoot:s=!1,getItemString:l=QC,postprocessValue:u=Bd,isCustomNode:h=XC,collectionLimit:c=50,sortObjectKeys:p=!1}){const f=d.useMemo(()=>WC(n?MC(t):t),[t,n]);return d.createElement("ul",{...f("tree")},d.createElement(yg,{keyPath:s?[]:r,value:u(e),isCustomNode:h,styling:f,labelRenderer:o,valueRenderer:i,shouldExpandNodeInitially:a,hideRoot:s,getItemString:l,postprocessValue:u,collectionLimit:c,sortObjectKeys:p}))}var za=function(e){var t=e.actions;return y.jsxs(p3,{children:[y.jsx(mu,{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 radix-state-open:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700 dark:radix-state-open:bg-slate-700","aria-label":"Action menu",children:y.jsx(G2,{width:18,height:18})}),y.jsx(d3,{placement:"bottom left",className:"space-y-0.5 rounded-md border border-slate-200 bg-white/95 p-1 shadow-lg backdrop-blur-md dark:border-slate-700 dark:bg-slate-800/95",offset:5,children:y.jsx(v3,{children:t.map(function(n){return y.jsxs(w3,{className:"flex cursor-default items-center space-x-1.5 rounded-md py-1.5 pl-1.5 pr-8 text-sm font-medium text-slate-900 outline-none transition duration-150 ease-in-out focus:bg-slate-100 dark:text-slate-100 dark:focus:bg-slate-700",onAction:n.onSelect,children:[n.icon,y.jsx("span",{children:n.label})]},n.label)})})})]})},ZC=function(e){var t=e.job,n=e.queueName,r=e.queue,o=e.onRemove,i=ue.job.retry.useMutation(),a=i.mutate,s=i.isSuccess,l=ue.job.discard.useMutation(),u=l.mutate,h=l.isSuccess,c=ue.job.rerun.useMutation(),p=c.mutate,f=c.isSuccess,g=ue.job.remove.useMutation(),m=g.mutate,v=g.isSuccess;d.useEffect(function(){(s||h||f||v)&&(o==null||o())},[s,h,f,v,o]);var b={queueName:n,jobId:t.id},x=(r==null?void 0:r.supports.retry)!==!1,w=Be(Be(Be([],t.failedReason&&x?[{label:"Retry",onSelect:function(){a(b)},icon:y.jsx(Lr,{})}]:[],!0),t.finishedAt?[{label:"Rerun",onSelect:function(){p(b)},icon:y.jsx(Lr,{})}]:[{label:"Discard",onSelect:function(){u(b)},icon:y.jsx(e5,{})}],!0),[{label:"Remove",onSelect:function(){m(b)},icon:y.jsx(zr,{})}],!1);return y.jsx(za,{actions:w})},xn=function(e){var t=e.colorScheme,n=t===void 0?"slate":t,r=e.variant,o=r===void 0?"outline":r,i=e.size,a=i===void 0?"md":i,s=e.icon,l=e.label,u=e.isLoading,h=e.onClick,c=e.disabled;return y.jsxs("button",{onClick:h,disabled:u||c,className:Fr("flex items-center space-x-1 rounded-md border text-sm font-medium transition-colors duration-150",{"py-0.5":a==="sm","py-1":a==="md","py-1.5":a==="lg"},[a==="sm"&&s?"pl-1.5 pr-2.5":"px-2.5",a==="md"&&s?"pl-2 pr-3":"px-3",a==="lg"&&s?"pl-2.5 pr-4":"px-4"],{"cursor-not-allowed opacity-50":u||c,"border-yellow-900 text-yellow-900 hover:bg-yellow-50 focus:bg-yellow-50 dark:border-yellow-400 dark:text-yellow-400 dark:hover:bg-yellow-950/30 dark:focus:bg-yellow-950/30":n==="yellow"&&o==="outline","border-slate-900 text-slate-900 hover:bg-slate-50 focus:bg-slate-50 dark:border-slate-400 dark:text-slate-300 dark:hover:bg-slate-800 dark:focus:bg-slate-800":n==="slate"&&o==="outline","border-red-900 text-red-900 hover:bg-red-50 focus:bg-red-50 dark:border-red-400 dark:text-red-400 dark:hover:bg-red-950/30 dark:focus:bg-red-950/30":n==="red"&&o==="outline","border-yellow-800 bg-yellow-800 text-yellow-50 hover:border-yellow-900 hover:bg-yellow-900 focus:border-yellow-900 focus:bg-yellow-900 dark:border-yellow-600 dark:bg-yellow-600 dark:hover:border-yellow-500 dark:hover:bg-yellow-500 dark:focus:border-yellow-500 dark:focus:bg-yellow-500":n==="yellow"&&o==="filled","border-slate-800 bg-slate-800 text-slate-50 hover:border-slate-900 hover:bg-slate-900 focus:border-slate-900 focus:bg-slate-900 dark:border-slate-600 dark:bg-slate-600 dark:hover:border-slate-500 dark:hover:bg-slate-500 dark:focus:border-slate-500 dark:focus:bg-slate-500":n==="slate"&&o==="filled","border-red-800 bg-red-800 text-red-50 hover:border-red-900 hover:bg-red-900 focus:border-red-900 focus:bg-red-900 dark:border-red-600 dark:bg-red-600 dark:hover:border-red-500 dark:hover:bg-red-500 dark:focus:border-red-500 dark:focus:bg-red-500":n==="red"&&o==="filled"}),children:[u?y.jsx("div",{className:"flex w-4 justify-center",children:y.jsx(ru,{width:10,height:10,className:"animate-spin"})}):s?y.jsx("div",{className:"flex w-4 justify-center",children:s}):null,y.jsx("span",{children:l})]})},JC=function(e){var t=e.job,n=e.queueName,r=e.onDismiss,o=ue.queue.byName.useQuery({queueName:n}),i=ue.job.retry.useMutation().mutate,a=ue.job.logs.useQuery({jobId:t.id,queueName:n}).data;return y.jsx(Ba,{isOpen:!0,isDismissable:!0,onOpenChange:function(s){s||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Aa,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(s){var l,u,h=s.close;return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mb-4 flex items-start justify-between",children:[y.jsxs("div",{children:[y.jsx(Ka,{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),y.jsxs("span",{className:"text-sm text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),y.jsxs("div",{className:"flex items-center space-x-1",children:[y.jsx(ZC,{queueName:n,job:t,queue:(l=o.data)!==null&&l!==void 0?l:void 0,onRemove:r}),y.jsx("button",{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700","aria-label":"Close",onClick:function(){r(),h()},children:y.jsx(nu,{})})]})]}),y.jsxs("div",{children:[t.failedReason?y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Error"}),y.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:t.failedReason}),y.jsx(xn,{label:"Retry",size:"sm",icon:y.jsx(Lr,{width:14}),onClick:function(){i({queueName:n,jobId:t.id}),r()}})]}):null,y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Co,{data:t.opts,theme:"monokai"})})]}),y.jsxs("div",{className:"space-y-2 py-4",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Data"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Co,{data:t.data,theme:"monokai"})})]}),t.returnValue!==void 0&&t.returnValue!==null&&y.jsxs("div",{className:"space-y-2 border-t border-t-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Return value"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Co,{data:t.returnValue,theme:"monokai"})})]}),!((u=o.data)===null||u===void 0)&&u.supports.logs&&(a!=null&&a.length)?y.jsxs("div",{className:"space-y-2 border-t border-t-slate-200 pt-4 dark:border-t-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Logs"}),y.jsx("div",{className:"space-y-1",children:a==null?void 0:a.map(function(c,p){return y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx("div",{className:"h-4 w-1 rounded-sm bg-slate-300 dark:bg-slate-600"}),y.jsx("p",{className:"font-mono text-sm text-slate-900 dark:text-slate-100",children:c})]},p)})})]}):null]})]})}})})},Mi=h1(),e$=[Mi.display({id:"select",header:function(e){var t=e.table;return y.jsx(da,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return y.jsx(da,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),Mi.accessor("name",{cell:function(e){return y.jsxs("div",{className:"flex w-full items-center space-x-2",children:[y.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:e.cell.row.original.name}),y.jsxs("span",{className:"max-w-[20%] shrink truncate text-sm text-slate-500 dark:text-slate-400",children:["#",e.cell.row.original.id]})]})},header:"Name"}),Mi.display({id:"lifecycle",header:function(){return"Lifecycle"},cell:function(e){var t=e.row.original,n=t.createdAt,r=t.processedAt,o=t.finishedAt,i=t.status,a=t.retriedAt;return y.jsxs("div",{className:"flex items-center space-x-3",children:[y.jsx(Ms,{date:new Date(n),variant:"added"}),i==="waiting"?y.jsx(Hd,{}):null,r?y.jsxs(y.Fragment,{children:[y.jsx(Vd,{date:new Date(r),baseDate:new Date(n)}),y.jsx(Ms,{date:new Date(r),variant:a?"retried":"processing"})]}):null,i==="active"?y.jsx(Hd,{}):null,o&&r?y.jsxs(y.Fragment,{children:[y.jsx(Vd,{date:new Date(o),baseDate:new Date(r)}),y.jsx(Ms,{date:new Date(o),variant:i==="failed"?"failed":"completed"})]}):null]})}}),Mi.display({id:"options",header:"Options",cell:function(e){var t,n=e.row.original.opts;return y.jsxs("div",{className:"flex items-center space-x-2",children:[n.priority?y.jsx(ao,{icon:y.jsx(Y2,{width:12,height:12}),label:n.priority}):null,n.attempts&&n.attempts>1?y.jsx(ao,{icon:y.jsx(Lr,{width:12,height:12}),label:n.attempts}):null,n.lifo?y.jsx(ao,{icon:y.jsx(y5,{width:12,height:12}),label:"LIFO"}):null,n.delay?y.jsx(ao,{icon:y.jsx(n5,{width:12,height:12}),label:n.delay}):null,!((t=n.repeat)===null||t===void 0)&&t.count?y.jsx(ao,{icon:y.jsx(o5,{width:12,height:12}),label:n.repeat.count}):null]})}})],t$=function(e){var t=e.jobs,n=e.totalJobs,r=e.onBottomInView,o=e.isLoading,i=e.isFetchingNextPage,a=e.queueName,s=e.status,l=d.useState({}),u=l[0],h=l[1],c=U7({threshold:0,onChange:function(M){M&&r()}}).ref,p=S1({data:t,columns:e$,getCoreRowModel:$1(),state:{rowSelection:u},onRowSelectionChange:h}),f=t.length===0,g=t.length/(n||0)*100,m=d.useState(null),v=m[0],b=m[1],x=ue.job.retry.useMutation().mutate,w=ue.job.rerun.useMutation().mutate,S=ue.job.bulkRemove.useMutation().mutate;return d.useEffect(function(){p.resetRowSelection()},[s]),y.jsxs("div",{children:[v?y.jsx(JC,{queueName:a,job:v,onDismiss:function(){return b(null)}}):null,y.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:o?y.jsx(_1,{}):y.jsxs("div",{children:[p.getHeaderGroups().map(function(M,P){return y.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,576px,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:M.headers.map(function(R){return y.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(P!==0?"pr-10":"pr-3"),children:R.isPlaceholder?null:sa(R.column.columnDef.header,R.getContext())},R.id)})},M.id)}),p.getRowModel().rows.map(function(M,P){return y.jsx(D1,{isLastRow:p.getRowModel().rows.length!==P+1,isSelected:M.getIsSelected(),onClick:function(){return b(M.original)},layoutVariant:"job",children:M.getVisibleCells().map(function(R,k){return y.jsx("div",{className:"flex h-full items-center ".concat(k!==0?"pr-10":"pr-3"),children:sa(R.column.columnDef.cell,R.getContext())},R.id)})},M.id)}),!o&&f?y.jsx("div",{className:"flex items-center justify-center py-10",children:y.jsx("p",{className:"text-slate-500 dark:text-slate-400",children:"No jobs found"})}):null]})}),!o&&f?null:y.jsx("div",{ref:c,className:"my-3 flex justify-center",children:y.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[y.jsxs("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:["You've viewed ",t.length," of ",n," jobs"]}),y.jsx($3,{value:g,children:function(M){var P=M.percentage;return y.jsx(y.Fragment,{children:y.jsx("div",{style:{transform:"translateZ(0)"},className:"relative h-0.5 w-[144px] overflow-hidden rounded-sm bg-slate-200 dark:bg-slate-700",children:y.jsx("div",{className:"size-full bg-cyan-500 transition duration-300 ease-in-out",style:{transform:"translateX(-".concat(100-P,"%)")}})})})}}),i?y.jsx(ru,{className:"animate-spin text-slate-300 dark:text-slate-600"}):null]})}),p.getSelectedRowModel().rows.length>0?y.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:y.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[y.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[p.getSelectedRowModel().rows.length," selected"]}),s==="completed"||s==="failed"?y.jsx(xn,{label:s==="failed"?"Retry":"Rerun",icon:y.jsx(Lr,{}),size:"sm",onClick:function(){p.getSelectedRowModel().rows.forEach(function(M){s==="failed"?x({queueName:a,jobId:M.original.id}):w({queueName:a,jobId:M.original.id})}),p.resetRowSelection()}}):null,y.jsx(xn,{label:"Delete",colorScheme:"red",icon:y.jsx(zr,{}),size:"sm",onClick:function(){S({queueName:a,jobIds:p.getSelectedRowModel().rows.map(function(M){return M.original.id})}),p.resetRowSelection()}})]})}):null]})},Ms=function(e){var t=e.variant,n=e.date,r={added:"Added to queue",completed:"Completed",failed:"Failed",processing:"Processed",retried:"Retried"};return y.jsx(Mu,{message:"".concat(r[t]," ").concat(T1(n)," ago"),children:y.jsxs("div",{className:"flex items-center space-x-1.5",children:[t==="added"&&y.jsx(P0,{width:14,height:14,className:"rounded-full bg-cyan-50 text-cyan-900 dark:bg-cyan-950 dark:text-cyan-400"}),t==="processing"&&y.jsx(I2,{width:14,height:14,className:"rounded-full bg-slate-50 text-slate-900 dark:bg-slate-800 dark:text-slate-300"}),t==="retried"&&y.jsx(Lr,{width:14,height:14,className:"rounded-full bg-amber-50 text-amber-900 dark:bg-amber-950 dark:text-amber-400"}),t==="completed"&&y.jsx(C0,{width:14,height:14,className:"rounded-full bg-green-50 text-green-900 dark:bg-green-950 dark:text-green-400"}),t==="failed"&&y.jsx($0,{width:14,height:14,className:"rounded-full bg-red-50 text-red-900 dark:bg-red-950 dark:text-red-400"}),y.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:O1(n,"".concat(t==="added"?"MM/dd ":"","HH:mm:ss"))})]})})},Hd=function(){return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(ll,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),y.jsx(ru,{width:14,height:14,className:"animate-spin text-slate-300 dark:text-slate-600"})]})},Vd=function(e){var t=e.date,n=e.baseDate;return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(ll,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),y.jsx("p",{className:"w-7 rounded-sm text-center text-xs text-slate-500 dark:text-slate-400",children:A7(t,n,{locale:{formatDistance:function(r,o){return r==="xSeconds"?"".concat(o,"s"):r==="xMinutes"?"".concat(o,"m"):r==="xHours"?"".concat(o,"h"):r==="xDays"?"".concat(o,"d"):r==="xMonths"?"".concat(o,"mo"):r==="xYears"?"".concat(o,"y"):""}}})}),y.jsx(ll,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"})]})},n$=function(e){var t=e.title,n=e.description,r=e.action,o=e.children;return y.jsxs(u1,{children:[y.jsx(mu,{children:o}),y.jsx(Ba,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Aa,{role:"alertdialog",className:"fixed left-1/2 top-1/2 w-full max-w-md -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(i){var a=i.close;return y.jsxs(y.Fragment,{children:[y.jsx(Ka,{className:"mb-3 text-xl font-semibold text-slate-900 dark:text-slate-100",children:t}),y.jsx("p",{className:"mb-6 text-slate-600 dark:text-slate-400",children:n}),y.jsxs("div",{className:"flex justify-end space-x-3",children:[y.jsx(xn,{onClick:a,label:"Cancel"}),r]})]})}})})]})};function r$(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const o$=e=>{switch(e){case"success":return s$;case"info":return u$;case"warning":return l$;case"error":return c$;default:return null}},i$=Array(12).fill(0),a$=({visible:e,className:t})=>d.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},d.createElement("div",{className:"sonner-spinner"},i$.map((n,r)=>d.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),s$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),l$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),u$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),c$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),d$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},d.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),d.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),f$=()=>{const[e,t]=d.useState(document.hidden);return d.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Kl=1;class h${constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Kl++,a=this.toasts.find(l=>l.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:s,title:r}):l):this.addToast({title:r,...o,dismissible:s,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,a;const s=o.then(async u=>{if(a=["resolve",u],d.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(g$(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,g=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...g})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,p=typeof n.description=="function"?await n.description(u):n.description,g=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...g})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,p=typeof n.description=="function"?await n.description(u):n.description,g=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:p,...g})}}).catch(async u=>{if(a=["reject",u],n.error!==void 0){i=!1;const h=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof h=="object"&&!d.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:c,...f})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,h)=>s.then(()=>a[0]==="reject"?h(a[1]):u(a[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Kl++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qe=new h$,p$=(e,t)=>{const n=(t==null?void 0:t.id)||Kl++;return qe.addToast({title:e,...t,id:n}),n},g$=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",m$=p$,v$=()=>qe.toasts,b$=()=>qe.getActiveToasts(),dr=Object.assign(m$,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:v$,getToasts:b$});r$("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Oi(e){return e.label!==void 0}const y$=3,x$="24px",w$="16px",zd=4e3,C$=356,$$=14,S$=45,E$=200;function Rt(...e){return e.filter(Boolean).join(" ")}function P$(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const R$=e=>{var t,n,r,o,i,a,s,l,u;const{invert:h,toast:c,unstyled:p,interacting:f,setHeights:g,visibleToasts:m,heights:v,index:b,toasts:x,expanded:w,removeToast:S,defaultRichColors:M,closeButton:P,style:R,cancelButtonStyle:k,actionButtonStyle:D,className:_="",descriptionClassName:A="",duration:K,position:I,gap:z,expandByDefault:O,classNames:L,icons:B,closeButtonAriaLabel:U="Close toast"}=e,[W,$]=d.useState(null),[F,T]=d.useState(null),[j,V]=d.useState(!1),[N,Z]=d.useState(!1),[he,te]=d.useState(!1),[ye,Q]=d.useState(!1),[Ne,_e]=d.useState(!1),[Jn,Xr]=d.useState(0),[ii,ai]=d.useState(0),ae=d.useRef(c.duration||K||zd),Gt=d.useRef(null),Qe=d.useRef(null),Zr=b===0,Mg=b+1<=m,Ye=c.type,er=c.dismissible!==!1,Og=c.className||"",Tg=c.descriptionClassName||"",si=d.useMemo(()=>v.findIndex(ne=>ne.toastId===c.id)||0,[v,c.id]),Dg=d.useMemo(()=>{var ne;return(ne=c.closeButton)!=null?ne:P},[c.closeButton,P]),Lu=d.useMemo(()=>c.duration||K||zd,[c.duration,K]),qa=d.useRef(0),tr=d.useRef(0),Fu=d.useRef(0),nr=d.useRef(null),[_g,Lg]=I.split("-"),Iu=d.useMemo(()=>v.reduce((ne,Pe,Le)=>Le>=si?ne:ne+Pe.height,0),[v,si]),ju=f$(),Fg=c.invert||h,Wa=Ye==="loading";tr.current=d.useMemo(()=>si*z+Iu,[si,Iu]),d.useEffect(()=>{ae.current=Lu},[Lu]),d.useEffect(()=>{V(!0)},[]),d.useEffect(()=>{const ne=Qe.current;if(ne){const Pe=ne.getBoundingClientRect().height;return ai(Pe),g(Le=>[{toastId:c.id,height:Pe,position:c.position},...Le]),()=>g(Le=>Le.filter(Xe=>Xe.toastId!==c.id))}},[g,c.id]),d.useLayoutEffect(()=>{if(!j)return;const ne=Qe.current,Pe=ne.style.height;ne.style.height="auto";const Le=ne.getBoundingClientRect().height;ne.style.height=Pe,ai(Le),g(Xe=>Xe.find(Te=>Te.toastId===c.id)?Xe.map(Te=>Te.toastId===c.id?{...Te,height:Le}:Te):[{toastId:c.id,height:Le,position:c.position},...Xe])},[j,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Qt=d.useCallback(()=>{Z(!0),Xr(tr.current),g(ne=>ne.filter(Pe=>Pe.toastId!==c.id)),setTimeout(()=>{S(c)},E$)},[c,S,g,tr]);d.useEffect(()=>{if(c.promise&&Ye==="loading"||c.duration===1/0||c.type==="loading")return;let ne;return w||f||ju?(()=>{if(Fu.current<qa.current){const Xe=new Date().getTime()-qa.current;ae.current=ae.current-Xe}Fu.current=new Date().getTime()})():(()=>{ae.current!==1/0&&(qa.current=new Date().getTime(),ne=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Qt()},ae.current))})(),()=>clearTimeout(ne)},[w,f,c,Ye,ju,Qt]),d.useEffect(()=>{c.delete&&(Qt(),c.onDismiss==null||c.onDismiss.call(c,c))},[Qt,c.delete]);function Ig(){var ne;if(B!=null&&B.loading){var Pe;return d.createElement("div",{className:Rt(L==null?void 0:L.loader,c==null||(Pe=c.classNames)==null?void 0:Pe.loader,"sonner-loader"),"data-visible":Ye==="loading"},B.loading)}return d.createElement(a$,{className:Rt(L==null?void 0:L.loader,c==null||(ne=c.classNames)==null?void 0:ne.loader),visible:Ye==="loading"})}const jg=c.icon||(B==null?void 0:B[Ye])||o$(Ye);var Nu,Au;return d.createElement("li",{tabIndex:0,ref:Qe,className:Rt(_,Og,L==null?void 0:L.toast,c==null||(t=c.classNames)==null?void 0:t.toast,L==null?void 0:L.default,L==null?void 0:L[Ye],c==null||(n=c.classNames)==null?void 0:n[Ye]),"data-sonner-toast":"","data-rich-colors":(Nu=c.richColors)!=null?Nu:M,"data-styled":!(c.jsx||c.unstyled||p),"data-mounted":j,"data-promise":!!c.promise,"data-swiped":Ne,"data-removed":N,"data-visible":Mg,"data-y-position":_g,"data-x-position":Lg,"data-index":b,"data-front":Zr,"data-swiping":he,"data-dismissible":er,"data-type":Ye,"data-invert":Fg,"data-swipe-out":ye,"data-swipe-direction":F,"data-expanded":!!(w||O&&j),"data-testid":c.testId,style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":`${N?Jn:tr.current}px`,"--initial-height":O?"auto":`${ii}px`,...R,...c.style},onDragEnd:()=>{te(!1),$(null),nr.current=null},onPointerDown:ne=>{ne.button!==2&&(Wa||!er||(Gt.current=new Date,Xr(tr.current),ne.target.setPointerCapture(ne.pointerId),ne.target.tagName!=="BUTTON"&&(te(!0),nr.current={x:ne.clientX,y:ne.clientY})))},onPointerUp:()=>{var ne,Pe,Le;if(ye||!er)return;nr.current=null;const Xe=Number(((ne=Qe.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),li=Number(((Pe=Qe.current)==null?void 0:Pe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Te=new Date().getTime()-((Le=Gt.current)==null?void 0:Le.getTime()),at=W==="x"?Xe:li,ui=Math.abs(at)/Te;if(Math.abs(at)>=S$||ui>.11){Xr(tr.current),c.onDismiss==null||c.onDismiss.call(c,c),T(W==="x"?Xe>0?"right":"left":li>0?"down":"up"),Qt(),Q(!0);return}else{var mt,vt;(mt=Qe.current)==null||mt.style.setProperty("--swipe-amount-x","0px"),(vt=Qe.current)==null||vt.style.setProperty("--swipe-amount-y","0px")}_e(!1),te(!1),$(null)},onPointerMove:ne=>{var Pe,Le,Xe;if(!nr.current||!er||((Pe=window.getSelection())==null?void 0:Pe.toString().length)>0)return;const Te=ne.clientY-nr.current.y,at=ne.clientX-nr.current.x;var ui;const mt=(ui=e.swipeDirections)!=null?ui:P$(I);!W&&(Math.abs(at)>1||Math.abs(Te)>1)&&$(Math.abs(at)>Math.abs(Te)?"x":"y");let vt={x:0,y:0};const Ku=En=>1/(1.5+Math.abs(En)/20);if(W==="y"){if(mt.includes("top")||mt.includes("bottom"))if(mt.includes("top")&&Te<0||mt.includes("bottom")&&Te>0)vt.y=Te;else{const En=Te*Ku(Te);vt.y=Math.abs(En)<Math.abs(Te)?En:Te}}else if(W==="x"&&(mt.includes("left")||mt.includes("right")))if(mt.includes("left")&&at<0||mt.includes("right")&&at>0)vt.x=at;else{const En=at*Ku(at);vt.x=Math.abs(En)<Math.abs(at)?En:at}(Math.abs(vt.x)>0||Math.abs(vt.y)>0)&&_e(!0),(Le=Qe.current)==null||Le.style.setProperty("--swipe-amount-x",`${vt.x}px`),(Xe=Qe.current)==null||Xe.style.setProperty("--swipe-amount-y",`${vt.y}px`)}},Dg&&!c.jsx&&Ye!=="loading"?d.createElement("button",{"aria-label":U,"data-disabled":Wa,"data-close-button":!0,onClick:Wa||!er?()=>{}:()=>{Qt(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Rt(L==null?void 0:L.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Au=B==null?void 0:B.close)!=null?Au:d$):null,(Ye||c.icon||c.promise)&&c.icon!==null&&((B==null?void 0:B[Ye])!==null||c.icon)?d.createElement("div",{"data-icon":"",className:Rt(L==null?void 0:L.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Ig():null,c.type!=="loading"?jg:null):null,d.createElement("div",{"data-content":"",className:Rt(L==null?void 0:L.content,c==null||(i=c.classNames)==null?void 0:i.content)},d.createElement("div",{"data-title":"",className:Rt(L==null?void 0:L.title,c==null||(a=c.classNames)==null?void 0:a.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?d.createElement("div",{"data-description":"",className:Rt(A,Tg,L==null?void 0:L.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),d.isValidElement(c.cancel)?c.cancel:c.cancel&&Oi(c.cancel)?d.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||k,onClick:ne=>{Oi(c.cancel)&&er&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ne),Qt())},className:Rt(L==null?void 0:L.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,d.isValidElement(c.action)?c.action:c.action&&Oi(c.action)?d.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||D,onClick:ne=>{Oi(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ne),!ne.defaultPrevented&&Qt())},className:Rt(L==null?void 0:L.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Ud(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function k$(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,a=i?"--mobile-offset":"--offset",s=i?w$:x$;function l(u){["top","right","bottom","left"].forEach(h=>{n[`${a}-${h}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const M$=d.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:h,mobileOffset:c,theme:p="light",richColors:f,duration:g,style:m,visibleToasts:v=y$,toastOptions:b,dir:x=Ud(),gap:w=$$,icons:S,containerAriaLabel:M="Notifications"}=t,[P,R]=d.useState([]),k=d.useMemo(()=>r?P.filter(j=>j.toasterId===r):P.filter(j=>!j.toasterId),[P,r]),D=d.useMemo(()=>Array.from(new Set([i].concat(k.filter(j=>j.position).map(j=>j.position)))),[k,i]),[_,A]=d.useState([]),[K,I]=d.useState(!1),[z,O]=d.useState(!1),[L,B]=d.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=d.useRef(null),W=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=d.useRef(null),F=d.useRef(!1),T=d.useCallback(j=>{R(V=>{var N;return(N=V.find(Z=>Z.id===j.id))!=null&&N.delete||qe.dismiss(j.id),V.filter(({id:Z})=>Z!==j.id)})},[]);return d.useEffect(()=>qe.subscribe(j=>{if(j.dismiss){requestAnimationFrame(()=>{R(V=>V.map(N=>N.id===j.id?{...N,delete:!0}:N))});return}setTimeout(()=>{Br.flushSync(()=>{R(V=>{const N=V.findIndex(Z=>Z.id===j.id);return N!==-1?[...V.slice(0,N),{...V[N],...j},...V.slice(N+1)]:[j,...V]})})})}),[P]),d.useEffect(()=>{if(p!=="system"){B(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;const j=window.matchMedia("(prefers-color-scheme: dark)");try{j.addEventListener("change",({matches:V})=>{B(V?"dark":"light")})}catch{j.addListener(({matches:N})=>{try{B(N?"dark":"light")}catch(Z){console.error(Z)}})}},[p]),d.useEffect(()=>{P.length<=1&&I(!1)},[P]),d.useEffect(()=>{const j=V=>{var N;if(a.every(te=>V[te]||V.code===te)){var he;I(!0),(he=U.current)==null||he.focus()}V.code==="Escape"&&(document.activeElement===U.current||(N=U.current)!=null&&N.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[a]),d.useEffect(()=>{if(U.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,F.current=!1)}},[U.current]),d.createElement("section",{ref:n,"aria-label":`${M} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},D.map((j,V)=>{var N;const[Z,he]=j.split("-");return k.length?d.createElement("ol",{key:j,dir:x==="auto"?Ud():x,tabIndex:-1,ref:U,className:u,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":Z,"data-x-position":he,style:{"--front-toast-height":`${((N=_[0])==null?void 0:N.height)||0}px`,"--width":`${C$}px`,"--gap":`${w}px`,...m,...k$(h,c)},onBlur:te=>{F.current&&!te.currentTarget.contains(te.relatedTarget)&&(F.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||F.current||(F.current=!0,$.current=te.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{z||I(!1)},onDragEnd:()=>I(!1),onPointerDown:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},k.filter(te=>!te.position&&V===0||te.position===j).map((te,ye)=>{var Q,Ne;return d.createElement(R$,{key:te.id,icons:S,index:ye,toast:te,defaultRichColors:f,duration:(Q=b==null?void 0:b.duration)!=null?Q:g,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:o,visibleToasts:v,closeButton:(Ne=b==null?void 0:b.closeButton)!=null?Ne:l,interacting:z,position:j,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,closeButtonAriaLabel:b==null?void 0:b.closeButtonAriaLabel,removeToast:T,toasts:k.filter(_e=>_e.position==te.position),heights:_.filter(_e=>_e.position==te.position),setHeights:A,expandByDefault:s,gap:w,expanded:K,swipeDirections:t.swipeDirections})})):null}))});var O$=function(e){var t=e.showCleanAllButton,n=e.queueName,r=e.status,o=e.queue,i=ue.queue.clean.useMutation({onSuccess:function(){dr.success("All ".concat(r," jobs have been removed"))}}),a=i.mutate,s=i.status,l=Be(Be(Be(Be(Be([{name:"Completed",status:"completed"},{name:"Failed",status:"failed"},{name:"Active",status:"active"}],o!=null&&o.supports.priorities?[{name:"Prioritized",status:"prioritized"}]:[],!0),[{name:"Waiting",status:"waiting"}],!1),o!=null&&o.supports.flows?[{name:"Waiting Children",status:"waiting-children"}]:[],!0),[{name:"Delayed",status:"delayed"}],!1),o!=null&&o.supports.pause?[{name:"Paused",status:"paused"}]:[],!0);return y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("div",{className:"flex items-center space-x-3",children:l.map(function(u){var h=u.status===r;return y.jsxs(ka,{to:"?status=".concat(u.status),className:Fr("flex items-center space-x-2 rounded-md px-3 py-1 font-medium transition duration-150 ease-in-out",{"text-slate-500 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800":!h,"bg-green-50 text-green-900 dark:bg-green-900 dark:text-green-50":h&&u.status==="completed","bg-red-50 text-red-900 dark:bg-red-900 dark:text-red-100":h&&u.status==="failed","bg-cyan-50 text-cyan-900 dark:bg-cyan-900 dark:text-cyan-50":h&&u.status==="active","bg-purple-50 text-purple-900 dark:bg-purple-900 dark:text-purple-50":h&&u.status==="prioritized","bg-amber-50 text-amber-900 dark:bg-amber-900 dark:text-amber-50":h&&u.status==="waiting","bg-orange-50 text-orange-900 dark:bg-orange-900 dark:text-orange-50":h&&u.status==="waiting-children","bg-indigo-50 text-indigo-900 dark:bg-indigo-900 dark:text-indigo-50":h&&u.status==="delayed","bg-stone-50 text-stone-900 dark:bg-stone-900 dark:text-stone-50":h&&u.status==="paused"}),children:[y.jsx("span",{children:u.name}),o!=null&&o.counts[u.status]?y.jsx("span",{className:Fr("rounded-md px-1.5 py-0.5 text-xs font-semibold",{"bg-slate-400 text-slate-50 dark:bg-slate-600 dark:text-slate-100":!h,"bg-green-600 text-green-50 dark:bg-green-700 dark:text-green-100":h&&u.status==="completed","bg-red-600 text-red-50 dark:bg-red-700 dark:text-red-100":h&&u.status==="failed","bg-cyan-600 text-cyan-50 dark:bg-cyan-700 dark:text-cyan-100":h&&u.status==="active","bg-purple-600 text-purple-50 dark:bg-purple-700 dark:text-purple-100":h&&u.status==="prioritized","bg-amber-600 text-amber-50 dark:bg-amber-700 dark:text-amber-100":h&&u.status==="waiting","bg-orange-600 text-orange-50 dark:bg-orange-700 dark:text-orange-100":h&&u.status==="waiting-children","bg-indigo-600 text-indigo-50 dark:bg-indigo-700 dark:text-indigo-100":h&&u.status==="delayed","bg-stone-600 text-stone-50 dark:bg-stone-700 dark:text-stone-100":h&&u.status==="paused"}),children:o.counts[u.status]}):null]},u.name)})}),t&&r!=="waiting-children"&&(o!=null&&o.supports.clean)?y.jsx(n$,{title:"Are you absolutely sure?",description:"This action cannot be undone. This will permanently remove all ".concat(r," jobs from the queue."),action:y.jsx(xn,{variant:"filled",colorScheme:"red",label:"Yes, remove jobs",onClick:function(){return a({queueName:n,status:r})}}),children:y.jsx(xn,{colorScheme:"yellow",icon:y.jsx(zr,{}),label:"Clean all",size:"sm",isLoading:s==="pending"})}):null]})};function qd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T$(e){if(Array.isArray(e))return e}function D$(e,t,n){return(t=A$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(h){u=!0,o=h}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function L$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
63
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
62
|
+
`)}function G6(e){return function(){return e}}var _d=function(){try{var e=og(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Q6=_d?function(e,t){return _d(e,"toString",{configurable:!0,enumerable:!1,value:G6(t),writable:!0})}:rg,Y6=dg(Q6);function X6(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Z6(e,t,n,r){for(var o=e.length,i=n+-1;++i<o;)if(t(e[i],i,e))return i;return-1}function J6(e){return e!==e}function ew(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function tw(e,t,n){return t===t?ew(e,t,n):Z6(e,J6,n)}function nw(e,t){var n=e==null?0:e.length;return!!n&&tw(e,t,0)>-1}var rw=1,ow=2,iw=8,aw=16,sw=32,lw=64,uw=128,cw=256,dw=512,fw=[["ary",uw],["bind",rw],["bindKey",ow],["curry",iw],["curryRight",aw],["flip",dw],["partial",sw],["partialRight",lw],["rearg",cw]];function hw(e,t){return X6(fw,function(n){var r="_."+n[0];t&n[1]&&!nw(e,r)&&e.push(r)}),e.sort()}function hg(e,t,n){var r=t+"";return Y6(e,W6(r,hw(U6(r),n)))}var pw=4,gw=8,Ld=32,Fd=64;function pg(e,t,n,r,o,i,a,s,l,u){var h=t&gw,c=h?a:void 0,p=h?void 0:a,f=h?i:void 0,m=h?void 0:i;t|=h?Ld:Fd,t&=~(h?Fd:Ld),t&pw||(t&=-4);var g=[e,t,o,f,c,m,p,s,l,u],v=n.apply(void 0,g);return A6(e)&&fg(v,g),v.placeholder=r,hg(v,e,t)}function gg(e){var t=e;return t.placeholder}var mw=9007199254740991,vw=/^(?:0|[1-9]\d*)$/;function bw(e,t){var n=typeof e;return t=t??mw,!!t&&(n=="number"||n!="symbol"&&vw.test(e))&&e>-1&&e%1==0&&e<t}var yw=Math.min;function xw(e,t){for(var n=e.length,r=yw(t.length,n),o=cg(e);r--;){var i=t[r];e[r]=bw(i,n)?o[i]:void 0}return e}var Id="__lodash_placeholder__";function va(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];(a===t||a===Id)&&(e[n]=Id,i[o++]=n)}return i}var ww=1,Cw=2,$w=8,Sw=16,Ew=128,Pw=512;function ju(e,t,n,r,o,i,a,s,l,u){var h=t&Ew,c=t&ww,p=t&Cw,f=t&($w|Sw),m=t&Pw,g=p?void 0:Ko(e);function v(){for(var b=arguments.length,x=Array(b),w=b;w--;)x[w]=arguments[w];if(f)var $=gg(v),M=O6(x,$);if(r&&(x=sg(x,r,o,f)),i&&(x=lg(x,i,a,f)),b-=M,f&&b<u){var R=va(x,$);return pg(e,t,ju,v.placeholder,n,x,R,s,l,u-b)}var P=c?n:this,k=p?P[e]:e;return b=x.length,s?x=xw(x,s):m&&b>1&&x.reverse(),h&&l<b&&(x.length=l),this&&this!==Jn&&this instanceof v&&(k=g||Ko(k)),k.apply(P,x)}return v}function Rw(e,t,n){var r=Ko(e);function o(){for(var i=arguments.length,a=Array(i),s=i,l=gg(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:va(a,l);if(i-=u.length,i<n)return pg(e,t,ju,o.placeholder,void 0,a,u,void 0,void 0,n-i);var h=this&&this!==Jn&&this instanceof o?r:e;return ag(h,this,a)}return o}var kw=1;function Mw(e,t,n,r){var o=t&kw,i=Ko(e);function a(){for(var s=-1,l=arguments.length,u=-1,h=r.length,c=Array(h+l),p=this&&this!==Jn&&this instanceof a?i:e;++u<h;)c[u]=r[u];for(;l--;)c[u++]=arguments[++s];return ag(p,o?n:this,c)}return a}var jd="__lodash_placeholder__",Ts=1,Ow=2,Tw=4,Nd=8,fo=128,Ad=256,Dw=Math.min;function _w(e,t){var n=e[1],r=t[1],o=n|r,i=o<(Ts|Ow|fo),a=r==fo&&n==Nd||r==fo&&n==Ad&&e[7].length<=t[8]||r==(fo|Ad)&&t[7].length<=t[8]&&n==Nd;if(!(i||a))return e;r&Ts&&(e[2]=t[2],o|=n&Ts?0:Tw);var s=t[3];if(s){var l=e[3];e[3]=l?sg(l,s,t[4]):s,e[4]=l?va(e[3],jd):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?lg(l,s,t[6]):s,e[6]=l?va(e[5],jd):t[6]),s=t[7],s&&(e[7]=s),r&fo&&(e[8]=e[8]==null?t[8]:Dw(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}var Lw="Expected a function",Kd=1,Fw=2,Bd=8,Hd=16,Vd=32,Iw=64,zd=Math.max;function jw(e,t,n,r,o,i,a,s){var l=t&Fw;if(!l&&typeof e!="function")throw new TypeError(Lw);var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),a=a===void 0?a:zd(kd(a),0),s=s===void 0?s:kd(s),u-=o?o.length:0,t&Iw){var h=r,c=o;r=o=void 0}var p=l?void 0:ug(e),f=[e,t,n,r,o,h,c,i,a,s];if(p&&_w(f,p),e=f[0],t=f[1],n=f[2],r=f[3],o=f[4],s=f[9]=f[9]===void 0?l?0:e.length:zd(f[9]-u,0),!s&&t&(Bd|Hd)&&(t&=-25),!t||t==Kd)var m=R6(e,t,n);else t==Bd||t==Hd?m=Rw(e,t,s):(t==Vd||t==(Kd|Vd))&&!o.length?m=Mw(e,t,n,r):m=ju.apply(void 0,f);var g=p?ig:fg;return hg(g(m,f),e,t)}var Nw=8;function ba(e,t,n){t=n?void 0:t;var r=jw(e,Nw,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=ba.placeholder,r}ba.placeholder={};function Aw(e){const t=e[0],n=e[1],r=e[2];let o,i,a;return o=t*1+n*0+r*1.13983,i=t*1+n*-.39465+r*-.5806,a=t*1+n*2.02311+r*0,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[o*255,i*255,a*255]}function Kw(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=t*.299+n*.587+r*.114,i=t*-.14713+n*-.28886+r*.436,a=t*.615+n*-.51499+r*-.10001;return[o,i,a]}const Bw={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},Hw={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},Vw={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},zw={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},Uw={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},qw={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},Ww={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},Gw={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},Qw={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},Yw={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},Xw={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},Zw={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},Jw={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},eC={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},tC={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},nC={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},rC={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},oC={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},iC={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},aC={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},sC={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},lC={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},uC={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},cC={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},dC={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},fC={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},hC={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},pC={scheme:"nicinabox",author:"nicinabox (http://github.com/nicinabox)",base00:"#2A2F3A",base01:"#3C444F",base02:"#4F5A65",base03:"#BEBEBE",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#FFFFFF",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#FC6D24",base0A:"#ddb26f",base0B:"#A1C659",base0C:"#12cfc0",base0D:"#6FB3D2",base0E:"#D381C3",base0F:"#deaf8f"},gC={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},mC={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},vC={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},bC={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},yC={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},xC={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},wC={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},CC={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},$C={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},SC={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},mg={threezerotwofour:Bw,apathy:Hw,ashes:Vw,atelierDune:zw,atelierForest:Uw,atelierHeath:qw,atelierLakeside:Ww,atelierSeaside:Gw,bespin:Qw,brewer:Yw,bright:Xw,chalk:Zw,codeschool:Jw,colors:eC,default:tC,eighties:nC,embers:rC,flat:oC,google:iC,grayscale:aC,greenscreen:sC,harmonic:lC,hopscotch:uC,isotope:cC,marrakesh:dC,mocha:fC,monokai:hC,nicinabox:pC,ocean:gC,paraiso:mC,pop:vC,railscasts:bC,shapeshifter:yC,solarized:xC,summerfruit:wC,tomorrow:CC,tube:$C,twilight:SC},vg=mg.default,Ud=Object.keys(vg),EC=e=>e<.25?1:e<.5?.9-e:1.1-e,PC=e=>{const t=Sd(e),[n,r,o]=Kw(t.array()),i=[EC(n),r,o],a=Aw(i);return Sd.rgb(a).hex()},ar=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),RC=(e,t)=>{if(e===void 0)return t;if(t===void 0)return e;const n=typeof e,r=typeof t;switch(n){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return ar({className:e,style:t});case"function":return(o,...i)=>ar({className:e})(t(o,...i))}break;case"object":switch(r){case"string":return ar({className:t,style:e});case"object":return{...t,...e};case"function":return(o,...i)=>ar({style:e})(t(o,...i))}break;case"function":switch(r){case"string":return(o,...i)=>e(ar(o)({className:t}),...i);case"object":return(o,...i)=>e(ar(o)({style:t}),...i);case"function":return(o,...i)=>e(t(o,...i),...i)}}},kC=(e,t)=>{const n=Object.keys(t);for(const r in e)n.indexOf(r)===-1&&n.push(r);return n.reduce((r,o)=>(r[o]=RC(e[o],t[o]),r),{})},MC=(e,t,...n)=>{if(t===null)return e;Array.isArray(t)||(t=[t]);const o=t.map(i=>e[i]).filter(Boolean).reduce((i,a)=>(typeof a=="string"?i.className=[i.className,a].filter(Boolean).join(" "):typeof a=="object"?i.style={...i.style,...a}:typeof a=="function"&&(i={...i,...a(i,...n)}),i),{className:"",style:{}});return o.className||delete o.className,Object.keys(o.style).length===0&&delete o.style,o},Vl=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?PC(e[n]):n==="scheme"?e[n]+":inverted":e[n],t),{}),OC=ba((e,t={},n={},...r)=>{const{defaultBase16:o=vg,base16Themes:i=null}=t,a=TC(n,i);a&&(n={...a,...n});const s=Ud.reduce((c,p)=>(c[p]=n[p]||o[p],c),{}),l=Object.keys(n).reduce((c,p)=>(Ud.indexOf(p)===-1&&(c[p]=n[p]),c),{}),u=e(s),h=kC(l,u);return ba(MC,2)(h,...r)},3),bg=e=>!!e.extend,TC=(e,t)=>{if(e&&bg(e)&&e.extend&&(e=e.extend),typeof e=="string"){const[n,r]=e.split(":");t?e=t[n]:e=mg[n],r==="inverted"&&(e=Vl(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},DC=e=>typeof e=="string"?`${e}:inverted`:e&&bg(e)&&e.extend?typeof e.extend=="string"?{...e,extend:`${e.extend}:inverted`}:{...e,extend:Vl(e.extend)}:e&&Vl(e);function _C(e){const t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&typeof e[Symbol.iterator]=="function"?"Iterable":t==="Custom"&&e.constructor!==Object&&e instanceof Object?"Object":t}function yg({styling:e,arrowStyle:t="single",expanded:n,nodeType:r,onClick:o}){return d.createElement("div",{...e("arrowContainer",t),onClick:o},d.createElement("div",{...e(["arrow","arrowSign"],r,n,t)},"▶",t==="double"&&d.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function LC(e,t){return e==="Object"?Object.keys(t).length:e==="Array"?t.length:1/0}function FC(e){return typeof e.set=="function"}function IC(e,t,n,r=0,o=1/0){let i;if(e==="Object"){let a=Object.getOwnPropertyNames(t);n&&a.sort(n===!0?void 0:n),a=a.slice(r,o+1),i={entries:a.map(s=>({key:s,value:t[s]}))}}else if(e==="Array")i={entries:t.slice(r,o+1).map((a,s)=>({key:s+r,value:a}))};else{let a=0;const s=[];let l=!0;const u=FC(t);for(const h of t){if(a>o){l=!1;break}r<=a&&(u&&Array.isArray(h)?typeof h[0]=="string"||typeof h[0]=="number"?s.push({key:h[0],value:h[1]}):s.push({key:`[entry ${a}]`,value:{"[key]":h[0],"[value]":h[1]}}):s.push({key:a,value:h})),a++}i={hasMore:!l,entries:s}}return i}function Ds(e,t,n){const r=[];for(;t-e>n*n;)n=n*n;for(let o=e;o<=t;o+=n)r.push({from:o,to:Math.min(t,o+n-1)});return r}function jC(e,t,n,r,o=0,i=1/0){const a=IC.bind(null,e,t,n);if(!r)return a().entries;const s=i<1/0,l=Math.min(i-o,LC(e,t));if(e!=="Iterable"){if(l<=r||r<7)return a(o,i).entries}else if(l<=r&&!s)return a(o,i).entries;let u;if(e==="Iterable"){const{hasMore:h,entries:c}=a(o,o+r-1);u=h?[...c,...Ds(o+r,o+2*r-1,r)]:c}else u=s?Ds(o,i,r):[...a(0,r-5).entries,...Ds(r-4,l-5,r),...a(l-4,l-1).entries];return u}function NC(e){const{styling:t,from:n,to:r,renderChildNodes:o,nodeType:i}=e,[a,s]=d.useState(!1),l=d.useCallback(()=>{s(!a)},[a]);return a?d.createElement("div",{...t("itemRange",a)},o(e,n,r)):d.createElement("div",{...t("itemRange",a),onClick:l},d.createElement(yg,{nodeType:i,styling:t,expanded:!1,onClick:l,arrowStyle:"double"}),`${n} ... ${r}`)}function AC(e){return e.to!==void 0}function xg(e,t,n){const{nodeType:r,data:o,collectionLimit:i,circularCache:a,keyPath:s,postprocessValue:l,sortObjectKeys:u}=e,h=[];return jC(r,o,u,i,t,n).forEach(c=>{if(AC(c))h.push(d.createElement(NC,{...e,key:`ItemRange--${c.from}-${c.to}`,from:c.from,to:c.to,renderChildNodes:xg}));else{const{key:p,value:f}=c,m=a.includes(f);h.push(d.createElement(wg,{...e,postprocessValue:l,collectionLimit:i,key:`Node--${p}`,keyPath:[p,...s],value:l(f),circularCache:[...a,f],isCircular:m,hideRoot:!1}))}}),h}function Nu(e){const{circularCache:t=[],collectionLimit:n,createItemString:r,data:o,expandable:i,getItemString:a,hideRoot:s,isCircular:l,keyPath:u,labelRenderer:h,level:c=0,nodeType:p,nodeTypeIndicator:f,shouldExpandNodeInitially:m,styling:g}=e,[v,b]=d.useState(l?!1:m(u,o,c)),x=d.useCallback(()=>{i&&b(!v)},[i,v]),w=v||s&&c===0?xg({...e,circularCache:t,level:c+1}):null,$=d.createElement("span",{...g("nestedNodeItemType",v)},f),M=a(p,o,$,r(o,n),u),R=[u,p,v,i];return s?d.createElement("li",{...g("rootNode",...R)},d.createElement("ul",{...g("rootNodeChildren",...R)},w)):d.createElement("li",{...g("nestedNode",...R)},i&&d.createElement(yg,{styling:g,nodeType:p,expanded:v,onClick:x}),d.createElement("label",{...g(["label","nestedNodeLabel"],...R),onClick:x},h(...R)),d.createElement("span",{...g("nestedNodeItemString",...R),onClick:x},M),d.createElement("ul",{...g("nestedNodeChildren",...R)},w))}function KC(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function BC({data:e,...t}){return d.createElement(Nu,{...t,data:e,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:KC,expandable:Object.getOwnPropertyNames(e).length>0})}function HC(e){return`${e.length} ${e.length!==1?"items":"item"}`}function VC({data:e,...t}){return d.createElement(Nu,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:HC,expandable:e.length>0})}function zC(e,t){let n=0,r=!1;if(Number.isSafeInteger(e.size))n=e.size;else for(const o of e){if(t&&n+1>t){r=!0;break}n+=1}return`${r?">":""}${n} ${n!==1?"entries":"entry"}`}function UC(e){return d.createElement(Nu,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:zC,expandable:!0})}function Ft({nodeType:e,styling:t,labelRenderer:n,keyPath:r,valueRenderer:o,value:i,valueGetter:a=s=>s}){return d.createElement("li",{...t("value",e,r)},d.createElement("label",{...t(["label","valueLabel"],e,r)},n(r,e,!1,!1)),d.createElement("span",{...t("valueText",e,r)},o(a(i),i,...r)))}function wg({getItemString:e,keyPath:t,labelRenderer:n,styling:r,value:o,valueRenderer:i,isCustomNode:a,...s}){const l=a(o)?"Custom":_C(o),u={getItemString:e,key:t[0],keyPath:t,labelRenderer:n,nodeType:l,styling:r,value:o,valueRenderer:i},h={...s,...u,data:o,isCustomNode:a};switch(l){case"Object":case"Error":case"WeakMap":case"WeakSet":return d.createElement(BC,{...h});case"Array":return d.createElement(VC,{...h});case"Iterable":case"Map":case"Set":return d.createElement(UC,{...h});case"String":return d.createElement(Ft,{...u,valueGetter:c=>`"${c}"`});case"Number":return d.createElement(Ft,{...u});case"Boolean":return d.createElement(Ft,{...u,valueGetter:c=>c?"true":"false"});case"Date":return d.createElement(Ft,{...u,valueGetter:c=>c.toISOString()});case"Null":return d.createElement(Ft,{...u,valueGetter:()=>"null"});case"Undefined":return d.createElement(Ft,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return d.createElement(Ft,{...u,valueGetter:c=>c.toString()});case"Custom":return d.createElement(Ft,{...u});default:return d.createElement(Ft,{...u,valueGetter:()=>`<${l}>`})}}const qC={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},WC=e=>({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}),GC=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR}),QC=e=>{const t=WC(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:({style:n},r,o)=>({style:{...n,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:o.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}),label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:({style:n},r)=>({style:{...n,color:GC(t)[r]}}),itemRange:(n,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:n},r,o)=>({style:{...n,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:o?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:o?"rotateZ(90deg)":"rotateZ(0deg)",transform:o?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:n},r)=>({style:{...n,display:"inline-block",paddingRight:"0.5em",paddingLeft:r==="double"?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:n},r,o,i,a)=>({style:{...n,position:"relative",paddingTop:"0.25em",marginLeft:r.length>1?"0.875em":0,paddingLeft:a?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:n},r,o,i,a)=>({style:{...n,margin:0,padding:0,WebkitUserSelect:a?"inherit":"text",MozUserSelect:a?"inherit":"text",cursor:a?"pointer":"default"}}),nestedNodeItemString:({style:n},r,o,i)=>({style:{...n,paddingLeft:"0.5em",cursor:"default",color:i?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}),nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:({style:n},r,o)=>({style:{...n,padding:0,margin:0,listStyle:"none",display:o?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},YC=OC(QC,{defaultBase16:qC}),qd=e=>e,XC=(e,t,n)=>n===0,ZC=(e,t,n,r)=>d.createElement("span",null,n," ",r),JC=([e])=>d.createElement("span",null,e,":"),e$=()=>!1;function Eo({data:e,theme:t,invertTheme:n,keyPath:r=["root"],labelRenderer:o=JC,valueRenderer:i=qd,shouldExpandNodeInitially:a=XC,hideRoot:s=!1,getItemString:l=ZC,postprocessValue:u=qd,isCustomNode:h=e$,collectionLimit:c=50,sortObjectKeys:p=!1}){const f=d.useMemo(()=>YC(n?DC(t):t),[t,n]);return d.createElement("ul",{...f("tree")},d.createElement(wg,{keyPath:s?[]:r,value:u(e),isCustomNode:h,styling:f,labelRenderer:o,valueRenderer:i,shouldExpandNodeInitially:a,hideRoot:s,getItemString:l,postprocessValue:u,collectionLimit:c,sortObjectKeys:p}))}var Ua=function(e){var t=e.actions;return y.jsxs(v3,{children:[y.jsx(wu,{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 radix-state-open:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700 dark:radix-state-open:bg-slate-700","aria-label":"Action menu",children:y.jsx(Y2,{width:18,height:18})}),y.jsx(p3,{placement:"bottom left",className:"space-y-0.5 rounded-md border border-slate-200 bg-white/95 p-1 shadow-lg backdrop-blur-md dark:border-slate-700 dark:bg-slate-800/95",offset:5,children:y.jsx(x3,{children:t.map(function(n){return y.jsxs(S3,{className:"flex cursor-default items-center space-x-1.5 rounded-md py-1.5 pl-1.5 pr-8 text-sm font-medium text-slate-900 outline-none transition duration-150 ease-in-out focus:bg-slate-100 dark:text-slate-100 dark:focus:bg-slate-700",onAction:n.onSelect,children:[n.icon,y.jsx("span",{children:n.label})]},n.label)})})})]})},t$=function(e){var t=e.job,n=e.queueName,r=e.queue,o=e.onRemove,i=ue.job.retry.useMutation(),a=i.mutate,s=i.isSuccess,l=ue.job.discard.useMutation(),u=l.mutate,h=l.isSuccess,c=ue.job.rerun.useMutation(),p=c.mutate,f=c.isSuccess,m=ue.job.remove.useMutation(),g=m.mutate,v=m.isSuccess;d.useEffect(function(){(s||h||f||v)&&(o==null||o())},[s,h,f,v,o]);var b={queueName:n,jobId:t.id},x=(r==null?void 0:r.supports.retry)!==!1,w=He(He(He([],t.failedReason&&x?[{label:"Retry",onSelect:function(){a(b)},icon:y.jsx(Lr,{})}]:[],!0),t.finishedAt?[{label:"Rerun",onSelect:function(){p(b)},icon:y.jsx(Lr,{})}]:[{label:"Discard",onSelect:function(){u(b)},icon:y.jsx(n5,{})}],!0),[{label:"Remove",onSelect:function(){g(b)},icon:y.jsx(Ur,{})}],!1);return y.jsx(Ua,{actions:w})},wn=function(e){var t=e.colorScheme,n=t===void 0?"slate":t,r=e.variant,o=r===void 0?"outline":r,i=e.size,a=i===void 0?"md":i,s=e.icon,l=e.label,u=e.isLoading,h=e.onClick,c=e.disabled;return y.jsxs("button",{onClick:h,disabled:u||c,className:Fr("flex items-center space-x-1 rounded-md border text-sm font-medium transition-colors duration-150",{"py-0.5":a==="sm","py-1":a==="md","py-1.5":a==="lg"},[a==="sm"&&s?"pl-1.5 pr-2.5":"px-2.5",a==="md"&&s?"pl-2 pr-3":"px-3",a==="lg"&&s?"pl-2.5 pr-4":"px-4"],{"cursor-not-allowed opacity-50":u||c,"border-yellow-900 text-yellow-900 hover:bg-yellow-50 focus:bg-yellow-50 dark:border-yellow-400 dark:text-yellow-400 dark:hover:bg-yellow-950/30 dark:focus:bg-yellow-950/30":n==="yellow"&&o==="outline","border-slate-900 text-slate-900 hover:bg-slate-50 focus:bg-slate-50 dark:border-slate-400 dark:text-slate-300 dark:hover:bg-slate-800 dark:focus:bg-slate-800":n==="slate"&&o==="outline","border-red-900 text-red-900 hover:bg-red-50 focus:bg-red-50 dark:border-red-400 dark:text-red-400 dark:hover:bg-red-950/30 dark:focus:bg-red-950/30":n==="red"&&o==="outline","border-yellow-800 bg-yellow-800 text-yellow-50 hover:border-yellow-900 hover:bg-yellow-900 focus:border-yellow-900 focus:bg-yellow-900 dark:border-yellow-600 dark:bg-yellow-600 dark:hover:border-yellow-500 dark:hover:bg-yellow-500 dark:focus:border-yellow-500 dark:focus:bg-yellow-500":n==="yellow"&&o==="filled","border-slate-800 bg-slate-800 text-slate-50 hover:border-slate-900 hover:bg-slate-900 focus:border-slate-900 focus:bg-slate-900 dark:border-slate-600 dark:bg-slate-600 dark:hover:border-slate-500 dark:hover:bg-slate-500 dark:focus:border-slate-500 dark:focus:bg-slate-500":n==="slate"&&o==="filled","border-red-800 bg-red-800 text-red-50 hover:border-red-900 hover:bg-red-900 focus:border-red-900 focus:bg-red-900 dark:border-red-600 dark:bg-red-600 dark:hover:border-red-500 dark:hover:bg-red-500 dark:focus:border-red-500 dark:focus:bg-red-500":n==="red"&&o==="filled"}),children:[u?y.jsx("div",{className:"flex w-4 justify-center",children:y.jsx(su,{width:10,height:10,className:"animate-spin"})}):s?y.jsx("div",{className:"flex w-4 justify-center",children:s}):null,y.jsx("span",{children:l})]})},n$=function(e){var t=e.job,n=e.queueName,r=e.onDismiss,o=ue.queue.byName.useQuery({queueName:n}),i=ue.job.retry.useMutation().mutate,a=ue.job.logs.useQuery({jobId:t.id,queueName:n}).data;return y.jsx(Ha,{isOpen:!0,isDismissable:!0,onOpenChange:function(s){s||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Ka,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(s){var l,u,h=s.close;return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mb-4 flex items-start justify-between",children:[y.jsxs("div",{children:[y.jsx(Ba,{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),y.jsxs("span",{className:"text-sm text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),y.jsxs("div",{className:"flex items-center space-x-1",children:[y.jsx(t$,{queueName:n,job:t,queue:(l=o.data)!==null&&l!==void 0?l:void 0,onRemove:r}),y.jsx("button",{className:"flex size-7 items-center justify-center rounded-md bg-slate-50 text-slate-900 outline-none transition duration-150 ease-in-out hover:bg-slate-100 focus:bg-slate-100 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700 dark:focus:bg-slate-700","aria-label":"Close",onClick:function(){r(),h()},children:y.jsx(au,{})})]})]}),y.jsxs("div",{children:[t.failedReason?y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Error"}),y.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:t.failedReason}),y.jsx(wn,{label:"Retry",size:"sm",icon:y.jsx(Lr,{width:14}),onClick:function(){i({queueName:n,jobId:t.id}),r()}})]}):null,y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Eo,{data:t.opts,theme:"monokai"})})]}),y.jsxs("div",{className:"space-y-2 py-4",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Data"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Eo,{data:t.data,theme:"monokai"})})]}),t.returnValue!==void 0&&t.returnValue!==null&&y.jsxs("div",{className:"space-y-2 border-t border-t-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Return value"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Eo,{data:t.returnValue,theme:"monokai"})})]}),!((u=o.data)===null||u===void 0)&&u.supports.logs&&(a!=null&&a.length)?y.jsxs("div",{className:"space-y-2 border-t border-t-slate-200 pt-4 dark:border-t-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Logs"}),y.jsx("div",{className:"space-y-1",children:a==null?void 0:a.map(function(c,p){return y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx("div",{className:"h-4 w-1 rounded-sm bg-slate-300 dark:bg-slate-600"}),y.jsx("p",{className:"font-mono text-sm text-slate-900 dark:text-slate-100",children:c})]},p)})})]}):null]})]})}})})},Oi=g1(),r$=[Oi.display({id:"select",header:function(e){var t=e.table;return y.jsx(da,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return y.jsx(da,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),Oi.accessor("name",{cell:function(e){return y.jsxs("div",{className:"flex w-full items-center space-x-2",children:[y.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:e.cell.row.original.name}),y.jsxs("span",{className:"max-w-[20%] shrink truncate text-sm text-slate-500 dark:text-slate-400",children:["#",e.cell.row.original.id]})]})},header:"Name"}),Oi.display({id:"lifecycle",header:function(){return"Lifecycle"},cell:function(e){var t=e.row.original,n=t.createdAt,r=t.processedAt,o=t.finishedAt,i=t.status,a=t.retriedAt;return y.jsxs("div",{className:"flex items-center space-x-3",children:[y.jsx(_s,{date:new Date(n),variant:"added"}),i==="waiting"?y.jsx(Wd,{}):null,r?y.jsxs(y.Fragment,{children:[y.jsx(Gd,{date:new Date(r),baseDate:new Date(n)}),y.jsx(_s,{date:new Date(r),variant:a?"retried":"processing"})]}):null,i==="active"?y.jsx(Wd,{}):null,o&&r?y.jsxs(y.Fragment,{children:[y.jsx(Gd,{date:new Date(o),baseDate:new Date(r)}),y.jsx(_s,{date:new Date(o),variant:i==="failed"?"failed":"completed"})]}):null]})}}),Oi.display({id:"options",header:"Options",cell:function(e){var t,n=e.row.original.opts;return y.jsxs("div",{className:"flex items-center space-x-2",children:[n.priority?y.jsx(uo,{icon:y.jsx(Z2,{width:12,height:12}),label:n.priority}):null,n.attempts&&n.attempts>1?y.jsx(uo,{icon:y.jsx(Lr,{width:12,height:12}),label:n.attempts}):null,n.lifo?y.jsx(uo,{icon:y.jsx(w5,{width:12,height:12}),label:"LIFO"}):null,n.delay?y.jsx(uo,{icon:y.jsx(o5,{width:12,height:12}),label:n.delay}):null,!((t=n.repeat)===null||t===void 0)&&t.count?y.jsx(uo,{icon:y.jsx(a5,{width:12,height:12}),label:n.repeat.count}):null]})}})],o$=function(e){var t=e.jobs,n=e.totalJobs,r=e.onBottomInView,o=e.isLoading,i=e.isFetchingNextPage,a=e.queueName,s=e.status,l=d.useState({}),u=l[0],h=l[1],c=G7({threshold:0,onChange:function(M){M&&r()}}).ref,p=P1({data:t,columns:r$,getCoreRowModel:E1(),state:{rowSelection:u},onRowSelectionChange:h}),f=t.length===0,m=t.length/(n||0)*100,g=d.useState(null),v=g[0],b=g[1],x=ue.job.retry.useMutation().mutate,w=ue.job.rerun.useMutation().mutate,$=ue.job.bulkRemove.useMutation().mutate;return d.useEffect(function(){p.resetRowSelection()},[s]),y.jsxs("div",{children:[v?y.jsx(n$,{queueName:a,job:v,onDismiss:function(){return b(null)}}):null,y.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:o?y.jsx(F1,{}):y.jsxs("div",{children:[p.getHeaderGroups().map(function(M,R){return y.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,576px,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:M.headers.map(function(P){return y.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(R!==0?"pr-10":"pr-3"),children:P.isPlaceholder?null:sa(P.column.columnDef.header,P.getContext())},P.id)})},M.id)}),p.getRowModel().rows.map(function(M,R){return y.jsx(L1,{isLastRow:p.getRowModel().rows.length!==R+1,isSelected:M.getIsSelected(),onClick:function(){return b(M.original)},layoutVariant:"job",children:M.getVisibleCells().map(function(P,k){return y.jsx("div",{className:"flex h-full items-center ".concat(k!==0?"pr-10":"pr-3"),children:sa(P.column.columnDef.cell,P.getContext())},P.id)})},M.id)}),!o&&f?y.jsx("div",{className:"flex items-center justify-center py-10",children:y.jsx("p",{className:"text-slate-500 dark:text-slate-400",children:"No jobs found"})}):null]})}),!o&&f?null:y.jsx("div",{ref:c,className:"my-3 flex justify-center",children:y.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[y.jsxs("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:["You've viewed ",t.length," of ",n," jobs"]}),y.jsx(P3,{value:m,children:function(M){var R=M.percentage;return y.jsx(y.Fragment,{children:y.jsx("div",{style:{transform:"translateZ(0)"},className:"relative h-0.5 w-[144px] overflow-hidden rounded-sm bg-slate-200 dark:bg-slate-700",children:y.jsx("div",{className:"size-full bg-cyan-500 transition duration-300 ease-in-out",style:{transform:"translateX(-".concat(100-R,"%)")}})})})}}),i?y.jsx(su,{className:"animate-spin text-slate-300 dark:text-slate-600"}):null]})}),p.getSelectedRowModel().rows.length>0?y.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:y.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[y.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[p.getSelectedRowModel().rows.length," selected"]}),s==="completed"||s==="failed"?y.jsx(wn,{label:s==="failed"?"Retry":"Rerun",icon:y.jsx(Lr,{}),size:"sm",onClick:function(){p.getSelectedRowModel().rows.forEach(function(M){s==="failed"?x({queueName:a,jobId:M.original.id}):w({queueName:a,jobId:M.original.id})}),p.resetRowSelection()}}):null,y.jsx(wn,{label:"Delete",colorScheme:"red",icon:y.jsx(Ur,{}),size:"sm",onClick:function(){$({queueName:a,jobIds:p.getSelectedRowModel().rows.map(function(M){return M.original.id})}),p.resetRowSelection()}})]})}):null]})},_s=function(e){var t=e.variant,n=e.date,r={added:"Added to queue",completed:"Completed",failed:"Failed",processing:"Processed",retried:"Retried"};return y.jsx(Lu,{message:"".concat(r[t]," ").concat(_1(n)," ago"),children:y.jsxs("div",{className:"flex items-center space-x-1.5",children:[t==="added"&&y.jsx(O0,{width:14,height:14,className:"rounded-full bg-cyan-50 text-cyan-900 dark:bg-cyan-950 dark:text-cyan-400"}),t==="processing"&&y.jsx(N2,{width:14,height:14,className:"rounded-full bg-slate-50 text-slate-900 dark:bg-slate-800 dark:text-slate-300"}),t==="retried"&&y.jsx(Lr,{width:14,height:14,className:"rounded-full bg-amber-50 text-amber-900 dark:bg-amber-950 dark:text-amber-400"}),t==="completed"&&y.jsx(P0,{width:14,height:14,className:"rounded-full bg-green-50 text-green-900 dark:bg-green-950 dark:text-green-400"}),t==="failed"&&y.jsx(R0,{width:14,height:14,className:"rounded-full bg-red-50 text-red-900 dark:bg-red-950 dark:text-red-400"}),y.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:D1(n,"".concat(t==="added"?"MM/dd ":"","HH:mm:ss"))})]})})},Wd=function(){return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(hl,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),y.jsx(su,{width:14,height:14,className:"animate-spin text-slate-300 dark:text-slate-600"})]})},Gd=function(e){var t=e.date,n=e.baseDate;return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(hl,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),y.jsx("p",{className:"w-7 rounded-sm text-center text-xs text-slate-500 dark:text-slate-400",children:H7(t,n,{locale:{formatDistance:function(r,o){return r==="xSeconds"?"".concat(o,"s"):r==="xMinutes"?"".concat(o,"m"):r==="xHours"?"".concat(o,"h"):r==="xDays"?"".concat(o,"d"):r==="xMonths"?"".concat(o,"mo"):r==="xYears"?"".concat(o,"y"):""}}})}),y.jsx(hl,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"})]})},i$=function(e){var t=e.title,n=e.description,r=e.action,o=e.children;return y.jsxs(d1,{children:[y.jsx(wu,{children:o}),y.jsx(Ha,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Ka,{role:"alertdialog",className:"fixed left-1/2 top-1/2 w-full max-w-md -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(i){var a=i.close;return y.jsxs(y.Fragment,{children:[y.jsx(Ba,{className:"mb-3 text-xl font-semibold text-slate-900 dark:text-slate-100",children:t}),y.jsx("p",{className:"mb-6 text-slate-600 dark:text-slate-400",children:n}),y.jsxs("div",{className:"flex justify-end space-x-3",children:[y.jsx(wn,{onClick:a,label:"Cancel"}),r]})]})}})})]})};function a$(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const s$=e=>{switch(e){case"success":return c$;case"info":return f$;case"warning":return d$;case"error":return h$;default:return null}},l$=Array(12).fill(0),u$=({visible:e,className:t})=>d.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},d.createElement("div",{className:"sonner-spinner"},l$.map((n,r)=>d.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),c$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),d$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),f$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),h$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),p$=d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},d.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),d.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),g$=()=>{const[e,t]=d.useState(document.hidden);return d.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let zl=1;class m${constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:zl++,a=this.toasts.find(l=>l.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:s,title:r}):l):this.addToast({title:r,...o,dismissible:s,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,a;const s=o.then(async u=>{if(a=["resolve",u],d.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(b$(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,m=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...m})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,p=typeof n.description=="function"?await n.description(u):n.description,m=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...m})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,p=typeof n.description=="function"?await n.description(u):n.description,m=typeof c=="object"&&!d.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:p,...m})}}).catch(async u=>{if(a=["reject",u],n.error!==void 0){i=!1;const h=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof h=="object"&&!d.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:c,...f})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,h)=>s.then(()=>a[0]==="reject"?h(a[1]):u(a[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||zl++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qe=new m$,v$=(e,t)=>{const n=(t==null?void 0:t.id)||zl++;return qe.addToast({title:e,...t,id:n}),n},b$=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",y$=v$,x$=()=>qe.toasts,w$=()=>qe.getActiveToasts(),dr=Object.assign(y$,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:x$,getToasts:w$});a$("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Ti(e){return e.label!==void 0}const C$=3,$$="24px",S$="16px",Qd=4e3,E$=356,P$=14,R$=45,k$=200;function Rt(...e){return e.filter(Boolean).join(" ")}function M$(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const O$=e=>{var t,n,r,o,i,a,s,l,u;const{invert:h,toast:c,unstyled:p,interacting:f,setHeights:m,visibleToasts:g,heights:v,index:b,toasts:x,expanded:w,removeToast:$,defaultRichColors:M,closeButton:R,style:P,cancelButtonStyle:k,actionButtonStyle:D,className:L="",descriptionClassName:N="",duration:B,position:A,gap:_,expandByDefault:T,classNames:I,icons:z,closeButtonAriaLabel:G="Close toast"}=e,[q,S]=d.useState(null),[F,O]=d.useState(null),[j,H]=d.useState(!1),[K,X]=d.useState(!1),[pe,U]=d.useState(!1),[de,ve]=d.useState(!1),[St,Gt]=d.useState(!1),[Wa,Zr]=d.useState(0),[Ga,Jr]=d.useState(0),Pn=d.useRef(c.duration||B||Qd),le=d.useRef(null),Ae=d.useRef(null),eo=b===0,to=b+1<=g,De=c.type,er=c.dismissible!==!1,Tg=c.className||"",Dg=c.descriptionClassName||"",li=d.useMemo(()=>v.findIndex(ne=>ne.toastId===c.id)||0,[v,c.id]),_g=d.useMemo(()=>{var ne;return(ne=c.closeButton)!=null?ne:R},[c.closeButton,R]),Au=d.useMemo(()=>c.duration||B||Qd,[c.duration,B]),Qa=d.useRef(0),tr=d.useRef(0),Ku=d.useRef(0),nr=d.useRef(null),[Lg,Fg]=A.split("-"),Bu=d.useMemo(()=>v.reduce((ne,Re,Fe)=>Fe>=li?ne:ne+Re.height,0),[v,li]),Hu=g$(),Ig=c.invert||h,Ya=De==="loading";tr.current=d.useMemo(()=>li*_+Bu,[li,Bu]),d.useEffect(()=>{Pn.current=Au},[Au]),d.useEffect(()=>{H(!0)},[]),d.useEffect(()=>{const ne=Ae.current;if(ne){const Re=ne.getBoundingClientRect().height;return Jr(Re),m(Fe=>[{toastId:c.id,height:Re,position:c.position},...Fe]),()=>m(Fe=>Fe.filter(Ye=>Ye.toastId!==c.id))}},[m,c.id]),d.useLayoutEffect(()=>{if(!j)return;const ne=Ae.current,Re=ne.style.height;ne.style.height="auto";const Fe=ne.getBoundingClientRect().height;ne.style.height=Re,Jr(Fe),m(Ye=>Ye.find(_e=>_e.toastId===c.id)?Ye.map(_e=>_e.toastId===c.id?{..._e,height:Fe}:_e):[{toastId:c.id,height:Fe,position:c.position},...Ye])},[j,c.title,c.description,m,c.id,c.jsx,c.action,c.cancel]);const Qt=d.useCallback(()=>{X(!0),Zr(tr.current),m(ne=>ne.filter(Re=>Re.toastId!==c.id)),setTimeout(()=>{$(c)},k$)},[c,$,m,tr]);d.useEffect(()=>{if(c.promise&&De==="loading"||c.duration===1/0||c.type==="loading")return;let ne;return w||f||Hu?(()=>{if(Ku.current<Qa.current){const Ye=new Date().getTime()-Qa.current;Pn.current=Pn.current-Ye}Ku.current=new Date().getTime()})():(()=>{Pn.current!==1/0&&(Qa.current=new Date().getTime(),ne=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Qt()},Pn.current))})(),()=>clearTimeout(ne)},[w,f,c,De,Hu,Qt]),d.useEffect(()=>{c.delete&&(Qt(),c.onDismiss==null||c.onDismiss.call(c,c))},[Qt,c.delete]);function jg(){var ne;if(z!=null&&z.loading){var Re;return d.createElement("div",{className:Rt(I==null?void 0:I.loader,c==null||(Re=c.classNames)==null?void 0:Re.loader,"sonner-loader"),"data-visible":De==="loading"},z.loading)}return d.createElement(u$,{className:Rt(I==null?void 0:I.loader,c==null||(ne=c.classNames)==null?void 0:ne.loader),visible:De==="loading"})}const Ng=c.icon||(z==null?void 0:z[De])||s$(De);var Vu,zu;return d.createElement("li",{tabIndex:0,ref:Ae,className:Rt(L,Tg,I==null?void 0:I.toast,c==null||(t=c.classNames)==null?void 0:t.toast,I==null?void 0:I.default,I==null?void 0:I[De],c==null||(n=c.classNames)==null?void 0:n[De]),"data-sonner-toast":"","data-rich-colors":(Vu=c.richColors)!=null?Vu:M,"data-styled":!(c.jsx||c.unstyled||p),"data-mounted":j,"data-promise":!!c.promise,"data-swiped":St,"data-removed":K,"data-visible":to,"data-y-position":Lg,"data-x-position":Fg,"data-index":b,"data-front":eo,"data-swiping":pe,"data-dismissible":er,"data-type":De,"data-invert":Ig,"data-swipe-out":de,"data-swipe-direction":F,"data-expanded":!!(w||T&&j),"data-testid":c.testId,style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":`${K?Wa:tr.current}px`,"--initial-height":T?"auto":`${Ga}px`,...P,...c.style},onDragEnd:()=>{U(!1),S(null),nr.current=null},onPointerDown:ne=>{ne.button!==2&&(Ya||!er||(le.current=new Date,Zr(tr.current),ne.target.setPointerCapture(ne.pointerId),ne.target.tagName!=="BUTTON"&&(U(!0),nr.current={x:ne.clientX,y:ne.clientY})))},onPointerUp:()=>{var ne,Re,Fe;if(de||!er)return;nr.current=null;const Ye=Number(((ne=Ae.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ui=Number(((Re=Ae.current)==null?void 0:Re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),_e=new Date().getTime()-((Fe=le.current)==null?void 0:Fe.getTime()),it=q==="x"?Ye:ui,ci=Math.abs(it)/_e;if(Math.abs(it)>=R$||ci>.11){Zr(tr.current),c.onDismiss==null||c.onDismiss.call(c,c),O(q==="x"?Ye>0?"right":"left":ui>0?"down":"up"),Qt(),ve(!0);return}else{var gt,mt;(gt=Ae.current)==null||gt.style.setProperty("--swipe-amount-x","0px"),(mt=Ae.current)==null||mt.style.setProperty("--swipe-amount-y","0px")}Gt(!1),U(!1),S(null)},onPointerMove:ne=>{var Re,Fe,Ye;if(!nr.current||!er||((Re=window.getSelection())==null?void 0:Re.toString().length)>0)return;const _e=ne.clientY-nr.current.y,it=ne.clientX-nr.current.x;var ci;const gt=(ci=e.swipeDirections)!=null?ci:M$(A);!q&&(Math.abs(it)>1||Math.abs(_e)>1)&&S(Math.abs(it)>Math.abs(_e)?"x":"y");let mt={x:0,y:0};const Uu=Rn=>1/(1.5+Math.abs(Rn)/20);if(q==="y"){if(gt.includes("top")||gt.includes("bottom"))if(gt.includes("top")&&_e<0||gt.includes("bottom")&&_e>0)mt.y=_e;else{const Rn=_e*Uu(_e);mt.y=Math.abs(Rn)<Math.abs(_e)?Rn:_e}}else if(q==="x"&&(gt.includes("left")||gt.includes("right")))if(gt.includes("left")&&it<0||gt.includes("right")&&it>0)mt.x=it;else{const Rn=it*Uu(it);mt.x=Math.abs(Rn)<Math.abs(it)?Rn:it}(Math.abs(mt.x)>0||Math.abs(mt.y)>0)&&Gt(!0),(Fe=Ae.current)==null||Fe.style.setProperty("--swipe-amount-x",`${mt.x}px`),(Ye=Ae.current)==null||Ye.style.setProperty("--swipe-amount-y",`${mt.y}px`)}},_g&&!c.jsx&&De!=="loading"?d.createElement("button",{"aria-label":G,"data-disabled":Ya,"data-close-button":!0,onClick:Ya||!er?()=>{}:()=>{Qt(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Rt(I==null?void 0:I.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(zu=z==null?void 0:z.close)!=null?zu:p$):null,(De||c.icon||c.promise)&&c.icon!==null&&((z==null?void 0:z[De])!==null||c.icon)?d.createElement("div",{"data-icon":"",className:Rt(I==null?void 0:I.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||jg():null,c.type!=="loading"?Ng:null):null,d.createElement("div",{"data-content":"",className:Rt(I==null?void 0:I.content,c==null||(i=c.classNames)==null?void 0:i.content)},d.createElement("div",{"data-title":"",className:Rt(I==null?void 0:I.title,c==null||(a=c.classNames)==null?void 0:a.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?d.createElement("div",{"data-description":"",className:Rt(N,Dg,I==null?void 0:I.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),d.isValidElement(c.cancel)?c.cancel:c.cancel&&Ti(c.cancel)?d.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||k,onClick:ne=>{Ti(c.cancel)&&er&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ne),Qt())},className:Rt(I==null?void 0:I.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,d.isValidElement(c.action)?c.action:c.action&&Ti(c.action)?d.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||D,onClick:ne=>{Ti(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ne),!ne.defaultPrevented&&Qt())},className:Rt(I==null?void 0:I.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Yd(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function T$(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,a=i?"--mobile-offset":"--offset",s=i?S$:$$;function l(u){["top","right","bottom","left"].forEach(h=>{n[`${a}-${h}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const D$=d.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:h,mobileOffset:c,theme:p="light",richColors:f,duration:m,style:g,visibleToasts:v=C$,toastOptions:b,dir:x=Yd(),gap:w=P$,icons:$,containerAriaLabel:M="Notifications"}=t,[R,P]=d.useState([]),k=d.useMemo(()=>r?R.filter(j=>j.toasterId===r):R.filter(j=>!j.toasterId),[R,r]),D=d.useMemo(()=>Array.from(new Set([i].concat(k.filter(j=>j.position).map(j=>j.position)))),[k,i]),[L,N]=d.useState([]),[B,A]=d.useState(!1),[_,T]=d.useState(!1),[I,z]=d.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=d.useRef(null),q=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=d.useRef(null),F=d.useRef(!1),O=d.useCallback(j=>{P(H=>{var K;return(K=H.find(X=>X.id===j.id))!=null&&K.delete||qe.dismiss(j.id),H.filter(({id:X})=>X!==j.id)})},[]);return d.useEffect(()=>qe.subscribe(j=>{if(j.dismiss){requestAnimationFrame(()=>{P(H=>H.map(K=>K.id===j.id?{...K,delete:!0}:K))});return}setTimeout(()=>{Hr.flushSync(()=>{P(H=>{const K=H.findIndex(X=>X.id===j.id);return K!==-1?[...H.slice(0,K),{...H[K],...j},...H.slice(K+1)]:[j,...H]})})})}),[R]),d.useEffect(()=>{if(p!=="system"){z(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;const j=window.matchMedia("(prefers-color-scheme: dark)");try{j.addEventListener("change",({matches:H})=>{z(H?"dark":"light")})}catch{j.addListener(({matches:K})=>{try{z(K?"dark":"light")}catch(X){console.error(X)}})}},[p]),d.useEffect(()=>{R.length<=1&&A(!1)},[R]),d.useEffect(()=>{const j=H=>{var K;if(a.every(U=>H[U]||H.code===U)){var pe;A(!0),(pe=G.current)==null||pe.focus()}H.code==="Escape"&&(document.activeElement===G.current||(K=G.current)!=null&&K.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[a]),d.useEffect(()=>{if(G.current)return()=>{S.current&&(S.current.focus({preventScroll:!0}),S.current=null,F.current=!1)}},[G.current]),d.createElement("section",{ref:n,"aria-label":`${M} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},D.map((j,H)=>{var K;const[X,pe]=j.split("-");return k.length?d.createElement("ol",{key:j,dir:x==="auto"?Yd():x,tabIndex:-1,ref:G,className:u,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":X,"data-x-position":pe,style:{"--front-toast-height":`${((K=L[0])==null?void 0:K.height)||0}px`,"--width":`${E$}px`,"--gap":`${w}px`,...g,...T$(h,c)},onBlur:U=>{F.current&&!U.currentTarget.contains(U.relatedTarget)&&(F.current=!1,S.current&&(S.current.focus({preventScroll:!0}),S.current=null))},onFocus:U=>{U.target instanceof HTMLElement&&U.target.dataset.dismissible==="false"||F.current||(F.current=!0,S.current=U.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{_||A(!1)},onDragEnd:()=>A(!1),onPointerDown:U=>{U.target instanceof HTMLElement&&U.target.dataset.dismissible==="false"||T(!0)},onPointerUp:()=>T(!1)},k.filter(U=>!U.position&&H===0||U.position===j).map((U,de)=>{var ve,St;return d.createElement(O$,{key:U.id,icons:$,index:de,toast:U,defaultRichColors:f,duration:(ve=b==null?void 0:b.duration)!=null?ve:m,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:o,visibleToasts:v,closeButton:(St=b==null?void 0:b.closeButton)!=null?St:l,interacting:_,position:j,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,closeButtonAriaLabel:b==null?void 0:b.closeButtonAriaLabel,removeToast:O,toasts:k.filter(Gt=>Gt.position==U.position),heights:L.filter(Gt=>Gt.position==U.position),setHeights:N,expandByDefault:s,gap:w,expanded:B,swipeDirections:t.swipeDirections})})):null}))});var _$=function(e){var t=e.showCleanAllButton,n=e.queueName,r=e.status,o=e.queue,i=ue.queue.clean.useMutation({onSuccess:function(){dr.success("All ".concat(r," jobs have been removed"))}}),a=i.mutate,s=i.status,l=He(He(He(He(He([{name:"Completed",status:"completed"},{name:"Failed",status:"failed"},{name:"Active",status:"active"}],o!=null&&o.supports.priorities?[{name:"Prioritized",status:"prioritized"}]:[],!0),[{name:"Waiting",status:"waiting"}],!1),o!=null&&o.supports.flows?[{name:"Waiting Children",status:"waiting-children"}]:[],!0),[{name:"Delayed",status:"delayed"}],!1),o!=null&&o.supports.pause?[{name:"Paused",status:"paused"}]:[],!0);return y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("div",{className:"flex items-center space-x-3",children:l.map(function(u){var h=u.status===r;return y.jsxs(ka,{to:"?status=".concat(u.status),className:Fr("flex items-center space-x-2 rounded-md px-3 py-1 font-medium transition duration-150 ease-in-out",{"text-slate-500 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800":!h,"bg-green-50 text-green-900 dark:bg-green-900 dark:text-green-50":h&&u.status==="completed","bg-red-50 text-red-900 dark:bg-red-900 dark:text-red-100":h&&u.status==="failed","bg-cyan-50 text-cyan-900 dark:bg-cyan-900 dark:text-cyan-50":h&&u.status==="active","bg-purple-50 text-purple-900 dark:bg-purple-900 dark:text-purple-50":h&&u.status==="prioritized","bg-amber-50 text-amber-900 dark:bg-amber-900 dark:text-amber-50":h&&u.status==="waiting","bg-orange-50 text-orange-900 dark:bg-orange-900 dark:text-orange-50":h&&u.status==="waiting-children","bg-indigo-50 text-indigo-900 dark:bg-indigo-900 dark:text-indigo-50":h&&u.status==="delayed","bg-stone-50 text-stone-900 dark:bg-stone-900 dark:text-stone-50":h&&u.status==="paused"}),children:[y.jsx("span",{children:u.name}),o!=null&&o.counts[u.status]?y.jsx("span",{className:Fr("rounded-md px-1.5 py-0.5 text-xs font-semibold",{"bg-slate-400 text-slate-50 dark:bg-slate-600 dark:text-slate-100":!h,"bg-green-600 text-green-50 dark:bg-green-700 dark:text-green-100":h&&u.status==="completed","bg-red-600 text-red-50 dark:bg-red-700 dark:text-red-100":h&&u.status==="failed","bg-cyan-600 text-cyan-50 dark:bg-cyan-700 dark:text-cyan-100":h&&u.status==="active","bg-purple-600 text-purple-50 dark:bg-purple-700 dark:text-purple-100":h&&u.status==="prioritized","bg-amber-600 text-amber-50 dark:bg-amber-700 dark:text-amber-100":h&&u.status==="waiting","bg-orange-600 text-orange-50 dark:bg-orange-700 dark:text-orange-100":h&&u.status==="waiting-children","bg-indigo-600 text-indigo-50 dark:bg-indigo-700 dark:text-indigo-100":h&&u.status==="delayed","bg-stone-600 text-stone-50 dark:bg-stone-700 dark:text-stone-100":h&&u.status==="paused"}),children:o.counts[u.status]}):null]},u.name)})}),t&&r!=="waiting-children"&&(o!=null&&o.supports.clean)?y.jsx(i$,{title:"Are you absolutely sure?",description:"This action cannot be undone. This will permanently remove all ".concat(r," jobs from the queue."),action:y.jsx(wn,{variant:"filled",colorScheme:"red",label:"Yes, remove jobs",onClick:function(){return a({queueName:n,status:r})}}),children:y.jsx(wn,{colorScheme:"yellow",icon:y.jsx(Ur,{}),label:"Clean all",size:"sm",isLoading:s==="pending"})}):null]})};function Xd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function L$(e){if(Array.isArray(e))return e}function F$(e,t,n){return(t=H$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(h){u=!0,o=h}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function j$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Jd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zd(Object(n),!0).forEach(function(r){F$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N$(e,t){if(e==null)return{};var n,r,o=A$(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function A$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function K$(e,t){return L$(e)||I$(e,t)||V$(e,t)||j$()}function B$(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H$(e){var t=B$(e,"string");return typeof t=="symbol"?t:t+""}function V$(e,t){if(e){if(typeof e=="string")return Xd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xd(e,t):void 0}}function z$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ef(Object(n),!0).forEach(function(r){z$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U$(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(o,i){return i(o)},r)}}function vo(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function ya(e){return{}.toString.call(e).includes("Object")}function q$(e){return!Object.keys(e).length}function Bo(e){return typeof e=="function"}function W$(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function G$(e,t){return ya(t)||vn("changeType"),Object.keys(t).some(function(n){return!W$(e,n)})&&vn("changeField"),t}function Q$(e){Bo(e)||vn("selectorType")}function Y$(e){Bo(e)||ya(e)||vn("handlerType"),ya(e)&&Object.values(e).some(function(t){return!Bo(t)})&&vn("handlersType")}function X$(e){e||vn("initialIsRequired"),ya(e)||vn("initialType"),q$(e)&&vn("initialContent")}function Z$(e,t){throw new Error(e[t]||e.default)}var J$={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},vn=vo(Z$)(J$),Di={changes:G$,selector:Q$,handler:Y$,initial:X$};function eS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Di.initial(e),Di.handler(t);var n={current:e},r=vo(rS)(n,t),o=vo(nS)(n),i=vo(Di.changes)(e),a=vo(tS)(n);function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return Di.selector(u),u(n.current)}function l(u){U$(r,o,i,a)(u)}return[s,l]}function tS(e,t){return Bo(t)?t(e.current):t}function nS(e,t){return e.current=tf(tf({},e.current),t),t}function rS(e,t,n){return Bo(t)?t(e.current):Object.keys(n).forEach(function(r){var o;return(o=t[r])===null||o===void 0?void 0:o.call(t,e.current[r])}),n}var oS={create:eS},iS={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function aS(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function sS(e){return{}.toString.call(e).includes("Object")}function lS(e){return e||nf("configIsRequired"),sS(e)||nf("configType"),e.urls?(uS(),{paths:{vs:e.urls.monacoBase}}):e}function uS(){console.warn(Cg.deprecation)}function cS(e,t){throw new Error(e[t]||e.default)}var Cg={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
64
64
|
You are using deprecated way of configuration.
|
|
65
65
|
|
|
66
66
|
Instead of using
|
|
@@ -69,4 +69,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
69
69
|
monaco.config({ paths: { vs: '...' } })
|
|
70
70
|
|
|
71
71
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
72
|
-
`},Xd=rS(sS)(xg),lS={config:iS},uS=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(o){return n.reduceRight(function(i,a){return a(i)},o)}};function wg(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],wg(e[n],t[n]))}),Gd(Gd({},e),t)}var cS={type:"cancelation",msg:"operation is manually canceled"};function Os(e){var t=!1,n=new Promise(function(r,o){e.then(function(i){return t?o(cS):r(i)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var dS=["monaco"],fS=tS.create({config:nS,isInitialized:!1,resolve:null,reject:null,monaco:null}),Cg=j$(fS,2),oi=Cg[0],Ua=Cg[1];function hS(e){var t=lS.config(e),n=t.monaco,r=F$(t,dS);Ua(function(o){return{config:wg(o.config,r),monaco:n}})}function pS(){var e=oi(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(Ua({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Os(Ts);if(window.monaco&&window.monaco.editor)return $g(window.monaco),e.resolve(window.monaco),Os(Ts);uS(gS,vS)(bS)}return Os(Ts)}function gS(e){return document.body.appendChild(e)}function mS(e){var t=document.createElement("script");return e&&(t.src=e),t}function vS(e){var t=oi(function(r){var o=r.config,i=r.reject;return{config:o,reject:i}}),n=mS("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function bS(){var e=oi(function(n){var r=n.config,o=n.resolve,i=n.reject;return{config:r,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;$g(r),e.resolve(r)},function(n){e.reject(n)})}function $g(e){oi().monaco||Ua({monaco:e})}function yS(){return oi(function(e){var t=e.monaco;return t})}var Ts=new Promise(function(e,t){return Ua({resolve:e,reject:t})}),Sg={config:hS,init:pS,__getMonacoInstance:yS},xS={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Ds=xS,wS={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},CS=wS;function $S({children:e}){return d.createElement("div",{style:CS.container},e)}var SS=$S,ES=SS;function PS({width:e,height:t,isEditorReady:n,loading:r,_ref:o,className:i,wrapperProps:a}){return d.createElement("section",{style:{...Ds.wrapper,width:e,height:t},...a},!n&&d.createElement(ES,null,r),d.createElement("div",{ref:o,style:{...Ds.fullWidth,...!n&&Ds.hide},className:i}))}var RS=PS,Eg=d.memo(RS);function kS(e){d.useEffect(e,[])}var Pg=kS;function MS(e,t,n=!0){let r=d.useRef(!0);d.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Je=MS;function $o(){}function pr(e,t,n,r){return OS(e,r)||TS(e,t,n,r)}function OS(e,t){return e.editor.getModel(Rg(e,t))}function TS(e,t,n,r){return e.editor.createModel(t,n,r?Rg(e,r):void 0)}function Rg(e,t){return e.Uri.parse(t)}function DS({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:h="Loading...",options:c={},height:p="100%",width:f="100%",className:g,wrapperProps:m={},beforeMount:v=$o,onMount:b=$o}){let[x,w]=d.useState(!1),[S,M]=d.useState(!0),P=d.useRef(null),R=d.useRef(null),k=d.useRef(null),D=d.useRef(b),_=d.useRef(v),A=d.useRef(!1);Pg(()=>{let O=Sg.init();return O.then(L=>(R.current=L)&&M(!1)).catch(L=>(L==null?void 0:L.type)!=="cancelation"&&console.error("Monaco initialization: error:",L)),()=>P.current?z():O.cancel()}),Je(()=>{if(P.current&&R.current){let O=P.current.getOriginalEditor(),L=pr(R.current,e||"",r||n||"text",i||"");L!==O.getModel()&&O.setModel(L)}},[i],x),Je(()=>{if(P.current&&R.current){let O=P.current.getModifiedEditor(),L=pr(R.current,t||"",o||n||"text",a||"");L!==O.getModel()&&O.setModel(L)}},[a],x),Je(()=>{let O=P.current.getModifiedEditor();O.getOption(R.current.editor.EditorOption.readOnly)?O.setValue(t||""):t!==O.getValue()&&(O.executeEdits("",[{range:O.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),O.pushUndoStop())},[t],x),Je(()=>{var O,L;(L=(O=P.current)==null?void 0:O.getModel())==null||L.original.setValue(e||"")},[e],x),Je(()=>{let{original:O,modified:L}=P.current.getModel();R.current.editor.setModelLanguage(O,r||n||"text"),R.current.editor.setModelLanguage(L,o||n||"text")},[n,r,o],x),Je(()=>{var O;(O=R.current)==null||O.editor.setTheme(u)},[u],x),Je(()=>{var O;(O=P.current)==null||O.updateOptions(c)},[c],x);let K=d.useCallback(()=>{var B;if(!R.current)return;_.current(R.current);let O=pr(R.current,e||"",r||n||"text",i||""),L=pr(R.current,t||"",o||n||"text",a||"");(B=P.current)==null||B.setModel({original:O,modified:L})},[n,t,o,e,r,i,a]),I=d.useCallback(()=>{var O;!A.current&&k.current&&(P.current=R.current.editor.createDiffEditor(k.current,{automaticLayout:!0,...c}),K(),(O=R.current)==null||O.editor.setTheme(u),w(!0),A.current=!0)},[c,u,K]);d.useEffect(()=>{x&&D.current(P.current,R.current)},[x]),d.useEffect(()=>{!S&&!x&&I()},[S,x,I]);function z(){var L,B,U,W;let O=(L=P.current)==null?void 0:L.getModel();s||((B=O==null?void 0:O.original)==null||B.dispose()),l||((U=O==null?void 0:O.modified)==null||U.dispose()),(W=P.current)==null||W.dispose()}return d.createElement(Eg,{width:f,height:p,isEditorReady:x,loading:h,_ref:k,className:g,wrapperProps:m})}var _S=DS;d.memo(_S);function LS(e){let t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}var FS=LS,Di=new Map;function IS({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:o,path:i,theme:a="light",line:s,loading:l="Loading...",options:u={},overrideServices:h={},saveViewState:c=!0,keepCurrentModel:p=!1,width:f="100%",height:g="100%",className:m,wrapperProps:v={},beforeMount:b=$o,onMount:x=$o,onChange:w,onValidate:S=$o}){let[M,P]=d.useState(!1),[R,k]=d.useState(!0),D=d.useRef(null),_=d.useRef(null),A=d.useRef(null),K=d.useRef(x),I=d.useRef(b),z=d.useRef(),O=d.useRef(r),L=FS(i),B=d.useRef(!1),U=d.useRef(!1);Pg(()=>{let F=Sg.init();return F.then(T=>(D.current=T)&&k(!1)).catch(T=>(T==null?void 0:T.type)!=="cancelation"&&console.error("Monaco initialization: error:",T)),()=>_.current?$():F.cancel()}),Je(()=>{var T,j,V,N;let F=pr(D.current,e||r||"",t||o||"",i||n||"");F!==((T=_.current)==null?void 0:T.getModel())&&(c&&Di.set(L,(j=_.current)==null?void 0:j.saveViewState()),(V=_.current)==null||V.setModel(F),c&&((N=_.current)==null||N.restoreViewState(Di.get(i))))},[i],M),Je(()=>{var F;(F=_.current)==null||F.updateOptions(u)},[u],M),Je(()=>{!_.current||r===void 0||(_.current.getOption(D.current.editor.EditorOption.readOnly)?_.current.setValue(r):r!==_.current.getValue()&&(U.current=!0,_.current.executeEdits("",[{range:_.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),_.current.pushUndoStop(),U.current=!1))},[r],M),Je(()=>{var T,j;let F=(T=_.current)==null?void 0:T.getModel();F&&o&&((j=D.current)==null||j.editor.setModelLanguage(F,o))},[o],M),Je(()=>{var F;s!==void 0&&((F=_.current)==null||F.revealLine(s))},[s],M),Je(()=>{var F;(F=D.current)==null||F.editor.setTheme(a)},[a],M);let W=d.useCallback(()=>{var F;if(!(!A.current||!D.current)&&!B.current){I.current(D.current);let T=i||n,j=pr(D.current,r||e||"",t||o||"",T||"");_.current=(F=D.current)==null?void 0:F.editor.create(A.current,{model:j,automaticLayout:!0,...u},h),c&&_.current.restoreViewState(Di.get(T)),D.current.editor.setTheme(a),s!==void 0&&_.current.revealLine(s),P(!0),B.current=!0}},[e,t,n,r,o,i,u,h,c,a,s]);d.useEffect(()=>{M&&K.current(_.current,D.current)},[M]),d.useEffect(()=>{!R&&!M&&W()},[R,M,W]),O.current=r,d.useEffect(()=>{var F,T;M&&w&&((F=z.current)==null||F.dispose(),z.current=(T=_.current)==null?void 0:T.onDidChangeModelContent(j=>{U.current||w(_.current.getValue(),j)}))},[M,w]),d.useEffect(()=>{if(M){let F=D.current.editor.onDidChangeMarkers(T=>{var V;let j=(V=_.current.getModel())==null?void 0:V.uri;if(j&&T.find(N=>N.path===j.path)){let N=D.current.editor.getModelMarkers({resource:j});S==null||S(N)}});return()=>{F==null||F.dispose()}}return()=>{}},[M,S]);function $(){var F,T;(F=z.current)==null||F.dispose(),p?c&&Di.set(i,_.current.saveViewState()):(T=_.current.getModel())==null||T.dispose(),_.current.dispose()}return d.createElement(Eg,{width:f,height:g,isEditorReady:M,loading:l,_ref:A,className:m,wrapperProps:v})}var jS=IS,NS=d.memo(jS),AS=NS,_s=function(e){var t=e.value,n=e.onChange,r=d.useRef(null),o=function(){var a,s;(s=(a=r.current)===null||a===void 0?void 0:a.getAction("editor.action.formatDocument"))===null||s===void 0||s.run()},i=function(a){var s=String.fromCharCode(a.which).toLowerCase();(a.ctrlKey||a.metaKey)&&s==="s"&&(a.preventDefault(),o())};return y.jsx("div",{onKeyDown:i,onBlur:o,className:"mb-6 border border-slate-200",children:y.jsx(AS,{height:"300px",language:"json",className:"rounded-md",options:{minimap:{enabled:!1},formatOnPaste:!0,formatOnType:!0,padding:{top:8,bottom:8},tabSize:2},defaultValue:t,onChange:function(a){a&&n(a)},onMount:function(a,s){r.current=a,s.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{background:"ffffff",token:""},{foreground:"6a737d",token:"comment"},{foreground:"6a737d",token:"punctuation.definition.comment"},{foreground:"6a737d",token:"string.comment"},{foreground:"005cc5",token:"constant"},{foreground:"005cc5",token:"entity.name.constant"},{foreground:"005cc5",token:"variable.other.constant"},{foreground:"005cc5",token:"variable.language"},{foreground:"6f42c1",token:"entity"},{foreground:"6f42c1",token:"entity.name"},{foreground:"24292e",token:"variable.parameter.function"},{foreground:"22863a",token:"entity.name.tag"},{foreground:"d73a49",token:"keyword"},{foreground:"d73a49",token:"storage"},{foreground:"d73a49",token:"storage.type"},{foreground:"24292e",token:"storage.modifier.package"},{foreground:"24292e",token:"storage.modifier.import"},{foreground:"24292e",token:"storage.type.java"},{foreground:"032f62",token:"string"},{foreground:"032f62",token:"punctuation.definition.string"},{foreground:"032f62",token:"string punctuation.section.embedded source"},{foreground:"005cc5",token:"support"},{foreground:"005cc5",token:"meta.property-name"},{foreground:"e36209",token:"variable"},{foreground:"24292e",token:"variable.other"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.broken"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.deprecated"},{foreground:"fafbfc",background:"b31d28",fontStyle:"italic underline",token:"invalid.illegal"},{foreground:"fafbfc",background:"d73a49",fontStyle:"italic underline",token:"carriage-return"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.unimplemented"},{foreground:"b31d28",token:"message.error"},{foreground:"24292e",token:"string source"},{foreground:"005cc5",token:"string variable"},{foreground:"032f62",token:"source.regexp"},{foreground:"032f62",token:"string.regexp"},{foreground:"032f62",token:"string.regexp.character-class"},{foreground:"032f62",token:"string.regexp constant.character.escape"},{foreground:"032f62",token:"string.regexp source.ruby.embedded"},{foreground:"032f62",token:"string.regexp string.regexp.arbitrary-repitition"},{foreground:"22863a",fontStyle:"bold",token:"string.regexp constant.character.escape"},{foreground:"005cc5",token:"support.constant"},{foreground:"005cc5",token:"support.variable"},{foreground:"005cc5",token:"meta.module-reference"},{foreground:"735c0f",token:"markup.list"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading entity.name"},{foreground:"22863a",token:"markup.quote"},{foreground:"24292e",fontStyle:"italic",token:"markup.italic"},{foreground:"24292e",fontStyle:"bold",token:"markup.bold"},{foreground:"005cc5",token:"markup.raw"},{foreground:"b31d28",background:"ffeef0",token:"markup.deleted"},{foreground:"b31d28",background:"ffeef0",token:"meta.diff.header.from-file"},{foreground:"b31d28",background:"ffeef0",token:"punctuation.definition.deleted"},{foreground:"22863a",background:"f0fff4",token:"markup.inserted"},{foreground:"22863a",background:"f0fff4",token:"meta.diff.header.to-file"},{foreground:"22863a",background:"f0fff4",token:"punctuation.definition.inserted"},{foreground:"e36209",background:"ffebda",token:"markup.changed"},{foreground:"e36209",background:"ffebda",token:"punctuation.definition.changed"},{foreground:"f6f8fa",background:"005cc5",token:"markup.ignored"},{foreground:"f6f8fa",background:"005cc5",token:"markup.untracked"},{foreground:"6f42c1",fontStyle:"bold",token:"meta.diff.range"},{foreground:"005cc5",token:"meta.diff.header"},{foreground:"005cc5",fontStyle:"bold",token:"meta.separator"},{foreground:"005cc5",token:"meta.output"},{foreground:"586069",token:"brackethighlighter.tag"},{foreground:"586069",token:"brackethighlighter.curly"},{foreground:"586069",token:"brackethighlighter.round"},{foreground:"586069",token:"brackethighlighter.square"},{foreground:"586069",token:"brackethighlighter.angle"},{foreground:"586069",token:"brackethighlighter.quote"},{foreground:"b31d28",token:"brackethighlighter.unmatched"},{foreground:"b31d28",token:"sublimelinter.mark.error"},{foreground:"e36209",token:"sublimelinter.mark.warning"},{foreground:"959da5",token:"sublimelinter.gutter-mark"},{foreground:"032f62",fontStyle:"underline",token:"constant.other.reference.link"},{foreground:"032f62",fontStyle:"underline",token:"string.other.link"}],colors:{"editor.foreground":"#24292e","editor.background":"#ffffff","editor.selectionBackground":"#c8c8fa","editor.inactiveSelectionBackground":"#fafbfc","editor.lineHighlightBackground":"#fafbfc","editorCursor.foreground":"#24292e","editorWhitespace.foreground":"#959da5","editorIndentGuide.background":"#959da5","editorIndentGuide.activeBackground":"#24292e","editor.selectionHighlightBorder":"#fafbfc"}}),s.editor.setTheme("solarized-light")}})})},Zd=function(e){var t=e.queue,n=e.onDismiss,r=e.variant,o=r===void 0?"job":r,i=ue.queue.addJob.useMutation({onSuccess:function(){dr.success("New job has been added"),n()},onError:function(P){dr.error(P.message)}}),a=i.mutate,s=i.status,l=ue.queue.addJobScheduler.useMutation({onSuccess:function(){dr.success("New job scheduler has been added"),n()},onError:function(P){dr.error(P.message)}}),u=l.mutate,h=l.status,c=d.useState("{}"),p=c[0],f=c[1],g=d.useState(JSON.stringify({name:"",data:{},opts:{}},null,2)),m=g[0],v=g[1],b=d.useState(JSON.stringify({pattern:"0 0 * * *",tz:Intl.DateTimeFormat().resolvedOptions().timeZone},null,2)),x=b[0],w=b[1],S=o==="job",M=S?s:h;return y.jsx(u1,{isOpen:!0,onOpenChange:function(P){P||n()},children:y.jsx(Ba,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Aa,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(P){var R=P.close;return y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){R(),n()},children:y.jsx(nu,{})}),y.jsx("div",{className:"flex items-center space-x-4",children:y.jsxs(Ka,{className:"mb-1 text-xl font-semibold text-slate-900 dark:text-slate-100",children:["Add ",S?"job":"scheduler"," to"," ",t.displayName.toLocaleLowerCase()]})}),S?y.jsx(_s,{value:p,onChange:f}):y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),y.jsx(_s,{value:m,onChange:v})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx(_s,{value:x,onChange:w})]})]}),y.jsx("div",{children:y.jsx(xn,{label:S?"Add job":"Add scheduler",variant:"filled",disabled:M==="pending",onClick:function(){try{if(S){var k=JSON.parse(p);a({queueName:t.name,data:k})}else{var D=JSON.parse(m),_=JSON.parse(x);u({queueName:t.name,template:D,opts:_})}}catch{dr.error("Invalid JSON")}}})})]})}})})})},KS=function(e){var t=e.queue,n=ue.queue.pause.useMutation().mutate,r=ue.queue.resume.useMutation().mutate,o=ue.queue.empty.useMutation().mutate,i=d.useState(!1),a=i[0],s=i[1],l=d.useState(!1),u=l[0],h=l[1],c={queueName:t.name},p=Be(Be(Be(Be([],t.supports.pause&&t.supports.resume?[{label:t.paused?"Resume":"Pause",onSelect:function(){t.paused?r(c):n(c)},icon:t.paused?y.jsx(E0,{}):y.jsx(S0,{})}]:[],!0),[{label:"Add job",onSelect:function(){s(!0)},icon:y.jsx(dc,{})}],!1),t.supports.schedulers?[{label:"Add scheduler",onSelect:function(){h(!0)},icon:y.jsx(dc,{})}]:[],!0),t.supports.empty?[{label:"Empty",onSelect:function(){o(c)},icon:y.jsx(zr,{})}]:[],!0);return y.jsxs(y.Fragment,{children:[y.jsx(za,{actions:p}),a?y.jsx(Zd,{queue:t,variant:"job",onDismiss:function(){return s(!1)}}):null,u?y.jsx(Zd,{queue:t,variant:"scheduler",onDismiss:function(){return h(!1)}}):null]})},kg={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(globalThis,()=>(()=>{var n={949:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CronParser=void 0;var u=l(515),h=function(){function c(p,f,g){f===void 0&&(f=!0),g===void 0&&(g=!1),this.expression=p,this.dayOfWeekStartIndexZero=f,this.monthStartIndexZero=g}return c.prototype.parse=function(){var p,f,g=(p=this.expression)!==null&&p!==void 0?p:"";if(g==="@reboot")return f=["@reboot","","","","","",""],f;if(g.startsWith("@")){var m=this.parseSpecial(this.expression);f=this.extractParts(m)}else f=this.extractParts(this.expression);return this.normalize(f),this.validate(f),f},c.prototype.parseSpecial=function(p){var f={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},g=f[p];if(!g)throw new Error("Unknown special expression.");return g},c.prototype.extractParts=function(p){if(!this.expression)throw new Error("cron expression is empty");for(var f=p.trim().split(/[ ]+/),g=0;g<f.length;g++)if(f[g].includes(",")){var m=f[g].split(",").map(function(b){return b.trim()}).filter(function(b){return b!==""}).map(function(b){return isNaN(Number(b))?b:Number(b)}).filter(function(b){return b!==null&&b!==""});m.length===0&&m.push("*"),m.sort(function(b,x){return b!==null&&x!==null?b-x:0}),f[g]=m.map(function(b){return b!==null?b.toString():""}).join(",")}if(f.length<5)throw new Error("Expression has only ".concat(f.length," part").concat(f.length==1?"":"s",". At least 5 parts are required."));if(f.length==5)f.unshift(""),f.push("");else if(f.length==6){var v=/\d{4}$/.test(f[5])||f[4]=="?"||f[2]=="?";v?f.unshift(""):f.push("")}else if(f.length>7)throw new Error("Expression has ".concat(f.length," parts; too many!"));return f},c.prototype.normalize=function(p){var f=this;if(p[3]=p[3].replace("?","*"),p[5]=p[5].replace("?","*"),p[2]=p[2].replace("?","*"),p[0].indexOf("0/")==0&&(p[0]=p[0].replace("0/","*/")),p[1].indexOf("0/")==0&&(p[1]=p[1].replace("0/","*/")),p[2].indexOf("0/")==0&&(p[2]=p[2].replace("0/","*/")),p[3].indexOf("1/")==0&&(p[3]=p[3].replace("1/","*/")),p[4].indexOf("1/")==0&&(p[4]=p[4].replace("1/","*/")),p[6].indexOf("1/")==0&&(p[6]=p[6].replace("1/","*/")),p[5]=p[5].replace(/(^\d)|([^#/\s]\d)/g,function(M){var P=M.replace(/\D/,""),R=P;return f.dayOfWeekStartIndexZero?P=="7"&&(R="0"):R=(parseInt(P)-1).toString(),M.replace(P,R)}),p[5]=="L"&&(p[5]="6"),p[3]=="?"&&(p[3]="*"),p[3].indexOf("W")>-1&&(p[3].indexOf(",")>-1||p[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var g={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var m in g)p[5]=p[5].replace(new RegExp(m,"gi"),g[m].toString());p[4]=p[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(M){var P=M.replace(/\D/,""),R=P;return f.monthStartIndexZero&&(R=(parseInt(P)+1).toString()),M.replace(P,R)});var v={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var b in v)p[4]=p[4].replace(new RegExp(b,"gi"),v[b].toString());p[0]=="0"&&(p[0]=""),!/\*|\-|\,|\//.test(p[2])&&(/\*|\//.test(p[1])||/\*|\//.test(p[0]))&&(p[2]+="-".concat(p[2]));for(var x=0;x<p.length;x++)if(p[x].indexOf(",")!=-1&&(p[x]=p[x].split(",").filter(function(M){return M!==""}).join(",")||"*"),p[x]=="*/1"&&(p[x]="*"),p[x].indexOf("/")>-1&&!/^\*|\-|\,/.test(p[x])){var w=null;switch(x){case 4:w="12";break;case 5:w="6";break;case 6:w="9999";break;default:w=null;break}if(w!==null){var S=p[x].split("/");p[x]="".concat(S[0],"-").concat(w,"/").concat(S[1])}}},c.prototype.validate=function(p){var f="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(p[0],f),this.validateOnlyExpectedCharactersFound(p[1],f),this.validateOnlyExpectedCharactersFound(p[2],f),this.validateOnlyExpectedCharactersFound(p[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(p[4],f),this.validateOnlyExpectedCharactersFound(p[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(p[6],f),this.validateAnyRanges(p)},c.prototype.validateAnyRanges=function(p){u.default.secondRange(p[0]),u.default.minuteRange(p[1]),u.default.hourRange(p[2]),u.default.dayOfMonthRange(p[3]),u.default.monthRange(p[4],this.monthStartIndexZero),u.default.dayOfWeekRange(p[5],this.dayOfWeekStartIndexZero)},c.prototype.validateOnlyExpectedCharactersFound=function(p,f){var g=p.match(new RegExp("[^".concat(f,"]+"),"gi"));if(g&&g.length)throw new Error("Expression contains invalid values: '".concat(g.toString(),"'"))},c}();s.CronParser=h},333:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ExpressionDescriptor=void 0;var u=l(823),h=l(949),c=function(){function p(f,g){if(this.expression=f,this.options=g,this.expressionParts=new Array(5),!this.options.locale&&p.defaultLocale&&(this.options.locale=p.defaultLocale),!p.locales[this.options.locale]){var m=Object.keys(p.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(m,"'.")),this.options.locale=m}this.i18n=p.locales[this.options.locale],g.use24HourTimeFormat===void 0&&(g.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return p.toString=function(f,g){var m=g===void 0?{}:g,v=m.throwExceptionOnParseError,b=v===void 0?!0:v,x=m.verbose,w=x===void 0?!1:x,S=m.dayOfWeekStartIndexZero,M=S===void 0?!0:S,P=m.monthStartIndexZero,R=P===void 0?!1:P,k=m.use24HourTimeFormat,D=m.locale,_=D===void 0?null:D,A={throwExceptionOnParseError:b,verbose:w,dayOfWeekStartIndexZero:M,monthStartIndexZero:R,use24HourTimeFormat:k,locale:_};A.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var K=new p(f,A);return K.getFullDescription()},p.initialize=function(f,g){g===void 0&&(g="en"),p.specialCharacters=["/","-",",","*"],p.defaultLocale=g,f.load(p.locales)},p.prototype.getFullDescription=function(){var f,g,m="";try{var v=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=v.parse(),this.expressionParts[0]==="@reboot")return((g=(f=this.i18n).atReboot)===null||g===void 0?void 0:g.call(f))||"Run once, at startup";var b=this.getTimeOfDayDescription(),x=this.getDayOfMonthDescription(),w=this.getMonthDescription(),S=this.getDayOfWeekDescription(),M=this.getYearDescription();m+=b+x+S+w+M,m=this.transformVerbosity(m,!!this.options.verbose),m=m.charAt(0).toLocaleUpperCase()+m.substr(1)}catch(P){if(!this.options.throwExceptionOnParseError)m=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(P)}return m},p.prototype.getTimeOfDayDescription=function(){var f=this.expressionParts[0],g=this.expressionParts[1],m=this.expressionParts[2],v="";if(!u.StringUtilities.containsAny(g,p.specialCharacters)&&!u.StringUtilities.containsAny(m,p.specialCharacters)&&!u.StringUtilities.containsAny(f,p.specialCharacters))v+=this.i18n.atSpace()+this.formatTime(m,g,f);else if(!f&&g.indexOf("-")>-1&&!(g.indexOf(",")>-1)&&!(g.indexOf("/")>-1)&&!u.StringUtilities.containsAny(m,p.specialCharacters)){var b=g.split("-");v+=u.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(m,b[0],""),this.formatTime(m,b[1],""))}else if(!f&&m.indexOf(",")>-1&&m.indexOf("-")==-1&&m.indexOf("/")==-1&&!u.StringUtilities.containsAny(g,p.specialCharacters)){var x=m.split(",");v+=this.i18n.at();for(var w=0;w<x.length;w++)v+=" ",v+=this.formatTime(x[w],g,""),w<x.length-2&&(v+=","),w==x.length-2&&(v+=this.i18n.spaceAnd())}else{var S=this.getSecondsDescription(),M=this.getMinutesDescription(),P=this.getHoursDescription();if(v+=S,v&&M&&(v+=", "),v+=M,M===P)return v;v&&P&&(v+=", "),v+=P}return v},p.prototype.getSecondsDescription=function(){var f=this,g=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(m){return m},function(m){return u.StringUtilities.format(f.i18n.everyX0Seconds(m),m)},function(m){return f.i18n.secondsX0ThroughX1PastTheMinute()},function(m){return m=="0"?"":parseInt(m)<20?f.i18n.atX0SecondsPastTheMinute(m):f.i18n.atX0SecondsPastTheMinuteGt20()||f.i18n.atX0SecondsPastTheMinute(m)});return g},p.prototype.getMinutesDescription=function(){var f=this,g=this.expressionParts[0],m=this.expressionParts[2],v=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(b){return b},function(b){return u.StringUtilities.format(f.i18n.everyX0Minutes(b),b)},function(b){return f.i18n.minutesX0ThroughX1PastTheHour()},function(b){try{return b=="0"&&m.indexOf("/")==-1&&g==""?f.i18n.everyHour():parseInt(b)<20?f.i18n.atX0MinutesPastTheHour(b):f.i18n.atX0MinutesPastTheHourGt20()||f.i18n.atX0MinutesPastTheHour(b)}catch{return f.i18n.atX0MinutesPastTheHour(b)}});return v},p.prototype.getHoursDescription=function(){var f=this,g=this.expressionParts[2],m=0,v=[];g.split("/")[0].split(",").forEach(function(w){var S=w.split("-");S.length===2&&v.push({value:S[1],index:m+1}),m+=S.length});var b=0,x=this.getSegmentDescription(g,this.i18n.everyHour(),function(w){var S=v.find(function(P){return P.value===w&&P.index===b}),M=S&&f.expressionParts[1]!=="0";return b++,M?f.formatTime(w,"59",""):f.formatTime(w,"0","")},function(w){return u.StringUtilities.format(f.i18n.everyX0Hours(w),w)},function(w){return f.i18n.betweenX0AndX1()},function(w){return f.i18n.atX0()});return x},p.prototype.getDayOfWeekDescription=function(){var f=this,g=this.i18n.daysOfTheWeek(),m=null;return this.expressionParts[5]=="*"?m="":m=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(v,b){var x=v;v.indexOf("#")>-1?x=v.substring(0,v.indexOf("#")):v.indexOf("L")>-1&&(x=x.replace("L",""));var w=parseInt(x),S=f.i18n.daysOfTheWeekInCase?f.i18n.daysOfTheWeekInCase(b)[w]:g[w];if(v.indexOf("#")>-1){var M=null,P=v.substring(v.indexOf("#")+1),R=v.substring(0,v.indexOf("#"));switch(P){case"1":M=f.i18n.first(R);break;case"2":M=f.i18n.second(R);break;case"3":M=f.i18n.third(R);break;case"4":M=f.i18n.fourth(R);break;case"5":M=f.i18n.fifth(R);break}S=M+" "+S}return S},function(v){return parseInt(v)==1?"":u.StringUtilities.format(f.i18n.commaEveryX0DaysOfTheWeek(v),v)},function(v){var b=v.substring(0,v.indexOf("-")),x=f.expressionParts[3]!="*";return x?f.i18n.commaAndX0ThroughX1(b):f.i18n.commaX0ThroughX1(b)},function(v){var b=null;if(v.indexOf("#")>-1){var x=v.substring(v.indexOf("#")+1),w=v.substring(0,v.indexOf("#"));b=f.i18n.commaOnThe(x,w).trim()+f.i18n.spaceX0OfTheMonth()}else if(v.indexOf("L")>-1)b=f.i18n.commaOnTheLastX0OfTheMonth(v.replace("L",""));else{var S=f.expressionParts[3]!="*";b=S?f.i18n.commaAndOnX0():f.i18n.commaOnlyOnX0(v)}return b}),m},p.prototype.getMonthDescription=function(){var f=this,g=this.i18n.monthsOfTheYear(),m=this.getSegmentDescription(this.expressionParts[4],"",function(v,b){return b&&f.i18n.monthsOfTheYearInCase?f.i18n.monthsOfTheYearInCase(b)[parseInt(v)-1]:g[parseInt(v)-1]},function(v){return parseInt(v)==1?"":u.StringUtilities.format(f.i18n.commaEveryX0Months(v),v)},function(v){return f.i18n.commaMonthX0ThroughMonthX1()||f.i18n.commaX0ThroughX1()},function(v){return f.i18n.commaOnlyInMonthX0?f.i18n.commaOnlyInMonthX0():f.i18n.commaOnlyInX0()});return m},p.prototype.getDayOfMonthDescription=function(){var f=this,g=null,m=this.expressionParts[3];switch(m){case"L":g=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":g=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var v=m.match(/(\d{1,2}W)|(W\d{1,2})/);if(v){var b=parseInt(v[0].replace("W","")),x=b==1?this.i18n.firstWeekday():u.StringUtilities.format(this.i18n.weekdayNearestDayX0(),b.toString());g=u.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),x);break}else{var w=m.match(/L-(\d{1,2})/);if(w){var S=w[1];g=u.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(S),S);break}else{if(m=="*"&&this.expressionParts[5]!="*")return"";g=this.getSegmentDescription(m,this.i18n.commaEveryDay(),function(M){return M=="L"?f.i18n.lastDay():f.i18n.dayX0?u.StringUtilities.format(f.i18n.dayX0(),M):M},function(M){return M=="1"?f.i18n.commaEveryDay():f.i18n.commaEveryX0Days(M)},function(M){return f.i18n.commaBetweenDayX0AndX1OfTheMonth(M)},function(M){return f.i18n.commaOnDayX0OfTheMonth(M)})}break}}return g},p.prototype.getYearDescription=function(){var f=this,g=this.getSegmentDescription(this.expressionParts[6],"",function(m){return/^\d+$/.test(m)?new Date(parseInt(m),1).getFullYear().toString():m},function(m){return u.StringUtilities.format(f.i18n.commaEveryX0Years(m),m)},function(m){return f.i18n.commaYearX0ThroughYearX1()||f.i18n.commaX0ThroughX1()},function(m){return f.i18n.commaOnlyInYearX0?f.i18n.commaOnlyInYearX0():f.i18n.commaOnlyInX0()});return g},p.prototype.getSegmentDescription=function(f,g,m,v,b,x){var w=null,S=f.indexOf("/")>-1,M=f.indexOf("-")>-1,P=f.indexOf(",")>-1;if(!f)w="";else if(f==="*")w=g;else if(!S&&!M&&!P)w=u.StringUtilities.format(x(f),m(f));else if(P){for(var R=f.split(","),k="",D=0;D<R.length;D++)if(D>0&&R.length>2&&(k+=",",D<R.length-1&&(k+=" ")),D>0&&R.length>1&&(D==R.length-1||R.length==2)&&(k+="".concat(this.i18n.spaceAnd()," ")),R[D].indexOf("/")>-1||R[D].indexOf("-")>-1){var _=R[D].indexOf("-")>-1&&R[D].indexOf("/")==-1,A=this.getSegmentDescription(R[D],g,m,v,_?this.i18n.commaX0ThroughX1:b,x);_&&(A=A.replace(", ","")),k+=A}else S?k+=this.getSegmentDescription(R[D],g,m,v,b,x):k+=m(R[D]);S?w=k:w=u.StringUtilities.format(x(f),k)}else if(S){var R=f.split("/");if(w=u.StringUtilities.format(v(R[1]),R[1]),R[0].indexOf("-")>-1){var K=this.generateRangeSegmentDescription(R[0],b,m);K.indexOf(", ")!=0&&(w+=", "),w+=K}else if(R[0].indexOf("*")==-1){var I=u.StringUtilities.format(x(R[0]),m(R[0]));I=I.replace(", ",""),w+=u.StringUtilities.format(this.i18n.commaStartingX0(),I)}}else M&&(w=this.generateRangeSegmentDescription(f,b,m));return w},p.prototype.generateRangeSegmentDescription=function(f,g,m){var v="",b=f.split("-"),x=m(b[0],1),w=m(b[1],2),S=g(f);return v+=u.StringUtilities.format(S,x,w),v},p.prototype.formatTime=function(f,g,m){var v=0,b=0,x=parseInt(f)+v,w=parseInt(g)+b;w>=60?(w-=60,x+=1):w<0&&(w+=60,x-=1),x>=24?x=x-24:x<0&&(x=24+x);var S="",M=!1;this.options.use24HourTimeFormat||(M=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),S=M?"".concat(this.getPeriod(x)," "):" ".concat(this.getPeriod(x)),x>12&&(x-=12),x===0&&(x=12));var P="";return m&&(P=":".concat(("00"+m).substring(m.length))),"".concat(M?S:"").concat(("00"+x.toString()).substring(x.toString().length),":").concat(("00"+w.toString()).substring(w.toString().length)).concat(P).concat(M?"":S)},p.prototype.transformVerbosity=function(f,g){if(!g&&(f=f.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),f=f.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),f=f.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),f=f.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var m=0,v=Object.entries(this.i18n.conciseVerbosityReplacements());m<v.length;m++){var b=v[m],x=b[0],w=b[1];f=f.replace(new RegExp(x,"g"),w)}return f},p.prototype.getPeriod=function(f){return f>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},p.locales={},p}();s.ExpressionDescriptor=c},747:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.enLocaleLoader=void 0;var u=l(486),h=function(){function c(){}return c.prototype.load=function(p){p.en=new u.en},c}();s.enLocaleLoader=h},486:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.en=void 0;var l=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},u.prototype.everyMinute=function(){return"every minute"},u.prototype.everyHour=function(){return"every hour"},u.prototype.atSpace=function(){return"At "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},u.prototype.at=function(){return"At"},u.prototype.spaceAnd=function(){return" and"},u.prototype.everySecond=function(){return"every second"},u.prototype.everyX0Seconds=function(){return"every %s seconds"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},u.prototype.everyX0Minutes=function(){return"every %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},u.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},u.prototype.everyX0Hours=function(){return"every %s hours"},u.prototype.betweenX0AndX1=function(){return"between %s and %s"},u.prototype.atX0=function(){return"at %s"},u.prototype.commaEveryDay=function(){return", every day"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},u.prototype.commaX0ThroughX1=function(){return", %s through %s"},u.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},u.prototype.first=function(){return"first"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"third"},u.prototype.fourth=function(){return"fourth"},u.prototype.fifth=function(){return"fifth"},u.prototype.commaOnThe=function(){return", on the "},u.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},u.prototype.lastDay=function(){return"the last day"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},u.prototype.commaOnlyOnX0=function(){return", only on %s"},u.prototype.commaAndOnX0=function(){return", and on %s"},u.prototype.commaEveryX0Months=function(){return", every %s months"},u.prototype.commaOnlyInX0=function(){return", only in %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},u.prototype.firstWeekday=function(){return"first weekday"},u.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},u.prototype.commaEveryX0Days=function(){return", every %s days"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},u.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},u.prototype.commaEveryHour=function(){return", every hour"},u.prototype.commaEveryX0Years=function(){return", every %s years"},u.prototype.commaStartingX0=function(){return", starting %s"},u.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},u.prototype.atReboot=function(){return"Run once, at startup"},u}();s.en=l},515:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0});function l(h,c){if(!h)throw new Error(c)}var u=function(){function h(){}return h.secondRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=0&&g<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=0&&g<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=0&&g<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var g=parseInt(p[f],10);l(g>=1&&g<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(c,p){for(var f=c.split(","),g=0;g<f.length;g++)if(!isNaN(parseInt(f[g],10))){var m=parseInt(f[g],10);l(m>=1&&m<=12,p?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(c,p){for(var f=c.split(","),g=0;g<f.length;g++)if(!isNaN(parseInt(f[g],10))){var m=parseInt(f[g],10);l(m>=0&&m<=6,p?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h}();s.default=u},823:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StringUtilities=void 0;var l=function(){function u(){}return u.format=function(h){for(var c=[],p=1;p<arguments.length;p++)c[p-1]=arguments[p];return h.replace(/%s/g,function(f){return c.shift()})},u.containsAny=function(h,c){return c.some(function(p){return h.indexOf(p)>-1})},u}();s.StringUtilities=l}},r={};function o(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return n[a](l,l.exports,o),l.exports}var i={};return(()=>{var a=i;Object.defineProperty(a,"__esModule",{value:!0}),a.toString=void 0;var s=o(333),l=o(747);s.ExpressionDescriptor.initialize(new l.enLocaleLoader),a.default=s.ExpressionDescriptor;var u=s.ExpressionDescriptor.toString;a.toString=u})(),i})())})(kg);var BS=kg.exports;const HS=ff(BS);var VS=function(e){var t=e.scheduler,n=e.queueName,r=e.onRemove,o=ue.scheduler.remove.useMutation(),i=o.mutate,a=o.isSuccess;return d.useEffect(function(){a&&(r==null||r())},[a,r]),y.jsx(za,{actions:[{label:"Remove",onSelect:function(){i({queueName:n,jobSchedulerId:t.key})},icon:y.jsx(zr,{})}]})},zS=function(e){var t=e.scheduler,n=e.queueName,r=e.onDismiss,o=t.template,i=_r({},t);return delete i.template,y.jsx(Ba,{isOpen:!0,isDismissable:!0,onOpenChange:function(a){a||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Aa,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(a){var s=a.close;return y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){r(),s()},children:y.jsx(nu,{})}),y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsxs(Ka,{className:"mb-1 flex items-center space-x-2",children:[y.jsx("span",{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),y.jsxs("span",{className:"rounded-md text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),y.jsx(VS,{queueName:n,scheduler:t,onRemove:r})]}),y.jsxs("div",{children:[y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Co,{data:i,theme:"monokai"})})]}),y.jsxs("div",{className:"space-y-2 pt-4",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Co,{data:o,theme:"monokai"})})]})]})]})}})})},_i=h1();function US(e,t){t===void 0&&(t=new Date);var n=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"short"}),r=n.formatToParts(t),o=r.find(function(i){return i.type==="timeZoneName"});return(o==null?void 0:o.value)||""}var qS=function(e){return[_i.display({id:"select",header:function(t){var n=t.table;return y.jsx(da,{checked:n.getIsSomeRowsSelected()?"indeterminate":n.getIsAllRowsSelected(),onCheckedChange:function(){n.toggleAllRowsSelected()}})},cell:function(t){var n=t.row,r=t.table;return y.jsx(da,{className:r.getIsSomeRowsSelected()||r.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:n.getIsSomeSelected()?"indeterminate":n.getIsSelected(),onCheckedChange:function(o){n.getToggleSelectedHandler()(o),e(n.index)}})}}),_i.accessor("name",{cell:function(t){return y.jsx("div",{className:"flex w-full items-center space-x-2",children:y.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:t.cell.row.original.name})})},header:"Scheduler"}),_i.accessor("pattern",{cell:function(t){return y.jsxs("span",{className:"grow basis-full truncate text-slate-900 dark:text-slate-200",children:[t.cell.row.original.pattern?HS.toString(t.cell.row.original.pattern,{verbose:!0}):t.cell.row.original.every?"Every ".concat(t.cell.row.original.every):""," ",t.cell.row.original.tz?"(".concat(US(t.cell.row.original.tz),")"):""]})},header:"Pattern"}),_i.accessor("next",{cell:function(t){return t.cell.row.original.next?y.jsx(Mu,{message:O1(new Date(t.cell.row.original.next),"dd MMM yyyy HH:mm:ss zzz"),children:y.jsx("div",{className:"flex items-center space-x-1.5",children:y.jsxs("p",{className:"text-slate-900 dark:text-slate-200",children:["In ",T1(new Date(t.cell.row.original.next))," ",y.jsxs("span",{className:"text-sm text-slate-700 dark:text-slate-400",children:["(",t.cell.row.original.iterationCount," run",t.cell.row.original.iterationCount===1?"":"s"," total)"]})]})})}):y.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:"No next run"})},header:"Next Run"})]},WS=function(e){var t=e.queueName,n=d.useState({}),r=n[0],o=n[1],i=d.useRef(null),a=ue.scheduler.list.useQuery({queueName:t}),s=a.data,l=a.isLoading,u=(s==null?void 0:s.length)===0,h=function(x){i.current=x},c=qS(h),p=S1({data:s||[],columns:c,getCoreRowModel:$1(),state:{rowSelection:r},onRowSelectionChange:o}),f=d.useState(null),g=f[0],m=f[1],v=ue.scheduler.bulkRemove.useMutation().mutate,b=function(x,w){if(x.shiftKey&&i.current!==null){x.preventDefault();for(var S=Math.min(i.current,w),M=Math.max(i.current,w),P=_r({},r),R=S;R<=M;R++)P[R]=!0;o(P)}else m(p.getRowModel().rows[w].original),i.current=w};return!l&&u?null:y.jsxs("div",{children:[g?y.jsx(zS,{scheduler:g,queueName:t,onDismiss:function(){return m(null)}}):null,y.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:l?y.jsx(_1,{}):y.jsxs("div",{children:[p.getHeaderGroups().map(function(x,w){return y.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,1fr,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:x.headers.map(function(S){return y.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(w!==0?"pr-10":"pr-3"),children:S.isPlaceholder?null:sa(S.column.columnDef.header,S.getContext())},S.id)})},x.id)}),p.getRowModel().rows.map(function(x,w){return y.jsx(D1,{isLastRow:p.getRowModel().rows.length!==w+1,isSelected:x.getIsSelected(),onClick:function(S){return b(S,w)},layoutVariant:"scheduler",children:x.getVisibleCells().map(function(S,M){return y.jsx("div",{className:"flex h-full items-center ".concat(M!==0?"pr-10":"pr-3"),children:sa(S.column.columnDef.cell,S.getContext())},S.id)})},x.id)})]})}),p.getSelectedRowModel().rows.length>0?y.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:y.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[y.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[p.getSelectedRowModel().rows.length," selected"]}),y.jsx(xn,{label:"Delete",colorScheme:"red",icon:y.jsx(zr,{}),size:"sm",onClick:function(){v({queueName:t,jobSchedulerIds:p.getSelectedRowModel().rows.map(function(x){return x.original.key})}),p.resetRowSelection()}})]})}):null]})},Li=function(e){var t=e.label,n=e.value,r=e.trend,o=e.variant,i=o===void 0?"completed":o,a=i==="completed"?r!=null&&r.isPositive?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400":r!=null&&r.isPositive?"text-red-600 dark:text-red-400":"text-green-600 dark:text-green-400";return y.jsxs("div",{className:"group flex flex-col space-y-2 rounded-xl border border-slate-200/80 bg-white/80 px-4 py-3 backdrop-blur-sm transition-all duration-200 hover:border-slate-300 hover:shadow-sm dark:border-slate-700/50 dark:bg-slate-900/50 dark:hover:border-slate-600",children:[y.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-slate-500 dark:text-slate-400",children:t}),y.jsxs("div",{className:"flex items-baseline space-x-2",children:[y.jsx("p",{className:"font-mono text-2xl font-semibold tabular-nums leading-none text-slate-900 dark:text-slate-50",children:typeof n=="number"?n.toLocaleString():n}),r&&y.jsxs("div",{className:"flex items-center space-x-0.5 font-mono text-xs font-medium ".concat(a),children:[r.isPositive?y.jsx(T2,{width:11,height:11}):y.jsx(M2,{width:11,height:11}),y.jsxs("span",{children:[Math.abs(r.value),"%"]})]})]})]})},sr={"1m":{label:"Last minute",minutes:1},"1h":{label:"Last hour",minutes:60},"24h":{label:"Last 24 hours",minutes:1440},"7d":{label:"Last 7 days",minutes:10080}},GS=function(e){var t=e.queueName,n=d.useState("1h"),r=n[0],o=n[1],i=ue.queue.metrics.useQuery({queueName:t,type:"completed",start:0,end:sr[r].minutes},{enabled:!!t,refetchInterval:Fo}),a=i.data,s=i.isLoading,l=ue.queue.metrics.useQuery({queueName:t,type:"failed",start:0,end:sr[r].minutes},{enabled:!!t,refetchInterval:Fo}),u=l.data,h=l.isLoading,c=s||h,p=function(b,x){if(x===0)return null;var w=(b-x)/x*100;return{value:Math.round(Math.abs(w)),isPositive:w>0}},f=a&&p(a.count,a.meta.prevCount),g=u&&p(u.count,u.meta.prevCount),m=a?(a.count/sr[r].minutes).toFixed(1):"0";u&&(u.count/sr[r].minutes).toFixed(1);var v=a&&u?a.count+u.count>0?(a.count/(a.count+u.count)*100).toFixed(1):"100":"0";return y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h2",{className:"text-lg font-semibold tracking-tight text-slate-900 dark:text-slate-50",children:"Metrics"}),y.jsx("div",{className:"flex items-center space-x-0.5 rounded-lg border border-slate-200/80 bg-white/80 p-0.5 backdrop-blur-sm dark:border-slate-700/50 dark:bg-slate-900/50",children:Object.keys(sr).map(function(b){return y.jsx("button",{onClick:function(){return o(b)},className:"rounded-md px-2.5 py-1 text-xs font-medium transition-all duration-150 ".concat(r===b?"bg-slate-100 text-slate-900 shadow-sm dark:bg-slate-800 dark:text-slate-100":"text-slate-600 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-400 dark:hover:bg-slate-800/50 dark:hover:text-slate-100"),children:sr[b].label},b)})})]}),c?y.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:Be([],Array(4),!0).map(function(b,x){return y.jsx(Ro,{className:"h-[88px] rounded-xl"},x)})}):y.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[y.jsx(Li,{label:"Completed",value:(a==null?void 0:a.count)||0,trend:f||void 0,variant:"completed"}),y.jsx(Li,{label:"Failed",value:(u==null?void 0:u.count)||0,trend:g||void 0,variant:"failed"}),y.jsx(Li,{label:"Success Rate",value:"".concat(v,"%")}),y.jsx(Li,{label:"Throughput",value:"".concat(m,"/min")})]})]})},Ls=new Intl.NumberFormat("en-US").format,QS=function(){var e,t,n,r,o,i=Db().id,a=i,s=C2()[0],l=d.useState("completed"),u=l[0],h=l[1],c=ue.job.list.useInfiniteQuery({queueName:a,limit:Ll,status:u},{getNextPageParam:function(S){return S.nextCursor},enabled:!!a,refetchInterval:Fo,retry:Fl}),p=c.data,f=c.fetchNextPage,g=c.isLoading,m=c.isError,v=c.isFetchingNextPage,b=c.hasNextPage;d.useEffect(function(){var S=s.get("status");S&&h(S),!S&&u&&h("completed")},[s,u]);var x=ue.queue.byName.useQuery({queueName:a},{enabled:!!a,refetchInterval:Fo,retry:Fl}),w=(e=p==null?void 0:p.pages.map(function(S){return S.jobs}).flat())!==null&&e!==void 0?e:[];return y.jsx(f1,{children:x.data===null?y.jsx(Rl,{message:"No queue found"}):m?y.jsx(Rl,{message:"Could not fetch jobs"}):y.jsxs("div",{children:[y.jsx("div",{className:"mb-2 flex justify-between",children:y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-slate-50",children:x.data?x.data.displayName:y.jsx(Ro,{className:"h-8 w-52 rounded-md"})}),y.jsxs("div",{className:"flex items-center space-x-2",children:[x.data?y.jsx(KS,{queue:x.data}):null,!((t=x.data)===null||t===void 0)&&t.paused?y.jsx("div",{className:"flex h-7 cursor-default items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:y.jsx("span",{children:"Paused"})}):null]})]})}),y.jsx("div",{className:"mb-5",children:y.jsx("div",{className:"flex items-center space-x-2",children:x.data?y.jsxs(y.Fragment,{children:[y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[y.jsxs("span",{className:"text-green-800 dark:text-green-400",children:[Ls(x.data.client.connectedClients)," ","connected"]})," ","and"," ",y.jsxs("span",{className:"text-red-800 dark:text-red-400",children:[Ls(x.data.client.blockedClients)," ","blocked"]})," ","out of"," ",y.jsxs("span",{className:"text-slate-900 dark:text-slate-100",children:[Ls(x.data.client.maxClients)," max clients"]})]}),y.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[x.data.client.usedMemoryHuman," /"," ",x.data.client.totalMemoryHuman," (",(x.data.client.usedMemoryPercentage*100).toFixed(2),"%)"]}),y.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:["Redis v",x.data.client.version]})]}):y.jsx(Ro,{className:"h-6 w-80"})})}),y.jsxs("div",{className:"space-y-8",children:[!((n=x.data)===null||n===void 0)&&n.supports.metrics?y.jsx(GS,{queueName:a}):null,!((r=x.data)===null||r===void 0)&&r.supports.schedulers?y.jsx(WS,{queueName:a}):null,y.jsxs("div",{className:"space-y-4",children:[y.jsx(O$,{showCleanAllButton:w.length>0,queueName:a,status:u,queue:x.data}),y.jsx(t$,{onBottomInView:function(){v||!b||f()},status:u,totalJobs:((o=p==null?void 0:p.pages.at(-1))===null||o===void 0?void 0:o.totalCount)||0,jobs:w.map(function(S){return _r(_r({},S),{status:u})}),isLoading:g,isFetchingNextPage:v,queueName:a})]})]})]})})},Fi=function(e){var t=e.count,n=e.variant,r={active:"text-cyan-600 dark:text-cyan-400",completed:"text-green-600 dark:text-green-400",failed:"text-red-600 dark:text-red-400",waiting:"text-amber-600 dark:text-amber-400"},o={active:y.jsx(P0,{width:16,height:16}),completed:y.jsx(C0,{width:16,height:16}),failed:y.jsx($0,{width:16,height:16}),waiting:y.jsx(a5,{width:16,height:16})};return y.jsx("div",{children:y.jsx(Mu,{message:n.charAt(0).toUpperCase()+n.slice(1),children:y.jsxs("div",{className:"flex items-center space-x-1 text-sm ".concat(r[n]),children:[y.jsx("p",{className:"text-lg",children:t}),o[n]]})})})},YS=function(e){var t=e.queueName,n=ue.queue.byName.useQuery({queueName:t},{refetchInterval:Fo,retry:Fl});return n.data?y.jsxs(ka,{to:"../".concat(n.data.name),className:"group flex items-center justify-between transition",children:[y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx("p",{className:"py-3 text-lg font-medium text-slate-900 transition group-hover:text-brand-900 dark:text-slate-200 dark:group-hover:text-brand-100",children:n.data.displayName}),y.jsx("div",{children:n.data.paused?y.jsx("div",{className:"flex h-7 items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:y.jsx("span",{children:"Paused"})}):null})]}),y.jsxs("div",{className:"flex space-x-5",children:[y.jsx(Fi,{count:n.data.counts.completed,variant:"completed"}),y.jsx(Fi,{count:n.data.counts.failed,variant:"failed"}),y.jsx(Fi,{count:n.data.counts.active,variant:"active"}),y.jsx(Fi,{count:n.data.counts.waiting,variant:"waiting"})]})]}):null},XS=function(){var e=ue.queue.list.useQuery().data,t=ue.queue.pauseAll.useMutation().mutate,n=ue.queue.resumeAll.useMutation().mutate;return y.jsx(f1,{children:y.jsxs("div",{className:"xl:max-w-2xl",children:[y.jsxs("div",{className:"flex justify-between",children:[y.jsx("h1",{className:"mb-6 text-2xl font-bold text-slate-900 dark:text-slate-50",children:"Queues"}),y.jsx("div",{children:y.jsx(za,{actions:[{label:"Resume all",icon:y.jsx(E0,{}),onSelect:function(){return n()}},{label:"Pause all",icon:y.jsx(S0,{}),onSelect:function(){return t()}}]})})]}),y.jsx("div",{children:e==null?void 0:e.map(function(r,o){return y.jsx("div",{className:(e==null?void 0:e.length)-1!==o?"border-b border-slate-100 dark:border-slate-700":"",children:y.jsx(YS,{queueName:r.name},r.name)},r.name)})})]})})},ZS=function(e){var t=e.apiUrl,n=e.basename,r=e.headers,o=d.useState(!1),i=o[0],a=o[1],s=d.useState(function(){return new fm})[0],l=d.useState(function(){return ue.createClient({links:[lv({url:t,headers:r})]})})[0];return d.useEffect(function(){var u=JSON.parse(localStorage.getItem("user-preferences")||"null");u?u.theme==="dark"||u.theme==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),a(!0)},[]),i?y.jsx(ue.Provider,{client:l,queryClient:s,children:y.jsxs(hm,{client:s,children:[y.jsx(M$,{}),y.jsx(b2,{basename:n,children:y.jsxs(Wb,{children:[y.jsx(il,{path:"/",element:y.jsx(XS,{})}),y.jsx(il,{path:"/:id",element:y.jsx(QS,{})})]})})]})}):null};exports.QueueDashApp=ZS;
|
|
72
|
+
`},nf=aS(cS)(Cg),dS={config:lS},fS=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(o){return n.reduceRight(function(i,a){return a(i)},o)}};function $g(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],$g(e[n],t[n]))}),Jd(Jd({},e),t)}var hS={type:"cancelation",msg:"operation is manually canceled"};function Ls(e){var t=!1,n=new Promise(function(r,o){e.then(function(i){return t?o(hS):r(i)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var pS=["monaco"],gS=oS.create({config:iS,isInitialized:!1,resolve:null,reject:null,monaco:null}),Sg=K$(gS,2),si=Sg[0],qa=Sg[1];function mS(e){var t=dS.config(e),n=t.monaco,r=N$(t,pS);qa(function(o){return{config:$g(o.config,r),monaco:n}})}function vS(){var e=si(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(qa({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ls(Fs);if(window.monaco&&window.monaco.editor)return Eg(window.monaco),e.resolve(window.monaco),Ls(Fs);fS(bS,xS)(wS)}return Ls(Fs)}function bS(e){return document.body.appendChild(e)}function yS(e){var t=document.createElement("script");return e&&(t.src=e),t}function xS(e){var t=si(function(r){var o=r.config,i=r.reject;return{config:o,reject:i}}),n=yS("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function wS(){var e=si(function(n){var r=n.config,o=n.resolve,i=n.reject;return{config:r,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;Eg(r),e.resolve(r)},function(n){e.reject(n)})}function Eg(e){si().monaco||qa({monaco:e})}function CS(){return si(function(e){var t=e.monaco;return t})}var Fs=new Promise(function(e,t){return qa({resolve:e,reject:t})}),Pg={config:mS,init:vS,__getMonacoInstance:CS},$S={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Is=$S,SS={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},ES=SS;function PS({children:e}){return d.createElement("div",{style:ES.container},e)}var RS=PS,kS=RS;function MS({width:e,height:t,isEditorReady:n,loading:r,_ref:o,className:i,wrapperProps:a}){return d.createElement("section",{style:{...Is.wrapper,width:e,height:t},...a},!n&&d.createElement(kS,null,r),d.createElement("div",{ref:o,style:{...Is.fullWidth,...!n&&Is.hide},className:i}))}var OS=MS,Rg=d.memo(OS);function TS(e){d.useEffect(e,[])}var kg=TS;function DS(e,t,n=!0){let r=d.useRef(!0);d.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Ze=DS;function Po(){}function pr(e,t,n,r){return _S(e,r)||LS(e,t,n,r)}function _S(e,t){return e.editor.getModel(Mg(e,t))}function LS(e,t,n,r){return e.editor.createModel(t,n,r?Mg(e,r):void 0)}function Mg(e,t){return e.Uri.parse(t)}function FS({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:h="Loading...",options:c={},height:p="100%",width:f="100%",className:m,wrapperProps:g={},beforeMount:v=Po,onMount:b=Po}){let[x,w]=d.useState(!1),[$,M]=d.useState(!0),R=d.useRef(null),P=d.useRef(null),k=d.useRef(null),D=d.useRef(b),L=d.useRef(v),N=d.useRef(!1);kg(()=>{let T=Pg.init();return T.then(I=>(P.current=I)&&M(!1)).catch(I=>(I==null?void 0:I.type)!=="cancelation"&&console.error("Monaco initialization: error:",I)),()=>R.current?_():T.cancel()}),Ze(()=>{if(R.current&&P.current){let T=R.current.getOriginalEditor(),I=pr(P.current,e||"",r||n||"text",i||"");I!==T.getModel()&&T.setModel(I)}},[i],x),Ze(()=>{if(R.current&&P.current){let T=R.current.getModifiedEditor(),I=pr(P.current,t||"",o||n||"text",a||"");I!==T.getModel()&&T.setModel(I)}},[a],x),Ze(()=>{let T=R.current.getModifiedEditor();T.getOption(P.current.editor.EditorOption.readOnly)?T.setValue(t||""):t!==T.getValue()&&(T.executeEdits("",[{range:T.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),T.pushUndoStop())},[t],x),Ze(()=>{var T,I;(I=(T=R.current)==null?void 0:T.getModel())==null||I.original.setValue(e||"")},[e],x),Ze(()=>{let{original:T,modified:I}=R.current.getModel();P.current.editor.setModelLanguage(T,r||n||"text"),P.current.editor.setModelLanguage(I,o||n||"text")},[n,r,o],x),Ze(()=>{var T;(T=P.current)==null||T.editor.setTheme(u)},[u],x),Ze(()=>{var T;(T=R.current)==null||T.updateOptions(c)},[c],x);let B=d.useCallback(()=>{var z;if(!P.current)return;L.current(P.current);let T=pr(P.current,e||"",r||n||"text",i||""),I=pr(P.current,t||"",o||n||"text",a||"");(z=R.current)==null||z.setModel({original:T,modified:I})},[n,t,o,e,r,i,a]),A=d.useCallback(()=>{var T;!N.current&&k.current&&(R.current=P.current.editor.createDiffEditor(k.current,{automaticLayout:!0,...c}),B(),(T=P.current)==null||T.editor.setTheme(u),w(!0),N.current=!0)},[c,u,B]);d.useEffect(()=>{x&&D.current(R.current,P.current)},[x]),d.useEffect(()=>{!$&&!x&&A()},[$,x,A]);function _(){var I,z,G,q;let T=(I=R.current)==null?void 0:I.getModel();s||((z=T==null?void 0:T.original)==null||z.dispose()),l||((G=T==null?void 0:T.modified)==null||G.dispose()),(q=R.current)==null||q.dispose()}return d.createElement(Rg,{width:f,height:p,isEditorReady:x,loading:h,_ref:k,className:m,wrapperProps:g})}var IS=FS;d.memo(IS);function jS(e){let t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}var NS=jS,_i=new Map;function AS({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:o,path:i,theme:a="light",line:s,loading:l="Loading...",options:u={},overrideServices:h={},saveViewState:c=!0,keepCurrentModel:p=!1,width:f="100%",height:m="100%",className:g,wrapperProps:v={},beforeMount:b=Po,onMount:x=Po,onChange:w,onValidate:$=Po}){let[M,R]=d.useState(!1),[P,k]=d.useState(!0),D=d.useRef(null),L=d.useRef(null),N=d.useRef(null),B=d.useRef(x),A=d.useRef(b),_=d.useRef(),T=d.useRef(r),I=NS(i),z=d.useRef(!1),G=d.useRef(!1);kg(()=>{let F=Pg.init();return F.then(O=>(D.current=O)&&k(!1)).catch(O=>(O==null?void 0:O.type)!=="cancelation"&&console.error("Monaco initialization: error:",O)),()=>L.current?S():F.cancel()}),Ze(()=>{var O,j,H,K;let F=pr(D.current,e||r||"",t||o||"",i||n||"");F!==((O=L.current)==null?void 0:O.getModel())&&(c&&_i.set(I,(j=L.current)==null?void 0:j.saveViewState()),(H=L.current)==null||H.setModel(F),c&&((K=L.current)==null||K.restoreViewState(_i.get(i))))},[i],M),Ze(()=>{var F;(F=L.current)==null||F.updateOptions(u)},[u],M),Ze(()=>{!L.current||r===void 0||(L.current.getOption(D.current.editor.EditorOption.readOnly)?L.current.setValue(r):r!==L.current.getValue()&&(G.current=!0,L.current.executeEdits("",[{range:L.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),L.current.pushUndoStop(),G.current=!1))},[r],M),Ze(()=>{var O,j;let F=(O=L.current)==null?void 0:O.getModel();F&&o&&((j=D.current)==null||j.editor.setModelLanguage(F,o))},[o],M),Ze(()=>{var F;s!==void 0&&((F=L.current)==null||F.revealLine(s))},[s],M),Ze(()=>{var F;(F=D.current)==null||F.editor.setTheme(a)},[a],M);let q=d.useCallback(()=>{var F;if(!(!N.current||!D.current)&&!z.current){A.current(D.current);let O=i||n,j=pr(D.current,r||e||"",t||o||"",O||"");L.current=(F=D.current)==null?void 0:F.editor.create(N.current,{model:j,automaticLayout:!0,...u},h),c&&L.current.restoreViewState(_i.get(O)),D.current.editor.setTheme(a),s!==void 0&&L.current.revealLine(s),R(!0),z.current=!0}},[e,t,n,r,o,i,u,h,c,a,s]);d.useEffect(()=>{M&&B.current(L.current,D.current)},[M]),d.useEffect(()=>{!P&&!M&&q()},[P,M,q]),T.current=r,d.useEffect(()=>{var F,O;M&&w&&((F=_.current)==null||F.dispose(),_.current=(O=L.current)==null?void 0:O.onDidChangeModelContent(j=>{G.current||w(L.current.getValue(),j)}))},[M,w]),d.useEffect(()=>{if(M){let F=D.current.editor.onDidChangeMarkers(O=>{var H;let j=(H=L.current.getModel())==null?void 0:H.uri;if(j&&O.find(K=>K.path===j.path)){let K=D.current.editor.getModelMarkers({resource:j});$==null||$(K)}});return()=>{F==null||F.dispose()}}return()=>{}},[M,$]);function S(){var F,O;(F=_.current)==null||F.dispose(),p?c&&_i.set(i,L.current.saveViewState()):(O=L.current.getModel())==null||O.dispose(),L.current.dispose()}return d.createElement(Rg,{width:f,height:m,isEditorReady:M,loading:l,_ref:N,className:g,wrapperProps:v})}var KS=AS,BS=d.memo(KS),HS=BS,js=function(e){var t=e.value,n=e.onChange,r=d.useRef(null),o=function(){var a,s;(s=(a=r.current)===null||a===void 0?void 0:a.getAction("editor.action.formatDocument"))===null||s===void 0||s.run()},i=function(a){var s=String.fromCharCode(a.which).toLowerCase();(a.ctrlKey||a.metaKey)&&s==="s"&&(a.preventDefault(),o())};return y.jsx("div",{onKeyDown:i,onBlur:o,className:"mb-6 border border-slate-200",children:y.jsx(HS,{height:"300px",language:"json",className:"rounded-md",options:{minimap:{enabled:!1},formatOnPaste:!0,formatOnType:!0,padding:{top:8,bottom:8},tabSize:2},defaultValue:t,onChange:function(a){a&&n(a)},onMount:function(a,s){r.current=a,s.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{background:"ffffff",token:""},{foreground:"6a737d",token:"comment"},{foreground:"6a737d",token:"punctuation.definition.comment"},{foreground:"6a737d",token:"string.comment"},{foreground:"005cc5",token:"constant"},{foreground:"005cc5",token:"entity.name.constant"},{foreground:"005cc5",token:"variable.other.constant"},{foreground:"005cc5",token:"variable.language"},{foreground:"6f42c1",token:"entity"},{foreground:"6f42c1",token:"entity.name"},{foreground:"24292e",token:"variable.parameter.function"},{foreground:"22863a",token:"entity.name.tag"},{foreground:"d73a49",token:"keyword"},{foreground:"d73a49",token:"storage"},{foreground:"d73a49",token:"storage.type"},{foreground:"24292e",token:"storage.modifier.package"},{foreground:"24292e",token:"storage.modifier.import"},{foreground:"24292e",token:"storage.type.java"},{foreground:"032f62",token:"string"},{foreground:"032f62",token:"punctuation.definition.string"},{foreground:"032f62",token:"string punctuation.section.embedded source"},{foreground:"005cc5",token:"support"},{foreground:"005cc5",token:"meta.property-name"},{foreground:"e36209",token:"variable"},{foreground:"24292e",token:"variable.other"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.broken"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.deprecated"},{foreground:"fafbfc",background:"b31d28",fontStyle:"italic underline",token:"invalid.illegal"},{foreground:"fafbfc",background:"d73a49",fontStyle:"italic underline",token:"carriage-return"},{foreground:"b31d28",fontStyle:"bold italic underline",token:"invalid.unimplemented"},{foreground:"b31d28",token:"message.error"},{foreground:"24292e",token:"string source"},{foreground:"005cc5",token:"string variable"},{foreground:"032f62",token:"source.regexp"},{foreground:"032f62",token:"string.regexp"},{foreground:"032f62",token:"string.regexp.character-class"},{foreground:"032f62",token:"string.regexp constant.character.escape"},{foreground:"032f62",token:"string.regexp source.ruby.embedded"},{foreground:"032f62",token:"string.regexp string.regexp.arbitrary-repitition"},{foreground:"22863a",fontStyle:"bold",token:"string.regexp constant.character.escape"},{foreground:"005cc5",token:"support.constant"},{foreground:"005cc5",token:"support.variable"},{foreground:"005cc5",token:"meta.module-reference"},{foreground:"735c0f",token:"markup.list"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading"},{foreground:"005cc5",fontStyle:"bold",token:"markup.heading entity.name"},{foreground:"22863a",token:"markup.quote"},{foreground:"24292e",fontStyle:"italic",token:"markup.italic"},{foreground:"24292e",fontStyle:"bold",token:"markup.bold"},{foreground:"005cc5",token:"markup.raw"},{foreground:"b31d28",background:"ffeef0",token:"markup.deleted"},{foreground:"b31d28",background:"ffeef0",token:"meta.diff.header.from-file"},{foreground:"b31d28",background:"ffeef0",token:"punctuation.definition.deleted"},{foreground:"22863a",background:"f0fff4",token:"markup.inserted"},{foreground:"22863a",background:"f0fff4",token:"meta.diff.header.to-file"},{foreground:"22863a",background:"f0fff4",token:"punctuation.definition.inserted"},{foreground:"e36209",background:"ffebda",token:"markup.changed"},{foreground:"e36209",background:"ffebda",token:"punctuation.definition.changed"},{foreground:"f6f8fa",background:"005cc5",token:"markup.ignored"},{foreground:"f6f8fa",background:"005cc5",token:"markup.untracked"},{foreground:"6f42c1",fontStyle:"bold",token:"meta.diff.range"},{foreground:"005cc5",token:"meta.diff.header"},{foreground:"005cc5",fontStyle:"bold",token:"meta.separator"},{foreground:"005cc5",token:"meta.output"},{foreground:"586069",token:"brackethighlighter.tag"},{foreground:"586069",token:"brackethighlighter.curly"},{foreground:"586069",token:"brackethighlighter.round"},{foreground:"586069",token:"brackethighlighter.square"},{foreground:"586069",token:"brackethighlighter.angle"},{foreground:"586069",token:"brackethighlighter.quote"},{foreground:"b31d28",token:"brackethighlighter.unmatched"},{foreground:"b31d28",token:"sublimelinter.mark.error"},{foreground:"e36209",token:"sublimelinter.mark.warning"},{foreground:"959da5",token:"sublimelinter.gutter-mark"},{foreground:"032f62",fontStyle:"underline",token:"constant.other.reference.link"},{foreground:"032f62",fontStyle:"underline",token:"string.other.link"}],colors:{"editor.foreground":"#24292e","editor.background":"#ffffff","editor.selectionBackground":"#c8c8fa","editor.inactiveSelectionBackground":"#fafbfc","editor.lineHighlightBackground":"#fafbfc","editorCursor.foreground":"#24292e","editorWhitespace.foreground":"#959da5","editorIndentGuide.background":"#959da5","editorIndentGuide.activeBackground":"#24292e","editor.selectionHighlightBorder":"#fafbfc"}}),s.editor.setTheme("solarized-light")}})})},rf=function(e){var t=e.queue,n=e.onDismiss,r=e.variant,o=r===void 0?"job":r,i=ue.queue.addJob.useMutation({onSuccess:function(){dr.success("New job has been added"),n()},onError:function(R){dr.error(R.message)}}),a=i.mutate,s=i.status,l=ue.queue.addJobScheduler.useMutation({onSuccess:function(){dr.success("New job scheduler has been added"),n()},onError:function(R){dr.error(R.message)}}),u=l.mutate,h=l.status,c=d.useState("{}"),p=c[0],f=c[1],m=d.useState(JSON.stringify({name:"",data:{},opts:{}},null,2)),g=m[0],v=m[1],b=d.useState(JSON.stringify({pattern:"0 0 * * *",tz:Intl.DateTimeFormat().resolvedOptions().timeZone},null,2)),x=b[0],w=b[1],$=o==="job",M=$?s:h;return y.jsx(d1,{isOpen:!0,onOpenChange:function(R){R||n()},children:y.jsx(Ha,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Ka,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(R){var P=R.close;return y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){P(),n()},children:y.jsx(au,{})}),y.jsx("div",{className:"flex items-center space-x-4",children:y.jsxs(Ba,{className:"mb-1 text-xl font-semibold text-slate-900 dark:text-slate-100",children:["Add ",$?"job":"scheduler"," to"," ",t.displayName.toLocaleLowerCase()]})}),$?y.jsx(js,{value:p,onChange:f}):y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),y.jsx(js,{value:g,onChange:v})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx(js,{value:x,onChange:w})]})]}),y.jsx("div",{children:y.jsx(wn,{label:$?"Add job":"Add scheduler",variant:"filled",disabled:M==="pending",onClick:function(){try{if($){var k=JSON.parse(p);a({queueName:t.name,data:k})}else{var D=JSON.parse(g),L=JSON.parse(x);u({queueName:t.name,template:D,opts:L})}}catch{dr.error("Invalid JSON")}}})})]})}})})})},VS=function(e){var t=e.queue,n=ue.queue.pause.useMutation().mutate,r=ue.queue.resume.useMutation().mutate,o=ue.queue.empty.useMutation().mutate,i=d.useState(!1),a=i[0],s=i[1],l=d.useState(!1),u=l[0],h=l[1],c={queueName:t.name},p=He(He(He(He([],t.supports.pause&&t.supports.resume?[{label:t.paused?"Resume":"Pause",onSelect:function(){t.paused?r(c):n(c)},icon:t.paused?y.jsx(M0,{}):y.jsx(k0,{})}]:[],!0),[{label:"Add job",onSelect:function(){s(!0)},icon:y.jsx(mc,{})}],!1),t.supports.schedulers?[{label:"Add scheduler",onSelect:function(){h(!0)},icon:y.jsx(mc,{})}]:[],!0),t.supports.empty?[{label:"Empty",onSelect:function(){o(c)},icon:y.jsx(Ur,{})}]:[],!0);return y.jsxs(y.Fragment,{children:[y.jsx(Ua,{actions:p}),a?y.jsx(rf,{queue:t,variant:"job",onDismiss:function(){return s(!1)}}):null,u?y.jsx(rf,{queue:t,variant:"scheduler",onDismiss:function(){return h(!1)}}):null]})},Og={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(globalThis,()=>(()=>{var n={949:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CronParser=void 0;var u=l(515),h=function(){function c(p,f,m){f===void 0&&(f=!0),m===void 0&&(m=!1),this.expression=p,this.dayOfWeekStartIndexZero=f,this.monthStartIndexZero=m}return c.prototype.parse=function(){var p,f,m=(p=this.expression)!==null&&p!==void 0?p:"";if(m==="@reboot")return f=["@reboot","","","","","",""],f;if(m.startsWith("@")){var g=this.parseSpecial(this.expression);f=this.extractParts(g)}else f=this.extractParts(this.expression);return this.normalize(f),this.validate(f),f},c.prototype.parseSpecial=function(p){var f={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},m=f[p];if(!m)throw new Error("Unknown special expression.");return m},c.prototype.extractParts=function(p){if(!this.expression)throw new Error("cron expression is empty");for(var f=p.trim().split(/[ ]+/),m=0;m<f.length;m++)if(f[m].includes(",")){var g=f[m].split(",").map(function(b){return b.trim()}).filter(function(b){return b!==""}).map(function(b){return isNaN(Number(b))?b:Number(b)}).filter(function(b){return b!==null&&b!==""});g.length===0&&g.push("*"),g.sort(function(b,x){return b!==null&&x!==null?b-x:0}),f[m]=g.map(function(b){return b!==null?b.toString():""}).join(",")}if(f.length<5)throw new Error("Expression has only ".concat(f.length," part").concat(f.length==1?"":"s",". At least 5 parts are required."));if(f.length==5)f.unshift(""),f.push("");else if(f.length==6){var v=/\d{4}$/.test(f[5])||f[4]=="?"||f[2]=="?";v?f.unshift(""):f.push("")}else if(f.length>7)throw new Error("Expression has ".concat(f.length," parts; too many!"));return f},c.prototype.normalize=function(p){var f=this;if(p[3]=p[3].replace("?","*"),p[5]=p[5].replace("?","*"),p[2]=p[2].replace("?","*"),p[0].indexOf("0/")==0&&(p[0]=p[0].replace("0/","*/")),p[1].indexOf("0/")==0&&(p[1]=p[1].replace("0/","*/")),p[2].indexOf("0/")==0&&(p[2]=p[2].replace("0/","*/")),p[3].indexOf("1/")==0&&(p[3]=p[3].replace("1/","*/")),p[4].indexOf("1/")==0&&(p[4]=p[4].replace("1/","*/")),p[6].indexOf("1/")==0&&(p[6]=p[6].replace("1/","*/")),p[5]=p[5].replace(/(^\d)|([^#/\s]\d)/g,function(M){var R=M.replace(/\D/,""),P=R;return f.dayOfWeekStartIndexZero?R=="7"&&(P="0"):P=(parseInt(R)-1).toString(),M.replace(R,P)}),p[5]=="L"&&(p[5]="6"),p[3]=="?"&&(p[3]="*"),p[3].indexOf("W")>-1&&(p[3].indexOf(",")>-1||p[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var m={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var g in m)p[5]=p[5].replace(new RegExp(g,"gi"),m[g].toString());p[4]=p[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(M){var R=M.replace(/\D/,""),P=R;return f.monthStartIndexZero&&(P=(parseInt(R)+1).toString()),M.replace(R,P)});var v={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var b in v)p[4]=p[4].replace(new RegExp(b,"gi"),v[b].toString());p[0]=="0"&&(p[0]=""),!/\*|\-|\,|\//.test(p[2])&&(/\*|\//.test(p[1])||/\*|\//.test(p[0]))&&(p[2]+="-".concat(p[2]));for(var x=0;x<p.length;x++)if(p[x].indexOf(",")!=-1&&(p[x]=p[x].split(",").filter(function(M){return M!==""}).join(",")||"*"),p[x]=="*/1"&&(p[x]="*"),p[x].indexOf("/")>-1&&!/^\*|\-|\,/.test(p[x])){var w=null;switch(x){case 4:w="12";break;case 5:w="6";break;case 6:w="9999";break;default:w=null;break}if(w!==null){var $=p[x].split("/");p[x]="".concat($[0],"-").concat(w,"/").concat($[1])}}},c.prototype.validate=function(p){var f="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(p[0],f),this.validateOnlyExpectedCharactersFound(p[1],f),this.validateOnlyExpectedCharactersFound(p[2],f),this.validateOnlyExpectedCharactersFound(p[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(p[4],f),this.validateOnlyExpectedCharactersFound(p[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(p[6],f),this.validateAnyRanges(p)},c.prototype.validateAnyRanges=function(p){u.default.secondRange(p[0]),u.default.minuteRange(p[1]),u.default.hourRange(p[2]),u.default.dayOfMonthRange(p[3]),u.default.monthRange(p[4],this.monthStartIndexZero),u.default.dayOfWeekRange(p[5],this.dayOfWeekStartIndexZero)},c.prototype.validateOnlyExpectedCharactersFound=function(p,f){var m=p.match(new RegExp("[^".concat(f,"]+"),"gi"));if(m&&m.length)throw new Error("Expression contains invalid values: '".concat(m.toString(),"'"))},c}();s.CronParser=h},333:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ExpressionDescriptor=void 0;var u=l(823),h=l(949),c=function(){function p(f,m){if(this.expression=f,this.options=m,this.expressionParts=new Array(5),!this.options.locale&&p.defaultLocale&&(this.options.locale=p.defaultLocale),!p.locales[this.options.locale]){var g=Object.keys(p.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(g,"'.")),this.options.locale=g}this.i18n=p.locales[this.options.locale],m.use24HourTimeFormat===void 0&&(m.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return p.toString=function(f,m){var g=m===void 0?{}:m,v=g.throwExceptionOnParseError,b=v===void 0?!0:v,x=g.verbose,w=x===void 0?!1:x,$=g.dayOfWeekStartIndexZero,M=$===void 0?!0:$,R=g.monthStartIndexZero,P=R===void 0?!1:R,k=g.use24HourTimeFormat,D=g.locale,L=D===void 0?null:D,N={throwExceptionOnParseError:b,verbose:w,dayOfWeekStartIndexZero:M,monthStartIndexZero:P,use24HourTimeFormat:k,locale:L};N.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var B=new p(f,N);return B.getFullDescription()},p.initialize=function(f,m){m===void 0&&(m="en"),p.specialCharacters=["/","-",",","*"],p.defaultLocale=m,f.load(p.locales)},p.prototype.getFullDescription=function(){var f,m,g="";try{var v=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=v.parse(),this.expressionParts[0]==="@reboot")return((m=(f=this.i18n).atReboot)===null||m===void 0?void 0:m.call(f))||"Run once, at startup";var b=this.getTimeOfDayDescription(),x=this.getDayOfMonthDescription(),w=this.getMonthDescription(),$=this.getDayOfWeekDescription(),M=this.getYearDescription();g+=b+x+$+w+M,g=this.transformVerbosity(g,!!this.options.verbose),g=g.charAt(0).toLocaleUpperCase()+g.substr(1)}catch(R){if(!this.options.throwExceptionOnParseError)g=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(R)}return g},p.prototype.getTimeOfDayDescription=function(){var f=this.expressionParts[0],m=this.expressionParts[1],g=this.expressionParts[2],v="";if(!u.StringUtilities.containsAny(m,p.specialCharacters)&&!u.StringUtilities.containsAny(g,p.specialCharacters)&&!u.StringUtilities.containsAny(f,p.specialCharacters))v+=this.i18n.atSpace()+this.formatTime(g,m,f);else if(!f&&m.indexOf("-")>-1&&!(m.indexOf(",")>-1)&&!(m.indexOf("/")>-1)&&!u.StringUtilities.containsAny(g,p.specialCharacters)){var b=m.split("-");v+=u.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(g,b[0],""),this.formatTime(g,b[1],""))}else if(!f&&g.indexOf(",")>-1&&g.indexOf("-")==-1&&g.indexOf("/")==-1&&!u.StringUtilities.containsAny(m,p.specialCharacters)){var x=g.split(",");v+=this.i18n.at();for(var w=0;w<x.length;w++)v+=" ",v+=this.formatTime(x[w],m,""),w<x.length-2&&(v+=","),w==x.length-2&&(v+=this.i18n.spaceAnd())}else{var $=this.getSecondsDescription(),M=this.getMinutesDescription(),R=this.getHoursDescription();if(v+=$,v&&M&&(v+=", "),v+=M,M===R)return v;v&&R&&(v+=", "),v+=R}return v},p.prototype.getSecondsDescription=function(){var f=this,m=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(g){return g},function(g){return u.StringUtilities.format(f.i18n.everyX0Seconds(g),g)},function(g){return f.i18n.secondsX0ThroughX1PastTheMinute()},function(g){return g=="0"?"":parseInt(g)<20?f.i18n.atX0SecondsPastTheMinute(g):f.i18n.atX0SecondsPastTheMinuteGt20()||f.i18n.atX0SecondsPastTheMinute(g)});return m},p.prototype.getMinutesDescription=function(){var f=this,m=this.expressionParts[0],g=this.expressionParts[2],v=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(b){return b},function(b){return u.StringUtilities.format(f.i18n.everyX0Minutes(b),b)},function(b){return f.i18n.minutesX0ThroughX1PastTheHour()},function(b){try{return b=="0"&&g.indexOf("/")==-1&&m==""?f.i18n.everyHour():parseInt(b)<20?f.i18n.atX0MinutesPastTheHour(b):f.i18n.atX0MinutesPastTheHourGt20()||f.i18n.atX0MinutesPastTheHour(b)}catch{return f.i18n.atX0MinutesPastTheHour(b)}});return v},p.prototype.getHoursDescription=function(){var f=this,m=this.expressionParts[2],g=0,v=[];m.split("/")[0].split(",").forEach(function(w){var $=w.split("-");$.length===2&&v.push({value:$[1],index:g+1}),g+=$.length});var b=0,x=this.getSegmentDescription(m,this.i18n.everyHour(),function(w){var $=v.find(function(R){return R.value===w&&R.index===b}),M=$&&f.expressionParts[1]!=="0";return b++,M?f.formatTime(w,"59",""):f.formatTime(w,"0","")},function(w){return u.StringUtilities.format(f.i18n.everyX0Hours(w),w)},function(w){return f.i18n.betweenX0AndX1()},function(w){return f.i18n.atX0()});return x},p.prototype.getDayOfWeekDescription=function(){var f=this,m=this.i18n.daysOfTheWeek(),g=null;return this.expressionParts[5]=="*"?g="":g=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(v,b){var x=v;v.indexOf("#")>-1?x=v.substring(0,v.indexOf("#")):v.indexOf("L")>-1&&(x=x.replace("L",""));var w=parseInt(x),$=f.i18n.daysOfTheWeekInCase?f.i18n.daysOfTheWeekInCase(b)[w]:m[w];if(v.indexOf("#")>-1){var M=null,R=v.substring(v.indexOf("#")+1),P=v.substring(0,v.indexOf("#"));switch(R){case"1":M=f.i18n.first(P);break;case"2":M=f.i18n.second(P);break;case"3":M=f.i18n.third(P);break;case"4":M=f.i18n.fourth(P);break;case"5":M=f.i18n.fifth(P);break}$=M+" "+$}return $},function(v){return parseInt(v)==1?"":u.StringUtilities.format(f.i18n.commaEveryX0DaysOfTheWeek(v),v)},function(v){var b=v.substring(0,v.indexOf("-")),x=f.expressionParts[3]!="*";return x?f.i18n.commaAndX0ThroughX1(b):f.i18n.commaX0ThroughX1(b)},function(v){var b=null;if(v.indexOf("#")>-1){var x=v.substring(v.indexOf("#")+1),w=v.substring(0,v.indexOf("#"));b=f.i18n.commaOnThe(x,w).trim()+f.i18n.spaceX0OfTheMonth()}else if(v.indexOf("L")>-1)b=f.i18n.commaOnTheLastX0OfTheMonth(v.replace("L",""));else{var $=f.expressionParts[3]!="*";b=$?f.i18n.commaAndOnX0():f.i18n.commaOnlyOnX0(v)}return b}),g},p.prototype.getMonthDescription=function(){var f=this,m=this.i18n.monthsOfTheYear(),g=this.getSegmentDescription(this.expressionParts[4],"",function(v,b){return b&&f.i18n.monthsOfTheYearInCase?f.i18n.monthsOfTheYearInCase(b)[parseInt(v)-1]:m[parseInt(v)-1]},function(v){return parseInt(v)==1?"":u.StringUtilities.format(f.i18n.commaEveryX0Months(v),v)},function(v){return f.i18n.commaMonthX0ThroughMonthX1()||f.i18n.commaX0ThroughX1()},function(v){return f.i18n.commaOnlyInMonthX0?f.i18n.commaOnlyInMonthX0():f.i18n.commaOnlyInX0()});return g},p.prototype.getDayOfMonthDescription=function(){var f=this,m=null,g=this.expressionParts[3];switch(g){case"L":m=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":m=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var v=g.match(/(\d{1,2}W)|(W\d{1,2})/);if(v){var b=parseInt(v[0].replace("W","")),x=b==1?this.i18n.firstWeekday():u.StringUtilities.format(this.i18n.weekdayNearestDayX0(),b.toString());m=u.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),x);break}else{var w=g.match(/L-(\d{1,2})/);if(w){var $=w[1];m=u.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth($),$);break}else{if(g=="*"&&this.expressionParts[5]!="*")return"";m=this.getSegmentDescription(g,this.i18n.commaEveryDay(),function(M){return M=="L"?f.i18n.lastDay():f.i18n.dayX0?u.StringUtilities.format(f.i18n.dayX0(),M):M},function(M){return M=="1"?f.i18n.commaEveryDay():f.i18n.commaEveryX0Days(M)},function(M){return f.i18n.commaBetweenDayX0AndX1OfTheMonth(M)},function(M){return f.i18n.commaOnDayX0OfTheMonth(M)})}break}}return m},p.prototype.getYearDescription=function(){var f=this,m=this.getSegmentDescription(this.expressionParts[6],"",function(g){return/^\d+$/.test(g)?new Date(parseInt(g),1).getFullYear().toString():g},function(g){return u.StringUtilities.format(f.i18n.commaEveryX0Years(g),g)},function(g){return f.i18n.commaYearX0ThroughYearX1()||f.i18n.commaX0ThroughX1()},function(g){return f.i18n.commaOnlyInYearX0?f.i18n.commaOnlyInYearX0():f.i18n.commaOnlyInX0()});return m},p.prototype.getSegmentDescription=function(f,m,g,v,b,x){var w=null,$=f.indexOf("/")>-1,M=f.indexOf("-")>-1,R=f.indexOf(",")>-1;if(!f)w="";else if(f==="*")w=m;else if(!$&&!M&&!R)w=u.StringUtilities.format(x(f),g(f));else if(R){for(var P=f.split(","),k="",D=0;D<P.length;D++)if(D>0&&P.length>2&&(k+=",",D<P.length-1&&(k+=" ")),D>0&&P.length>1&&(D==P.length-1||P.length==2)&&(k+="".concat(this.i18n.spaceAnd()," ")),P[D].indexOf("/")>-1||P[D].indexOf("-")>-1){var L=P[D].indexOf("-")>-1&&P[D].indexOf("/")==-1,N=this.getSegmentDescription(P[D],m,g,v,L?this.i18n.commaX0ThroughX1:b,x);L&&(N=N.replace(", ","")),k+=N}else $?k+=this.getSegmentDescription(P[D],m,g,v,b,x):k+=g(P[D]);$?w=k:w=u.StringUtilities.format(x(f),k)}else if($){var P=f.split("/");if(w=u.StringUtilities.format(v(P[1]),P[1]),P[0].indexOf("-")>-1){var B=this.generateRangeSegmentDescription(P[0],b,g);B.indexOf(", ")!=0&&(w+=", "),w+=B}else if(P[0].indexOf("*")==-1){var A=u.StringUtilities.format(x(P[0]),g(P[0]));A=A.replace(", ",""),w+=u.StringUtilities.format(this.i18n.commaStartingX0(),A)}}else M&&(w=this.generateRangeSegmentDescription(f,b,g));return w},p.prototype.generateRangeSegmentDescription=function(f,m,g){var v="",b=f.split("-"),x=g(b[0],1),w=g(b[1],2),$=m(f);return v+=u.StringUtilities.format($,x,w),v},p.prototype.formatTime=function(f,m,g){var v=0,b=0,x=parseInt(f)+v,w=parseInt(m)+b;w>=60?(w-=60,x+=1):w<0&&(w+=60,x-=1),x>=24?x=x-24:x<0&&(x=24+x);var $="",M=!1;this.options.use24HourTimeFormat||(M=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),$=M?"".concat(this.getPeriod(x)," "):" ".concat(this.getPeriod(x)),x>12&&(x-=12),x===0&&(x=12));var R="";return g&&(R=":".concat(("00"+g).substring(g.length))),"".concat(M?$:"").concat(("00"+x.toString()).substring(x.toString().length),":").concat(("00"+w.toString()).substring(w.toString().length)).concat(R).concat(M?"":$)},p.prototype.transformVerbosity=function(f,m){if(!m&&(f=f.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),f=f.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),f=f.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),f=f.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var g=0,v=Object.entries(this.i18n.conciseVerbosityReplacements());g<v.length;g++){var b=v[g],x=b[0],w=b[1];f=f.replace(new RegExp(x,"g"),w)}return f},p.prototype.getPeriod=function(f){return f>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},p.locales={},p}();s.ExpressionDescriptor=c},747:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.enLocaleLoader=void 0;var u=l(486),h=function(){function c(){}return c.prototype.load=function(p){p.en=new u.en},c}();s.enLocaleLoader=h},486:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.en=void 0;var l=function(){function u(){}return u.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},u.prototype.atX0MinutesPastTheHourGt20=function(){return null},u.prototype.commaMonthX0ThroughMonthX1=function(){return null},u.prototype.commaYearX0ThroughYearX1=function(){return null},u.prototype.use24HourTimeFormatByDefault=function(){return!1},u.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},u.prototype.everyMinute=function(){return"every minute"},u.prototype.everyHour=function(){return"every hour"},u.prototype.atSpace=function(){return"At "},u.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},u.prototype.at=function(){return"At"},u.prototype.spaceAnd=function(){return" and"},u.prototype.everySecond=function(){return"every second"},u.prototype.everyX0Seconds=function(){return"every %s seconds"},u.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},u.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},u.prototype.everyX0Minutes=function(){return"every %s minutes"},u.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},u.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},u.prototype.everyX0Hours=function(){return"every %s hours"},u.prototype.betweenX0AndX1=function(){return"between %s and %s"},u.prototype.atX0=function(){return"at %s"},u.prototype.commaEveryDay=function(){return", every day"},u.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},u.prototype.commaX0ThroughX1=function(){return", %s through %s"},u.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},u.prototype.first=function(){return"first"},u.prototype.second=function(){return"second"},u.prototype.third=function(){return"third"},u.prototype.fourth=function(){return"fourth"},u.prototype.fifth=function(){return"fifth"},u.prototype.commaOnThe=function(){return", on the "},u.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},u.prototype.lastDay=function(){return"the last day"},u.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},u.prototype.commaOnlyOnX0=function(){return", only on %s"},u.prototype.commaAndOnX0=function(){return", and on %s"},u.prototype.commaEveryX0Months=function(){return", every %s months"},u.prototype.commaOnlyInX0=function(){return", only in %s"},u.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},u.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},u.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},u.prototype.firstWeekday=function(){return"first weekday"},u.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},u.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},u.prototype.commaEveryX0Days=function(){return", every %s days"},u.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},u.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},u.prototype.commaEveryHour=function(){return", every hour"},u.prototype.commaEveryX0Years=function(){return", every %s years"},u.prototype.commaStartingX0=function(){return", starting %s"},u.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},u.prototype.atReboot=function(){return"Run once, at startup"},u}();s.en=l},515:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0});function l(h,c){if(!h)throw new Error(c)}var u=function(){function h(){}return h.secondRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var m=parseInt(p[f],10);l(m>=0&&m<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var m=parseInt(p[f],10);l(m>=0&&m<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var m=parseInt(p[f],10);l(m>=0&&m<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(c){for(var p=c.split(","),f=0;f<p.length;f++)if(!isNaN(parseInt(p[f],10))){var m=parseInt(p[f],10);l(m>=1&&m<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(c,p){for(var f=c.split(","),m=0;m<f.length;m++)if(!isNaN(parseInt(f[m],10))){var g=parseInt(f[m],10);l(g>=1&&g<=12,p?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(c,p){for(var f=c.split(","),m=0;m<f.length;m++)if(!isNaN(parseInt(f[m],10))){var g=parseInt(f[m],10);l(g>=0&&g<=6,p?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h}();s.default=u},823:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StringUtilities=void 0;var l=function(){function u(){}return u.format=function(h){for(var c=[],p=1;p<arguments.length;p++)c[p-1]=arguments[p];return h.replace(/%s/g,function(f){return c.shift()})},u.containsAny=function(h,c){return c.some(function(p){return h.indexOf(p)>-1})},u}();s.StringUtilities=l}},r={};function o(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return n[a](l,l.exports,o),l.exports}var i={};return(()=>{var a=i;Object.defineProperty(a,"__esModule",{value:!0}),a.toString=void 0;var s=o(333),l=o(747);s.ExpressionDescriptor.initialize(new l.enLocaleLoader),a.default=s.ExpressionDescriptor;var u=s.ExpressionDescriptor.toString;a.toString=u})(),i})())})(Og);var zS=Og.exports;const US=vf(zS);var qS=function(e){var t=e.scheduler,n=e.queueName,r=e.onRemove,o=ue.scheduler.remove.useMutation(),i=o.mutate,a=o.isSuccess;return d.useEffect(function(){a&&(r==null||r())},[a,r]),y.jsx(Ua,{actions:[{label:"Remove",onSelect:function(){i({queueName:n,jobSchedulerId:t.key})},icon:y.jsx(Ur,{})}]})},WS=function(e){var t=e.scheduler,n=e.queueName,r=e.onDismiss,o=t.template,i=_r({},t);return delete i.template,y.jsx(Ha,{isOpen:!0,isDismissable:!0,onOpenChange:function(a){a||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Ka,{className:"fixed left-1/2 top-1/2 max-h-[85vh] w-full max-w-xl -translate-x-1/2 -translate-y-1/2 overflow-y-scroll rounded-lg bg-white p-4 shadow-xl dark:bg-slate-900",children:function(a){var s=a.close;return y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-full text-slate-500 transition duration-150 ease-in-out hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800","aria-label":"Close",onClick:function(){r(),s()},children:y.jsx(au,{})}),y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsxs(Ba,{className:"mb-1 flex items-center space-x-2",children:[y.jsx("span",{className:"text-xl font-semibold text-slate-900 dark:text-slate-100",children:t.name}),y.jsxs("span",{className:"rounded-md text-slate-500 dark:text-slate-400",children:["#",t.id]})]}),y.jsx(qS,{queueName:n,scheduler:t,onRemove:r})]}),y.jsxs("div",{children:[y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4 dark:border-b-slate-700",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Options"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Eo,{data:i,theme:"monokai"})})]}),y.jsxs("div",{className:"space-y-2 pt-4",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600 dark:text-slate-400",children:"Template"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(Eo,{data:o,theme:"monokai"})})]})]})]})}})})},Li=g1();function GS(e,t){t===void 0&&(t=new Date);var n=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"short"}),r=n.formatToParts(t),o=r.find(function(i){return i.type==="timeZoneName"});return(o==null?void 0:o.value)||""}var QS=function(e){return[Li.display({id:"select",header:function(t){var n=t.table;return y.jsx(da,{checked:n.getIsSomeRowsSelected()?"indeterminate":n.getIsAllRowsSelected(),onCheckedChange:function(){n.toggleAllRowsSelected()}})},cell:function(t){var n=t.row,r=t.table;return y.jsx(da,{className:r.getIsSomeRowsSelected()||r.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:n.getIsSomeSelected()?"indeterminate":n.getIsSelected(),onCheckedChange:function(o){n.getToggleSelectedHandler()(o),e(n.index)}})}}),Li.accessor("name",{cell:function(t){return y.jsx("div",{className:"flex w-full items-center space-x-2",children:y.jsx("span",{className:"max-w-fit grow basis-full truncate text-slate-900 dark:text-slate-200",children:t.cell.row.original.name})})},header:"Scheduler"}),Li.accessor("pattern",{cell:function(t){return y.jsxs("span",{className:"grow basis-full truncate text-slate-900 dark:text-slate-200",children:[t.cell.row.original.pattern?US.toString(t.cell.row.original.pattern,{verbose:!0}):t.cell.row.original.every?"Every ".concat(t.cell.row.original.every):""," ",t.cell.row.original.tz?"(".concat(GS(t.cell.row.original.tz),")"):""]})},header:"Pattern"}),Li.accessor("next",{cell:function(t){return t.cell.row.original.next?y.jsx(Lu,{message:D1(new Date(t.cell.row.original.next),"dd MMM yyyy HH:mm:ss zzz"),children:y.jsx("div",{className:"flex items-center space-x-1.5",children:y.jsxs("p",{className:"text-slate-900 dark:text-slate-200",children:["In ",_1(new Date(t.cell.row.original.next))," ",y.jsxs("span",{className:"text-sm text-slate-700 dark:text-slate-400",children:["(",t.cell.row.original.iterationCount," run",t.cell.row.original.iterationCount===1?"":"s"," total)"]})]})})}):y.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:"No next run"})},header:"Next Run"})]},YS=function(e){var t=e.queueName,n=d.useState({}),r=n[0],o=n[1],i=d.useRef(null),a=ue.scheduler.list.useQuery({queueName:t}),s=a.data,l=a.isLoading,u=(s==null?void 0:s.length)===0,h=function(x){i.current=x},c=QS(h),p=P1({data:s||[],columns:c,getCoreRowModel:E1(),state:{rowSelection:r},onRowSelectionChange:o}),f=d.useState(null),m=f[0],g=f[1],v=ue.scheduler.bulkRemove.useMutation().mutate,b=function(x,w){if(x.shiftKey&&i.current!==null){x.preventDefault();for(var $=Math.min(i.current,w),M=Math.max(i.current,w),R=_r({},r),P=$;P<=M;P++)R[P]=!0;o(R)}else g(p.getRowModel().rows[w].original),i.current=w};return!l&&u?null:y.jsxs("div",{children:[m?y.jsx(WS,{scheduler:m,queueName:t,onDismiss:function(){return g(null)}}):null,y.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:l?y.jsx(F1,{}):y.jsxs("div",{children:[p.getHeaderGroups().map(function(x,w){return y.jsx("div",{className:"sticky top-0 grid grid-cols-[auto,350px,1fr,1fr] rounded-t-md border-b border-slate-200 bg-slate-100/50 p-2 backdrop-blur-md dark:border-slate-700 dark:bg-slate-900/50",children:x.headers.map(function($){return y.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(w!==0?"pr-10":"pr-3"),children:$.isPlaceholder?null:sa($.column.columnDef.header,$.getContext())},$.id)})},x.id)}),p.getRowModel().rows.map(function(x,w){return y.jsx(L1,{isLastRow:p.getRowModel().rows.length!==w+1,isSelected:x.getIsSelected(),onClick:function($){return b($,w)},layoutVariant:"scheduler",children:x.getVisibleCells().map(function($,M){return y.jsx("div",{className:"flex h-full items-center ".concat(M!==0?"pr-10":"pr-3"),children:sa($.column.columnDef.cell,$.getContext())},$.id)})},x.id)})]})}),p.getSelectedRowModel().rows.length>0?y.jsx("div",{className:"pointer-events-none sticky bottom-0 flex w-full items-center justify-center pb-5",children:y.jsxs("div",{className:"pointer-events-auto flex items-center space-x-3 rounded-lg border-slate-100 bg-white/90 px-3 py-2 text-sm shadow-lg backdrop-blur dark:border-slate-700 dark:bg-slate-900/90",children:[y.jsxs("p",{className:"text-slate-900 dark:text-slate-100",children:[p.getSelectedRowModel().rows.length," selected"]}),y.jsx(wn,{label:"Delete",colorScheme:"red",icon:y.jsx(Ur,{}),size:"sm",onClick:function(){v({queueName:t,jobSchedulerIds:p.getSelectedRowModel().rows.map(function(x){return x.original.key})}),p.resetRowSelection()}})]})}):null]})},Fi=function(e){var t=e.label,n=e.value,r=e.trend,o=e.variant,i=o===void 0?"completed":o,a=i==="completed"?r!=null&&r.isPositive?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400":r!=null&&r.isPositive?"text-red-600 dark:text-red-400":"text-green-600 dark:text-green-400";return y.jsxs("div",{className:"group flex flex-col space-y-2 rounded-xl border border-slate-200/80 bg-white/80 px-4 py-3 backdrop-blur-sm transition-all duration-200 hover:border-slate-300 hover:shadow-sm dark:border-slate-700/50 dark:bg-slate-900/50 dark:hover:border-slate-600",children:[y.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-slate-500 dark:text-slate-400",children:t}),y.jsxs("div",{className:"flex items-baseline space-x-2",children:[y.jsx("p",{className:"font-mono text-2xl font-semibold tabular-nums leading-none text-slate-900 dark:text-slate-50",children:typeof n=="number"?n.toLocaleString():n}),r&&y.jsxs("div",{className:"flex items-center space-x-0.5 font-mono text-xs font-medium ".concat(a),children:[r.isPositive?y.jsx(_2,{width:11,height:11}):y.jsx(T2,{width:11,height:11}),y.jsxs("span",{children:[Math.abs(r.value),"%"]})]})]})]})},sr={"1m":{label:"Last minute",minutes:1},"1h":{label:"Last hour",minutes:60},"24h":{label:"Last 24 hours",minutes:1440},"7d":{label:"Last 7 days",minutes:10080}},XS=function(e){var t=e.queueName,n=d.useState("1h"),r=n[0],o=n[1],i=ue.queue.metrics.useQuery({queueName:t,type:"completed",start:0,end:sr[r].minutes},{enabled:!!t,refetchInterval:No}),a=i.data,s=i.isLoading,l=ue.queue.metrics.useQuery({queueName:t,type:"failed",start:0,end:sr[r].minutes},{enabled:!!t,refetchInterval:No}),u=l.data,h=l.isLoading,c=s||h,p=function(b,x){if(x===0)return null;var w=(b-x)/x*100;return{value:Math.round(Math.abs(w)),isPositive:w>0}},f=a&&p(a.count,a.meta.prevCount),m=u&&p(u.count,u.meta.prevCount),g=a?(a.count/sr[r].minutes).toFixed(1):"0";u&&(u.count/sr[r].minutes).toFixed(1);var v=a&&u?a.count+u.count>0?(a.count/(a.count+u.count)*100).toFixed(1):"100":"0";return y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h2",{className:"text-lg font-semibold tracking-tight text-slate-900 dark:text-slate-50",children:"Metrics"}),y.jsx("div",{className:"flex items-center space-x-0.5 rounded-lg border border-slate-200/80 bg-white/80 p-0.5 backdrop-blur-sm dark:border-slate-700/50 dark:bg-slate-900/50",children:Object.keys(sr).map(function(b){return y.jsx("button",{onClick:function(){return o(b)},className:"rounded-md px-2.5 py-1 text-xs font-medium transition-all duration-150 ".concat(r===b?"bg-slate-100 text-slate-900 shadow-sm dark:bg-slate-800 dark:text-slate-100":"text-slate-600 hover:bg-slate-50 hover:text-slate-900 dark:text-slate-400 dark:hover:bg-slate-800/50 dark:hover:text-slate-100"),children:sr[b].label},b)})})]}),c?y.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:He([],Array(4),!0).map(function(b,x){return y.jsx(Oo,{className:"h-[88px] rounded-xl"},x)})}):y.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[y.jsx(Fi,{label:"Completed",value:(a==null?void 0:a.count)||0,trend:f||void 0,variant:"completed"}),y.jsx(Fi,{label:"Failed",value:(u==null?void 0:u.count)||0,trend:m||void 0,variant:"failed"}),y.jsx(Fi,{label:"Success Rate",value:"".concat(v,"%")}),y.jsx(Fi,{label:"Throughput",value:"".concat(g,"/min")})]})]})},Ns=new Intl.NumberFormat("en-US").format,ZS=function(){var e,t,n,r,o,i=Lb().id,a=i,s=S2()[0],l=d.useState("completed"),u=l[0],h=l[1],c=ue.job.list.useInfiniteQuery({queueName:a,limit:Nl,status:u},{getNextPageParam:function($){return $.nextCursor},enabled:!!a,refetchInterval:No,retry:Al}),p=c.data,f=c.fetchNextPage,m=c.isLoading,g=c.isError,v=c.isFetchingNextPage,b=c.hasNextPage;d.useEffect(function(){var $=s.get("status");$&&h($),!$&&u&&h("completed")},[s,u]);var x=ue.queue.byName.useQuery({queueName:a},{enabled:!!a,refetchInterval:No,retry:Al}),w=(e=p==null?void 0:p.pages.map(function($){return $.jobs}).flat())!==null&&e!==void 0?e:[];return y.jsx(p1,{children:x.data===null?y.jsx(Tl,{message:"No queue found"}):g?y.jsx(Tl,{message:"Could not fetch jobs"}):y.jsxs("div",{children:[y.jsx("div",{className:"mb-2 flex justify-between",children:y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsx("h1",{className:"text-2xl font-bold text-slate-900 dark:text-slate-50",children:x.data?x.data.displayName:y.jsx(Oo,{className:"h-8 w-52 rounded-md"})}),y.jsxs("div",{className:"flex items-center space-x-2",children:[x.data?y.jsx(VS,{queue:x.data}):null,!((t=x.data)===null||t===void 0)&&t.paused?y.jsx("div",{className:"flex h-7 cursor-default items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:y.jsx("span",{children:"Paused"})}):null]})]})}),y.jsx("div",{className:"mb-5",children:y.jsx("div",{className:"flex items-center space-x-2",children:x.data?y.jsxs(y.Fragment,{children:[y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[y.jsxs("span",{className:"text-green-800 dark:text-green-400",children:[Ns(x.data.client.connectedClients)," ","connected"]})," ","and"," ",y.jsxs("span",{className:"text-red-800 dark:text-red-400",children:[Ns(x.data.client.blockedClients)," ","blocked"]})," ","out of"," ",y.jsxs("span",{className:"text-slate-900 dark:text-slate-100",children:[Ns(x.data.client.maxClients)," max clients"]})]}),y.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:[x.data.client.usedMemoryHuman," /"," ",x.data.client.totalMemoryHuman," (",(x.data.client.usedMemoryPercentage*100).toFixed(2),"%)"]}),y.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"·"}),y.jsxs("p",{className:"text-slate-600 dark:text-slate-400",children:["Redis v",x.data.client.version]})]}):y.jsx(Oo,{className:"h-6 w-80"})})}),y.jsxs("div",{className:"space-y-8",children:[!((n=x.data)===null||n===void 0)&&n.supports.metrics?y.jsx(XS,{queueName:a}):null,!((r=x.data)===null||r===void 0)&&r.supports.schedulers?y.jsx(YS,{queueName:a}):null,y.jsxs("div",{className:"space-y-4",children:[y.jsx(_$,{showCleanAllButton:w.length>0,queueName:a,status:u,queue:x.data}),y.jsx(o$,{onBottomInView:function(){v||!b||f()},status:u,totalJobs:((o=p==null?void 0:p.pages.at(-1))===null||o===void 0?void 0:o.totalCount)||0,jobs:w.map(function($){return _r(_r({},$),{status:u})}),isLoading:m,isFetchingNextPage:v,queueName:a})]})]})]})})},Ii=function(e){var t=e.count,n=e.variant,r={active:"text-cyan-600 dark:text-cyan-400",completed:"text-green-600 dark:text-green-400",failed:"text-red-600 dark:text-red-400",waiting:"text-amber-600 dark:text-amber-400"},o={active:y.jsx(O0,{width:16,height:16}),completed:y.jsx(P0,{width:16,height:16}),failed:y.jsx(R0,{width:16,height:16}),waiting:y.jsx(l5,{width:16,height:16})};return y.jsx("div",{children:y.jsx(Lu,{message:n.charAt(0).toUpperCase()+n.slice(1),children:y.jsxs("div",{className:"flex items-center space-x-1 text-sm ".concat(r[n]),children:[y.jsx("p",{className:"text-lg",children:t}),o[n]]})})})},JS=function(e){var t=e.queueName,n=ue.queue.byName.useQuery({queueName:t},{refetchInterval:No,retry:Al});return n.data?y.jsxs(ka,{to:"../".concat(n.data.name),className:"group flex items-center justify-between transition",children:[y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx("p",{className:"py-3 text-lg font-medium text-slate-900 transition group-hover:text-brand-900 dark:text-slate-200 dark:group-hover:text-brand-100",children:n.data.displayName}),y.jsx("div",{children:n.data.paused?y.jsx("div",{className:"flex h-7 items-center justify-center space-x-1.5 rounded-md bg-yellow-50 px-2 text-sm font-medium text-yellow-900 transition duration-150 ease-in-out dark:bg-yellow-950/30 dark:text-yellow-400",children:y.jsx("span",{children:"Paused"})}):null})]}),y.jsxs("div",{className:"flex space-x-5",children:[y.jsx(Ii,{count:n.data.counts.completed,variant:"completed"}),y.jsx(Ii,{count:n.data.counts.failed,variant:"failed"}),y.jsx(Ii,{count:n.data.counts.active,variant:"active"}),y.jsx(Ii,{count:n.data.counts.waiting,variant:"waiting"})]})]}):null},eE=function(){var e=ue.queue.list.useQuery().data,t=ue.queue.pauseAll.useMutation().mutate,n=ue.queue.resumeAll.useMutation().mutate;return y.jsx(p1,{children:y.jsxs("div",{className:"xl:max-w-2xl",children:[y.jsxs("div",{className:"flex justify-between",children:[y.jsx("h1",{className:"mb-6 text-2xl font-bold text-slate-900 dark:text-slate-50",children:"Queues"}),y.jsx("div",{children:y.jsx(Ua,{actions:[{label:"Resume all",icon:y.jsx(M0,{}),onSelect:function(){return n()}},{label:"Pause all",icon:y.jsx(k0,{}),onSelect:function(){return t()}}]})})]}),y.jsx("div",{children:e==null?void 0:e.map(function(r,o){return y.jsx("div",{className:(e==null?void 0:e.length)-1!==o?"border-b border-slate-100 dark:border-slate-700":"",children:y.jsx(JS,{queueName:r.name},r.name)},r.name)})})]})})},tE=function(e){var t=e.apiUrl,n=e.basename,r=e.headers,o=d.useState(!1),i=o[0],a=o[1],s=d.useState(function(){return new hm})[0],l=d.useState(function(){return ue.createClient({links:[cv({url:t,headers:r})]})})[0];return d.useEffect(function(){var u=JSON.parse(localStorage.getItem("user-preferences")||"null");u?u.theme==="dark"||u.theme==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),a(!0)},[]),i?y.jsx(ue.Provider,{client:l,queryClient:s,children:y.jsxs(pm,{client:s,children:[y.jsx(D$,{}),y.jsx(x2,{basename:n,children:y.jsxs(Qb,{children:[y.jsx(cl,{path:"/",element:y.jsx(eE,{})}),y.jsx(cl,{path:"/:id",element:y.jsx(ZS,{})})]})})]})}):null};exports.QueueDashApp=tE;
|