@queuedash/ui 3.8.0 → 3.9.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 +15 -15
- package/dist/main.mjs +3884 -3858
- package/dist/src/components/Button.d.ts.map +1 -1
- package/dist/src/components/JobActionMenu.d.ts +3 -2
- package/dist/src/components/JobActionMenu.d.ts.map +1 -1
- package/dist/src/components/JobModal.d.ts.map +1 -1
- package/dist/src/components/QueueActionMenu.d.ts.map +1 -1
- package/dist/src/components/QueueStatusTabs.d.ts.map +1 -1
- package/dist/src/components/SchedulerTable.d.ts.map +1 -1
- package/dist/src/components/TableRow.d.ts +1 -1
- package/dist/src/components/TableRow.d.ts.map +1 -1
- package/dist/src/utils/trpc.d.ts +50 -440
- package/dist/src/utils/trpc.d.ts.map +1 -1
- package/dist/styles.css +439 -21
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Nu=e=>{throw TypeError(e)};var Ua=(e,t,n)=>t.has(e)||Nu("Cannot "+n);var C=(e,t,n)=>(Ua(e,t,"read from private field"),n?n.call(e):t.get(e)),G=(e,t,n)=>t.has(e)?Nu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),B=(e,t,n,r)=>(Ua(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),X=(e,t,n)=>(Ua(e,t,"access private method"),n);var ai=(e,t,n,r)=>({set _(o){B(e,t,o,n)},get _(){return C(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),
|
|
1
|
+
"use strict";var Nu=e=>{throw TypeError(e)};var Ua=(e,t,n)=>t.has(e)||Nu("Cannot "+n);var C=(e,t,n)=>(Ua(e,t,"read from private field"),n?n.call(e):t.get(e)),G=(e,t,n)=>t.has(e)?Nu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),B=(e,t,n,r)=>(Ua(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),X=(e,t,n)=>(Ua(e,t,"access private method"),n);var ai=(e,t,n,r)=>({set _(o){B(e,t,o,n)},get _(){return C(e,t,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),zr=require("react-dom");function k1(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 $=k1(d);function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lf={exports:{}},va={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,8 +6,8 @@
|
|
|
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 Mg=Symbol.for("react.transitional.element"),kg=Symbol.for("react.fragment");function lf(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:Mg,type:e,key:r,ref:t!==void 0?t:null,props:n}}va.Fragment=kg;va.jsx=lf;va.jsxs=lf;sf.exports=va;var y=sf.exports,Xn=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(){}},Og={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},nn,Nl,Wd,Tg=(Wd=class{constructor(){G(this,nn,Og);G(this,Nl,!1)}setTimeoutProvider(e){B(this,nn,e)}setTimeout(e,t){return C(this,nn).setTimeout(e,t)}clearTimeout(e){C(this,nn).clearTimeout(e)}setInterval(e,t){return C(this,nn).setInterval(e,t)}clearInterval(e){C(this,nn).clearInterval(e)}},nn=new WeakMap,Nl=new WeakMap,Wd),Fn=new Tg;function Dg(e){setTimeout(e,0)}var Un=typeof window>"u"||"Deno"in globalThis;function Ie(){}function _g(e,t){return typeof e=="function"?e(t):e}function Os(e){return typeof e=="number"&&e>=0&&e!==1/0}function uf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gn(e,t){return typeof e=="function"?e(t):e}function ut(e,t){return typeof e=="function"?e(t):e}function ju(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==jl(a,t.options))return!1}else if(!$o(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 Au(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(yn(t.options.mutationKey)!==yn(i))return!1}else if(!$o(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function jl(e,t){return((t==null?void 0:t.queryKeyHashFn)||yn)(e)}function yn(e){return JSON.stringify(e,(t,n)=>Ts(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function $o(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>$o(e[n],t[n])):!1}var Fg=Object.prototype.hasOwnProperty;function Al(e,t){if(e===t)return e;const n=Ku(e)&&Ku(t);if(!n&&!(Ts(e)&&Ts(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,s=n?new Array(a):{};let l=0;for(let u=0;u<a;u++){const h=n?u:i[u],c=e[h],p=t[h];if(c===p){s[h]=c,(n?u<o:Fg.call(e,h))&&l++;continue}if(c===null||p===null||typeof c!="object"||typeof p!="object"){s[h]=p;continue}const f=Al(c,p);s[h]=f,f===c&&l++}return o===a&&l===o?e:s}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 Ku(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ts(e){if(!Bu(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Bu(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Bu(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ig(e){return new Promise(t=>{Fn.setTimeout(t,e)})}function Ds(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Al(e,t):t}function Lg(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ng(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var et=Symbol();function cf(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 df(e,t){return typeof e=="function"?e(...t):!!e}var Ln,rn,wr,Gd,jg=(Gd=class extends Xn{constructor(){super();G(this,Ln);G(this,rn);G(this,wr);B(this,wr,t=>{if(!Un&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,rn)||this.setEventListener(C(this,wr))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,rn))==null||t.call(this),B(this,rn,void 0))}setEventListener(t){var n;B(this,wr,t),(n=C(this,rn))==null||n.call(this),B(this,rn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Ln)!==t&&(B(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,rn=new WeakMap,wr=new WeakMap,Gd),Kl=new jg;function _s(){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 Ag=Dg;function Kg(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=Ag;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=Kg(),Cr,on,Sr,Qd,Bg=(Qd=class extends Xn{constructor(){super();G(this,Cr,!0);G(this,on);G(this,Sr);B(this,Sr,t=>{if(!Un&&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,on)||this.setEventListener(C(this,Sr))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,on))==null||t.call(this),B(this,on,void 0))}setEventListener(t){var n;B(this,Sr,t),(n=C(this,on))==null||n.call(this),B(this,on,t(this.setOnline.bind(this)))}setOnline(t){C(this,Cr)!==t&&(B(this,Cr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,Cr)}},Cr=new WeakMap,on=new WeakMap,Sr=new WeakMap,Qd),Ai=new Bg;function Hg(e){return Math.min(1e3*2**e,3e4)}function ff(e){return(e??"online")==="online"?Ai.isOnline():!0}var Fs=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function hf(e){let t=!1,n=0,r;const o=_s(),i=()=>o.status!=="pending",a=m=>{var v;if(!i()){const b=new Fs(m);p(b),(v=e.onCancel)==null||v.call(e,b)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>Kl.isFocused()&&(e.networkMode==="always"||Ai.isOnline())&&e.canRun(),h=()=>ff(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 $;if(i())return;const x=e.retry??(Un?0:3),w=e.retryDelay??Hg,E=typeof w=="function"?w(n,b):w,k=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,b);if(t||!k){p(b);return}n++,($=e.onFail)==null||$.call(e,n,b),Ig(E).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 Nn,Yd,pf=(Yd=class{constructor(){G(this,Nn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Os(this.gcTime)&&B(this,Nn,Fn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Un?1/0:5*60*1e3))}clearGcTimeout(){C(this,Nn)&&(Fn.clearTimeout(C(this,Nn)),B(this,Nn,void 0))}},Nn=new WeakMap,Yd),jn,$r,st,An,Re,No,Kn,vt,Kt,Xd,Vg=(Xd=class extends pf{constructor(t){super();G(this,vt);G(this,jn);G(this,$r);G(this,st);G(this,An);G(this,Re);G(this,No);G(this,Kn);B(this,Kn,!1),B(this,No,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,An,t.client),B(this,st,C(this,An).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,jn,Hu(this.options)),this.state=t.state??C(this,jn),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,No),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Hu(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),B(this,jn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,st).remove(this)}setData(t,n){const r=Ds(this.state.data,t,this.options);return X(this,vt,Kt).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,vt,Kt).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(Ie).catch(Ie):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,jn))}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=>gn(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:!uf(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,Kn)?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,vt,Kt).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 E=this.observers.find(k=>k.options.queryFn);E&&this.setOptions(E.options)}const r=new AbortController,o=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(B(this,Kn,!0),r.signal)})},i=()=>{const E=cf(this.options,n),$=(()=>{const R={client:C(this,An),queryKey:this.queryKey,meta:this.meta};return o(R),R})();return B(this,Kn,!1),this.options.persister?this.options.persister(E,$,this):E($)},s=(()=>{const E={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,An),state:this.state,fetchFn:i};return o(E),E})();(u=this.options.behavior)==null||u.onFetch(s,this),B(this,$r,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=s.fetchOptions)==null?void 0:h.meta))&&X(this,vt,Kt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),B(this,Re,hf({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:E=>{E instanceof Fs&&E.revert&&this.setState({...C(this,$r),fetchStatus:"idle"}),r.abort()},onFail:(E,k)=>{X(this,vt,Kt).call(this,{type:"failed",failureCount:E,error:k})},onPause:()=>{X(this,vt,Kt).call(this,{type:"pause"})},onContinue:()=>{X(this,vt,Kt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const E=await C(this,Re).start();if(E===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(E),(f=(p=C(this,st).config).onSuccess)==null||f.call(p,E,this),(m=(g=C(this,st).config).onSettled)==null||m.call(g,E,this.state.error,this),E}catch(E){if(E instanceof Fs){if(E.silent)return C(this,Re).promise;if(E.revert){if(this.state.data===void 0)throw E;return this.state.data}}throw X(this,vt,Kt).call(this,{type:"error",error:E}),(b=(v=C(this,st).config).onError)==null||b.call(v,E,this),(w=(x=C(this,st).config).onSettled)==null||w.call(x,this.state.data,E,this),E}finally{this.scheduleGc()}}},jn=new WeakMap,$r=new WeakMap,st=new WeakMap,An=new WeakMap,Re=new WeakMap,No=new WeakMap,Kn=new WeakMap,vt=new WeakSet,Kt=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,...gf(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return B(this,$r,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"};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})})},Xd);function gf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ff(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Hu(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 He,re,jo,Le,Bn,Er,Ht,an,Ao,Pr,Rr,Hn,Vn,sn,Mr,le,co,Is,Ls,Ns,js,As,Ks,Bs,mf,Zd,Uo=(Zd=class extends Xn{constructor(t,n){super();G(this,le);G(this,He);G(this,re);G(this,jo);G(this,Le);G(this,Bn);G(this,Er);G(this,Ht);G(this,an);G(this,Ao);G(this,Pr);G(this,Rr);G(this,Hn);G(this,Vn);G(this,sn);G(this,Mr,new Set);this.options=n,B(this,He,t),B(this,an,null),B(this,Ht,_s()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,re).addObserver(this),Vu(C(this,re),this.options)?X(this,le,co).call(this):this.updateResult(),X(this,le,js).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hs(C(this,re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hs(C(this,re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,X(this,le,As).call(this),X(this,le,Ks).call(this),C(this,re).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,re);if(this.options=C(this,He).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,le,Bs).call(this),C(this,re).setOptions(this.options),n._defaulted&&!Eo(this.options,n)&&C(this,He).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,re),observer:this});const o=this.hasListeners();o&&zu(C(this,re),r,this.options,n)&&X(this,le,co).call(this),this.updateResult(),o&&(C(this,re)!==r||ut(this.options.enabled,C(this,re))!==ut(n.enabled,C(this,re))||gn(this.options.staleTime,C(this,re))!==gn(n.staleTime,C(this,re)))&&X(this,le,Is).call(this);const i=X(this,le,Ls).call(this);o&&(C(this,re)!==r||ut(this.options.enabled,C(this,re))!==ut(n.enabled,C(this,re))||i!==C(this,sn))&&X(this,le,Ns).call(this,i)}getOptimisticResult(t){const n=C(this,He).getQueryCache().build(C(this,He),t),r=this.createResult(n,t);return Ug(this,r)&&(B(this,Le,r),B(this,Er,this.options),B(this,Bn,C(this,re).state)),r}getCurrentResult(){return C(this,Le)}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,Ht).status==="pending"&&C(this,Ht).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){C(this,Mr).add(t)}getCurrentQuery(){return C(this,re)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,He).defaultQueryOptions(t),r=C(this,He).getQueryCache().build(C(this,He),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return X(this,le,co).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Le)))}createResult(t,n){var _;const r=C(this,re),o=this.options,i=C(this,Le),a=C(this,Bn),s=C(this,Er),u=t!==r?t.state:C(this,jo),{state:h}=t;let c={...h},p=!1,f;if(n._optimisticResults){const D=this.hasListeners(),P=!D&&Vu(t,n),L=D&&zu(t,r,n,o);(P||L)&&(c={...c,...gf(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 D;i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(D=i.data,b=!0):D=typeof n.placeholderData=="function"?n.placeholderData((_=C(this,Rr))==null?void 0:_.state.data,C(this,Rr)):n.placeholderData,D!==void 0&&(v="success",f=Ds(i==null?void 0:i.data,D,n),p=!0)}if(n.select&&f!==void 0&&!b)if(i&&f===(a==null?void 0:a.data)&&n.select===C(this,Ao))f=C(this,Pr);else try{B(this,Ao,n.select),f=n.select(f),f=Ds(i==null?void 0:i.data,f,n),B(this,Pr,f),B(this,an,null)}catch(D){B(this,an,D)}C(this,an)&&(g=C(this,an),f=C(this,Pr),m=Date.now(),v="error");const x=c.fetchStatus==="fetching",w=v==="pending",E=v==="error",k=w&&x,$=f!==void 0,M={status:v,fetchStatus:c.fetchStatus,isPending:w,isSuccess:v==="success",isError:E,isInitialLoading:k,isLoading:k,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:E&&!$,isPaused:c.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:E&&$,isStale:Bl(t,n),refetch:this.refetch,promise:C(this,Ht),isEnabled:ut(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const D=N=>{M.status==="error"?N.reject(M.error):M.data!==void 0&&N.resolve(M.data)},P=()=>{const N=B(this,Ht,M.promise=_s());D(N)},L=C(this,Ht);switch(L.status){case"pending":t.queryHash===r.queryHash&&D(L);break;case"fulfilled":(M.status==="error"||M.data!==L.value)&&P();break;case"rejected":(M.status!=="error"||M.error!==L.reason)&&P();break}}return M}updateResult(){const t=C(this,Le),n=this.createResult(C(this,re),this.options);if(B(this,Bn,C(this,re).state),B(this,Er,this.options),C(this,Bn).data!==void 0&&B(this,Rr,C(this,re)),Eo(n,t))return;B(this,Le,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!C(this,Mr).size)return!0;const a=new Set(i??C(this,Mr));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Le)).some(s=>{const l=s;return C(this,Le)[l]!==t[l]&&a.has(l)})};X(this,le,mf).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&X(this,le,js).call(this)}},He=new WeakMap,re=new WeakMap,jo=new WeakMap,Le=new WeakMap,Bn=new WeakMap,Er=new WeakMap,Ht=new WeakMap,an=new WeakMap,Ao=new WeakMap,Pr=new WeakMap,Rr=new WeakMap,Hn=new WeakMap,Vn=new WeakMap,sn=new WeakMap,Mr=new WeakMap,le=new WeakSet,co=function(t){X(this,le,Bs).call(this);let n=C(this,re).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ie)),n},Is=function(){X(this,le,As).call(this);const t=gn(this.options.staleTime,C(this,re));if(Un||C(this,Le).isStale||!Os(t))return;const r=uf(C(this,Le).dataUpdatedAt,t)+1;B(this,Hn,Fn.setTimeout(()=>{C(this,Le).isStale||this.updateResult()},r))},Ls=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,re)):this.options.refetchInterval)??!1},Ns=function(t){X(this,le,Ks).call(this),B(this,sn,t),!(Un||ut(this.options.enabled,C(this,re))===!1||!Os(C(this,sn))||C(this,sn)===0)&&B(this,Vn,Fn.setInterval(()=>{(this.options.refetchIntervalInBackground||Kl.isFocused())&&X(this,le,co).call(this)},C(this,sn)))},js=function(){X(this,le,Is).call(this),X(this,le,Ns).call(this,X(this,le,Ls).call(this))},As=function(){C(this,Hn)&&(Fn.clearTimeout(C(this,Hn)),B(this,Hn,void 0))},Ks=function(){C(this,Vn)&&(Fn.clearInterval(C(this,Vn)),B(this,Vn,void 0))},Bs=function(){const t=C(this,He).getQueryCache().build(C(this,He),this.options);if(t===C(this,re))return;const n=C(this,re);B(this,re,t),B(this,jo,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},mf=function(t){be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Le))}),C(this,He).getQueryCache().notify({query:C(this,re),type:"observerResultsUpdated"})})},Zd);function zg(e,t){return ut(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Vu(e,t){return zg(e,t)||e.state.data!==void 0&&Hs(e,t,t.refetchOnMount)}function Hs(e,t,n){if(ut(t.enabled,e)!==!1&&gn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Bl(e,t)}return!1}function zu(e,t,n,r){return(e!==t||ut(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Bl(e,n)}function Bl(e,t){return ut(t.enabled,e)!==!1&&e.isStaleByTime(gn(t.staleTime,e))}function Ug(e,t){return!Eo(e.getCurrentResult(),t)}function Ki(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=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},b=cf(t.options,t.fetchOptions),x=async(w,E,k)=>{if(m)return Promise.reject();if(E==null&&w.pages.length)return Promise.resolve(w);const R=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:E,direction:k?"backward":"forward",meta:t.options.meta};return v(P),P})(),M=await b(R),{maxPages:_}=t.options,D=k?Ng:Lg;return{pages:D(w.pages,M,_),pageParams:D(w.pageParams,E,_)}};if(o&&i.length){const w=o==="backward",E=w?vf:Vs,k={pages:i,pageParams:a},$=E(r,k);s=await x(k,$,w)}else{const w=e??i.length;do{const E=l===0?a[0]??r.initialPageParam:Vs(r,s);if(l>0&&E==null)break;s=await x(s,E),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 Vs(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 vf(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 qg(e,t){return t?Vs(e,t)!=null:!1}function Wg(e,t){return!t||!e.getPreviousPageParam?!1:vf(e,t)!=null}var bf=class extends Uo{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:Ki()})}getOptimisticResult(e){return e.behavior=Ki(),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:qg(t,n.data),hasPreviousPage:Wg(t,n.data),isFetchNextPageError:u,isFetchingNextPage:h,isFetchPreviousPageError:c,isFetchingPreviousPage:p,isRefetchError:s&&!u&&!c,isRefetching:i&&!h&&!p}}},Ko,Tt,Ne,zn,Dt,en,Jd,Gg=(Jd=class extends pf{constructor(t){super();G(this,Dt);G(this,Ko);G(this,Tt);G(this,Ne);G(this,zn);B(this,Ko,t.client),this.mutationId=t.mutationId,B(this,Ne,t.mutationCache),B(this,Tt,[]),this.state=t.state||yf(),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,Tt).includes(t)||(C(this,Tt).push(t),this.clearGcTimeout(),C(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Tt,C(this,Tt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,Tt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ne).remove(this))}continue(){var t;return((t=C(this,zn))==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,E,k,$,R,M,_;const n=()=>{X(this,Dt,en).call(this,{type:"continue"})},r={client:C(this,Ko),meta:this.options.meta,mutationKey:this.options.mutationKey};B(this,zn,hf({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(D,P)=>{X(this,Dt,en).call(this,{type:"failed",failureCount:D,error:P})},onPause:()=>{X(this,Dt,en).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ne).canRun(this)}));const o=this.state.status==="pending",i=!C(this,zn).canStart();try{if(o)n();else{X(this,Dt,en).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(a=C(this,Ne).config).onMutate)==null?void 0:s.call(a,t,this,r));const P=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t,r));P!==this.state.context&&X(this,Dt,en).call(this,{type:"pending",context:P,variables:t,isPaused:i})}const D=await C(this,zn).start();return await((c=(h=C(this,Ne).config).onSuccess)==null?void 0:c.call(h,D,t,this.state.context,this,r)),await((f=(p=this.options).onSuccess)==null?void 0:f.call(p,D,t,this.state.context,r)),await((m=(g=C(this,Ne).config).onSettled)==null?void 0:m.call(g,D,null,this.state.variables,this.state.context,this,r)),await((b=(v=this.options).onSettled)==null?void 0:b.call(v,D,null,t,this.state.context,r)),X(this,Dt,en).call(this,{type:"success",data:D}),D}catch(D){try{throw await((w=(x=C(this,Ne).config).onError)==null?void 0:w.call(x,D,t,this.state.context,this,r)),await((k=(E=this.options).onError)==null?void 0:k.call(E,D,t,this.state.context,r)),await((R=($=C(this,Ne).config).onSettled)==null?void 0:R.call($,void 0,D,this.state.variables,this.state.context,this,r)),await((_=(M=this.options).onSettled)==null?void 0:_.call(M,void 0,D,t,this.state.context,r)),D}finally{X(this,Dt,en).call(this,{type:"error",error:D})}}finally{C(this,Ne).runNext(this)}}},Ko=new WeakMap,Tt=new WeakMap,Ne=new WeakMap,zn=new WeakMap,Dt=new WeakSet,en=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,Tt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ne).notify({mutation:this,type:"updated",action:t})})},Jd);function yf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vt,bt,Bo,ef,Qg=(ef=class extends Xn{constructor(t={}){super();G(this,Vt);G(this,bt);G(this,Bo);this.config=t,B(this,Vt,new Set),B(this,bt,new Map),B(this,Bo,0)}build(t,n,r){const o=new Gg({client:t,mutationCache:this,mutationId:++ai(this,Bo)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,Vt).add(t);const n=si(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,Vt).delete(t)){const n=si(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=si(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=si(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(){be.batch(()=>{C(this,Vt).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,Vt).clear(),C(this,bt).clear()})}getAll(){return Array.from(C(this,Vt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Au(n,r))}findAll(t={}){return this.getAll().filter(n=>Au(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(Ie))))}},Vt=new WeakMap,bt=new WeakMap,Bo=new WeakMap,ef);function si(e){var t;return(t=e.options.scope)==null?void 0:t.id}var zt,ln,Ve,Ut,Wt,Ti,zs,tf,Yg=(tf=class extends Xn{constructor(n,r){super();G(this,Wt);G(this,zt);G(this,ln);G(this,Ve);G(this,Ut);B(this,zt,n),this.setOptions(r),this.bindMethods(),X(this,Wt,Ti).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,zt).defaultMutationOptions(n),Eo(this.options,r)||C(this,zt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,Ve),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&yn(r.mutationKey)!==yn(this.options.mutationKey)?this.reset():((o=C(this,Ve))==null?void 0:o.state.status)==="pending"&&C(this,Ve).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,Ve))==null||n.removeObserver(this)}onMutationUpdate(n){X(this,Wt,Ti).call(this),X(this,Wt,zs).call(this,n)}getCurrentResult(){return C(this,ln)}reset(){var n;(n=C(this,Ve))==null||n.removeObserver(this),B(this,Ve,void 0),X(this,Wt,Ti).call(this),X(this,Wt,zs).call(this)}mutate(n,r){var o;return B(this,Ut,r),(o=C(this,Ve))==null||o.removeObserver(this),B(this,Ve,C(this,zt).getMutationCache().build(C(this,zt),this.options)),C(this,Ve).addObserver(this),C(this,Ve).execute(n)}},zt=new WeakMap,ln=new WeakMap,Ve=new WeakMap,Ut=new WeakMap,Wt=new WeakSet,Ti=function(){var r;const n=((r=C(this,Ve))==null?void 0:r.state)??yf();B(this,ln,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},zs=function(n){be.batch(()=>{var r,o,i,a,s,l,u,h;if(C(this,Ut)&&this.hasListeners()){const c=C(this,ln).variables,p=C(this,ln).context,f={client:C(this,zt),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((o=(r=C(this,Ut)).onSuccess)==null||o.call(r,n.data,c,p,f),(a=(i=C(this,Ut)).onSettled)==null||a.call(i,n.data,null,c,p,f)):(n==null?void 0:n.type)==="error"&&((l=(s=C(this,Ut)).onError)==null||l.call(s,n.error,c,p,f),(h=(u=C(this,Ut)).onSettled)==null||h.call(u,void 0,n.error,c,p,f))}this.listeners.forEach(c=>{c(C(this,ln))})})},tf);function Uu(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function Xg(e,t,n){const r=e.slice(0);return r[t]=n,r}var kr,Ze,Or,Tr,lt,un,Ho,Vo,zo,De,Us,qs,Ws,Gs,Qs,nf,Zg=(nf=class extends Xn{constructor(t,n,r){super();G(this,De);G(this,kr);G(this,Ze);G(this,Or);G(this,Tr);G(this,lt);G(this,un);G(this,Ho);G(this,Vo);G(this,zo,[]);B(this,kr,t),B(this,Tr,r),B(this,Or,[]),B(this,lt,[]),B(this,Ze,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&C(this,lt).forEach(t=>{t.subscribe(n=>{X(this,De,Gs).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){B(this,Or,t),B(this,Tr,n),be.batch(()=>{const r=C(this,lt),o=X(this,De,Ws).call(this,C(this,Or));B(this,zo,o),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&&B(this,lt,i),B(this,Ze,a),this.hasListeners()&&(u&&(Uu(r,i).forEach(c=>{c.destroy()}),Uu(i,r).forEach(c=>{c.subscribe(p=>{X(this,De,Gs).call(this,c,p)})})),X(this,De,Qs).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,Ws).call(this,t),o=r.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions));return[o,i=>X(this,De,qs).call(this,i??o,n),()=>X(this,De,Us).call(this,o,r)]}},kr=new WeakMap,Ze=new WeakMap,Or=new WeakMap,Tr=new WeakMap,lt=new WeakMap,un=new WeakMap,Ho=new WeakMap,Vo=new WeakMap,zo=new WeakMap,De=new WeakSet,Us=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)})})})},qs=function(t,n){return n?((!C(this,un)||C(this,Ze)!==C(this,Vo)||n!==C(this,Ho))&&(B(this,Ho,n),B(this,Vo,C(this,Ze)),B(this,un,Al(C(this,un),n(t)))),C(this,un)):t},Ws=function(t){const n=new Map(C(this,lt).map(o=>[o.options.queryHash,o])),r=[];return t.forEach(o=>{const i=C(this,kr).defaultQueryOptions(o),a=n.get(i.queryHash);a?r.push({defaultedQueryOptions:i,observer:a}):r.push({defaultedQueryOptions:i,observer:new Uo(C(this,kr),i)})}),r},Gs=function(t,n){const r=C(this,lt).indexOf(t);r!==-1&&(B(this,Ze,Xg(C(this,Ze),r,n)),X(this,De,Qs).call(this))},Qs=function(){var t;if(this.hasListeners()){const n=C(this,un),r=X(this,De,Us).call(this,C(this,Ze),C(this,zo)),o=X(this,De,qs).call(this,r,(t=C(this,Tr))==null?void 0:t.combine);n!==o&&be.batch(()=>{this.listeners.forEach(i=>{i(C(this,Ze))})})}},nf),_t,rf,Jg=(rf=class extends Xn{constructor(t={}){super();G(this,_t);this.config=t,B(this,_t,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??jl(o,n);let a=this.get(i);return a||(a=new Vg({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){C(this,_t).has(t.queryHash)||(C(this,_t).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,_t).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,_t).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,_t).get(t)}getAll(){return[...C(this,_t).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ju(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ju(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()})})}},_t=new WeakMap,rf),ve,cn,dn,Dr,_r,fn,Fr,Ir,of,em=(of=class{constructor(e={}){G(this,ve);G(this,cn);G(this,dn);G(this,Dr);G(this,_r);G(this,fn);G(this,Fr);G(this,Ir);B(this,ve,e.queryCache||new Jg),B(this,cn,e.mutationCache||new Qg),B(this,dn,e.defaultOptions||{}),B(this,Dr,new Map),B(this,_r,new Map),B(this,fn,0)}mount(){ai(this,fn)._++,C(this,fn)===1&&(B(this,Fr,Kl.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ve).onFocus())})),B(this,Ir,Ai.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ve).onOnline())})))}unmount(){var e,t;ai(this,fn)._--,C(this,fn)===0&&((e=C(this,Fr))==null||e.call(this),B(this,Fr,void 0),(t=C(this,Ir))==null||t.call(this),B(this,Ir,void 0))}isFetching(e){return C(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,cn).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(gn(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=_g(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(Ie).catch(Ie)}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(Ie)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ie)}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(gn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ie).catch(Ie)}fetchInfiniteQuery(e){return e.behavior=Ki(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ie).catch(Ie)}ensureInfiniteQueryData(e){return e.behavior=Ki(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ai.isOnline()?C(this,cn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ve)}getMutationCache(){return C(this,cn)}getDefaultOptions(){return C(this,dn)}setDefaultOptions(e){B(this,dn,e)}setQueryDefaults(e,t){C(this,Dr).set(yn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Dr).values()],n={};return t.forEach(r=>{$o(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,_r).set(yn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,_r).values()],n={};return t.forEach(r=>{$o(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,dn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=jl(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,dn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ve).clear(),C(this,cn).clear()}},ve=new WeakMap,cn=new WeakMap,dn=new WeakMap,Dr=new WeakMap,_r=new WeakMap,fn=new WeakMap,Fr=new WeakMap,Ir=new WeakMap,of),xf=S.createContext(void 0),qo=e=>{const t=S.useContext(xf);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tm=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(xf.Provider,{value:e,children:t})),wf=S.createContext(!1),Cf=()=>S.useContext(wf);wf.Provider;function nm(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var rm=S.createContext(nm()),Sf=()=>S.useContext(rm),$f=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Ef=e=>{S.useEffect(()=>{e.clearReset()},[e])},Pf=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||df(n,[e.error,r])),Hl=(e,t)=>t.state.data===void 0,Rf=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))}},Mf=(e,t)=>e.isLoading&&e.isFetching&&!t,Ys=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Bi=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function kf({queries:e,...t},n){const r=qo(n),o=Cf(),i=Sf(),a=S.useMemo(()=>e.map(m=>{const v=r.defaultQueryOptions(m);return v._optimisticResults=o?"isRestoring":"optimistic",v}),[e,r,o]);a.forEach(m=>{Rf(m),$f(m,i)}),Ef(i);const[s]=S.useState(()=>new Zg(r,a,t)),[l,u,h]=s.getOptimisticResult(a,t.combine),c=!o&&t.subscribed!==!1;S.useSyncExternalStore(S.useCallback(m=>c?s.subscribe(be.batchCalls(m)):Ie,[s,c]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),S.useEffect(()=>{s.setQueries(a,t)},[a,t,s]);const f=l.some((m,v)=>Ys(a[v],m))?l.flatMap((m,v)=>{const b=a[v];if(b){const x=new Uo(r,b);if(Ys(b,m))return Bi(b,x,i);Mf(m,o)&&Bi(b,x,i)}return[]}):[];if(f.length>0)throw Promise.all(f);const g=l.find((m,v)=>{const b=a[v];return b&&Pf({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 ba(e,t,n){var c,p,f,g,m;const r=Cf(),o=Sf(),i=qo(n),a=i.defaultQueryOptions(e);(p=(c=i.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||p.call(c,a),a._optimisticResults=r?"isRestoring":"optimistic",Rf(a),$f(a,o),Ef(o);const s=!i.getQueryCache().get(a.queryHash),[l]=S.useState(()=>new t(i,a)),u=l.getOptimisticResult(a),h=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(v=>{const b=h?l.subscribe(be.batchCalls(v)):Ie;return l.updateResult(),b},[l,h]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),S.useEffect(()=>{l.setOptions(a)},[a,l]),Ys(a,u))throw Bi(a,l,o);if(Pf({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((g=(f=i.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||g.call(f,a,u),a.experimental_prefetchInRender&&!Un&&Mf(u,r)){const v=s?Bi(a,l,o):(m=i.getQueryCache().get(a.queryHash))==null?void 0:m.promise;v==null||v.catch(Ie).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function om(e,t){return ba(e,Uo,t)}function im(e,t){return ba({...e,enabled:!0,suspense:!0,throwOnError:Hl,placeholderData:void 0},Uo,t)}function am(e,t){return ba({...e,enabled:!0,suspense:!0,throwOnError:Hl},bf,t)}function sm(e,t){return kf({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:Hl,enabled:!0,placeholderData:void 0}))},t)}function lm(e,t){const n=qo(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function um(e,t){const n=qo(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function cm(e,t){const n=qo(t),[r]=S.useState(()=>new Yg(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const o=S.useSyncExternalStore(S.useCallback(a=>r.subscribe(be.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=S.useCallback((a,s)=>{r.mutate(a,s).catch(Ie)},[r]);if(o.error&&df(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function dm(e,t){return ba(e,bf,t)}var fm=Object.create,Of=Object.defineProperty,hm=Object.getOwnPropertyDescriptor,Tf=Object.getOwnPropertyNames,pm=Object.getPrototypeOf,gm=Object.prototype.hasOwnProperty,It=(e,t)=>function(){return t||(0,e[Tf(e)[0]])((t={exports:{}}).exports,t),t.exports},mm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Tf(t),i=0,a=o.length,s;i<a;i++)s=o[i],!gm.call(e,s)&&s!==n&&Of(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=hm(t,s))||r.enumerable});return e},we=(e,t,n)=>(n=e!=null?fm(pm(e)):{},mm(t||!e||!e.__esModule?Of(n,"default",{value:e,enumerable:!0}):n,e)),Df=It({"../../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=It({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Df().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}}),bm=It({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Df().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}}),Zn=It({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=bm();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=It({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Zn();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 ya(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(ym,t)}};return t}function ym(e,t){return t(e)}function xm(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 wm(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 ya(s=>(n++,o.push(s),i(),{unsubscribe(){n--,a();const l=o.findIndex(u=>u===s);l>-1&&o.splice(l,1)}}))}}function Cm(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=ya(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 Sm(e){return ya(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 qn(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const $m=typeof Symbol=="function"&&!!Symbol.asyncIterator;function _f(e){return $m&&qn(e)&&Symbol.asyncIterator in e}var Em=Object.create,Ff=Object.defineProperty,Pm=Object.getOwnPropertyDescriptor,If=Object.getOwnPropertyNames,Rm=Object.getPrototypeOf,Mm=Object.prototype.hasOwnProperty,Wo=(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],!Mm.call(e,s)&&s!==n&&Ff(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=Pm(t,s))||r.enumerable});return e},xa=(e,t,n)=>(n=e!=null?Em(Rm(e)):{},km(Ff(n,"default",{value:e,enumerable:!0}),e));const Lf=()=>{},qu=e=>{Object.freeze&&Object.freeze(e)};function Nf(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(Lf,{get(i,a){if(!(typeof a!="string"||a==="then"))return Nf(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)}),qu(u.args),qu(u.path),e(u)}})),n[o]}const wa=e=>Nf(e,[],Object.create(null)),Vl=e=>new Proxy(Lf,{get(t,n){if(n!=="then")return e(n)}});var jf=Wo({"../../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}}),Om=Wo({"../../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}}),Tm=Wo({"../../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=Om();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}}),Af=Wo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Tm();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}}),zl=Wo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Af();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}});xa(zl());xa(Af());var li=xa(zl());function Dm(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,li.default)((0,li.default)({},e),{},{error:r})}}return{ok:!0,result:(0,li.default)((0,li.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 _m(e,t){let n;try{n=Dm(e,t)}catch{throw new qa}if(!n.ok&&(!qn(n.error.error)||typeof n.error.error.code!="number"))throw new qa;if(n.ok&&!qn(n.result))throw new qa;return n}xa(zl());var ui=we(Zn(),1),ar=we($t(),1);function Fm(e){return e instanceof Hi}function Im(e){return qn(e)&&qn(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function Lm(e,t){return typeof e=="string"?e:qn(e)&&typeof e.message=="string"?e.message:t}var Hi=class Di extends Error{constructor(t,n){var r,o;const i=n==null?void 0:n.cause;super(t,{cause:i}),(0,ui.default)(this,"cause",void 0),(0,ui.default)(this,"shape",void 0),(0,ui.default)(this,"data",void 0),(0,ui.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,Di.prototype)}static from(t,n={}){const r=t;return Fm(r)?(n.meta&&(r.meta=(0,ar.default)((0,ar.default)({},r.meta),n.meta)),r):Im(r)?new Di(r.error.message,(0,ar.default)((0,ar.default)({},n),{},{result:r})):new Di(Lm(r,"Unknown error"),(0,ar.default)((0,ar.default)({},n),{},{cause:r}))}};function Nm(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 Wu=e=>typeof e=="function";function jm(e){if(e)return e;if(typeof window<"u"&&Wu(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Wu(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var mo=we($t());function Am(e){return{url:e.url.toString(),fetch:e.fetch,transformer:Nm(e.transformer),methodOverride:e.methodOverride}}function Km(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const Bm={query:"GET",mutation:"POST",subscription:"PATCH"};function Kf(e){return"input"in e?e.transformer.input.serialize(e.input):Km(e.inputs.map(t=>e.transformer.input.serialize(t)))}const Bf=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=Kf(e);i!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return o.length&&(r+="?"+o.join("&")),r},Hm=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=Kf(e);return t!==void 0?JSON.stringify(t):void 0},Vm=e=>Wm((0,mo.default)((0,mo.default)({},e),{},{contentTypeHeader:"application/json",getUrl:Bf,getBody:Hm}));var zm=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const Um=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 zm};async function qm(e){var t;Um(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:Bm[e.type],i=await(async()=>{const s=await e.headers();return Symbol.iterator in s?Object.fromEntries(s):s})(),a=(0,mo.default)((0,mo.default)((0,mo.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 Wm(e){const t={},n=await qm(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}we($t(),1);const Gu=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Qu(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:Gu,reject:Gu},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 Gm(...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 ci=we($t(),1);function Qm(e){var t,n;const r=Am(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 Bf((0,ci.default)((0,ci.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=Gm(...c.map(x=>x.signal)),m=await Vm((0,ci.default)((0,ci.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=Qu(a("query")),l=Qu(a("mutation")),u={query:s,mutation:l};return({op:h})=>ya(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=_m(m.json,r.transformer.output);if(!v.ok){c.error(Hi.from(v.error,{meta:m.meta}));return}c.next({context:m.meta,result:v.result}),c.complete()}).catch(m=>{c.error(Hi.from(m,{meta:g==null?void 0:g.meta}))}),()=>{}})}}we($t(),1);const Hf=(e,...t)=>typeof e=="function"?e(...t):e;we(Zn(),1);function Ym(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function Xm(e){const t=await Hf(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function Zm(e){const t={method:"connectionParams",data:await Hf(e)};return JSON.stringify(t)}we(Zn(),1);var Dn=we(Zn(),1);function Jm(e){const{promise:t,resolve:n,reject:r}=Ym();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function ev(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 tv=class Xs{constructor(t){var n;if((0,Dn.default)(this,"id",++Xs.connectCount),(0,Dn.default)(this,"WebSocketPonyfill",void 0),(0,Dn.default)(this,"urlOptions",void 0),(0,Dn.default)(this,"keepAliveOpts",void 0),(0,Dn.default)(this,"wsObservable",Cm(null)),(0,Dn.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=++Xs.connectCount;const n=Xm(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&ev(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await Jm(r),t.urlOptions.connectionParams&&r.send(await Zm(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,Dn.default)(tv,"connectCount",0);we(Zn(),1);we($t(),1);var Wa=we(Zn(),1),Yu=we($t(),1),Ca=class{constructor(e){(0,Wa.default)(this,"links",void 0),(0,Wa.default)(this,"runtime",void 0),(0,Wa.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return Sm({links:this.links,op:(0,Yu.default)((0,Yu.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(wm())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await xm(n)).result.data}catch(n){throw Hi.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 Vf=Symbol.for("trpc_untypedClient"),nv={query:"query",mutate:"mutation",subscribe:"subscription"},rv=e=>nv[e];function zf(e){const t=wa(({path:n,args:r})=>{const o=[...n],i=rv(o.pop()),a=o.join(".");return e[i](a,...r)});return Vl(n=>n===Vf?e:t[n])}function ov(e){const t=new Ca(e);return zf(t)}function Ul(e){return e[Vf]}we($t(),1);we($t(),1);var iv=It({"../../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}});we(iv(),1);we($t(),1);var av=It({"../../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}}),Uf=It({"../../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}}),sv=It({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=Uf();function r(o){return new n(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),lv=It({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=Uf();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}});we(av(),1);we(sv(),1);we(lv(),1);we($t(),1);var Po=function(){return Po=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},Po.apply(this,arguments)};function uv(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 cv(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 dv(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 xt(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 fv=Object.create,qf=Object.defineProperty,hv=Object.getOwnPropertyDescriptor,Wf=Object.getOwnPropertyNames,pv=Object.getPrototypeOf,gv=Object.prototype.hasOwnProperty,Sn=(e,t)=>function(){return t||(0,e[Wf(e)[0]])((t={exports:{}}).exports,t),t.exports},mv=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Wf(t),i=0,a=o.length,s;i<a;i++)s=o[i],!gv.call(e,s)&&s!==n&&qf(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=hv(t,s))||r.enumerable});return e},Jn=(e,t,n)=>(n=e!=null?fv(pv(e)):{},mv(t||!e||!e.__esModule?qf(n,"default",{value:e,enumerable:!0}):n,e)),vv=Sn({"../../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}}),bv=Sn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=vv();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}}),Gf=Sn({"../../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}}),yv=Sn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Gf().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}}),xv=Sn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Gf().default,r=yv();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}}),wv=Sn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=xv();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}}),Go=Sn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=wv();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}}),Cv=Jn(bv(),1),Xu=Jn(Go(),1);const Sv=["cursor","direction"];function Ot(e,t,n){const r=e.flatMap(o=>o.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&qn(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:i}=t,a=(0,Cv.default)(t,Sv);return[r,{input:a,type:"infinite"}]}return[r,(0,Xu.default)((0,Xu.default)({},typeof t<"u"&&t!==et&&{input:t}),n&&n!=="any"&&{type:n})]}function _i(e){return Ot(e,void 0,"any")}function $v(e){return wa(({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 Ga;const Ev=["client","ssrContext","ssrState","abortOnUnmount"],Pv=(Ga=S.createContext)===null||Ga===void 0?void 0:Ga.call(S,null),Rv=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 Mv(e){return wa(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],i=o.shift(),a=Rv(r),s=Ot(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(_i(n),i),getMutationDefaults:()=>e.getMutationDefaults(_i(n)),isMutating:()=>e.isMutating({mutationKey:_i(n)})}[r]()})}function kv(e){const t=zf(e.client),n=Mv(e);return Vl(r=>{const o=r;return o==="client"?t:Ev.includes(o)?e[o]:n[r]})}var Ov=Jn(Go(),1);function Zu(e){const t=e instanceof Ca?e:Ul(e);return wa(n=>{const r=n.path,o=r.join("."),[i,a]=n.args;return(0,Ov.default)({queryKey:Ot(r,i,"query"),queryFn:()=>t.query(o,i,a==null?void 0:a.trpc)},a)})}var Qa=Jn(Go(),1);function je(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,Qa.default)((0,Qa.default)((0,Qa.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 Tv=Sn({"../../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}}),Dv=Jn(Tv(),1);function Zs(e){return{path:e.path.join(".")}}function eo(e){const t=Zs(e);return S.useMemo(()=>t,[t])}async function Qf(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,Dv.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=Jn(Go(),1);function _v(e){const{client:t,queryClient:n}=e,r=t instanceof Ca?t:Ul(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,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(...je(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?et:h,initialPageParam:(l=a==null?void 0:a.initialCursor)!==null&&l!==void 0?l:null}),{trpc:Zs({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,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(...je(i,p));return _f(f)?Qf(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?et:u}),{trpc:Zs({path:o})})},fetchQuery:(o,i)=>n.fetchQuery((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...je(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(...je(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(...je(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(...je(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(...je(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(...je([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 U=Jn(Go());const Ju=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function Fv(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:$=>$.originalFn(),i=(r=e==null?void 0:e.context)!==null&&r!==void 0?r:Pv,a=ov,s=$=>{var R;const{abortOnUnmount:M=!1,queryClient:_,ssrContext:D}=$,[P,L]=S.useState((R=$.ssrState)!==null&&R!==void 0?R:!1),N=$.client instanceof Ca?$.client:Ul($.client),F=S.useMemo(()=>_v({client:N,queryClient:_}),[N,_]),j=S.useMemo(()=>(0,U.default)({abortOnUnmount:M,queryClient:_,client:N,ssrContext:D??null,ssrState:P},F),[M,N,F,_,D,P]);return S.useEffect(()=>{L(O=>O?"mounted":!1)},[]),y.jsx(i.Provider,{value:j,children:$.children})};function l(){const $=S.useContext(i);if(!$)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return $}function u($,R){var M;const{queryClient:_,ssrState:D}=l();return D&&D!=="mounted"&&((M=_.getQueryCache().find({queryKey:$}))===null||M===void 0?void 0:M.state.status)==="error"?(0,U.default)({retryOnMount:!1},R):R}function h($,R,M){var _,D,P,L,N;const F=l(),{abortOnUnmount:j,client:O,ssrState:T,queryClient:A,prefetchQuery:K}=F,I=Ot($,R,"query"),H=A.getQueryDefaults(I),z=R===et;typeof window>"u"&&T==="prepass"&&(M==null||(_=M.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((D=M==null?void 0:M.enabled)!==null&&D!==void 0?D:H==null?void 0:H.enabled)!==!1&&!z&&!A.getQueryCache().find({queryKey:I})&&K(I,M);const V=u(I,(0,U.default)((0,U.default)({},H),M)),W=(P=(L=M==null||(N=M.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&L!==void 0?L:e==null?void 0:e.abortOnUnmount)!==null&&P!==void 0?P:j,q=om((0,U.default)((0,U.default)({},V),{},{queryKey:I,queryFn:z?R:async ne=>{const pe=(0,U.default)((0,U.default)({},V),{},{trpc:(0,U.default)((0,U.default)({},V==null?void 0:V.trpc),W?{signal:ne.signal}:{signal:null})}),ee=await O.query(...je(I,pe));return _f(ee)?Qf(ee,A,I):ee}}),A);return q.trpc=eo({path:$}),q}function c($,R,M){var _,D,P;const L=l(),N=Ot($,R,"query"),F=R===et,j=(_=(D=M==null||(P=M.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&D!==void 0?D:e==null?void 0:e.abortOnUnmount)!==null&&_!==void 0?_:L.abortOnUnmount;lm((0,U.default)((0,U.default)({},M),{},{queryKey:N,queryFn:F?R:O=>{const T={trpc:(0,U.default)((0,U.default)({},M==null?void 0:M.trpc),j?{signal:O.signal}:{})};return L.client.query(...je(N,T))}}))}function p($,R,M){var _,D,P;const L=l(),N=Ot($,R,"query"),F=(_=(D=M==null||(P=M.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&D!==void 0?D:e==null?void 0:e.abortOnUnmount)!==null&&_!==void 0?_:L.abortOnUnmount,j=im((0,U.default)((0,U.default)({},M),{},{queryKey:N,queryFn:O=>{const T=(0,U.default)((0,U.default)({},M),{},{trpc:(0,U.default)((0,U.default)({},M==null?void 0:M.trpc),F?{signal:O.signal}:{signal:null})});return L.client.query(...je(N,T))}}),L.queryClient);return j.trpc=eo({path:$}),[j.data,j]}function f($,R){const{client:M,queryClient:_}=l(),D=_i($),P=_.defaultMutationOptions(_.getMutationDefaults(D)),L=cm((0,U.default)((0,U.default)({},R),{},{mutationKey:D,mutationFn:N=>M.mutation(...je([$,{input:N}],R)),onSuccess(...N){var F,j;return o({originalFn:()=>{var T,A,K;return(T=R==null||(A=R.onSuccess)===null||A===void 0?void 0:A.call(R,...N))!==null&&T!==void 0?T:P==null||(K=P.onSuccess)===null||K===void 0?void 0:K.call(P,...N)},queryClient:_,meta:(F=(j=R==null?void 0:R.meta)!==null&&j!==void 0?j:P==null?void 0:P.meta)!==null&&F!==void 0?F:{}})}}),_);return L.trpc=eo({path:$}),L}const g={data:void 0,error:null,status:"idle"},m={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function v($,R,M){var _;const D=(_=M==null?void 0:M.enabled)!==null&&_!==void 0?_:R!==et,P=yn(Ot($,R,"any")),{client:L}=l(),N=S.useRef(M);S.useEffect(()=>{N.current=M});const[F]=S.useState(new Set([])),j=S.useCallback(z=>{F.add(z)},[F]),O=S.useRef(null),T=S.useCallback(z=>{const V=K.current,W=K.current=z(V);let q=!1;for(const ne of F)if(V[ne]!==W[ne]){q=!0;break}q&&H(Ju(W,j))},[j,F]),A=S.useCallback(()=>{var z;if((z=O.current)===null||z===void 0||z.unsubscribe(),!D){T(()=>(0,U.default)((0,U.default)({},g),{},{reset:A}));return}T(()=>(0,U.default)((0,U.default)({},m),{},{reset:A}));const V=L.subscription($.join("."),R??void 0,{onStarted:()=>{var W,q;(W=(q=N.current).onStarted)===null||W===void 0||W.call(q),T(ne=>(0,U.default)((0,U.default)({},ne),{},{status:"pending",error:null}))},onData:W=>{var q,ne;(q=(ne=N.current).onData)===null||q===void 0||q.call(ne,W),T(pe=>(0,U.default)((0,U.default)({},pe),{},{status:"pending",data:W,error:null}))},onError:W=>{var q,ne;(q=(ne=N.current).onError)===null||q===void 0||q.call(ne,W),T(pe=>(0,U.default)((0,U.default)({},pe),{},{status:"error",error:W}))},onConnectionStateChange:W=>{T(q=>{switch(W.state){case"idle":return(0,U.default)((0,U.default)({},q),{},{status:W.state,error:null,data:void 0});case"connecting":return(0,U.default)((0,U.default)({},q),{},{error:W.error,status:W.state});case"pending":return q}})},onComplete:()=>{var W,q;(W=(q=N.current).onComplete)===null||W===void 0||W.call(q),T(ne=>(0,U.default)((0,U.default)({},ne),{},{status:"idle",error:null,data:void 0}))}});O.current=V},[L,P,D,T]);S.useEffect(()=>(A(),()=>{var z;(z=O.current)===null||z===void 0||z.unsubscribe()}),[A]);const K=S.useRef(D?(0,U.default)((0,U.default)({},m),{},{reset:A}):(0,U.default)((0,U.default)({},g),{},{reset:A})),[I,H]=S.useState(Ju(K.current,j));return I}function b($,R,M){var _,D,P,L,N;const{client:F,ssrState:j,prefetchInfiniteQuery:O,queryClient:T,abortOnUnmount:A}=l(),K=Ot($,R,"infinite"),I=T.getQueryDefaults(K),H=R===et;typeof window>"u"&&j==="prepass"&&(M==null||(_=M.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((D=M==null?void 0:M.enabled)!==null&&D!==void 0?D:I==null?void 0:I.enabled)!==!1&&!H&&!T.getQueryCache().find({queryKey:K})&&O(K,(0,U.default)((0,U.default)({},I),M));const z=u(K,(0,U.default)((0,U.default)({},I),M)),V=(P=M==null||(L=M.trpc)===null||L===void 0?void 0:L.abortOnUnmount)!==null&&P!==void 0?P:A,W=dm((0,U.default)((0,U.default)({},z),{},{initialPageParam:(N=M.initialCursor)!==null&&N!==void 0?N:null,persister:M.persister,queryKey:K,queryFn:H?R:q=>{var ne;const pe=(0,U.default)((0,U.default)({},z),{},{trpc:(0,U.default)((0,U.default)({},z==null?void 0:z.trpc),V?{signal:q.signal}:{signal:null})});return F.query(...je(K,pe,{pageParam:(ne=q.pageParam)!==null&&ne!==void 0?ne:M.initialCursor,direction:q.direction}))}}),T);return W.trpc=eo({path:$}),W}function x($,R,M){var _,D,P;const L=l(),N=Ot($,R,"infinite"),F=L.queryClient.getQueryDefaults(N),j=R===et,O=u(N,(0,U.default)((0,U.default)({},F),M)),T=(_=M==null||(D=M.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&_!==void 0?_:L.abortOnUnmount;um((0,U.default)((0,U.default)({},M),{},{initialPageParam:(P=M.initialCursor)!==null&&P!==void 0?P:null,queryKey:N,queryFn:j?R:A=>{var K;const I=(0,U.default)((0,U.default)({},O),{},{trpc:(0,U.default)((0,U.default)({},O==null?void 0:O.trpc),T?{signal:A.signal}:{})});return L.client.query(...je(N,I,{pageParam:(K=A.pageParam)!==null&&K!==void 0?K:M.initialCursor,direction:A.direction}))}}))}function w($,R,M){var _,D,P;const L=l(),N=Ot($,R,"infinite"),F=L.queryClient.getQueryDefaults(N),j=u(N,(0,U.default)((0,U.default)({},F),M)),O=(_=M==null||(D=M.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&_!==void 0?_:L.abortOnUnmount,T=am((0,U.default)((0,U.default)({},M),{},{initialPageParam:(P=M.initialCursor)!==null&&P!==void 0?P:null,queryKey:N,queryFn:A=>{var K;const I=(0,U.default)((0,U.default)({},j),{},{trpc:(0,U.default)((0,U.default)({},j==null?void 0:j.trpc),O?{signal:A.signal}:{})});return L.client.query(...je(N,I,{pageParam:(K=A.pageParam)!==null&&K!==void 0?K:M.initialCursor,direction:A.direction}))}}),L.queryClient);return T.trpc=eo({path:$}),[T.data,T]}return{Provider:s,createClient:a,useContext:l,useUtils:l,useQuery:h,usePrefetchQuery:c,useSuspenseQuery:p,useQueries:($,R)=>{const{ssrState:M,queryClient:_,prefetchQuery:D,client:P}=l(),L=Zu(P),N=$(L);if(typeof window>"u"&&M==="prepass")for(const j of N){var F;const O=j;((F=O.trpc)===null||F===void 0?void 0:F.ssr)!==!1&&!_.getQueryCache().find({queryKey:O.queryKey})&&D(O.queryKey,O)}return kf({queries:N.map(j=>(0,U.default)((0,U.default)({},j),{},{queryKey:j.queryKey})),combine:R==null?void 0:R.combine},_)},useSuspenseQueries:$=>{const{queryClient:R,client:M}=l(),_=Zu(M),D=$(_),P=sm({queries:D.map(L=>(0,U.default)((0,U.default)({},L),{},{queryFn:L.queryFn,queryKey:L.queryKey}))},R);return[P.map(L=>L.data),P]},useMutation:f,useSubscription:v,useInfiniteQuery:b,usePrefetchInfiniteQuery:x,useSuspenseInfiniteQuery:w}}function Iv(e){const t=$v(e);return Vl(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return S.useMemo(()=>kv(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function Lv(e){const t=Fv(e);return Iv(t)}var de=Lv({overrides:{useMutation:{onSuccess:function(e){return cv(this,void 0,void 0,function(){return dv(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
|
-
* react-router v7.9.
|
|
9
|
+
*/var M1=Symbol.for("react.transitional.element"),O1=Symbol.for("react.fragment");function uf(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:M1,type:e,key:r,ref:t!==void 0?t:null,props:n}}va.Fragment=O1;va.jsx=uf;va.jsxs=uf;lf.exports=va;var y=lf.exports,Xn=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(){}},T1={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},nn,Nl,Gd,D1=(Gd=class{constructor(){G(this,nn,T1);G(this,Nl,!1)}setTimeoutProvider(e){B(this,nn,e)}setTimeout(e,t){return C(this,nn).setTimeout(e,t)}clearTimeout(e){C(this,nn).clearTimeout(e)}setInterval(e,t){return C(this,nn).setInterval(e,t)}clearInterval(e){C(this,nn).clearInterval(e)}},nn=new WeakMap,Nl=new WeakMap,Gd),Fn=new D1;function _1(e){setTimeout(e,0)}var Un=typeof window>"u"||"Deno"in globalThis;function Le(){}function F1(e,t){return typeof e=="function"?e(t):e}function Os(e){return typeof e=="number"&&e>=0&&e!==1/0}function cf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gn(e,t){return typeof e=="function"?e(t):e}function ct(e,t){return typeof e=="function"?e(t):e}function ju(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==jl(a,t.options))return!1}else if(!Eo(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 Au(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(yn(t.options.mutationKey)!==yn(i))return!1}else if(!Eo(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function jl(e,t){return((t==null?void 0:t.queryKeyHashFn)||yn)(e)}function yn(e){return JSON.stringify(e,(t,n)=>Ts(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Eo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Eo(e[n],t[n])):!1}var L1=Object.prototype.hasOwnProperty;function Al(e,t){if(e===t)return e;const n=Ku(e)&&Ku(t);if(!n&&!(Ts(e)&&Ts(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,s=n?new Array(a):{};let l=0;for(let u=0;u<a;u++){const h=n?u:i[u],c=e[h],p=t[h];if(c===p){s[h]=c,(n?u<o:L1.call(e,h))&&l++;continue}if(c===null||p===null||typeof c!="object"||typeof p!="object"){s[h]=p;continue}const f=Al(c,p);s[h]=f,f===c&&l++}return o===a&&l===o?e:s}function Po(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 Ku(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ts(e){if(!Bu(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Bu(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Bu(e){return Object.prototype.toString.call(e)==="[object Object]"}function I1(e){return new Promise(t=>{Fn.setTimeout(t,e)})}function Ds(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Al(e,t):t}function N1(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function j1(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var tt=Symbol();function df(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===tt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ff(e,t){return typeof e=="function"?e(...t):!!e}var In,rn,wr,Qd,A1=(Qd=class extends Xn{constructor(){super();G(this,In);G(this,rn);G(this,wr);B(this,wr,t=>{if(!Un&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,rn)||this.setEventListener(C(this,wr))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,rn))==null||t.call(this),B(this,rn,void 0))}setEventListener(t){var n;B(this,wr,t),(n=C(this,rn))==null||n.call(this),B(this,rn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,In)!==t&&(B(this,In,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,In)=="boolean"?C(this,In):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},In=new WeakMap,rn=new WeakMap,wr=new WeakMap,Qd),Kl=new A1;function _s(){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 K1=_1;function B1(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=K1;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=B1(),Cr,on,Sr,Yd,H1=(Yd=class extends Xn{constructor(){super();G(this,Cr,!0);G(this,on);G(this,Sr);B(this,Sr,t=>{if(!Un&&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,on)||this.setEventListener(C(this,Sr))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,on))==null||t.call(this),B(this,on,void 0))}setEventListener(t){var n;B(this,Sr,t),(n=C(this,on))==null||n.call(this),B(this,on,t(this.setOnline.bind(this)))}setOnline(t){C(this,Cr)!==t&&(B(this,Cr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,Cr)}},Cr=new WeakMap,on=new WeakMap,Sr=new WeakMap,Yd),Ai=new H1;function V1(e){return Math.min(1e3*2**e,3e4)}function hf(e){return(e??"online")==="online"?Ai.isOnline():!0}var Fs=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function pf(e){let t=!1,n=0,r;const o=_s(),i=()=>o.status!=="pending",a=m=>{var v;if(!i()){const b=new Fs(m);p(b),(v=e.onCancel)==null||v.call(e,b)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>Kl.isFocused()&&(e.networkMode==="always"||Ai.isOnline())&&e.canRun(),h=()=>hf(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 E;if(i())return;const x=e.retry??(Un?0:3),w=e.retryDelay??V1,S=typeof w=="function"?w(n,b):w,k=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,b);if(t||!k){p(b);return}n++,(E=e.onFail)==null||E.call(e,n,b),I1(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 Nn,Xd,gf=(Xd=class{constructor(){G(this,Nn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Os(this.gcTime)&&B(this,Nn,Fn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Un?1/0:5*60*1e3))}clearGcTimeout(){C(this,Nn)&&(Fn.clearTimeout(C(this,Nn)),B(this,Nn,void 0))}},Nn=new WeakMap,Xd),jn,$r,lt,An,Re,No,Kn,bt,Kt,Zd,z1=(Zd=class extends gf{constructor(t){super();G(this,bt);G(this,jn);G(this,$r);G(this,lt);G(this,An);G(this,Re);G(this,No);G(this,Kn);B(this,Kn,!1),B(this,No,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,An,t.client),B(this,lt,C(this,An).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,jn,Vu(this.options)),this.state=t.state??C(this,jn),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,No),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Vu(this.options);n.data!==void 0&&(this.setState(Hu(n.data,n.dataUpdatedAt)),B(this,jn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,lt).remove(this)}setData(t,n){const r=Ds(this.state.data,t,this.options);return X(this,bt,Kt).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,Kt).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(Le).catch(Le):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,jn))}isActive(){return this.observers.some(t=>ct(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>gn(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:!cf(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,lt).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,Kn)?C(this,Re).cancel({revert:!0}):C(this,Re).cancelRetry()),this.scheduleGc()),C(this,lt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||X(this,bt,Kt).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(k=>k.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,o=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(B(this,Kn,!0),r.signal)})},i=()=>{const S=df(this.options,n),E=(()=>{const R={client:C(this,An),queryKey:this.queryKey,meta:this.meta};return o(R),R})();return B(this,Kn,!1),this.options.persister?this.options.persister(S,E,this):S(E)},s=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,An),state:this.state,fetchFn:i};return o(S),S})();(u=this.options.behavior)==null||u.onFetch(s,this),B(this,$r,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=s.fetchOptions)==null?void 0:h.meta))&&X(this,bt,Kt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),B(this,Re,pf({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:S=>{S instanceof Fs&&S.revert&&this.setState({...C(this,$r),fetchStatus:"idle"}),r.abort()},onFail:(S,k)=>{X(this,bt,Kt).call(this,{type:"failed",failureCount:S,error:k})},onPause:()=>{X(this,bt,Kt).call(this,{type:"pause"})},onContinue:()=>{X(this,bt,Kt).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,lt).config).onSuccess)==null||f.call(p,S,this),(m=(g=C(this,lt).config).onSettled)==null||m.call(g,S,this.state.error,this),S}catch(S){if(S instanceof Fs){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,Kt).call(this,{type:"error",error:S}),(b=(v=C(this,lt).config).onError)==null||b.call(v,S,this),(w=(x=C(this,lt).config).onSettled)==null||w.call(x,this.state.data,S,this),S}finally{this.scheduleGc()}}},jn=new WeakMap,$r=new WeakMap,lt=new WeakMap,An=new WeakMap,Re=new WeakMap,No=new WeakMap,Kn=new WeakMap,bt=new WeakSet,Kt=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,...mf(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...Hu(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return B(this,$r,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"};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,lt).notify({query:this,type:"updated",action:t})})},Zd);function mf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Hu(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Vu(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 He,re,jo,Ie,Bn,Er,Ht,an,Ao,Pr,Rr,Hn,Vn,sn,kr,le,fo,Ls,Is,Ns,js,As,Ks,Bs,vf,Jd,Uo=(Jd=class extends Xn{constructor(t,n){super();G(this,le);G(this,He);G(this,re);G(this,jo);G(this,Ie);G(this,Bn);G(this,Er);G(this,Ht);G(this,an);G(this,Ao);G(this,Pr);G(this,Rr);G(this,Hn);G(this,Vn);G(this,sn);G(this,kr,new Set);this.options=n,B(this,He,t),B(this,an,null),B(this,Ht,_s()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,re).addObserver(this),zu(C(this,re),this.options)?X(this,le,fo).call(this):this.updateResult(),X(this,le,js).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hs(C(this,re),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hs(C(this,re),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,X(this,le,As).call(this),X(this,le,Ks).call(this),C(this,re).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,re);if(this.options=C(this,He).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ct(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,le,Bs).call(this),C(this,re).setOptions(this.options),n._defaulted&&!Po(this.options,n)&&C(this,He).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,re),observer:this});const o=this.hasListeners();o&&Uu(C(this,re),r,this.options,n)&&X(this,le,fo).call(this),this.updateResult(),o&&(C(this,re)!==r||ct(this.options.enabled,C(this,re))!==ct(n.enabled,C(this,re))||gn(this.options.staleTime,C(this,re))!==gn(n.staleTime,C(this,re)))&&X(this,le,Ls).call(this);const i=X(this,le,Is).call(this);o&&(C(this,re)!==r||ct(this.options.enabled,C(this,re))!==ct(n.enabled,C(this,re))||i!==C(this,sn))&&X(this,le,Ns).call(this,i)}getOptimisticResult(t){const n=C(this,He).getQueryCache().build(C(this,He),t),r=this.createResult(n,t);return q1(this,r)&&(B(this,Ie,r),B(this,Er,this.options),B(this,Bn,C(this,re).state)),r}getCurrentResult(){return C(this,Ie)}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,Ht).status==="pending"&&C(this,Ht).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){C(this,kr).add(t)}getCurrentQuery(){return C(this,re)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,He).defaultQueryOptions(t),r=C(this,He).getQueryCache().build(C(this,He),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return X(this,le,fo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ie)))}createResult(t,n){var _;const r=C(this,re),o=this.options,i=C(this,Ie),a=C(this,Bn),s=C(this,Er),u=t!==r?t.state:C(this,jo),{state:h}=t;let c={...h},p=!1,f;if(n._optimisticResults){const D=this.hasListeners(),P=!D&&zu(t,n),I=D&&Uu(t,r,n,o);(P||I)&&(c={...c,...mf(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 D;i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(D=i.data,b=!0):D=typeof n.placeholderData=="function"?n.placeholderData((_=C(this,Rr))==null?void 0:_.state.data,C(this,Rr)):n.placeholderData,D!==void 0&&(v="success",f=Ds(i==null?void 0:i.data,D,n),p=!0)}if(n.select&&f!==void 0&&!b)if(i&&f===(a==null?void 0:a.data)&&n.select===C(this,Ao))f=C(this,Pr);else try{B(this,Ao,n.select),f=n.select(f),f=Ds(i==null?void 0:i.data,f,n),B(this,Pr,f),B(this,an,null)}catch(D){B(this,an,D)}C(this,an)&&(g=C(this,an),f=C(this,Pr),m=Date.now(),v="error");const x=c.fetchStatus==="fetching",w=v==="pending",S=v==="error",k=w&&x,E=f!==void 0,M={status:v,fetchStatus:c.fetchStatus,isPending:w,isSuccess:v==="success",isError:S,isInitialLoading:k,isLoading:k,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&&!E,isPaused:c.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:S&&E,isStale:Bl(t,n),refetch:this.refetch,promise:C(this,Ht),isEnabled:ct(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const D=N=>{M.status==="error"?N.reject(M.error):M.data!==void 0&&N.resolve(M.data)},P=()=>{const N=B(this,Ht,M.promise=_s());D(N)},I=C(this,Ht);switch(I.status){case"pending":t.queryHash===r.queryHash&&D(I);break;case"fulfilled":(M.status==="error"||M.data!==I.value)&&P();break;case"rejected":(M.status!=="error"||M.error!==I.reason)&&P();break}}return M}updateResult(){const t=C(this,Ie),n=this.createResult(C(this,re),this.options);if(B(this,Bn,C(this,re).state),B(this,Er,this.options),C(this,Bn).data!==void 0&&B(this,Rr,C(this,re)),Po(n,t))return;B(this,Ie,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!C(this,kr).size)return!0;const a=new Set(i??C(this,kr));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Ie)).some(s=>{const l=s;return C(this,Ie)[l]!==t[l]&&a.has(l)})};X(this,le,vf).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&X(this,le,js).call(this)}},He=new WeakMap,re=new WeakMap,jo=new WeakMap,Ie=new WeakMap,Bn=new WeakMap,Er=new WeakMap,Ht=new WeakMap,an=new WeakMap,Ao=new WeakMap,Pr=new WeakMap,Rr=new WeakMap,Hn=new WeakMap,Vn=new WeakMap,sn=new WeakMap,kr=new WeakMap,le=new WeakSet,fo=function(t){X(this,le,Bs).call(this);let n=C(this,re).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Le)),n},Ls=function(){X(this,le,As).call(this);const t=gn(this.options.staleTime,C(this,re));if(Un||C(this,Ie).isStale||!Os(t))return;const r=cf(C(this,Ie).dataUpdatedAt,t)+1;B(this,Hn,Fn.setTimeout(()=>{C(this,Ie).isStale||this.updateResult()},r))},Is=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,re)):this.options.refetchInterval)??!1},Ns=function(t){X(this,le,Ks).call(this),B(this,sn,t),!(Un||ct(this.options.enabled,C(this,re))===!1||!Os(C(this,sn))||C(this,sn)===0)&&B(this,Vn,Fn.setInterval(()=>{(this.options.refetchIntervalInBackground||Kl.isFocused())&&X(this,le,fo).call(this)},C(this,sn)))},js=function(){X(this,le,Ls).call(this),X(this,le,Ns).call(this,X(this,le,Is).call(this))},As=function(){C(this,Hn)&&(Fn.clearTimeout(C(this,Hn)),B(this,Hn,void 0))},Ks=function(){C(this,Vn)&&(Fn.clearInterval(C(this,Vn)),B(this,Vn,void 0))},Bs=function(){const t=C(this,He).getQueryCache().build(C(this,He),this.options);if(t===C(this,re))return;const n=C(this,re);B(this,re,t),B(this,jo,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},vf=function(t){be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ie))}),C(this,He).getQueryCache().notify({query:C(this,re),type:"observerResultsUpdated"})})},Jd);function U1(e,t){return ct(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function zu(e,t){return U1(e,t)||e.state.data!==void 0&&Hs(e,t,t.refetchOnMount)}function Hs(e,t,n){if(ct(t.enabled,e)!==!1&&gn(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Bl(e,t)}return!1}function Uu(e,t,n,r){return(e!==t||ct(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Bl(e,n)}function Bl(e,t){return ct(t.enabled,e)!==!1&&e.isStaleByTime(gn(t.staleTime,e))}function q1(e,t){return!Po(e.getCurrentResult(),t)}function Ki(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=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},b=df(t.options,t.fetchOptions),x=async(w,S,k)=>{if(m)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const R=(()=>{const P={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return v(P),P})(),M=await b(R),{maxPages:_}=t.options,D=k?j1:N1;return{pages:D(w.pages,M,_),pageParams:D(w.pageParams,S,_)}};if(o&&i.length){const w=o==="backward",S=w?bf:Vs,k={pages:i,pageParams:a},E=S(r,k);s=await x(k,E,w)}else{const w=e??i.length;do{const S=l===0?a[0]??r.initialPageParam:Vs(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 Vs(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 bf(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 W1(e,t){return t?Vs(e,t)!=null:!1}function G1(e,t){return!t||!e.getPreviousPageParam?!1:bf(e,t)!=null}var yf=class extends Uo{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:Ki()})}getOptimisticResult(e){return e.behavior=Ki(),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:W1(t,n.data),hasPreviousPage:G1(t,n.data),isFetchNextPageError:u,isFetchingNextPage:h,isFetchPreviousPageError:c,isFetchingPreviousPage:p,isRefetchError:s&&!u&&!c,isRefetching:i&&!h&&!p}}},Ko,Tt,Ne,zn,Dt,en,ef,Q1=(ef=class extends gf{constructor(t){super();G(this,Dt);G(this,Ko);G(this,Tt);G(this,Ne);G(this,zn);B(this,Ko,t.client),this.mutationId=t.mutationId,B(this,Ne,t.mutationCache),B(this,Tt,[]),this.state=t.state||xf(),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,Tt).includes(t)||(C(this,Tt).push(t),this.clearGcTimeout(),C(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Tt,C(this,Tt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,Tt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ne).remove(this))}continue(){var t;return((t=C(this,zn))==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,k,E,R,M,_;const n=()=>{X(this,Dt,en).call(this,{type:"continue"})},r={client:C(this,Ko),meta:this.options.meta,mutationKey:this.options.mutationKey};B(this,zn,pf({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(D,P)=>{X(this,Dt,en).call(this,{type:"failed",failureCount:D,error:P})},onPause:()=>{X(this,Dt,en).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ne).canRun(this)}));const o=this.state.status==="pending",i=!C(this,zn).canStart();try{if(o)n();else{X(this,Dt,en).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(a=C(this,Ne).config).onMutate)==null?void 0:s.call(a,t,this,r));const P=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t,r));P!==this.state.context&&X(this,Dt,en).call(this,{type:"pending",context:P,variables:t,isPaused:i})}const D=await C(this,zn).start();return await((c=(h=C(this,Ne).config).onSuccess)==null?void 0:c.call(h,D,t,this.state.context,this,r)),await((f=(p=this.options).onSuccess)==null?void 0:f.call(p,D,t,this.state.context,r)),await((m=(g=C(this,Ne).config).onSettled)==null?void 0:m.call(g,D,null,this.state.variables,this.state.context,this,r)),await((b=(v=this.options).onSettled)==null?void 0:b.call(v,D,null,t,this.state.context,r)),X(this,Dt,en).call(this,{type:"success",data:D}),D}catch(D){try{throw await((w=(x=C(this,Ne).config).onError)==null?void 0:w.call(x,D,t,this.state.context,this,r)),await((k=(S=this.options).onError)==null?void 0:k.call(S,D,t,this.state.context,r)),await((R=(E=C(this,Ne).config).onSettled)==null?void 0:R.call(E,void 0,D,this.state.variables,this.state.context,this,r)),await((_=(M=this.options).onSettled)==null?void 0:_.call(M,void 0,D,t,this.state.context,r)),D}finally{X(this,Dt,en).call(this,{type:"error",error:D})}}finally{C(this,Ne).runNext(this)}}},Ko=new WeakMap,Tt=new WeakMap,Ne=new WeakMap,zn=new WeakMap,Dt=new WeakSet,en=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,Tt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ne).notify({mutation:this,type:"updated",action:t})})},ef);function xf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vt,yt,Bo,tf,Y1=(tf=class extends Xn{constructor(t={}){super();G(this,Vt);G(this,yt);G(this,Bo);this.config=t,B(this,Vt,new Set),B(this,yt,new Map),B(this,Bo,0)}build(t,n,r){const o=new Q1({client:t,mutationCache:this,mutationId:++ai(this,Bo)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){C(this,Vt).add(t);const n=si(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,Vt).delete(t)){const n=si(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=si(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=si(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,Vt).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,Vt).clear(),C(this,yt).clear()})}getAll(){return Array.from(C(this,Vt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Au(n,r))}findAll(t={}){return this.getAll().filter(n=>Au(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(Le))))}},Vt=new WeakMap,yt=new WeakMap,Bo=new WeakMap,tf);function si(e){var t;return(t=e.options.scope)==null?void 0:t.id}var zt,ln,Ve,Ut,Wt,Ti,zs,nf,X1=(nf=class extends Xn{constructor(n,r){super();G(this,Wt);G(this,zt);G(this,ln);G(this,Ve);G(this,Ut);B(this,zt,n),this.setOptions(r),this.bindMethods(),X(this,Wt,Ti).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,zt).defaultMutationOptions(n),Po(this.options,r)||C(this,zt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,Ve),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&yn(r.mutationKey)!==yn(this.options.mutationKey)?this.reset():((o=C(this,Ve))==null?void 0:o.state.status)==="pending"&&C(this,Ve).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,Ve))==null||n.removeObserver(this)}onMutationUpdate(n){X(this,Wt,Ti).call(this),X(this,Wt,zs).call(this,n)}getCurrentResult(){return C(this,ln)}reset(){var n;(n=C(this,Ve))==null||n.removeObserver(this),B(this,Ve,void 0),X(this,Wt,Ti).call(this),X(this,Wt,zs).call(this)}mutate(n,r){var o;return B(this,Ut,r),(o=C(this,Ve))==null||o.removeObserver(this),B(this,Ve,C(this,zt).getMutationCache().build(C(this,zt),this.options)),C(this,Ve).addObserver(this),C(this,Ve).execute(n)}},zt=new WeakMap,ln=new WeakMap,Ve=new WeakMap,Ut=new WeakMap,Wt=new WeakSet,Ti=function(){var r;const n=((r=C(this,Ve))==null?void 0:r.state)??xf();B(this,ln,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},zs=function(n){be.batch(()=>{var r,o,i,a,s,l,u,h;if(C(this,Ut)&&this.hasListeners()){const c=C(this,ln).variables,p=C(this,ln).context,f={client:C(this,zt),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((o=(r=C(this,Ut)).onSuccess)==null||o.call(r,n.data,c,p,f),(a=(i=C(this,Ut)).onSettled)==null||a.call(i,n.data,null,c,p,f)):(n==null?void 0:n.type)==="error"&&((l=(s=C(this,Ut)).onError)==null||l.call(s,n.error,c,p,f),(h=(u=C(this,Ut)).onSettled)==null||h.call(u,void 0,n.error,c,p,f))}this.listeners.forEach(c=>{c(C(this,ln))})})},nf);function qu(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function Z1(e,t,n){const r=e.slice(0);return r[t]=n,r}var Mr,Je,Or,Tr,ut,un,Ho,Vo,zo,De,Us,qs,Ws,Gs,Qs,rf,J1=(rf=class extends Xn{constructor(t,n,r){super();G(this,De);G(this,Mr);G(this,Je);G(this,Or);G(this,Tr);G(this,ut);G(this,un);G(this,Ho);G(this,Vo);G(this,zo,[]);B(this,Mr,t),B(this,Tr,r),B(this,Or,[]),B(this,ut,[]),B(this,Je,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&C(this,ut).forEach(t=>{t.subscribe(n=>{X(this,De,Gs).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,C(this,ut).forEach(t=>{t.destroy()})}setQueries(t,n){B(this,Or,t),B(this,Tr,n),be.batch(()=>{const r=C(this,ut),o=X(this,De,Ws).call(this,C(this,Or));B(this,zo,o),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,Je)[p];return!f||!Po(c,f)});!u&&!h||(u&&B(this,ut,i),B(this,Je,a),this.hasListeners()&&(u&&(qu(r,i).forEach(c=>{c.destroy()}),qu(i,r).forEach(c=>{c.subscribe(p=>{X(this,De,Gs).call(this,c,p)})})),X(this,De,Qs).call(this)))})}getCurrentResult(){return C(this,Je)}getQueries(){return C(this,ut).map(t=>t.getCurrentQuery())}getObservers(){return C(this,ut)}getOptimisticResult(t,n){const r=X(this,De,Ws).call(this,t),o=r.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions));return[o,i=>X(this,De,qs).call(this,i??o,n),()=>X(this,De,Us).call(this,o,r)]}},Mr=new WeakMap,Je=new WeakMap,Or=new WeakMap,Tr=new WeakMap,ut=new WeakMap,un=new WeakMap,Ho=new WeakMap,Vo=new WeakMap,zo=new WeakMap,De=new WeakSet,Us=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)})})})},qs=function(t,n){return n?((!C(this,un)||C(this,Je)!==C(this,Vo)||n!==C(this,Ho))&&(B(this,Ho,n),B(this,Vo,C(this,Je)),B(this,un,Al(C(this,un),n(t)))),C(this,un)):t},Ws=function(t){const n=new Map(C(this,ut).map(o=>[o.options.queryHash,o])),r=[];return t.forEach(o=>{const i=C(this,Mr).defaultQueryOptions(o),a=n.get(i.queryHash);a?r.push({defaultedQueryOptions:i,observer:a}):r.push({defaultedQueryOptions:i,observer:new Uo(C(this,Mr),i)})}),r},Gs=function(t,n){const r=C(this,ut).indexOf(t);r!==-1&&(B(this,Je,Z1(C(this,Je),r,n)),X(this,De,Qs).call(this))},Qs=function(){var t;if(this.hasListeners()){const n=C(this,un),r=X(this,De,Us).call(this,C(this,Je),C(this,zo)),o=X(this,De,qs).call(this,r,(t=C(this,Tr))==null?void 0:t.combine);n!==o&&be.batch(()=>{this.listeners.forEach(i=>{i(C(this,Je))})})}},rf),_t,of,em=(of=class extends Xn{constructor(t={}){super();G(this,_t);this.config=t,B(this,_t,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??jl(o,n);let a=this.get(i);return a||(a=new z1({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){C(this,_t).has(t.queryHash)||(C(this,_t).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,_t).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,_t).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,_t).get(t)}getAll(){return[...C(this,_t).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ju(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ju(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()})})}},_t=new WeakMap,of),ve,cn,dn,Dr,_r,fn,Fr,Lr,af,tm=(af=class{constructor(e={}){G(this,ve);G(this,cn);G(this,dn);G(this,Dr);G(this,_r);G(this,fn);G(this,Fr);G(this,Lr);B(this,ve,e.queryCache||new em),B(this,cn,e.mutationCache||new Y1),B(this,dn,e.defaultOptions||{}),B(this,Dr,new Map),B(this,_r,new Map),B(this,fn,0)}mount(){ai(this,fn)._++,C(this,fn)===1&&(B(this,Fr,Kl.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ve).onFocus())})),B(this,Lr,Ai.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ve).onOnline())})))}unmount(){var e,t;ai(this,fn)._--,C(this,fn)===0&&((e=C(this,Fr))==null||e.call(this),B(this,Fr,void 0),(t=C(this,Lr))==null||t.call(this),B(this,Lr,void 0))}isFetching(e){return C(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,cn).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(gn(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=F1(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(Le).catch(Le)}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(Le)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Le)}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(gn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Le).catch(Le)}fetchInfiniteQuery(e){return e.behavior=Ki(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Le).catch(Le)}ensureInfiniteQueryData(e){return e.behavior=Ki(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ai.isOnline()?C(this,cn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ve)}getMutationCache(){return C(this,cn)}getDefaultOptions(){return C(this,dn)}setDefaultOptions(e){B(this,dn,e)}setQueryDefaults(e,t){C(this,Dr).set(yn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Dr).values()],n={};return t.forEach(r=>{Eo(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,_r).set(yn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,_r).values()],n={};return t.forEach(r=>{Eo(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,dn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=jl(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===tt&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,dn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ve).clear(),C(this,cn).clear()}},ve=new WeakMap,cn=new WeakMap,dn=new WeakMap,Dr=new WeakMap,_r=new WeakMap,fn=new WeakMap,Fr=new WeakMap,Lr=new WeakMap,af),wf=$.createContext(void 0),qo=e=>{const t=$.useContext(wf);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},nm=({client:e,children:t})=>($.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(wf.Provider,{value:e,children:t})),Cf=$.createContext(!1),Sf=()=>$.useContext(Cf);Cf.Provider;function rm(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var om=$.createContext(rm()),$f=()=>$.useContext(om),Ef=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Pf=e=>{$.useEffect(()=>{e.clearReset()},[e])},Rf=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||ff(n,[e.error,r])),Hl=(e,t)=>t.state.data===void 0,kf=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))}},Mf=(e,t)=>e.isLoading&&e.isFetching&&!t,Ys=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Bi=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Of({queries:e,...t},n){const r=qo(n),o=Sf(),i=$f(),a=$.useMemo(()=>e.map(m=>{const v=r.defaultQueryOptions(m);return v._optimisticResults=o?"isRestoring":"optimistic",v}),[e,r,o]);a.forEach(m=>{kf(m),Ef(m,i)}),Pf(i);const[s]=$.useState(()=>new J1(r,a,t)),[l,u,h]=s.getOptimisticResult(a,t.combine),c=!o&&t.subscribed!==!1;$.useSyncExternalStore($.useCallback(m=>c?s.subscribe(be.batchCalls(m)):Le,[s,c]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),$.useEffect(()=>{s.setQueries(a,t)},[a,t,s]);const f=l.some((m,v)=>Ys(a[v],m))?l.flatMap((m,v)=>{const b=a[v];if(b){const x=new Uo(r,b);if(Ys(b,m))return Bi(b,x,i);Mf(m,o)&&Bi(b,x,i)}return[]}):[];if(f.length>0)throw Promise.all(f);const g=l.find((m,v)=>{const b=a[v];return b&&Rf({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 ba(e,t,n){var c,p,f,g,m;const r=Sf(),o=$f(),i=qo(n),a=i.defaultQueryOptions(e);(p=(c=i.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||p.call(c,a),a._optimisticResults=r?"isRestoring":"optimistic",kf(a),Ef(a,o),Pf(o);const s=!i.getQueryCache().get(a.queryHash),[l]=$.useState(()=>new t(i,a)),u=l.getOptimisticResult(a),h=!r&&e.subscribed!==!1;if($.useSyncExternalStore($.useCallback(v=>{const b=h?l.subscribe(be.batchCalls(v)):Le;return l.updateResult(),b},[l,h]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),$.useEffect(()=>{l.setOptions(a)},[a,l]),Ys(a,u))throw Bi(a,l,o);if(Rf({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((g=(f=i.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||g.call(f,a,u),a.experimental_prefetchInRender&&!Un&&Mf(u,r)){const v=s?Bi(a,l,o):(m=i.getQueryCache().get(a.queryHash))==null?void 0:m.promise;v==null||v.catch(Le).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?u:l.trackResult(u)}function im(e,t){return ba(e,Uo,t)}function am(e,t){return ba({...e,enabled:!0,suspense:!0,throwOnError:Hl,placeholderData:void 0},Uo,t)}function sm(e,t){return ba({...e,enabled:!0,suspense:!0,throwOnError:Hl},yf,t)}function lm(e,t){return Of({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:Hl,enabled:!0,placeholderData:void 0}))},t)}function um(e,t){const n=qo(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function cm(e,t){const n=qo(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function dm(e,t){const n=qo(t),[r]=$.useState(()=>new X1(n,e));$.useEffect(()=>{r.setOptions(e)},[r,e]);const o=$.useSyncExternalStore($.useCallback(a=>r.subscribe(be.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=$.useCallback((a,s)=>{r.mutate(a,s).catch(Le)},[r]);if(o.error&&ff(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function fm(e,t){return ba(e,yf,t)}var hm=Object.create,Tf=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,Df=Object.getOwnPropertyNames,gm=Object.getPrototypeOf,mm=Object.prototype.hasOwnProperty,Lt=(e,t)=>function(){return t||(0,e[Df(e)[0]])((t={exports:{}}).exports,t),t.exports},vm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Df(t),i=0,a=o.length,s;i<a;i++)s=o[i],!mm.call(e,s)&&s!==n&&Tf(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=pm(t,s))||r.enumerable});return e},we=(e,t,n)=>(n=e!=null?hm(gm(e)):{},vm(Tf(n,"default",{value:e,enumerable:!0}),e)),_f=Lt({"../../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}}),bm=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=_f().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}}),ym=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=_f().default,r=bm();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}}),Zn=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=ym();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=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Zn();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 ya(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(xm,t)}};return t}function xm(e,t){return t(e)}function wm(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 Cm(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 ya(s=>(n++,o.push(s),i(),{unsubscribe(){n--,a();const l=o.findIndex(u=>u===s);l>-1&&o.splice(l,1)}}))}}function Sm(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=ya(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 $m(e){return ya(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 qn(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const Em=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Ff(e){return Em&&qn(e)&&Symbol.asyncIterator in e}var Pm=Object.create,Lf=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,If=Object.getOwnPropertyNames,km=Object.getPrototypeOf,Mm=Object.prototype.hasOwnProperty,Wo=(e,t)=>function(){return t||(0,e[If(e)[0]])((t={exports:{}}).exports,t),t.exports},Om=(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],!Mm.call(e,s)&&s!==n&&Lf(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=Rm(t,s))||r.enumerable});return e},xa=(e,t,n)=>(n=e!=null?Pm(km(e)):{},Om(Lf(n,"default",{value:e,enumerable:!0}),e));const Nf=()=>{},Wu=e=>{Object.freeze&&Object.freeze(e)};function jf(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(Nf,{get(i,a){if(!(typeof a!="string"||a==="then"))return jf(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)}),Wu(u.args),Wu(u.path),e(u)}})),n[o]}const wa=e=>jf(e,[],Object.create(null)),Vl=e=>new Proxy(Nf,{get(t,n){if(n!=="then")return e(n)}});var Af=Wo({"../../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=Wo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Af().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=Wo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Af().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}}),Kf=Wo({"../../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}}),zl=Wo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Kf();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}});xa(zl());xa(Kf());var li=xa(zl());function _m(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,li.default)((0,li.default)({},e),{},{error:r})}}return{ok:!0,result:(0,li.default)((0,li.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 Fm(e,t){let n;try{n=_m(e,t)}catch{throw new qa}if(!n.ok&&(!qn(n.error.error)||typeof n.error.error.code!="number"))throw new qa;if(n.ok&&!qn(n.result))throw new qa;return n}xa(zl());var ui=we(Zn()),ar=we($t());function Lm(e){return e instanceof Hi}function Im(e){return qn(e)&&qn(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function Nm(e,t){return typeof e=="string"?e:qn(e)&&typeof e.message=="string"?e.message:t}var Hi=class Di extends Error{constructor(t,n){var r,o;const i=n==null?void 0:n.cause;super(t,{cause:i}),(0,ui.default)(this,"cause",void 0),(0,ui.default)(this,"shape",void 0),(0,ui.default)(this,"data",void 0),(0,ui.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,Di.prototype)}static from(t,n={}){const r=t;return Lm(r)?(n.meta&&(r.meta=(0,ar.default)((0,ar.default)({},r.meta),n.meta)),r):Im(r)?new Di(r.error.message,(0,ar.default)((0,ar.default)({},n),{},{result:r})):new Di(Nm(r,"Unknown error"),(0,ar.default)((0,ar.default)({},n),{},{cause:r}))}};function jm(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 Gu=e=>typeof e=="function";function Am(e){if(e)return e;if(typeof window<"u"&&Gu(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Gu(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var vo=we($t());function Km(e){return{url:e.url.toString(),fetch:e.fetch,transformer:jm(e.transformer),methodOverride:e.methodOverride}}function Bm(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const Hm={query:"GET",mutation:"POST",subscription:"PATCH"};function Bf(e){return"input"in e?e.transformer.input.serialize(e.input):Bm(e.inputs.map(t=>e.transformer.input.serialize(t)))}const Hf=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=Bf(e);i!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return o.length&&(r+="?"+o.join("&")),r},Vm=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=Bf(e);return t!==void 0?JSON.stringify(t):void 0},zm=e=>Gm((0,vo.default)((0,vo.default)({},e),{},{contentTypeHeader:"application/json",getUrl:Hf,getBody:Vm}));var Um=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const qm=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 Um};async function Wm(e){var t;qm(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:Hm[e.type],i=await(async()=>{const s=await e.headers();return Symbol.iterator in s?Object.fromEntries(s):s})(),a=(0,vo.default)((0,vo.default)((0,vo.default)({},e.contentTypeHeader&&o!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return Am(e.fetch)(n,{method:o,signal:e.signal,body:r,headers:a})}async function Gm(e){const t={},n=await Wm(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}we($t());const Qu=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Yu(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:Qu,reject:Qu},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 Qm(...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 ci=we($t());function Ym(e){var t,n;const r=Km(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 Hf((0,ci.default)((0,ci.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=Qm(...c.map(x=>x.signal)),m=await zm((0,ci.default)((0,ci.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=Yu(a("query")),l=Yu(a("mutation")),u={query:s,mutation:l};return({op:h})=>ya(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=Fm(m.json,r.transformer.output);if(!v.ok){c.error(Hi.from(v.error,{meta:m.meta}));return}c.next({context:m.meta,result:v.result}),c.complete()}).catch(m=>{c.error(Hi.from(m,{meta:g==null?void 0:g.meta}))}),()=>{}})}}we($t());const Vf=(e,...t)=>typeof e=="function"?e(...t):e;we(Zn());function Xm(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function Zm(e){const t=await Vf(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function Jm(e){const t={method:"connectionParams",data:await Vf(e)};return JSON.stringify(t)}we(Zn());var Dn=we(Zn());function ev(e){const{promise:t,resolve:n,reject:r}=Xm();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function tv(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 nv=class Xs{constructor(t){var n;if((0,Dn.default)(this,"id",++Xs.connectCount),(0,Dn.default)(this,"WebSocketPonyfill",void 0),(0,Dn.default)(this,"urlOptions",void 0),(0,Dn.default)(this,"keepAliveOpts",void 0),(0,Dn.default)(this,"wsObservable",Sm(null)),(0,Dn.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=++Xs.connectCount;const n=Zm(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&tv(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await ev(r),t.urlOptions.connectionParams&&r.send(await Jm(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,Dn.default)(nv,"connectCount",0);we(Zn());we($t());var Wa=we(Zn()),Xu=we($t()),Ca=class{constructor(e){(0,Wa.default)(this,"links",void 0),(0,Wa.default)(this,"runtime",void 0),(0,Wa.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return $m({links:this.links,op:(0,Xu.default)((0,Xu.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(Cm())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await wm(n)).result.data}catch(n){throw Hi.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"),rv={query:"query",mutate:"mutation",subscribe:"subscription"},ov=e=>rv[e];function Uf(e){const t=wa(({path:n,args:r})=>{const o=[...n],i=ov(o.pop()),a=o.join(".");return e[i](a,...r)});return Vl(n=>n===zf?e:t[n])}function iv(e){const t=new Ca(e);return Uf(t)}function Ul(e){return e[zf]}we($t());we($t());var av=Lt({"../../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}});we(av());we($t());var sv=Lt({"../../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}}),qf=Lt({"../../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}}),lv=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=qf();function r(o){return new n(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),uv=Lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=qf();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}});we(sv());we(lv());we(uv());we($t());var Ir=function(){return Ir=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},Ir.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 dv(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 fv(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 We(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 hv=Object.create,Wf=Object.defineProperty,pv=Object.getOwnPropertyDescriptor,Gf=Object.getOwnPropertyNames,gv=Object.getPrototypeOf,mv=Object.prototype.hasOwnProperty,Sn=(e,t)=>function(){return t||(0,e[Gf(e)[0]])((t={exports:{}}).exports,t),t.exports},vv=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Gf(t),i=0,a=o.length,s;i<a;i++)s=o[i],!mv.call(e,s)&&s!==n&&Wf(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=pv(t,s))||r.enumerable});return e},Jn=(e,t,n)=>(n=e!=null?hv(gv(e)):{},vv(t||!e||!e.__esModule?Wf(n,"default",{value:e,enumerable:!0}):n,e)),bv=Sn({"../../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}}),yv=Sn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=bv();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}}),Qf=Sn({"../../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}}),xv=Sn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Qf().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}}),wv=Sn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Qf().default,r=xv();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}}),Cv=Sn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=wv();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}}),Go=Sn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Cv();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}}),Sv=Jn(yv(),1),Zu=Jn(Go(),1);const $v=["cursor","direction"];function Ot(e,t,n){const r=e.flatMap(o=>o.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&qn(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:i}=t,a=(0,Sv.default)(t,$v);return[r,{input:a,type:"infinite"}]}return[r,(0,Zu.default)((0,Zu.default)({},typeof t<"u"&&t!==tt&&{input:t}),n&&n!=="any"&&{type:n})]}function _i(e){return Ot(e,void 0,"any")}function Ev(e){return wa(({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 Ga;const Pv=["client","ssrContext","ssrState","abortOnUnmount"],Rv=(Ga=$.createContext)===null||Ga===void 0?void 0:Ga.call($,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 Mv(e){return wa(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],i=o.shift(),a=kv(r),s=Ot(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(_i(n),i),getMutationDefaults:()=>e.getMutationDefaults(_i(n)),isMutating:()=>e.isMutating({mutationKey:_i(n)})}[r]()})}function Ov(e){const t=Uf(e.client),n=Mv(e);return Vl(r=>{const o=r;return o==="client"?t:Pv.includes(o)?e[o]:n[r]})}var Tv=Jn(Go(),1);function Ju(e){const t=e instanceof Ca?e:Ul(e);return wa(n=>{const r=n.path,o=r.join("."),[i,a]=n.args;return(0,Tv.default)({queryKey:Ot(r,i,"query"),queryFn:()=>t.query(o,i,a==null?void 0:a.trpc)},a)})}var Qa=Jn(Go(),1);function je(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,Qa.default)((0,Qa.default)((0,Qa.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 Dv=Sn({"../../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}}),_v=Jn(Dv(),1);function Zs(e){return{path:e.path.join(".")}}function to(e){const t=Zs(e);return $.useMemo(()=>t,[t])}async function Yf(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,_v.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=Jn(Go(),1);function Fv(e){const{client:t,queryClient:n}=e,r=t instanceof Ca?t:Ul(t);return{infiniteQueryOptions:(o,i,a)=>{var s,l;const u=((s=i[1])===null||s===void 0?void 0:s.input)===tt,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(...je(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?tt:h,initialPageParam:(l=a==null?void 0:a.initialCursor)!==null&&l!==void 0?l:null}),{trpc:Zs({path:o})})},queryOptions:(o,i,a)=>{var s;const l=((s=i[1])===null||s===void 0?void 0:s.input)===tt,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(...je(i,p));return Ff(f)?Yf(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?tt:u}),{trpc:Zs({path:o})})},fetchQuery:(o,i)=>n.fetchQuery((0,ae.default)((0,ae.default)({},i),{},{queryKey:o,queryFn:()=>r.query(...je(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(...je(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(...je(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(...je(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(...je(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(...je([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 U=Jn(Go());const ec=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function Lv(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:E=>E.originalFn(),i=(r=e==null?void 0:e.context)!==null&&r!==void 0?r:Rv,a=iv,s=E=>{var R;const{abortOnUnmount:M=!1,queryClient:_,ssrContext:D}=E,[P,I]=$.useState((R=E.ssrState)!==null&&R!==void 0?R:!1),N=E.client instanceof Ca?E.client:Ul(E.client),F=$.useMemo(()=>Fv({client:N,queryClient:_}),[N,_]),j=$.useMemo(()=>(0,U.default)({abortOnUnmount:M,queryClient:_,client:N,ssrContext:D??null,ssrState:P},F),[M,N,F,_,D,P]);return $.useEffect(()=>{I(O=>O?"mounted":!1)},[]),y.jsx(i.Provider,{value:j,children:E.children})};function l(){const E=$.useContext(i);if(!E)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return E}function u(E,R){var M;const{queryClient:_,ssrState:D}=l();return D&&D!=="mounted"&&((M=_.getQueryCache().find({queryKey:E}))===null||M===void 0?void 0:M.state.status)==="error"?(0,U.default)({retryOnMount:!1},R):R}function h(E,R,M){var _,D,P,I,N;const F=l(),{abortOnUnmount:j,client:O,ssrState:T,queryClient:A,prefetchQuery:K}=F,L=Ot(E,R,"query"),H=A.getQueryDefaults(L),z=R===tt;typeof window>"u"&&T==="prepass"&&(M==null||(_=M.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((D=M==null?void 0:M.enabled)!==null&&D!==void 0?D:H==null?void 0:H.enabled)!==!1&&!z&&!A.getQueryCache().find({queryKey:L})&&K(L,M);const V=u(L,(0,U.default)((0,U.default)({},H),M)),W=(P=(I=M==null||(N=M.trpc)===null||N===void 0?void 0:N.abortOnUnmount)!==null&&I!==void 0?I:e==null?void 0:e.abortOnUnmount)!==null&&P!==void 0?P:j,q=im((0,U.default)((0,U.default)({},V),{},{queryKey:L,queryFn:z?R:async ne=>{const pe=(0,U.default)((0,U.default)({},V),{},{trpc:(0,U.default)((0,U.default)({},V==null?void 0:V.trpc),W?{signal:ne.signal}:{signal:null})}),ee=await O.query(...je(L,pe));return Ff(ee)?Yf(ee,A,L):ee}}),A);return q.trpc=to({path:E}),q}function c(E,R,M){var _,D,P;const I=l(),N=Ot(E,R,"query"),F=R===tt,j=(_=(D=M==null||(P=M.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&D!==void 0?D:e==null?void 0:e.abortOnUnmount)!==null&&_!==void 0?_:I.abortOnUnmount;um((0,U.default)((0,U.default)({},M),{},{queryKey:N,queryFn:F?R:O=>{const T={trpc:(0,U.default)((0,U.default)({},M==null?void 0:M.trpc),j?{signal:O.signal}:{})};return I.client.query(...je(N,T))}}))}function p(E,R,M){var _,D,P;const I=l(),N=Ot(E,R,"query"),F=(_=(D=M==null||(P=M.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&D!==void 0?D:e==null?void 0:e.abortOnUnmount)!==null&&_!==void 0?_:I.abortOnUnmount,j=am((0,U.default)((0,U.default)({},M),{},{queryKey:N,queryFn:O=>{const T=(0,U.default)((0,U.default)({},M),{},{trpc:(0,U.default)((0,U.default)({},M==null?void 0:M.trpc),F?{signal:O.signal}:{signal:null})});return I.client.query(...je(N,T))}}),I.queryClient);return j.trpc=to({path:E}),[j.data,j]}function f(E,R){const{client:M,queryClient:_}=l(),D=_i(E),P=_.defaultMutationOptions(_.getMutationDefaults(D)),I=dm((0,U.default)((0,U.default)({},R),{},{mutationKey:D,mutationFn:N=>M.mutation(...je([E,{input:N}],R)),onSuccess(...N){var F,j;return o({originalFn:()=>{var T,A,K;return(T=R==null||(A=R.onSuccess)===null||A===void 0?void 0:A.call(R,...N))!==null&&T!==void 0?T:P==null||(K=P.onSuccess)===null||K===void 0?void 0:K.call(P,...N)},queryClient:_,meta:(F=(j=R==null?void 0:R.meta)!==null&&j!==void 0?j:P==null?void 0:P.meta)!==null&&F!==void 0?F:{}})}}),_);return I.trpc=to({path:E}),I}const g={data:void 0,error:null,status:"idle"},m={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function v(E,R,M){var _;const D=(_=M==null?void 0:M.enabled)!==null&&_!==void 0?_:R!==tt,P=yn(Ot(E,R,"any")),{client:I}=l(),N=$.useRef(M);$.useEffect(()=>{N.current=M});const[F]=$.useState(new Set([])),j=$.useCallback(z=>{F.add(z)},[F]),O=$.useRef(null),T=$.useCallback(z=>{const V=K.current,W=K.current=z(V);let q=!1;for(const ne of F)if(V[ne]!==W[ne]){q=!0;break}q&&H(ec(W,j))},[j,F]),A=$.useCallback(()=>{var z;if((z=O.current)===null||z===void 0||z.unsubscribe(),!D){T(()=>(0,U.default)((0,U.default)({},g),{},{reset:A}));return}T(()=>(0,U.default)((0,U.default)({},m),{},{reset:A}));const V=I.subscription(E.join("."),R??void 0,{onStarted:()=>{var W,q;(W=(q=N.current).onStarted)===null||W===void 0||W.call(q),T(ne=>(0,U.default)((0,U.default)({},ne),{},{status:"pending",error:null}))},onData:W=>{var q,ne;(q=(ne=N.current).onData)===null||q===void 0||q.call(ne,W),T(pe=>(0,U.default)((0,U.default)({},pe),{},{status:"pending",data:W,error:null}))},onError:W=>{var q,ne;(q=(ne=N.current).onError)===null||q===void 0||q.call(ne,W),T(pe=>(0,U.default)((0,U.default)({},pe),{},{status:"error",error:W}))},onConnectionStateChange:W=>{T(q=>{switch(W.state){case"idle":return(0,U.default)((0,U.default)({},q),{},{status:W.state,error:null,data:void 0});case"connecting":return(0,U.default)((0,U.default)({},q),{},{error:W.error,status:W.state});case"pending":return q}})},onComplete:()=>{var W,q;(W=(q=N.current).onComplete)===null||W===void 0||W.call(q),T(ne=>(0,U.default)((0,U.default)({},ne),{},{status:"idle",error:null,data:void 0}))}});O.current=V},[I,P,D,T]);$.useEffect(()=>(A(),()=>{var z;(z=O.current)===null||z===void 0||z.unsubscribe()}),[A]);const K=$.useRef(D?(0,U.default)((0,U.default)({},m),{},{reset:A}):(0,U.default)((0,U.default)({},g),{},{reset:A})),[L,H]=$.useState(ec(K.current,j));return L}function b(E,R,M){var _,D,P,I,N;const{client:F,ssrState:j,prefetchInfiniteQuery:O,queryClient:T,abortOnUnmount:A}=l(),K=Ot(E,R,"infinite"),L=T.getQueryDefaults(K),H=R===tt;typeof window>"u"&&j==="prepass"&&(M==null||(_=M.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((D=M==null?void 0:M.enabled)!==null&&D!==void 0?D:L==null?void 0:L.enabled)!==!1&&!H&&!T.getQueryCache().find({queryKey:K})&&O(K,(0,U.default)((0,U.default)({},L),M));const z=u(K,(0,U.default)((0,U.default)({},L),M)),V=(P=M==null||(I=M.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&P!==void 0?P:A,W=fm((0,U.default)((0,U.default)({},z),{},{initialPageParam:(N=M.initialCursor)!==null&&N!==void 0?N:null,persister:M.persister,queryKey:K,queryFn:H?R:q=>{var ne;const pe=(0,U.default)((0,U.default)({},z),{},{trpc:(0,U.default)((0,U.default)({},z==null?void 0:z.trpc),V?{signal:q.signal}:{signal:null})});return F.query(...je(K,pe,{pageParam:(ne=q.pageParam)!==null&&ne!==void 0?ne:M.initialCursor,direction:q.direction}))}}),T);return W.trpc=to({path:E}),W}function x(E,R,M){var _,D,P;const I=l(),N=Ot(E,R,"infinite"),F=I.queryClient.getQueryDefaults(N),j=R===tt,O=u(N,(0,U.default)((0,U.default)({},F),M)),T=(_=M==null||(D=M.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&_!==void 0?_:I.abortOnUnmount;cm((0,U.default)((0,U.default)({},M),{},{initialPageParam:(P=M.initialCursor)!==null&&P!==void 0?P:null,queryKey:N,queryFn:j?R:A=>{var K;const L=(0,U.default)((0,U.default)({},O),{},{trpc:(0,U.default)((0,U.default)({},O==null?void 0:O.trpc),T?{signal:A.signal}:{})});return I.client.query(...je(N,L,{pageParam:(K=A.pageParam)!==null&&K!==void 0?K:M.initialCursor,direction:A.direction}))}}))}function w(E,R,M){var _,D,P;const I=l(),N=Ot(E,R,"infinite"),F=I.queryClient.getQueryDefaults(N),j=u(N,(0,U.default)((0,U.default)({},F),M)),O=(_=M==null||(D=M.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&_!==void 0?_:I.abortOnUnmount,T=sm((0,U.default)((0,U.default)({},M),{},{initialPageParam:(P=M.initialCursor)!==null&&P!==void 0?P:null,queryKey:N,queryFn:A=>{var K;const L=(0,U.default)((0,U.default)({},j),{},{trpc:(0,U.default)((0,U.default)({},j==null?void 0:j.trpc),O?{signal:A.signal}:{})});return I.client.query(...je(N,L,{pageParam:(K=A.pageParam)!==null&&K!==void 0?K:M.initialCursor,direction:A.direction}))}}),I.queryClient);return T.trpc=to({path:E}),[T.data,T]}return{Provider:s,createClient:a,useContext:l,useUtils:l,useQuery:h,usePrefetchQuery:c,useSuspenseQuery:p,useQueries:(E,R)=>{const{ssrState:M,queryClient:_,prefetchQuery:D,client:P}=l(),I=Ju(P),N=E(I);if(typeof window>"u"&&M==="prepass")for(const j of N){var F;const O=j;((F=O.trpc)===null||F===void 0?void 0:F.ssr)!==!1&&!_.getQueryCache().find({queryKey:O.queryKey})&&D(O.queryKey,O)}return Of({queries:N.map(j=>(0,U.default)((0,U.default)({},j),{},{queryKey:j.queryKey})),combine:R==null?void 0:R.combine},_)},useSuspenseQueries:E=>{const{queryClient:R,client:M}=l(),_=Ju(M),D=E(_),P=lm({queries:D.map(I=>(0,U.default)((0,U.default)({},I),{},{queryFn:I.queryFn,queryKey:I.queryKey}))},R);return[P.map(I=>I.data),P]},useMutation:f,useSubscription:v,useInfiniteQuery:b,usePrefetchInfiniteQuery:x,useSuspenseInfiniteQuery:w}}function Iv(e){const t=Ev(e);return Vl(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return $.useMemo(()=>Ov(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function Nv(e){const t=Lv(e);return Iv(t)}var de=Nv({overrides:{useMutation:{onSuccess:function(e){return dv(this,void 0,void 0,function(){return fv(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
|
+
* react-router v7.9.5
|
|
11
11
|
*
|
|
12
12
|
* Copyright (c) Remix Software Inc.
|
|
13
13
|
*
|
|
@@ -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 ec="popstate";function Nv(e={}){function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return Js("",{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:Ro(o)}return Av(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 jv(){return Math.random().toString(36).substring(2,10)}function tc(e,t){return{usr:e.state,key:e.key,idx:t}}function Js(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?zr(t):t,state:n,key:t&&t.key||r||jv()}}function Ro({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 zr(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 Av(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=Js(m.location,v,b);u=h()+1;let w=tc(x,u),E=m.createHref(x);try{a.pushState(w,"",E)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(E)}i&&l&&l({action:s,location:m.location,delta:1})}function f(v,b){s="REPLACE";let x=Js(m.location,v,b);u=h();let w=tc(x,u),E=m.createHref(x);a.replaceState(w,"",E),i&&l&&l({action:s,location:m.location,delta:0})}function g(v){return Kv(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(ec,c),l=v,()=>{o.removeEventListener(ec,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 Kv(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:Ro(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Yf(e,t,n="/"){return Bv(e,t,n,!1)}function Bv(e,t,n,r){let o=typeof t=="string"?zr(t):t,i=Gt(o.pathname||"/",n);if(i==null)return null;let a=Xf(e);Hv(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=Jv(i);s=Xv(a[l],u,r)}return s}function Xf(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=qt([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}".`),Xf(a.children,t,p,c,l)),!(a.path==null&&!a.index)&&t.push({path:c,score:Qv(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 Zf(a.path))i(a,s,!0,u)}),t}function Zf(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=Zf(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 Hv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Yv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Vv=/^:[\w-]+$/,zv=3,Uv=2,qv=1,Wv=10,Gv=-2,nc=e=>e==="*";function Qv(e,t){let n=e.split("/"),r=n.length;return n.some(nc)&&(r+=Gv),t&&(r+=Uv),n.filter(o=>!nc(o)).reduce((o,i)=>o+(Vv.test(i)?zv:i===""?qv:Wv),r)}function Yv(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 Xv(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=Vi({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},h),p=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Vi({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},h)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:qt([i,c.pathname]),pathnameBase:rb(qt([i,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(i=qt([i,c.pathnameBase]))}return a}function Vi(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Zv(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 Zv(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 Jv(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 Gt(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)||"/"}function eb(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?zr(e):e;return{pathname:n?n.startsWith("/")?n:tb(n,t):t,search:ob(r),hash:ib(o)}}function tb(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 Ya(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 nb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jf(e){let t=nb(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function e0(e,t,n,r=!1){let o;typeof e=="string"?o=zr(e):(o={...e},ge(!o.pathname||!o.pathname.includes("?"),Ya("?","pathname","search",o)),ge(!o.pathname||!o.pathname.includes("#"),Ya("#","pathname","hash",o)),ge(!o.search||!o.search.includes("#"),Ya("#","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=eb(o,s),u=a&&a!=="/"&&a.endsWith("/"),h=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||h)&&(l.pathname+="/"),l}var qt=e=>e.join("/").replace(/\/\/+/g,"/"),rb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ob=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ib=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ab(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var t0=["POST","PUT","PATCH","DELETE"];new Set(t0);var sb=["GET",...t0];new Set(sb);var Ur=S.createContext(null);Ur.displayName="DataRouter";var Sa=S.createContext(null);Sa.displayName="DataRouterState";S.createContext(!1);var n0=S.createContext({isTransitioning:!1});n0.displayName="ViewTransition";var lb=S.createContext(new Map);lb.displayName="Fetchers";var ub=S.createContext(null);ub.displayName="Await";var Lt=S.createContext(null);Lt.displayName="Navigation";var Qo=S.createContext(null);Qo.displayName="Location";var Nt=S.createContext({outlet:null,matches:[],isDataRoute:!1});Nt.displayName="Route";var ql=S.createContext(null);ql.displayName="RouteError";function cb(e,{relative:t}={}){ge(Yo(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Lt),{hash:o,pathname:i,search:a}=Xo(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:qt([n,i])),r.createHref({pathname:s,search:a,hash:o})}function Yo(){return S.useContext(Qo)!=null}function $n(){return ge(Yo(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Qo).location}var r0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function o0(e){S.useContext(Lt).static||S.useLayoutEffect(e)}function i0(){let{isDataRoute:e}=S.useContext(Nt);return e?$b():db()}function db(){ge(Yo(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Ur),{basename:t,navigator:n}=S.useContext(Lt),{matches:r}=S.useContext(Nt),{pathname:o}=$n(),i=JSON.stringify(Jf(r)),a=S.useRef(!1);return o0(()=>{a.current=!0}),S.useCallback((l,u={})=>{if(Ct(a.current,r0),!a.current)return;if(typeof l=="number"){n.go(l);return}let h=e0(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:qt([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,i,o,e])}S.createContext(null);function fb(){let{matches:e}=S.useContext(Nt),t=e[e.length-1];return t?t.params:{}}function Xo(e,{relative:t}={}){let{matches:n}=S.useContext(Nt),{pathname:r}=$n(),o=JSON.stringify(Jf(n));return S.useMemo(()=>e0(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function hb(e,t){return a0(e,t)}function a0(e,t,n,r,o){var x;ge(Yo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=S.useContext(Lt),{matches:a}=S.useContext(Nt),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||"";s0(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 tc="popstate";function jv(e={}){function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return Js("",{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:Ro(o)}return Kv(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 Av(){return Math.random().toString(36).substring(2,10)}function nc(e,t){return{usr:e.state,key:e.key,idx:t}}function Js(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ur(t):t,state:n,key:t&&t.key||r||Av()}}function Ro({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 Ur(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 Kv(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=Js(m.location,v,b);u=h()+1;let w=nc(x,u),S=m.createHref(x);try{a.pushState(w,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(S)}i&&l&&l({action:s,location:m.location,delta:1})}function f(v,b){s="REPLACE";let x=Js(m.location,v,b);u=h();let w=nc(x,u),S=m.createHref(x);a.replaceState(w,"",S),i&&l&&l({action:s,location:m.location,delta:0})}function g(v){return Bv(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(tc,c),l=v,()=>{o.removeEventListener(tc,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 Bv(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:Ro(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Xf(e,t,n="/"){return Hv(e,t,n,!1)}function Hv(e,t,n,r){let o=typeof t=="string"?Ur(t):t,i=Gt(o.pathname||"/",n);if(i==null)return null;let a=Zf(e);Vv(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=eb(i);s=Zv(a[l],u,r)}return s}function Zf(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=qt([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}".`),Zf(a.children,t,p,c,l)),!(a.path==null&&!a.index)&&t.push({path:c,score:Yv(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 Jf(a.path))i(a,s,!0,u)}),t}function Jf(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=Jf(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 Vv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Xv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var zv=/^:[\w-]+$/,Uv=3,qv=2,Wv=1,Gv=10,Qv=-2,rc=e=>e==="*";function Yv(e,t){let n=e.split("/"),r=n.length;return n.some(rc)&&(r+=Qv),t&&(r+=qv),n.filter(o=>!rc(o)).reduce((o,i)=>o+(zv.test(i)?Uv:i===""?Wv:Gv),r)}function Xv(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 Zv(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=Vi({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},h),p=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Vi({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},h)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:qt([i,c.pathname]),pathnameBase:ob(qt([i,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(i=qt([i,c.pathnameBase]))}return a}function Vi(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Jv(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 Jv(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 eb(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 Gt(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)||"/"}function tb(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ur(e):e;return{pathname:n?n.startsWith("/")?n:nb(n,t):t,search:ib(r),hash:ab(o)}}function nb(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 Ya(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 rb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function e0(e){let t=rb(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function t0(e,t,n,r=!1){let o;typeof e=="string"?o=Ur(e):(o={...e},ge(!o.pathname||!o.pathname.includes("?"),Ya("?","pathname","search",o)),ge(!o.pathname||!o.pathname.includes("#"),Ya("#","pathname","hash",o)),ge(!o.search||!o.search.includes("#"),Ya("#","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=tb(o,s),u=a&&a!=="/"&&a.endsWith("/"),h=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||h)&&(l.pathname+="/"),l}var qt=e=>e.join("/").replace(/\/\/+/g,"/"),ob=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ib=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ab=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var n0=["POST","PUT","PATCH","DELETE"];new Set(n0);var lb=["GET",...n0];new Set(lb);var qr=$.createContext(null);qr.displayName="DataRouter";var Sa=$.createContext(null);Sa.displayName="DataRouterState";$.createContext(!1);var r0=$.createContext({isTransitioning:!1});r0.displayName="ViewTransition";var ub=$.createContext(new Map);ub.displayName="Fetchers";var cb=$.createContext(null);cb.displayName="Await";var It=$.createContext(null);It.displayName="Navigation";var Qo=$.createContext(null);Qo.displayName="Location";var Nt=$.createContext({outlet:null,matches:[],isDataRoute:!1});Nt.displayName="Route";var ql=$.createContext(null);ql.displayName="RouteError";function db(e,{relative:t}={}){ge(Yo(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=$.useContext(It),{hash:o,pathname:i,search:a}=Xo(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:qt([n,i])),r.createHref({pathname:s,search:a,hash:o})}function Yo(){return $.useContext(Qo)!=null}function $n(){return ge(Yo(),"useLocation() may be used only in the context of a <Router> component."),$.useContext(Qo).location}var o0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function i0(e){$.useContext(It).static||$.useLayoutEffect(e)}function a0(){let{isDataRoute:e}=$.useContext(Nt);return e?Eb():fb()}function fb(){ge(Yo(),"useNavigate() may be used only in the context of a <Router> component.");let e=$.useContext(qr),{basename:t,navigator:n}=$.useContext(It),{matches:r}=$.useContext(Nt),{pathname:o}=$n(),i=JSON.stringify(e0(r)),a=$.useRef(!1);return i0(()=>{a.current=!0}),$.useCallback((l,u={})=>{if(Ct(a.current,o0),!a.current)return;if(typeof l=="number"){n.go(l);return}let h=t0(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:qt([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,i,o,e])}$.createContext(null);function hb(){let{matches:e}=$.useContext(Nt),t=e[e.length-1];return t?t.params:{}}function Xo(e,{relative:t}={}){let{matches:n}=$.useContext(Nt),{pathname:r}=$n(),o=JSON.stringify(e0(n));return $.useMemo(()=>t0(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function pb(e,t){return s0(e,t)}function s0(e,t,n,r,o){var x;ge(Yo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=$.useContext(It),{matches:a}=$.useContext(Nt),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||"";l0(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=$n(),f;if(t){let w=typeof t=="string"?zr(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=Yf(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=bb(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:qt([h,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?h:qt([h,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o);return t&&b?S.createElement(Qo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},b):b}function pb(){let e=Sb(),t=ab(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=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:i},"ErrorBoundary")," or"," ",S.createElement("code",{style:i},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,a)}var gb=S.createElement(pb,null),mb=class extends S.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.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?S.createElement(Nt.Provider,{value:this.props.routeContext},S.createElement(ql.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function vb({routeContext:e,match:t,children:n}){let r=S.useContext(Ur);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Nt.Provider,{value:e},n)}function bb(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 u=i.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);ge(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let s=!1,l=-1;if(n)for(let u=0;u<i.length;u++){let h=i[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(l=u),h.route.id){let{loaderData:c,errors:p}=n,f=h.route.loader&&!c.hasOwnProperty(h.route.id)&&(!p||p[h.route.id]===void 0);if(h.route.lazy||f){s=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((u,h,c)=>{let p,f=!1,g=null,m=null;n&&(p=a&&h.route.id?a[h.route.id]:void 0,g=h.route.errorElement||gb,s&&(l<0&&c===0?(s0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):l===c&&(f=!0,m=h.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,c+1)),b=()=>{let x;return p?x=g:f?x=m:h.route.Component?x=S.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=u,S.createElement(vb,{match:h,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:x})};return n&&(h.route.ErrorBoundary||h.route.errorElement||c===0)?S.createElement(mb,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0},unstable_onError:r}):b()},null)}function Wl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yb(e){let t=S.useContext(Ur);return ge(t,Wl(e)),t}function xb(e){let t=S.useContext(Sa);return ge(t,Wl(e)),t}function wb(e){let t=S.useContext(Nt);return ge(t,Wl(e)),t}function Gl(e){let t=wb(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 Cb(){return Gl("useRouteId")}function Sb(){var r;let e=S.useContext(ql),t=xb("useRouteError"),n=Gl("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function $b(){let{router:e}=yb("useNavigate"),t=Gl("useNavigate"),n=S.useRef(!1);return o0(()=>{n.current=!0}),S.useCallback(async(o,i={})=>{Ct(n.current,r0),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var rc={};function s0(e,t,n){!t&&!rc[e]&&(rc[e]=!0,Ct(!1,n))}S.memo(Eb);function Eb({routes:e,future:t,state:n,unstable_onError:r}){return a0(e,void 0,n,r,t)}function el(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 Pb({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){ge(!Yo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=S.useMemo(()=>({basename:a,navigator:o,static:i,future:{}}),[a,o,i]);typeof n=="string"&&(n=zr(n));let{pathname:l="/",search:u="",hash:h="",state:c=null,key:p="default"}=n,f=S.useMemo(()=>{let g=Gt(l,a);return g==null?null:{location:{pathname:g,search:u,hash:h,state:c,key:p},navigationType:r}},[a,l,u,h,c,p,r]);return Ct(f!=null,`<Router basename="${a}"> is not able to match the URL "${l}${u}${h}" because it does not start with the basename, so the <Router> won't render anything.`),f==null?null:S.createElement(Lt.Provider,{value:s},S.createElement(Qo.Provider,{children:t,value:f}))}function Rb({children:e,location:t}){return hb(tl(e),t)}function tl(e,t=[]){let n=[];return S.Children.forEach(e,(r,o)=>{if(!S.isValidElement(r))return;let i=[...t,o];if(r.type===S.Fragment){n.push.apply(n,tl(r.props.children,i));return}ge(r.type===el,`[${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=tl(r.props.children,i)),n.push(a)}),n}var Fi="get",Ii="application/x-www-form-urlencoded";function $a(e){return e!=null&&typeof e.tagName=="string"}function Mb(e){return $a(e)&&e.tagName.toLowerCase()==="button"}function kb(e){return $a(e)&&e.tagName.toLowerCase()==="form"}function Ob(e){return $a(e)&&e.tagName.toLowerCase()==="input"}function Tb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Db(e,t){return e.button===0&&(!t||t==="_self")&&!Tb(e)}function nl(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 _b(e,t){let n=nl(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}var di=null;function Fb(){if(di===null)try{new FormData(document.createElement("form"),0),di=!1}catch{di=!0}return di}var Ib=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xa(e){return e!=null&&!Ib.has(e)?(Ct(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ii}"`),null):e}function Lb(e,t){let n,r,o,i,a;if(kb(e)){let s=e.getAttribute("action");r=s?Gt(s,t):null,n=e.getAttribute("method")||Fi,o=Xa(e.getAttribute("enctype"))||Ii,i=new FormData(e)}else if(Mb(e)||Ob(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?Gt(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Fi,o=Xa(e.getAttribute("formenctype"))||Xa(s.getAttribute("enctype"))||Ii,i=new FormData(s,e),!Fb()){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($a(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Fi,r=null,o=Ii,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 Ql(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nb(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Gt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function jb(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 Ab(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 Kb(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let a=await jb(i,n);return a.links?a.links():[]}return[]}));return zb(r.flat(1).filter(Ab).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function oc(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 Bb(e,t,{includeHydrateFallback:n}={}){return Hb(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 Hb(e){return[...new Set(e)]}function Vb(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function zb(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(Vb(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function l0(){let e=S.useContext(Ur);return Ql(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ub(){let e=S.useContext(Sa);return Ql(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yl=S.createContext(void 0);Yl.displayName="FrameworkContext";function u0(){let e=S.useContext(Yl);return Ql(e,"You must render this element inside a <HydratedRouter> element"),e}function qb(e,t){let n=S.useContext(Yl),[r,o]=S.useState(!1),[i,a]=S.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:h,onTouchStart:c}=t,p=S.useRef(null);S.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]),S.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:to(s,f),onBlur:to(l,g),onMouseEnter:to(u,f),onMouseLeave:to(h,g),onTouchStart:to(c,f)}]:[!1,p,{}]}function to(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Wb({page:e,...t}){let{router:n}=l0(),r=S.useMemo(()=>Yf(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(Qb,{page:e,matches:r,...t}):null}function Gb(e){let{manifest:t,routeModules:n}=u0(),[r,o]=S.useState([]);return S.useEffect(()=>{let i=!1;return Kb(e,t,n).then(a=>{i||o(a)}),()=>{i=!0}},[e,t,n]),r}function Qb({page:e,matches:t,...n}){let r=$n(),{manifest:o,routeModules:i}=u0(),{basename:a}=l0(),{loaderData:s,matches:l}=Ub(),u=S.useMemo(()=>oc(e,t,l,o,r,"data"),[e,t,l,o,r]),h=S.useMemo(()=>oc(e,t,l,o,r,"assets"),[e,t,l,o,r]),c=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,m=!1;if(t.forEach(b=>{var w;let x=o.routes[b.route.id];!x||!x.hasLoader||(!u.some(E=>E.route.id===b.route.id)&&b.route.id in s&&((w=i[b.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?m=!0:g.add(b.route.id))}),g.size===0)return[];let v=Nb(e,a,"data");return m&&g.size>0&&v.searchParams.set("_routes",t.filter(b=>g.has(b.route.id)).map(b=>b.route.id).join(",")),[v.pathname+v.search]},[a,s,r,o,u,t,e,i]),p=S.useMemo(()=>Bb(h,o),[h,o]),f=Gb(h);return S.createElement(S.Fragment,null,c.map(g=>S.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),p.map(g=>S.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),f.map(({key:g,link:m})=>S.createElement("link",{key:g,nonce:n.nonce,...m})))}function Yb(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var c0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{c0&&(window.__reactRouterVersion="7.9.4")}catch{}function Xb({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=Nv({window:n,v5Compat:!0}));let o=r.current,[i,a]=S.useState({action:o.action,location:o.location}),s=S.useCallback(l=>{S.startTransition(()=>a(l))},[a]);return S.useLayoutEffect(()=>o.listen(s),[o,s]),S.createElement(Pb,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var d0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ea=S.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,...p},f){let{basename:g}=S.useContext(Lt),m=typeof u=="string"&&d0.test(u),v,b=!1;if(typeof u=="string"&&m&&(v=u,c0))try{let _=new URL(window.location.href),D=u.startsWith("//")?new URL(_.protocol+u):new URL(u),P=Gt(D.pathname,g);D.origin===_.origin&&P!=null?u=P+D.search+D.hash:b=!0}catch{Ct(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=cb(u,{relative:o}),[w,E,k]=qb(r,p),$=e2(u,{replace:a,state:s,target:l,preventScrollReset:h,relative:o,viewTransition:c});function R(_){t&&t(_),_.defaultPrevented||$(_)}let M=S.createElement("a",{...p,...k,href:v||x,onClick:b||i?t:R,ref:Yb(f,E),target:l,"data-discover":!m&&n==="render"?"true":void 0});return w&&!m?S.createElement(S.Fragment,null,M,S.createElement(Wb,{page:x})):M});Ea.displayName="Link";var f0=S.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=Xo(a,{relative:u.relative}),p=$n(),f=S.useContext(Sa),{navigator:g,basename:m}=S.useContext(Lt),v=f!=null&&a2(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=Gt(w,m)||w);const E=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let k=x===b||!o&&x.startsWith(b)&&x.charAt(E)==="/",$=w!=null&&(w===b||!o&&w.startsWith(b)&&w.charAt(b.length)==="/"),R={isActive:k,isPending:$,isTransitioning:v},M=k?t:void 0,_;typeof r=="function"?_=r(R):_=[r,k?"active":null,$?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let D=typeof i=="function"?i(R):i;return S.createElement(Ea,{...u,"aria-current":M,className:_,ref:h,style:D,to:a,viewTransition:s},typeof l=="function"?l(R):l)});f0.displayName="NavLink";var Zb=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=Fi,action:s,onSubmit:l,relative:u,preventScrollReset:h,viewTransition:c,...p},f)=>{let g=o2(),m=i2(s,{relative:u}),v=a.toLowerCase()==="get"?"get":"post",b=typeof s=="string"&&d0.test(s),x=w=>{if(l&&l(w),w.defaultPrevented)return;w.preventDefault();let E=w.nativeEvent.submitter,k=(E==null?void 0:E.getAttribute("formmethod"))||a;g(E||w.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:o,state:i,relative:u,preventScrollReset:h,viewTransition:c})};return S.createElement("form",{ref:f,method:v,action:m,onSubmit:r?l:x,...p,"data-discover":!b&&e==="render"?"true":void 0})});Zb.displayName="Form";function Jb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function h0(e){let t=S.useContext(Ur);return ge(t,Jb(e)),t}function e2(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:a}={}){let s=i0(),l=$n(),u=Xo(e,{relative:i});return S.useCallback(h=>{if(Db(h,t)){h.preventDefault();let c=n!==void 0?n:Ro(l)===Ro(u);s(e,{replace:c,state:r,preventScrollReset:o,relative:i,viewTransition:a})}},[l,s,u,n,r,t,e,o,i,a])}function t2(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=S.useRef(nl(e)),n=S.useRef(!1),r=$n(),o=S.useMemo(()=>_b(r.search,n.current?null:t.current),[r.search]),i=i0(),a=S.useCallback((s,l)=>{const u=nl(typeof s=="function"?s(new URLSearchParams(o)):s);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}var n2=0,r2=()=>`__${String(++n2)}__`;function o2(){let{router:e}=h0("useSubmit"),{basename:t}=S.useContext(Lt),n=Cb();return S.useCallback(async(r,o={})=>{let{action:i,method:a,encType:s,formData:l,body:u}=Lb(r,t);if(o.navigate===!1){let h=o.fetcherKey||r2();await e.fetch(h,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function i2(e,{relative:t}={}){let{basename:n}=S.useContext(Lt),r=S.useContext(Nt);ge(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Xo(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:qt([n,i.pathname])),Ro(i)}function a2(e,{relative:t}={}){let n=S.useContext(n0);ge(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=h0("useViewTransitionState"),o=Xo(e,{relative:t});if(!n.isTransitioning)return!1;let i=Gt(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Gt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Vi(o.pathname,a)!=null||Vi(o.pathname,i)!=null}var zi=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 s2=["color"],l2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,s2);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"}))}),u2=["color"],p0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,u2);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"}))}),c2=["color"],d2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,c2);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"}))}),f2=["color"],Lr=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:"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"}))}),h2=["color"],Xl=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:"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"}))}),p2=["color"],g0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,p2);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"}))}),g2=["color"],m2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(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:"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"}))}),v2=["color"],b2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,v2);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"}))}),y2=["color"],x2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,y2);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"}))}),w2=["color"],rl=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:"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"}))}),C2=["color"],S2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,C2);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"}))}),$2=["color"],E2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,$2);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"}))}),P2=["color"],R2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,P2);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"}))}),M2=["color"],k2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,M2);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"}))}),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:"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"}))}),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:"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"}))}),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.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"}))}),L2=["color"],N2=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:"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"}))}),j2=["color"],m0=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:"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"}))}),A2=["color"],v0=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:"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"}))}),K2=["color"],ic=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:"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"}))}),B2=["color"],b0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(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:"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"}))}),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",{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"}))}),z2=["color"],Zl=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:"M4.10876 14L9.46582 1H10.8178L5.46074 14H4.10876Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),U2=["color"],q2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,U2);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"}))}),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:"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"}))}),Q2=["color"],qr=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:"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 y0=d.createContext({}),ac=d.createContext(null),Y2=d.createContext(null),ce=typeof document<"u"?d.useLayoutEffect:()=>{};var Za;const X2=(Za=d.useInsertionEffect)!==null&&Za!==void 0?Za:ce;function Ae(e){const t=d.useRef(null);return X2(()=>{t.current=e},[e]),d.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function Z2(e){let[t,n]=d.useState(e),r=d.useRef(null),o=Ae(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});ce(()=>{r.current&&o()});let i=Ae(a=>{r.current=a(t),o()});return[t,i]}const x0={prefix:String(Math.round(Math.random()*1e10)),current:0},w0=d.createContext(x0),J2=d.createContext(!1);let Ja=new WeakMap;function ey(e=!1){let t=d.useContext(w0),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=Ja.get(i);a==null?Ja.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,Ja.delete(i))}n.current=++t.current}return n.current}function ty(e){let t=d.useContext(w0),n=ey(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function ny(e){let t=d.useId(),[n]=d.useState(En()),r=n?"react-aria":`react-aria${x0.prefix}`;return e||`${r}-${t}`}const ry=typeof d.useId=="function"?ny:ty;function oy(){return!1}function iy(){return!0}function ay(e){return()=>{}}function En(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(ay,oy,iy):d.useContext(J2)}let sy=!!(typeof window<"u"&&window.document&&window.document.createElement),vr=new Map,fo;typeof FinalizationRegistry<"u"&&(fo=new FinalizationRegistry(e=>{vr.delete(e)}));function ot(e){let[t,n]=d.useState(e),r=d.useRef(null),o=ry(t),i=d.useRef(null);if(fo&&fo.register(i,o),sy){const a=vr.get(o);a&&!a.includes(r)?a.push(r):vr.set(o,[r])}return ce(()=>{let a=o;return()=>{fo&&fo.unregister(i),vr.delete(a)}},[o]),d.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),o}function ly(e,t){if(e===t)return e;let n=vr.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=vr.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Li(e=[]){let t=ot(),[n,r]=Z2(t),o=d.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ce(o,[t,o,...e]),n}function Wr(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const se=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:se(e).defaultView||window;function uy(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function cy(e){return uy(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let dy=!1;function Pa(){return dy}function ze(e,t){if(!Pa())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:cy(n)?n=n.host:n=n.parentNode}return!1}const ke=(e=document)=>{var t;if(!Pa())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 xe(e){return Pa()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class fy{get currentNode(){return this._currentNode}set currentNode(t){if(!ze(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 ze(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 hy(e,t,n,r){return Pa()?new fy(e,t,n,r):e.createTreeWalker(t,n,r)}function C0(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=C0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Nr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=C0(e))&&(r&&(r+=" "),r+=t);return r}function oe(...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]=Wr(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Nr(i,a):o==="id"&&i&&a?t.id=ly(i,a):t[o]=a!==void 0?a:i}}return t}function S0(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=sc(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():sc(e[i],null)})}}}function sc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const py=new Set(["id"]),gy=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),my=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),vy=new Set(["dir","lang","hidden","inert","translate"]),lc=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"]),by=/^(data-.*)$/;function $e(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)&&(py.has(l)||n&&gy.has(l)||r&&my.has(l)||o&&vy.has(l)||i&&lc.has(l)||l.endsWith("Capture")&&lc.has(l.slice(0,-7))||a!=null&&a.has(l)||by.test(l))&&(s[l]=e[l]);return s}function St(e){if(yy())e.focus({preventScroll:!0});else{let t=xy(e);e.focus(),wy(t)}}let fi=null;function yy(){if(fi==null){fi=!1;try{document.createElement("div").focus({get preventScroll(){return fi=!0,!0}})}catch{}}return fi}function xy(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 wy(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ra(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 Jl(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 Yt(e){let t=null;return()=>(t==null&&(t=e()),t)}const Wn=Yt(function(){return Jl(/^Mac/i)}),Cy=Yt(function(){return Jl(/^iPhone/i)}),$0=Yt(function(){return Jl(/^iPad/i)||Wn()&&navigator.maxTouchPoints>1}),Ma=Yt(function(){return Cy()||$0()}),Sy=Yt(function(){return Wn()||Ma()}),E0=Yt(function(){return Ra(/AppleWebKit/i)&&!eu()}),eu=Yt(function(){return Ra(/Chrome/i)}),tu=Yt(function(){return Ra(/Android/i)}),$y=Yt(function(){return Ra(/Firefox/i)}),Ey=d.createContext({isNative:!0,open:My,useHref:e=>e});function ka(){return d.useContext(Ey)}function Py(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 Gn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;$y()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Wn()?i=!0:a=!0);let u=E0()&&Wn()&&!$0()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Gn.isOpening=n,St(e),e.dispatchEvent(u),Gn.isOpening=!1}Gn.isOpening=!1;function Ry(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 My(e,t){Ry(e,n=>Gn(n,t))}function ky(e){let t=ka();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 Oy(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Py(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let tn=new Map,ol=new Set;function uc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=tn.get(r.target);o||(o=new Set,tn.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=tn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),tn.delete(r.target)),tn.size===0)){for(let i of ol)i();ol.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?uc():document.addEventListener("DOMContentLoaded",uc));function Ty(){for(const[e]of tn)"isConnected"in e&&!e.isConnected&&tn.delete(e)}function P0(e){requestAnimationFrame(()=>{Ty(),tn.size===0?e():ol.add(e)})}function Oa(){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 R0(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 Gr(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])}function cc(e,t){const n=d.useRef(!0),r=d.useRef(null);ce(()=>(n.current=!0,()=>{n.current=!1}),[]),ce(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}function Dy(){return typeof window.ResizeObserver<"u"}function Ui(e){const{ref:t,box:n,onResize:r}=e;d.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(Dy()){const i=new window.ResizeObserver(a=>{a.length&&r()});return i.observe(o,{box:n}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function nu(e,t){ce(()=>{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 M0(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 _y(e,t){const n=[];for(;e&&e!==document.documentElement;)Qn(e,t)&&n.push(e),e=e.parentElement;return n}function cr(e){return Wn()?e.metaKey:e.ctrlKey}const Fy=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function vo(e){return e instanceof HTMLInputElement&&!Fy.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let qe=typeof document<"u"&&window.visualViewport;function Iy(){let e=En(),[t,n]=d.useState(()=>e?{width:0,height:0}:dc());return d.useEffect(()=>{let r=()=>{qe&&qe.scale>1||n(a=>{let s=dc();return s.width===a.width&&s.height===a.height?a:s})},o,i=a=>{qe&&qe.scale>1||vo(a.target)&&(o=requestAnimationFrame(()=>{(!document.activeElement||!vo(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),qe?qe.addEventListener("resize",r):window.addEventListener("resize",r),()=>{cancelAnimationFrame(o),window.removeEventListener("blur",i,!0),qe?qe.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function dc(){return{width:qe?qe.width*qe.scale:window.innerWidth,height:qe?qe.height*qe.scale:window.innerHeight}}let Ly=0;const es=new Map;function Ny(e){let[t,n]=d.useState();return ce(()=>{if(!e)return;let r=es.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${Ly++}`;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},es.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),es.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function hi(e,t,n,r){let o=Ae(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,o])}function k0(e,t){let n=fc(e,t,"left"),r=fc(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),{scrollMarginTop:g,scrollMarginRight:m,scrollMarginBottom:v,scrollMarginLeft:b}=getComputedStyle(t),x=a+parseInt(u,10),w=s+parseInt(l,10),E=x+e.clientWidth,k=w+e.clientHeight,$=parseInt(h,10)||0,R=parseInt(p,10)||0,M=parseInt(c,10)||0,_=parseInt(f,10)||0,D=parseInt(g,10)||0,P=parseInt(v,10)||0,L=parseInt(m,10)||0,N=parseInt(b,10)||0,F=n-N,j=n+o+L,O=r-D,T=r+i+P,A=a+parseInt(u,10)+_,K=E-M,I=s+parseInt(l,10)+$,H=k-R;(F>A||j<K)&&(F<=a+_?a=F-parseInt(u,10)-_:j>E-M&&(a+=j-E+M)),(O>I||T<H)&&(O<=w+$?s=O-parseInt(l,10)-$:T>k-R&&(s+=T-k+R)),e.scrollTo({left:a,top:s})}function fc(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 hc(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(a).overflow==="hidden")&&!eu()){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"})}}else{let l=_y(e);for(let u of l)k0(u,e)}}}function O0(e){return e.pointerType===""&&e.isTrusted?!0:tu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function jy(e){return!tu()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const Ay="react-aria-clear-focus",Ky="react-aria-focus";function Ta(e,t=!0){let[n,r]=d.useState(!0),o=n&&t;return ce(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),T0(e,o,d.useCallback(()=>r(!1),[])),o}function qi(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 T0(e,o,d.useCallback(()=>{r(i=>i==="exiting"?"closed":i)},[])),o}function T0(e,t,n){ce(()=>{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||Vr.flushSync(()=>{n()})}).catch(()=>{}),()=>{o=!0}}},[e,t,n])}const By=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Hy(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 Vy(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 ru(e,t){return By?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Hy(e)&&Vy(e,t)&&(!e.parentElement||ru(e.parentElement,e))}const ou=["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"],zy=ou.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ou.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Uy=ou.join(':not([hidden]):not([tabindex="-1"]),');function D0(e){return e.matches(zy)&&ru(e)&&!_0(e)}function qy(e){return e.matches(Uy)&&ru(e)&&!_0(e)}function _0(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Zo(e,t,n){let[r,o]=d.useState(e||t),i=d.useRef(e!==void 0),a=e!==void 0;d.useEffect(()=>{i.current,i.current=a},[a]);let s=a?e:r,l=d.useCallback((u,...h)=>{let c=(p,...f)=>{n&&(Object.is(s,p)||n(p,...f)),a||(s=p)};typeof u=="function"?o((f,...g)=>{let m=u(a?s:f,...g);return c(m,...h),a?f:m}):(a||o(u),c(u,...h))},[a,s,n]);return[s,l]}function Mo(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Wi=Symbol("default");function Pn({values:e,children:t}){for(let[n,r]of e)t=d.createElement(n.Provider,{value:r},t);return t}function ft(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 F0(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||Wi;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 ht(e,t,n){let r=F0(n,e.slot)||{},{ref:o,...i}=r,a=Gr(d.useMemo(()=>S0(t,o),[t,o])),s=oe(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 I0(e=!0){let[t,n]=d.useState(e),r=d.useRef(!1),o=d.useCallback(i=>{r.current=!0,n(!!i)},[]);return ce(()=>{r.current||n(!1)},[]),[o,t]}const L0=7e3;let Rt=null;function pc(e,t="assertive",n=L0){Rt?Rt.announce(e,t,n):(Rt=new Wy,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Rt.announce(e,t,n):setTimeout(()=>{Rt!=null&&Rt.isAttached()&&(Rt==null||Rt.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=L0){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 Ft={top:"top",bottom:"top",left:"left",right:"left"},Gi={top:"bottom",bottom:"top",left:"right",right:"left"},Gy={top:"left",left:"top"},il={top:"height",left:"width"},N0={width:"totalWidth",height:"totalHeight"},pi={};let Pe=typeof document<"u"?window.visualViewport:null;function gc(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={};var l;let u=((l=Pe==null?void 0:Pe.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let g=document.documentElement;r=g.clientWidth,o=g.clientHeight;var h;t=(h=Pe==null?void 0:Pe.width)!==null&&h!==void 0?h:r;var c;n=(c=Pe==null?void 0:Pe.height)!==null&&c!==void 0?c:o,s.top=g.scrollTop||e.scrollTop,s.left=g.scrollLeft||e.scrollLeft,Pe&&(i=Pe.offsetTop,a=Pe.offsetLeft)}else({width:t,height:n,top:i,left:a}=br(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;if(E0()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){s.top=0,s.left=0;var p;i=(p=Pe==null?void 0:Pe.pageTop)!==null&&p!==void 0?p:0;var f;a=(f=Pe==null?void 0:Pe.pageLeft)!==null&&f!==void 0?f:0}return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function Qy(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function mc(e,t,n,r,o,i,a){var s;let l=(s=o.scroll[e])!==null&&s!==void 0?s:0,u=r[il[e]],h=r.scroll[Ft[e]]+i,c=u+r.scroll[Ft[e]]-i,p=t-l+a[e]-r[Ft[e]],f=t-l+n+a[e]-r[Ft[e]];return p<h?h-p:f>c?Math.max(c-f,h-p):0}function Yy(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 vc(e){if(pi[e])return pi[e];let[t,n]=e.split(" "),r=Ft[t]||"right",o=Gy[r];Ft[n]||(n="center");let i=il[r],a=il[o];return pi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},pi[e]}function ts(e,t,n,r,o,i,a,s,l,u){let{placement:h,crossPlacement:c,axis:p,crossAxis:f,size:g,crossSize:m}=r,v={};var b;v[f]=(b=e[f])!==null&&b!==void 0?b:0;var x,w,E,k;c==="center"?v[f]+=(((x=e[m])!==null&&x!==void 0?x:0)-((w=n[m])!==null&&w!==void 0?w:0))/2:c!==f&&(v[f]+=((E=e[m])!==null&&E!==void 0?E:0)-((k=n[m])!==null&&k!==void 0?k:0)),v[f]+=i;const $=e[f]-n[m]+l+u,R=e[f]+e[m]-l-u;if(v[f]=Mo(v[f],$,R),h===p){const M=s?a[g]:t[N0[g]];v[Gi[p]]=Math.floor(M-e[p]+o)}else v[p]=Math.floor(e[p]+e[g]+o);return v}function Xy(e,t,n,r,o,i,a,s){const l=r?n.height:t[N0.height];var u;let h=e.top!=null?n.top+e.top:n.top+(l-((u=e.bottom)!==null&&u!==void 0?u:0)-a);var c,p,f,g,m,v;let b=s!=="top"?Math.max(0,t.height+t.top+((c=t.scroll.top)!==null&&c!==void 0?c:0)-h-(((p=o.top)!==null&&p!==void 0?p:0)+((f=o.bottom)!==null&&f!==void 0?f:0)+i)):Math.max(0,h+a-(t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((v=o.bottom)!==null&&v!==void 0?v:0)+i));return Math.min(t.height-i*2,b)}function bc(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;var u,h;if(a===s)return Math.max(0,n[s]-e[s]-((u=e.scroll[s])!==null&&u!==void 0?u:0)+t[s]-((h=r[s])!==null&&h!==void 0?h:0)-r[Gi[s]]-o);var c;return Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-((c=r[s])!==null&&c!==void 0?c:0)-r[Gi[s]]-o)}function Zy(e,t,n,r,o,i,a,s,l,u,h,c,p,f,g,m){let v=vc(e),{size:b,crossAxis:x,crossSize:w,placement:E,crossPlacement:k}=v,$=ts(t,s,n,v,h,c,u,p,g,m),R=h,M=bc(s,u,t,o,i+h,v);if(a&&r[b]>M){let pe=vc(`${Gi[E]} ${k}`),ee=ts(t,s,n,pe,h,c,u,p,g,m);bc(s,u,t,o,i+h,pe)>M&&(v=pe,$=ee,R=h)}let _="bottom";v.axis==="top"?v.placement==="top"?_="top":v.placement==="bottom"&&(_="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?_="bottom":v.crossPlacement==="bottom"&&(_="top"));let D=mc(x,$[x],n[w],s,l,i,u);$[x]+=D;let P=Xy($,s,u,p,o,i,n.height,_);f&&f<P&&(P=f),n.height=Math.min(n.height,P),$=ts(t,s,n,v,R,c,u,p,g,m),D=mc(x,$[x],n[w],s,l,i,u),$[x]+=D;let L={},N=t[x]-$[x]-o[Ft[x]],F=N+.5*t[w];const j=g/2+m;var O,T,A,K;const I=Ft[x]==="left"?((O=o.left)!==null&&O!==void 0?O:0)+((T=o.right)!==null&&T!==void 0?T:0):((A=o.top)!==null&&A!==void 0?A:0)+((K=o.bottom)!==null&&K!==void 0?K:0),H=n[w]-I-g/2-m,z=t[x]+g/2-($[x]+o[Ft[x]]),V=t[x]+t[w]-g/2-($[x]+o[Ft[x]]),W=Mo(F,z,V);L[x]=Mo(W,j,H),{placement:E,crossPlacement:k}=v,g?N=L[x]:k==="right"?N+=t[w]:k==="center"&&(N+=t[w]/2);let q=E==="left"||E==="top"?n[b]:0,ne={x:E==="top"||E==="bottom"?N:q,y:E==="left"||E==="right"?N:q};return{position:$,maxHeight:P,arrowOffsetLeft:L.left,arrowOffsetTop:L.top,placement:E,triggerAnchorPoint:ne}}function Jy(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=r instanceof HTMLElement?e5(r):document.documentElement,g=f===document.documentElement;const m=window.getComputedStyle(f).position;let v=!!m&&m!=="static",b=g?br(n,!1):yc(n,f,!1);if(!g){let{marginTop:L,marginLeft:N}=window.getComputedStyle(n);b.top+=parseInt(L,10)||0,b.left+=parseInt(N,10)||0}let x=br(r,!0),w=Yy(r);var E,k;x.width+=((E=w.left)!==null&&E!==void 0?E:0)+((k=w.right)!==null&&k!==void 0?k:0);var $,R;x.height+=(($=w.top)!==null&&$!==void 0?$:0)+((R=w.bottom)!==null&&R!==void 0?R:0);let M=Qy(o),_=gc(s),D=gc(f),P=s.tagName==="BODY"?br(f,!1):yc(f,s,!1);return f.tagName==="HTML"&&s.tagName==="BODY"&&(D.scroll.top=0,D.scroll.left=0),Zy(t,b,x,M,w,i,a,_,D,P,l,u,v,h,c,p)}function iu(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 br(e,t){let{top:n,left:r,width:o,height:i}=iu(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 yc(e,t,n){let r=window.getComputedStyle(e),o;if(r.position==="fixed")o=iu(e,n);else{o=br(e,n);let i=br(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 e5(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!xc(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!xc(t);)t=t.parentElement;return t||document.documentElement}function xc(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 j0=new WeakMap;function t5(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||j0.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}const n5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),r5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function o5(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 n5.has(n.script)}let t=e.split("-")[0];return r5.has(t)}const i5=Symbol.for("react-aria.i18n.locale");function A0(){let e=typeof window<"u"&&window[i5]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:o5(e)?"rtl":"ltr"}}let al=A0(),ho=new Set;function wc(){al=A0();for(let e of ho)e(al)}function a5(){let e=En(),[t,n]=d.useState(al);return d.useEffect(()=>(ho.size===0&&window.addEventListener("languagechange",wc),ho.add(n),()=>{ho.delete(n),ho.size===0&&window.removeEventListener("languagechange",wc)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const s5=d.createContext(null);function er(){let e=a5();return d.useContext(s5)||e}const l5=Symbol.for("react-aria.i18n.locale"),u5=Symbol.for("react-aria.i18n.strings");let sr;class Da{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=c5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[l5];if(sr===void 0){let o=window[u5];if(!o)return null;sr={};for(let i in o)sr[i]=new Da({[n]:o[i]},n)}let r=sr==null?void 0:sr[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 c5(e,t,n="en-US"){if(t[e])return t[e];let r=d5(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function d5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Cc=new Map,Sc=new Map;class f5{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=Cc.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),Cc.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Sc.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Sc.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 $c=new WeakMap;function h5(e){let t=$c.get(e);return t||(t=new Da(e),$c.set(e,t)),t}function p5(e,t){return t&&Da.getGlobalDictionaryForPackage(t)||h5(e)}function K0(e,t){let{locale:n}=er(),r=p5(e,t);return d.useMemo(()=>new f5(n,r),[n,r])}function g5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m5(e,t,n){g5(e,t),t.set(e,n)}let ns=new Map,sl=!1;try{sl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Qi=!1;try{Qi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const B0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class v5{format(t){let n="";if(!sl&&this.options.signDisplay!=null?n=y5(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Qi){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=B0[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!sl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Qi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=b5(t,n),this.options=n}}function b5(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Qi){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=B0[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(ns.has(o))return ns.get(o);let i=new Intl.NumberFormat(e,t);return ns.set(o,i),i}function y5(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 x5(e={}){let{locale:t}=er();return d.useMemo(()=>new v5(t,e),[t,e])}let rs=new Map;function w5(e){let{locale:t}=er(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(rs.has(n))return rs.get(n);let r=new Intl.Collator(t,e);return rs.set(n,r),r}let ye=typeof document<"u"?window.visualViewport:null;function H0(e){let{direction:t}=er(),{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),E=[f,s,o.current,r.current,i==null?void 0:i.current,a.current,l,u,h,c,p,g,t,v,b,n],k=d.useRef(ye==null?void 0:ye.scale);d.useEffect(()=>{g&&(k.current=ye==null?void 0:ye.scale)},[g]);let $=d.useCallback(()=>{if(f===!1||!g||!o.current||!r.current||!h||(ye==null?void 0:ye.scale)!==k.current)return;let L=null;if(a.current&&a.current.contains(document.activeElement)){var N;let I=(N=document.activeElement)===null||N===void 0?void 0:N.getBoundingClientRect(),H=a.current.getBoundingClientRect();var F;if(L={type:"top",offset:((F=I==null?void 0:I.top)!==null&&F!==void 0?F:0)-H.top},L.offset>H.height/2){L.type="bottom";var j;L.offset=((j=I==null?void 0:I.bottom)!==null&&j!==void 0?j:0)-H.bottom}}let O=o.current;if(!v&&o.current){var T;O.style.top="0px",O.style.bottom="";var A;O.style.maxHeight=((A=(T=window.visualViewport)===null||T===void 0?void 0:T.height)!==null&&A!==void 0?A:window.innerHeight)+"px"}let K=Jy({placement:S5(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?iu(i.current,!0).width:0),arrowBoundaryOffset:b});if(K.position){if(O.style.top="",O.style.bottom="",O.style.left="",O.style.right="",Object.keys(K.position).forEach(I=>O.style[I]=K.position[I]+"px"),O.style.maxHeight=K.maxHeight!=null?K.maxHeight+"px":"",L&&document.activeElement&&a.current){let I=document.activeElement.getBoundingClientRect(),H=a.current.getBoundingClientRect(),z=I[L.type]-H[L.type];a.current.scrollTop+=z-L.offset}w(K)}},E);ce($,E),C5($),Ui({ref:o,onResize:$}),Ui({ref:r,onResize:$});let R=d.useRef(!1);ce(()=>{let L,N=()=>{R.current=!0,clearTimeout(L),L=setTimeout(()=>{R.current=!1},500),$()},F=()=>{R.current&&N()};return ye==null||ye.addEventListener("resize",N),ye==null||ye.addEventListener("scroll",F),()=>{ye==null||ye.removeEventListener("resize",N),ye==null||ye.removeEventListener("scroll",F)}},[$]);let M=d.useCallback(()=>{R.current||m==null||m()},[m,R]);t5({triggerRef:r,isOpen:g,onClose:m&&M});var _,D,P;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:(_=x==null?void 0:x.maxHeight)!==null&&_!==void 0?_:"100vh"}},placement:(D=x==null?void 0:x.placement)!==null&&D!==void 0?D:null,triggerAnchorPoint:(P=x==null?void 0:x.triggerAnchorPoint)!==null&&P!==void 0?P:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:$}}function C5(e){ce(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function S5(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function au(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function V0(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function z0(e){let t=d.useRef({isFocused:!1,observer:null});ce(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ae(r=>{e==null||e(r)});return d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{if(t.current.isFocused=!1,o.disabled){let s=au(a);n(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Yi=!1;function $5(e){for(;e&&!D0(e);)e=e.parentElement;let t=ct(e),n=t.document.activeElement;if(!n||n===e)return;Yi=!0;let r=!1,o=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},i=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,St(n),l()))},a=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,St(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),Yi=!1,r=!1},u=requestAnimationFrame(l);return l}let pr="default",ll="",Ni=new WeakMap;function E5(e){if(Ma()){if(pr==="default"){const t=se(e);ll=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}pr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Ni.set(e,e.style[t]),e.style[t]="none"}}function Ec(e){if(Ma()){if(pr!=="disabled")return;pr="restoring",setTimeout(()=>{P0(()=>{if(pr==="restoring"){const t=se(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ll||""),ll="",pr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ni.has(e)){let t=Ni.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ni.delete(e)}}const ko=d.createContext({register:()=>{}});ko.displayName="PressResponderContext";function P5(e,t){return t.get?t.get.call(e):t.value}function U0(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function R5(e,t){var n=U0(e,t,"get");return P5(e,n)}function M5(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 Pc(e,t,n){var r=U0(e,t,"set");return M5(e,r,n),n}function k5(e){let t=d.useContext(ko);if(t){let{register:n,...r}=t;e=oe(r,e),n()}return nu(t,e.ref),e}var gi=new WeakMap;class mi{continuePropagation(){Pc(this,gi,!1)}get shouldStopPropagation(){return R5(this,gi)}constructor(t,n,r,o){m5(this,gi,{writable:!0,value:void 0}),Pc(this,gi,!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 Rc=Symbol("linkClicked"),Mc="react-aria-pressable-style",kc="data-react-aria-pressable";function _a(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}=k5(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}=Oa(),w=Ae((P,L)=>{let N=v.current;if(s||N.didFirePressStart)return!1;let F=!0;if(N.isTriggeringEvent=!0,r){let j=new mi("pressstart",L,P);r(j),F=j.shouldStopPropagation}return n&&n(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,m(!0),F}),E=Ae((P,L,N=!0)=>{let F=v.current;if(!F.didFirePressStart)return!1;F.didFirePressStart=!1,F.isTriggeringEvent=!0;let j=!0;if(o){let O=new mi("pressend",L,P);o(O),j=O.shouldStopPropagation}if(n&&n(!1),m(!1),t&&N&&!s){let O=new mi("press",L,P);t(O),j&&(j=O.shouldStopPropagation)}return F.isTriggeringEvent=!1,j}),k=Ae((P,L)=>{let N=v.current;if(s)return!1;if(i){N.isTriggeringEvent=!0;let F=new mi("pressup",L,P);return i(F),N.isTriggeringEvent=!1,F.shouldStopPropagation}return!0}),$=Ae(P=>{let L=v.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&E(kn(L.target,P),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,x(),c||Ec(L.target);for(let N of L.disposables)N();L.disposables=[]}}),R=Ae(P=>{h&&$(P)}),M=Ae(P=>{s||a==null||a(P)}),_=Ae((P,L)=>{if(!s&&a){let N=new MouseEvent("click",P);V0(N,L),a(au(N))}}),D=d.useMemo(()=>{let P=v.current,L={onKeyDown(F){if(os(F.nativeEvent,F.currentTarget)&&ze(F.currentTarget,xe(F.nativeEvent))){var j;Oc(xe(F.nativeEvent),F.key)&&F.preventDefault();let O=!0;if(!P.isPressed&&!F.repeat){P.target=F.currentTarget,P.isPressed=!0,P.pointerType="keyboard",O=w(F,"keyboard");let T=F.currentTarget,A=K=>{os(K,T)&&!K.repeat&&ze(T,xe(K))&&P.target&&k(kn(P.target,K),"keyboard")};b(se(F.currentTarget),"keyup",Wr(A,N),!0)}O&&F.stopPropagation(),F.metaKey&&Wn()&&((j=P.metaKeyEvents)===null||j===void 0||j.set(F.key,F.nativeEvent))}else F.key==="Meta"&&(P.metaKeyEvents=new Map)},onClick(F){if(!(F&&!ze(F.currentTarget,xe(F.nativeEvent)))&&F&&F.button===0&&!P.isTriggeringEvent&&!Gn.isOpening){let j=!0;if(s&&F.preventDefault(),!P.ignoreEmulatedMouseEvents&&!P.isPressed&&(P.pointerType==="virtual"||O0(F.nativeEvent))){let O=w(F,"virtual"),T=k(F,"virtual"),A=E(F,"virtual");M(F),j=O&&T&&A}else if(P.isPressed&&P.pointerType!=="keyboard"){let O=P.pointerType||F.nativeEvent.pointerType||"virtual",T=k(kn(F.currentTarget,F),O),A=E(kn(F.currentTarget,F),O,!0);j=T&&A,P.isOverTarget=!1,M(F),$(F)}P.ignoreEmulatedMouseEvents=!1,j&&F.stopPropagation()}}},N=F=>{var j;if(P.isPressed&&P.target&&os(F,P.target)){var O;Oc(xe(F),F.key)&&F.preventDefault();let A=xe(F),K=ze(P.target,xe(F));E(kn(P.target,F),"keyboard",K),K&&_(F,P.target),x(),F.key!=="Enter"&&su(P.target)&&ze(P.target,A)&&!F[Rc]&&(F[Rc]=!0,Gn(P.target,F,!1)),P.isPressed=!1,(O=P.metaKeyEvents)===null||O===void 0||O.delete(F.key)}else if(F.key==="Meta"&&(!((j=P.metaKeyEvents)===null||j===void 0)&&j.size)){var T;let A=P.metaKeyEvents;P.metaKeyEvents=void 0;for(let K of A.values())(T=P.target)===null||T===void 0||T.dispatchEvent(new KeyboardEvent("keyup",K))}};if(typeof PointerEvent<"u"){L.onPointerDown=O=>{if(O.button!==0||!ze(O.currentTarget,xe(O.nativeEvent)))return;if(jy(O.nativeEvent)){P.pointerType="virtual";return}P.pointerType=O.pointerType;let T=!0;if(!P.isPressed){P.isPressed=!0,P.isOverTarget=!0,P.activePointerId=O.pointerId,P.target=O.currentTarget,c||E5(P.target),T=w(O,P.pointerType);let A=xe(O.nativeEvent);"releasePointerCapture"in A&&A.releasePointerCapture(O.pointerId),b(se(O.currentTarget),"pointerup",F,!1),b(se(O.currentTarget),"pointercancel",j,!1)}T&&O.stopPropagation()},L.onMouseDown=O=>{if(ze(O.currentTarget,xe(O.nativeEvent))&&O.button===0){if(u){let T=$5(O.target);T&&P.disposables.push(T)}O.stopPropagation()}},L.onPointerUp=O=>{!ze(O.currentTarget,xe(O.nativeEvent))||P.pointerType==="virtual"||O.button===0&&!P.isPressed&&k(O,P.pointerType||O.pointerType)},L.onPointerEnter=O=>{O.pointerId===P.activePointerId&&P.target&&!P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!0,w(kn(P.target,O),P.pointerType))},L.onPointerLeave=O=>{O.pointerId===P.activePointerId&&P.target&&P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!1,E(kn(P.target,O),P.pointerType,!1),R(O))};let F=O=>{if(O.pointerId===P.activePointerId&&P.isPressed&&O.button===0&&P.target){if(ze(P.target,xe(O))&&P.pointerType!=null){let T=!1,A=setTimeout(()=>{P.isPressed&&P.target instanceof HTMLElement&&(T?$(O):(St(P.target),P.target.click()))},80);b(O.currentTarget,"click",()=>T=!0,!0),P.disposables.push(()=>clearTimeout(A))}else $(O);P.isOverTarget=!1}},j=O=>{$(O)};L.onDragStart=O=>{ze(O.currentTarget,xe(O.nativeEvent))&&$(O)}}return L},[b,s,u,x,c,$,R,E,w,k,M,_]);return d.useEffect(()=>{if(!p)return;const P=se(p.current);if(!P||!P.head||P.getElementById(Mc))return;const L=P.createElement("style");L.id=Mc,L.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"?Ur(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=Xf(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=yb(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:qt([h,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?h:qt([h,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o);return t&&b?$.createElement(Qo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},b):b}function gb(){let e=$b(),t=sb(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=$.createElement($.Fragment,null,$.createElement("p",null,"💿 Hey developer 👋"),$.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",$.createElement("code",{style:i},"ErrorBoundary")," or"," ",$.createElement("code",{style:i},"errorElement")," prop on your route.")),$.createElement($.Fragment,null,$.createElement("h2",null,"Unexpected Application Error!"),$.createElement("h3",{style:{fontStyle:"italic"}},t),n?$.createElement("pre",{style:o},n):null,a)}var mb=$.createElement(gb,null),vb=class extends $.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.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?$.createElement(Nt.Provider,{value:this.props.routeContext},$.createElement(ql.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function bb({routeContext:e,match:t,children:n}){let r=$.useContext(qr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),$.createElement(Nt.Provider,{value:e},n)}function yb(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 u=i.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);ge(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let s=!1,l=-1;if(n)for(let u=0;u<i.length;u++){let h=i[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(l=u),h.route.id){let{loaderData:c,errors:p}=n,f=h.route.loader&&!c.hasOwnProperty(h.route.id)&&(!p||p[h.route.id]===void 0);if(h.route.lazy||f){s=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((u,h,c)=>{let p,f=!1,g=null,m=null;n&&(p=a&&h.route.id?a[h.route.id]:void 0,g=h.route.errorElement||mb,s&&(l<0&&c===0?(l0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):l===c&&(f=!0,m=h.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,c+1)),b=()=>{let x;return p?x=g:f?x=m:h.route.Component?x=$.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=u,$.createElement(bb,{match:h,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:x})};return n&&(h.route.ErrorBoundary||h.route.errorElement||c===0)?$.createElement(vb,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0},unstable_onError:r}):b()},null)}function Wl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xb(e){let t=$.useContext(qr);return ge(t,Wl(e)),t}function wb(e){let t=$.useContext(Sa);return ge(t,Wl(e)),t}function Cb(e){let t=$.useContext(Nt);return ge(t,Wl(e)),t}function Gl(e){let t=Cb(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 Sb(){return Gl("useRouteId")}function $b(){var r;let e=$.useContext(ql),t=wb("useRouteError"),n=Gl("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Eb(){let{router:e}=xb("useNavigate"),t=Gl("useNavigate"),n=$.useRef(!1);return i0(()=>{n.current=!0}),$.useCallback(async(o,i={})=>{Ct(n.current,o0),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var oc={};function l0(e,t,n){!t&&!oc[e]&&(oc[e]=!0,Ct(!1,n))}$.memo(Pb);function Pb({routes:e,future:t,state:n,unstable_onError:r}){return s0(e,void 0,n,r,t)}function el(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 Rb({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){ge(!Yo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=$.useMemo(()=>({basename:a,navigator:o,static:i,future:{}}),[a,o,i]);typeof n=="string"&&(n=Ur(n));let{pathname:l="/",search:u="",hash:h="",state:c=null,key:p="default"}=n,f=$.useMemo(()=>{let g=Gt(l,a);return g==null?null:{location:{pathname:g,search:u,hash:h,state:c,key:p},navigationType:r}},[a,l,u,h,c,p,r]);return Ct(f!=null,`<Router basename="${a}"> is not able to match the URL "${l}${u}${h}" because it does not start with the basename, so the <Router> won't render anything.`),f==null?null:$.createElement(It.Provider,{value:s},$.createElement(Qo.Provider,{children:t,value:f}))}function kb({children:e,location:t}){return pb(tl(e),t)}function tl(e,t=[]){let n=[];return $.Children.forEach(e,(r,o)=>{if(!$.isValidElement(r))return;let i=[...t,o];if(r.type===$.Fragment){n.push.apply(n,tl(r.props.children,i));return}ge(r.type===el,`[${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=tl(r.props.children,i)),n.push(a)}),n}var Fi="get",Li="application/x-www-form-urlencoded";function $a(e){return e!=null&&typeof e.tagName=="string"}function Mb(e){return $a(e)&&e.tagName.toLowerCase()==="button"}function Ob(e){return $a(e)&&e.tagName.toLowerCase()==="form"}function Tb(e){return $a(e)&&e.tagName.toLowerCase()==="input"}function Db(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _b(e,t){return e.button===0&&(!t||t==="_self")&&!Db(e)}function nl(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 Fb(e,t){let n=nl(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}var di=null;function Lb(){if(di===null)try{new FormData(document.createElement("form"),0),di=!1}catch{di=!0}return di}var Ib=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xa(e){return e!=null&&!Ib.has(e)?(Ct(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Li}"`),null):e}function Nb(e,t){let n,r,o,i,a;if(Ob(e)){let s=e.getAttribute("action");r=s?Gt(s,t):null,n=e.getAttribute("method")||Fi,o=Xa(e.getAttribute("enctype"))||Li,i=new FormData(e)}else if(Mb(e)||Tb(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?Gt(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Fi,o=Xa(e.getAttribute("formenctype"))||Xa(s.getAttribute("enctype"))||Li,i=new FormData(s,e),!Lb()){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($a(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Fi,r=null,o=Li,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 Ql(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jb(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Gt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Ab(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 Kb(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 Bb(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let a=await Ab(i,n);return a.links?a.links():[]}return[]}));return Ub(r.flat(1).filter(Kb).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function ic(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 Hb(e,t,{includeHydrateFallback:n}={}){return Vb(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 Vb(e){return[...new Set(e)]}function zb(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ub(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(zb(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function u0(){let e=$.useContext(qr);return Ql(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function qb(){let e=$.useContext(Sa);return Ql(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yl=$.createContext(void 0);Yl.displayName="FrameworkContext";function c0(){let e=$.useContext(Yl);return Ql(e,"You must render this element inside a <HydratedRouter> element"),e}function Wb(e,t){let n=$.useContext(Yl),[r,o]=$.useState(!1),[i,a]=$.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:h,onTouchStart:c}=t,p=$.useRef(null);$.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]),$.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:no(s,f),onBlur:no(l,g),onMouseEnter:no(u,f),onMouseLeave:no(h,g),onTouchStart:no(c,f)}]:[!1,p,{}]}function no(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Gb({page:e,...t}){let{router:n}=u0(),r=$.useMemo(()=>Xf(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?$.createElement(Yb,{page:e,matches:r,...t}):null}function Qb(e){let{manifest:t,routeModules:n}=c0(),[r,o]=$.useState([]);return $.useEffect(()=>{let i=!1;return Bb(e,t,n).then(a=>{i||o(a)}),()=>{i=!0}},[e,t,n]),r}function Yb({page:e,matches:t,...n}){let r=$n(),{manifest:o,routeModules:i}=c0(),{basename:a}=u0(),{loaderData:s,matches:l}=qb(),u=$.useMemo(()=>ic(e,t,l,o,r,"data"),[e,t,l,o,r]),h=$.useMemo(()=>ic(e,t,l,o,r,"assets"),[e,t,l,o,r]),c=$.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,m=!1;if(t.forEach(b=>{var w;let x=o.routes[b.route.id];!x||!x.hasLoader||(!u.some(S=>S.route.id===b.route.id)&&b.route.id in s&&((w=i[b.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?m=!0:g.add(b.route.id))}),g.size===0)return[];let v=jb(e,a,"data");return m&&g.size>0&&v.searchParams.set("_routes",t.filter(b=>g.has(b.route.id)).map(b=>b.route.id).join(",")),[v.pathname+v.search]},[a,s,r,o,u,t,e,i]),p=$.useMemo(()=>Hb(h,o),[h,o]),f=Qb(h);return $.createElement($.Fragment,null,c.map(g=>$.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),p.map(g=>$.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),f.map(({key:g,link:m})=>$.createElement("link",{key:g,nonce:n.nonce,...m})))}function Xb(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var d0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{d0&&(window.__reactRouterVersion="7.9.5")}catch{}function Zb({basename:e,children:t,window:n}){let r=$.useRef();r.current==null&&(r.current=jv({window:n,v5Compat:!0}));let o=r.current,[i,a]=$.useState({action:o.action,location:o.location}),s=$.useCallback(l=>{$.startTransition(()=>a(l))},[a]);return $.useLayoutEffect(()=>o.listen(s),[o,s]),$.createElement(Rb,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var f0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ea=$.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,...p},f){let{basename:g}=$.useContext(It),m=typeof u=="string"&&f0.test(u),v,b=!1;if(typeof u=="string"&&m&&(v=u,d0))try{let _=new URL(window.location.href),D=u.startsWith("//")?new URL(_.protocol+u):new URL(u),P=Gt(D.pathname,g);D.origin===_.origin&&P!=null?u=P+D.search+D.hash:b=!0}catch{Ct(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=db(u,{relative:o}),[w,S,k]=Wb(r,p),E=t2(u,{replace:a,state:s,target:l,preventScrollReset:h,relative:o,viewTransition:c});function R(_){t&&t(_),_.defaultPrevented||E(_)}let M=$.createElement("a",{...p,...k,href:v||x,onClick:b||i?t:R,ref:Xb(f,S),target:l,"data-discover":!m&&n==="render"?"true":void 0});return w&&!m?$.createElement($.Fragment,null,M,$.createElement(Gb,{page:x})):M});Ea.displayName="Link";var h0=$.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=Xo(a,{relative:u.relative}),p=$n(),f=$.useContext(Sa),{navigator:g,basename:m}=$.useContext(It),v=f!=null&&s2(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=Gt(w,m)||w);const S=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let k=x===b||!o&&x.startsWith(b)&&x.charAt(S)==="/",E=w!=null&&(w===b||!o&&w.startsWith(b)&&w.charAt(b.length)==="/"),R={isActive:k,isPending:E,isTransitioning:v},M=k?t:void 0,_;typeof r=="function"?_=r(R):_=[r,k?"active":null,E?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let D=typeof i=="function"?i(R):i;return $.createElement(Ea,{...u,"aria-current":M,className:_,ref:h,style:D,to:a,viewTransition:s},typeof l=="function"?l(R):l)});h0.displayName="NavLink";var Jb=$.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=Fi,action:s,onSubmit:l,relative:u,preventScrollReset:h,viewTransition:c,...p},f)=>{let g=i2(),m=a2(s,{relative:u}),v=a.toLowerCase()==="get"?"get":"post",b=typeof s=="string"&&f0.test(s),x=w=>{if(l&&l(w),w.defaultPrevented)return;w.preventDefault();let S=w.nativeEvent.submitter,k=(S==null?void 0:S.getAttribute("formmethod"))||a;g(S||w.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:o,state:i,relative:u,preventScrollReset:h,viewTransition:c})};return $.createElement("form",{ref:f,method:v,action:m,onSubmit:r?l:x,...p,"data-discover":!b&&e==="render"?"true":void 0})});Jb.displayName="Form";function e2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function p0(e){let t=$.useContext(qr);return ge(t,e2(e)),t}function t2(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:a}={}){let s=a0(),l=$n(),u=Xo(e,{relative:i});return $.useCallback(h=>{if(_b(h,t)){h.preventDefault();let c=n!==void 0?n:Ro(l)===Ro(u);s(e,{replace:c,state:r,preventScrollReset:o,relative:i,viewTransition:a})}},[l,s,u,n,r,t,e,o,i,a])}function n2(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=$.useRef(nl(e)),n=$.useRef(!1),r=$n(),o=$.useMemo(()=>Fb(r.search,n.current?null:t.current),[r.search]),i=a0(),a=$.useCallback((s,l)=>{const u=nl(typeof s=="function"?s(new URLSearchParams(o)):s);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}var r2=0,o2=()=>`__${String(++r2)}__`;function i2(){let{router:e}=p0("useSubmit"),{basename:t}=$.useContext(It),n=Sb();return $.useCallback(async(r,o={})=>{let{action:i,method:a,encType:s,formData:l,body:u}=Nb(r,t);if(o.navigate===!1){let h=o.fetcherKey||o2();await e.fetch(h,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function a2(e,{relative:t}={}){let{basename:n}=$.useContext(It),r=$.useContext(Nt);ge(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Xo(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:qt([n,i.pathname])),Ro(i)}function s2(e,{relative:t}={}){let n=$.useContext(r0);ge(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=p0("useViewTransitionState"),o=Xo(e,{relative:t});if(!n.isTransitioning)return!1;let i=Gt(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Gt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Vi(o.pathname,a)!=null||Vi(o.pathname,i)!=null}var zi=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 l2=["color"],u2=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:"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"}))}),c2=["color"],g0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,c2);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"}))}),d2=["color"],f2=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:"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"}))}),h2=["color"],Nr=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:"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"}))}),p2=["color"],Xl=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,p2);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"}))}),g2=["color"],m0=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(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:"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"}))}),m2=["color"],v2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,m2);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"}))}),b2=["color"],y2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(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:"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"}))}),x2=["color"],w2=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:"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"}))}),C2=["color"],rl=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,C2);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"}))}),S2=["color"],$2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,S2);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"}))}),E2=["color"],P2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,E2);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"}))}),R2=["color"],k2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,R2);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"}))}),M2=["color"],O2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,M2);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"}))}),T2=["color"],D2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,T2);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"}))}),_2=["color"],F2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,_2);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"}))}),L2=["color"],I2=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.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"}))}),N2=["color"],j2=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:"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"}))}),A2=["color"],v0=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:"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"}))}),K2=["color"],b0=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:"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"}))}),B2=["color"],ac=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(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:"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"}))}),H2=["color"],y0=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:"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"}))}),V2=["color"],z2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,V2);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"}))}),U2=["color"],Zl=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,U2);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"}))}),q2=["color"],W2=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:"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"}))}),G2=["color"],Q2=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(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:"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"}))}),Y2=["color"],Wr=d.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=fe(e,Y2);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 x0=d.createContext({}),sc=d.createContext(null),X2=d.createContext(null),ce=typeof document<"u"?d.useLayoutEffect:()=>{};var Za;const Z2=(Za=d.useInsertionEffect)!==null&&Za!==void 0?Za:ce;function Ae(e){const t=d.useRef(null);return Z2(()=>{t.current=e},[e]),d.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function J2(e){let[t,n]=d.useState(e),r=d.useRef(null),o=Ae(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});ce(()=>{r.current&&o()});let i=Ae(a=>{r.current=a(t),o()});return[t,i]}const w0={prefix:String(Math.round(Math.random()*1e10)),current:0},C0=d.createContext(w0),ey=d.createContext(!1);let Ja=new WeakMap;function ty(e=!1){let t=d.useContext(C0),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=Ja.get(i);a==null?Ja.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,Ja.delete(i))}n.current=++t.current}return n.current}function ny(e){let t=d.useContext(C0),n=ty(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function ry(e){let t=d.useId(),[n]=d.useState(En()),r=n?"react-aria":`react-aria${w0.prefix}`;return e||`${r}-${t}`}const oy=typeof d.useId=="function"?ry:ny;function iy(){return!1}function ay(){return!0}function sy(e){return()=>{}}function En(){return typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore(sy,iy,ay):d.useContext(ey)}let ly=!!(typeof window<"u"&&window.document&&window.document.createElement),vr=new Map,ho;typeof FinalizationRegistry<"u"&&(ho=new FinalizationRegistry(e=>{vr.delete(e)}));function it(e){let[t,n]=d.useState(e),r=d.useRef(null),o=oy(t),i=d.useRef(null);if(ho&&ho.register(i,o),ly){const a=vr.get(o);a&&!a.includes(r)?a.push(r):vr.set(o,[r])}return ce(()=>{let a=o;return()=>{ho&&ho.unregister(i),vr.delete(a)}},[o]),d.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),o}function uy(e,t){if(e===t)return e;let n=vr.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=vr.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Ii(e=[]){let t=it(),[n,r]=J2(t),o=d.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ce(o,[t,o,...e]),n}function Gr(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const se=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:se(e).defaultView||window;function cy(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function dy(e){return cy(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let fy=!1;function Pa(){return fy}function ze(e,t){if(!Pa())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:dy(n)?n=n.host:n=n.parentNode}return!1}const Me=(e=document)=>{var t;if(!Pa())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 xe(e){return Pa()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class hy{get currentNode(){return this._currentNode}set currentNode(t){if(!ze(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 ze(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 py(e,t,n,r){return Pa()?new hy(e,t,n,r):e.createTreeWalker(t,n,r)}function S0(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=S0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=S0(e))&&(r&&(r+=" "),r+=t);return r}function oe(...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]=Gr(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=jr(i,a):o==="id"&&i&&a?t.id=uy(i,a):t[o]=a!==void 0?a:i}}return t}function $0(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=lc(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():lc(e[i],null)})}}}function lc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}const gy=new Set(["id"]),my=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),vy=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),by=new Set(["dir","lang","hidden","inert","translate"]),uc=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"]),yy=/^(data-.*)$/;function $e(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)&&(gy.has(l)||n&&my.has(l)||r&&vy.has(l)||o&&by.has(l)||i&&uc.has(l)||l.endsWith("Capture")&&uc.has(l.slice(0,-7))||a!=null&&a.has(l)||yy.test(l))&&(s[l]=e[l]);return s}function St(e){if(xy())e.focus({preventScroll:!0});else{let t=wy(e);e.focus(),Cy(t)}}let fi=null;function xy(){if(fi==null){fi=!1;try{document.createElement("div").focus({get preventScroll(){return fi=!0,!0}})}catch{}}return fi}function wy(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 Cy(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Ra(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 Jl(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 Yt(e){let t=null;return()=>(t==null&&(t=e()),t)}const Wn=Yt(function(){return Jl(/^Mac/i)}),Sy=Yt(function(){return Jl(/^iPhone/i)}),E0=Yt(function(){return Jl(/^iPad/i)||Wn()&&navigator.maxTouchPoints>1}),ka=Yt(function(){return Sy()||E0()}),$y=Yt(function(){return Wn()||ka()}),P0=Yt(function(){return Ra(/AppleWebKit/i)&&!eu()}),eu=Yt(function(){return Ra(/Chrome/i)}),tu=Yt(function(){return Ra(/Android/i)}),Ey=Yt(function(){return Ra(/Firefox/i)}),Py=d.createContext({isNative:!0,open:My,useHref:e=>e});function Ma(){return d.useContext(Py)}function Ry(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 Gn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;Ey()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Wn()?i=!0:a=!0);let u=P0()&&Wn()&&!E0()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Gn.isOpening=n,St(e),e.dispatchEvent(u),Gn.isOpening=!1}Gn.isOpening=!1;function ky(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 My(e,t){ky(e,n=>Gn(n,t))}function Oy(e){let t=Ma();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 Ty(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Ry(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let tn=new Map,ol=new Set;function cc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=tn.get(r.target);o||(o=new Set,tn.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=tn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),tn.delete(r.target)),tn.size===0)){for(let i of ol)i();ol.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?cc():document.addEventListener("DOMContentLoaded",cc));function Dy(){for(const[e]of tn)"isConnected"in e&&!e.isConnected&&tn.delete(e)}function R0(e){requestAnimationFrame(()=>{Dy(),tn.size===0?e():ol.add(e)})}function Oa(){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 k0(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=it(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])}function dc(e,t){const n=d.useRef(!0),r=d.useRef(null);ce(()=>(n.current=!0,()=>{n.current=!1}),[]),ce(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}function _y(){return typeof window.ResizeObserver<"u"}function Ui(e){const{ref:t,box:n,onResize:r}=e;d.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(_y()){const i=new window.ResizeObserver(a=>{a.length&&r()});return i.observe(o,{box:n}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function nu(e,t){ce(()=>{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 M0(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 Fy(e,t){const n=[];for(;e&&e!==document.documentElement;)Qn(e,t)&&n.push(e),e=e.parentElement;return n}function cr(e){return Wn()?e.metaKey:e.ctrlKey}const Ly=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function bo(e){return e instanceof HTMLInputElement&&!Ly.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let qe=typeof document<"u"&&window.visualViewport;function Iy(){let e=En(),[t,n]=d.useState(()=>e?{width:0,height:0}:fc());return d.useEffect(()=>{let r=()=>{qe&&qe.scale>1||n(a=>{let s=fc();return s.width===a.width&&s.height===a.height?a:s})},o,i=a=>{qe&&qe.scale>1||bo(a.target)&&(o=requestAnimationFrame(()=>{(!document.activeElement||!bo(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),qe?qe.addEventListener("resize",r):window.addEventListener("resize",r),()=>{cancelAnimationFrame(o),window.removeEventListener("blur",i,!0),qe?qe.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function fc(){return{width:qe?qe.width*qe.scale:window.innerWidth,height:qe?qe.height*qe.scale:window.innerHeight}}let Ny=0;const es=new Map;function jy(e){let[t,n]=d.useState();return ce(()=>{if(!e)return;let r=es.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${Ny++}`;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},es.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),es.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function hi(e,t,n,r){let o=Ae(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,o])}function O0(e,t){let n=hc(e,t,"left"),r=hc(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),{scrollMarginTop:g,scrollMarginRight:m,scrollMarginBottom:v,scrollMarginLeft:b}=getComputedStyle(t),x=a+parseInt(u,10),w=s+parseInt(l,10),S=x+e.clientWidth,k=w+e.clientHeight,E=parseInt(h,10)||0,R=parseInt(p,10)||0,M=parseInt(c,10)||0,_=parseInt(f,10)||0,D=parseInt(g,10)||0,P=parseInt(v,10)||0,I=parseInt(m,10)||0,N=parseInt(b,10)||0,F=n-N,j=n+o+I,O=r-D,T=r+i+P,A=a+parseInt(u,10)+_,K=S-M,L=s+parseInt(l,10)+E,H=k-R;(F>A||j<K)&&(F<=a+_?a=F-parseInt(u,10)-_:j>S-M&&(a+=j-S+M)),(O>L||T<H)&&(O<=w+E?s=O-parseInt(l,10)-E:T>k-R&&(s+=T-k+R)),e.scrollTo({left:a,top:s})}function hc(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 pc(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(a).overflow==="hidden")&&!eu()){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"})}}else{let l=Fy(e);for(let u of l)O0(u,e)}}}function T0(e){return e.pointerType===""&&e.isTrusted?!0:tu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ay(e){return!tu()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const Ky="react-aria-clear-focus",By="react-aria-focus";function Ta(e,t=!0){let[n,r]=d.useState(!0),o=n&&t;return ce(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),D0(e,o,d.useCallback(()=>r(!1),[])),o}function qi(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 D0(e,o,d.useCallback(()=>{r(i=>i==="exiting"?"closed":i)},[])),o}function D0(e,t,n){ce(()=>{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||zr.flushSync(()=>{n()})}).catch(()=>{}),()=>{o=!0}}},[e,t,n])}const Hy=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Vy(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 zy(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 ru(e,t){return Hy?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Vy(e)&&zy(e,t)&&(!e.parentElement||ru(e.parentElement,e))}const ou=["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"],Uy=ou.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ou.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const qy=ou.join(':not([hidden]):not([tabindex="-1"]),');function _0(e){return e.matches(Uy)&&ru(e)&&!F0(e)}function Wy(e){return e.matches(qy)&&ru(e)&&!F0(e)}function F0(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Zo(e,t,n){let[r,o]=d.useState(e||t),i=d.useRef(e!==void 0),a=e!==void 0;d.useEffect(()=>{i.current,i.current=a},[a]);let s=a?e:r,l=d.useCallback((u,...h)=>{let c=(p,...f)=>{n&&(Object.is(s,p)||n(p,...f)),a||(s=p)};typeof u=="function"?o((f,...g)=>{let m=u(a?s:f,...g);return c(m,...h),a?f:m}):(a||o(u),c(u,...h))},[a,s,n]);return[s,l]}function ko(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Wi=Symbol("default");function Pn({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}=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 L0(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||Wi;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=L0(n,e.slot)||{},{ref:o,...i}=r,a=Qr(d.useMemo(()=>$0(t,o),[t,o])),s=oe(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 I0(e=!0){let[t,n]=d.useState(e),r=d.useRef(!1),o=d.useCallback(i=>{r.current=!0,n(!!i)},[]);return ce(()=>{r.current||n(!1)},[]),[o,t]}const N0=7e3;let Rt=null;function gc(e,t="assertive",n=N0){Rt?Rt.announce(e,t,n):(Rt=new Gy,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Rt.announce(e,t,n):setTimeout(()=>{Rt!=null&&Rt.isAttached()&&(Rt==null||Rt.announce(e,t,n))},100))}class Gy{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=N0){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 Ft={top:"top",bottom:"top",left:"left",right:"left"},Gi={top:"bottom",bottom:"top",left:"right",right:"left"},Qy={top:"left",left:"top"},il={top:"height",left:"width"},j0={width:"totalWidth",height:"totalHeight"},pi={};let Pe=typeof document<"u"?window.visualViewport:null;function mc(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={};var l;let u=((l=Pe==null?void 0:Pe.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let g=document.documentElement;r=g.clientWidth,o=g.clientHeight;var h;t=(h=Pe==null?void 0:Pe.width)!==null&&h!==void 0?h:r;var c;n=(c=Pe==null?void 0:Pe.height)!==null&&c!==void 0?c:o,s.top=g.scrollTop||e.scrollTop,s.left=g.scrollLeft||e.scrollLeft,Pe&&(i=Pe.offsetTop,a=Pe.offsetLeft)}else({width:t,height:n,top:i,left:a}=br(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;if(P0()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){s.top=0,s.left=0;var p;i=(p=Pe==null?void 0:Pe.pageTop)!==null&&p!==void 0?p:0;var f;a=(f=Pe==null?void 0:Pe.pageLeft)!==null&&f!==void 0?f:0}return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function Yy(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function vc(e,t,n,r,o,i,a){var s;let l=(s=o.scroll[e])!==null&&s!==void 0?s:0,u=r[il[e]],h=r.scroll[Ft[e]]+i,c=u+r.scroll[Ft[e]]-i,p=t-l+a[e]-r[Ft[e]],f=t-l+n+a[e]-r[Ft[e]];return p<h?h-p:f>c?Math.max(c-f,h-p):0}function Xy(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 bc(e){if(pi[e])return pi[e];let[t,n]=e.split(" "),r=Ft[t]||"right",o=Qy[r];Ft[n]||(n="center");let i=il[r],a=il[o];return pi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},pi[e]}function ts(e,t,n,r,o,i,a,s,l,u){let{placement:h,crossPlacement:c,axis:p,crossAxis:f,size:g,crossSize:m}=r,v={};var b;v[f]=(b=e[f])!==null&&b!==void 0?b:0;var x,w,S,k;c==="center"?v[f]+=(((x=e[m])!==null&&x!==void 0?x:0)-((w=n[m])!==null&&w!==void 0?w:0))/2:c!==f&&(v[f]+=((S=e[m])!==null&&S!==void 0?S:0)-((k=n[m])!==null&&k!==void 0?k:0)),v[f]+=i;const E=e[f]-n[m]+l+u,R=e[f]+e[m]-l-u;if(v[f]=ko(v[f],E,R),h===p){const M=s?a[g]:t[j0[g]];v[Gi[p]]=Math.floor(M-e[p]+o)}else v[p]=Math.floor(e[p]+e[g]+o);return v}function Zy(e,t,n,r,o,i,a,s){const l=r?n.height:t[j0.height];var u;let h=e.top!=null?n.top+e.top:n.top+(l-((u=e.bottom)!==null&&u!==void 0?u:0)-a);var c,p,f,g,m,v;let b=s!=="top"?Math.max(0,t.height+t.top+((c=t.scroll.top)!==null&&c!==void 0?c:0)-h-(((p=o.top)!==null&&p!==void 0?p:0)+((f=o.bottom)!==null&&f!==void 0?f:0)+i)):Math.max(0,h+a-(t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((v=o.bottom)!==null&&v!==void 0?v:0)+i));return Math.min(t.height-i*2,b)}function yc(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;var u,h;if(a===s)return Math.max(0,n[s]-e[s]-((u=e.scroll[s])!==null&&u!==void 0?u:0)+t[s]-((h=r[s])!==null&&h!==void 0?h:0)-r[Gi[s]]-o);var c;return Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-((c=r[s])!==null&&c!==void 0?c:0)-r[Gi[s]]-o)}function Jy(e,t,n,r,o,i,a,s,l,u,h,c,p,f,g,m){let v=bc(e),{size:b,crossAxis:x,crossSize:w,placement:S,crossPlacement:k}=v,E=ts(t,s,n,v,h,c,u,p,g,m),R=h,M=yc(s,u,t,o,i+h,v);if(a&&r[b]>M){let pe=bc(`${Gi[S]} ${k}`),ee=ts(t,s,n,pe,h,c,u,p,g,m);yc(s,u,t,o,i+h,pe)>M&&(v=pe,E=ee,R=h)}let _="bottom";v.axis==="top"?v.placement==="top"?_="top":v.placement==="bottom"&&(_="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?_="bottom":v.crossPlacement==="bottom"&&(_="top"));let D=vc(x,E[x],n[w],s,l,i,u);E[x]+=D;let P=Zy(E,s,u,p,o,i,n.height,_);f&&f<P&&(P=f),n.height=Math.min(n.height,P),E=ts(t,s,n,v,R,c,u,p,g,m),D=vc(x,E[x],n[w],s,l,i,u),E[x]+=D;let I={},N=t[x]-E[x]-o[Ft[x]],F=N+.5*t[w];const j=g/2+m;var O,T,A,K;const L=Ft[x]==="left"?((O=o.left)!==null&&O!==void 0?O:0)+((T=o.right)!==null&&T!==void 0?T:0):((A=o.top)!==null&&A!==void 0?A:0)+((K=o.bottom)!==null&&K!==void 0?K:0),H=n[w]-L-g/2-m,z=t[x]+g/2-(E[x]+o[Ft[x]]),V=t[x]+t[w]-g/2-(E[x]+o[Ft[x]]),W=ko(F,z,V);I[x]=ko(W,j,H),{placement:S,crossPlacement:k}=v,g?N=I[x]:k==="right"?N+=t[w]:k==="center"&&(N+=t[w]/2);let q=S==="left"||S==="top"?n[b]:0,ne={x:S==="top"||S==="bottom"?N:q,y:S==="left"||S==="right"?N:q};return{position:E,maxHeight:P,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:S,triggerAnchorPoint:ne}}function e5(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=r instanceof HTMLElement?t5(r):document.documentElement,g=f===document.documentElement;const m=window.getComputedStyle(f).position;let v=!!m&&m!=="static",b=g?br(n,!1):xc(n,f,!1);if(!g){let{marginTop:I,marginLeft:N}=window.getComputedStyle(n);b.top+=parseInt(I,10)||0,b.left+=parseInt(N,10)||0}let x=br(r,!0),w=Xy(r);var S,k;x.width+=((S=w.left)!==null&&S!==void 0?S:0)+((k=w.right)!==null&&k!==void 0?k:0);var E,R;x.height+=((E=w.top)!==null&&E!==void 0?E:0)+((R=w.bottom)!==null&&R!==void 0?R:0);let M=Yy(o),_=mc(s),D=mc(f),P=s.tagName==="BODY"?br(f,!1):xc(f,s,!1);return f.tagName==="HTML"&&s.tagName==="BODY"&&(D.scroll.top=0,D.scroll.left=0),Jy(t,b,x,M,w,i,a,_,D,P,l,u,v,h,c,p)}function iu(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 br(e,t){let{top:n,left:r,width:o,height:i}=iu(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 xc(e,t,n){let r=window.getComputedStyle(e),o;if(r.position==="fixed")o=iu(e,n);else{o=br(e,n);let i=br(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 t5(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!wc(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!wc(t);)t=t.parentElement;return t||document.documentElement}function wc(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 A0=new WeakMap;function n5(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||A0.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}const r5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function i5(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 r5.has(n.script)}let t=e.split("-")[0];return o5.has(t)}const a5=Symbol.for("react-aria.i18n.locale");function K0(){let e=typeof window<"u"&&window[a5]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:i5(e)?"rtl":"ltr"}}let al=K0(),po=new Set;function Cc(){al=K0();for(let e of po)e(al)}function s5(){let e=En(),[t,n]=d.useState(al);return d.useEffect(()=>(po.size===0&&window.addEventListener("languagechange",Cc),po.add(n),()=>{po.delete(n),po.size===0&&window.removeEventListener("languagechange",Cc)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const l5=d.createContext(null);function er(){let e=s5();return d.useContext(l5)||e}const u5=Symbol.for("react-aria.i18n.locale"),c5=Symbol.for("react-aria.i18n.strings");let sr;class Da{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=d5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[u5];if(sr===void 0){let o=window[c5];if(!o)return null;sr={};for(let i in o)sr[i]=new Da({[n]:o[i]},n)}let r=sr==null?void 0:sr[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 d5(e,t,n="en-US"){if(t[e])return t[e];let r=f5(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function f5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Sc=new Map,$c=new Map;class h5{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=Sc.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),Sc.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=$c.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),$c.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 Ec=new WeakMap;function p5(e){let t=Ec.get(e);return t||(t=new Da(e),Ec.set(e,t)),t}function g5(e,t){return t&&Da.getGlobalDictionaryForPackage(t)||p5(e)}function B0(e,t){let{locale:n}=er(),r=g5(e,t);return d.useMemo(()=>new h5(n,r),[n,r])}function m5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function v5(e,t,n){m5(e,t),t.set(e,n)}let ns=new Map,sl=!1;try{sl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Qi=!1;try{Qi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const H0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class b5{format(t){let n="";if(!sl&&this.options.signDisplay!=null?n=x5(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Qi){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=H0[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!sl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Qi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=y5(t,n),this.options=n}}function y5(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Qi){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=H0[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(ns.has(o))return ns.get(o);let i=new Intl.NumberFormat(e,t);return ns.set(o,i),i}function x5(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 w5(e={}){let{locale:t}=er();return d.useMemo(()=>new b5(t,e),[t,e])}let rs=new Map;function C5(e){let{locale:t}=er(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(rs.has(n))return rs.get(n);let r=new Intl.Collator(t,e);return rs.set(n,r),r}let ye=typeof document<"u"?window.visualViewport:null;function V0(e){let{direction:t}=er(),{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],k=d.useRef(ye==null?void 0:ye.scale);d.useEffect(()=>{g&&(k.current=ye==null?void 0:ye.scale)},[g]);let E=d.useCallback(()=>{if(f===!1||!g||!o.current||!r.current||!h||(ye==null?void 0:ye.scale)!==k.current)return;let I=null;if(a.current&&a.current.contains(document.activeElement)){var N;let L=(N=document.activeElement)===null||N===void 0?void 0:N.getBoundingClientRect(),H=a.current.getBoundingClientRect();var F;if(I={type:"top",offset:((F=L==null?void 0:L.top)!==null&&F!==void 0?F:0)-H.top},I.offset>H.height/2){I.type="bottom";var j;I.offset=((j=L==null?void 0:L.bottom)!==null&&j!==void 0?j:0)-H.bottom}}let O=o.current;if(!v&&o.current){var T;O.style.top="0px",O.style.bottom="";var A;O.style.maxHeight=((A=(T=window.visualViewport)===null||T===void 0?void 0:T.height)!==null&&A!==void 0?A:window.innerHeight)+"px"}let K=e5({placement:$5(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?iu(i.current,!0).width:0),arrowBoundaryOffset:b});if(K.position){if(O.style.top="",O.style.bottom="",O.style.left="",O.style.right="",Object.keys(K.position).forEach(L=>O.style[L]=K.position[L]+"px"),O.style.maxHeight=K.maxHeight!=null?K.maxHeight+"px":"",I&&document.activeElement&&a.current){let L=document.activeElement.getBoundingClientRect(),H=a.current.getBoundingClientRect(),z=L[I.type]-H[I.type];a.current.scrollTop+=z-I.offset}w(K)}},S);ce(E,S),S5(E),Ui({ref:o,onResize:E}),Ui({ref:r,onResize:E});let R=d.useRef(!1);ce(()=>{let I,N=()=>{R.current=!0,clearTimeout(I),I=setTimeout(()=>{R.current=!1},500),E()},F=()=>{R.current&&N()};return ye==null||ye.addEventListener("resize",N),ye==null||ye.addEventListener("scroll",F),()=>{ye==null||ye.removeEventListener("resize",N),ye==null||ye.removeEventListener("scroll",F)}},[E]);let M=d.useCallback(()=>{R.current||m==null||m()},[m,R]);n5({triggerRef:r,isOpen:g,onClose:m&&M});var _,D,P;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:(_=x==null?void 0:x.maxHeight)!==null&&_!==void 0?_:"100vh"}},placement:(D=x==null?void 0:x.placement)!==null&&D!==void 0?D:null,triggerAnchorPoint:(P=x==null?void 0:x.triggerAnchorPoint)!==null&&P!==void 0?P:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:E}}function S5(e){ce(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function $5(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function au(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function z0(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function U0(e){let t=d.useRef({isFocused:!1,observer:null});ce(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ae(r=>{e==null||e(r)});return d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{if(t.current.isFocused=!1,o.disabled){let s=au(a);n(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Yi=!1;function E5(e){for(;e&&!_0(e);)e=e.parentElement;let t=dt(e),n=t.document.activeElement;if(!n||n===e)return;Yi=!0;let r=!1,o=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},i=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,St(n),l()))},a=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,St(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),Yi=!1,r=!1},u=requestAnimationFrame(l);return l}let pr="default",ll="",Ni=new WeakMap;function P5(e){if(ka()){if(pr==="default"){const t=se(e);ll=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}pr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Ni.set(e,e.style[t]),e.style[t]="none"}}function Pc(e){if(ka()){if(pr!=="disabled")return;pr="restoring",setTimeout(()=>{R0(()=>{if(pr==="restoring"){const t=se(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ll||""),ll="",pr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ni.has(e)){let t=Ni.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ni.delete(e)}}const Mo=d.createContext({register:()=>{}});Mo.displayName="PressResponderContext";function R5(e,t){return t.get?t.get.call(e):t.value}function q0(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function k5(e,t){var n=q0(e,t,"get");return R5(e,n)}function M5(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 Rc(e,t,n){var r=q0(e,t,"set");return M5(e,r,n),n}function O5(e){let t=d.useContext(Mo);if(t){let{register:n,...r}=t;e=oe(r,e),n()}return nu(t,e.ref),e}var gi=new WeakMap;class mi{continuePropagation(){Rc(this,gi,!1)}get shouldStopPropagation(){return k5(this,gi)}constructor(t,n,r,o){v5(this,gi,{writable:!0,value:void 0}),Rc(this,gi,!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 kc=Symbol("linkClicked"),Mc="react-aria-pressable-style",Oc="data-react-aria-pressable";function _a(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}=O5(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}=Oa(),w=Ae((P,I)=>{let N=v.current;if(s||N.didFirePressStart)return!1;let F=!0;if(N.isTriggeringEvent=!0,r){let j=new mi("pressstart",I,P);r(j),F=j.shouldStopPropagation}return n&&n(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,m(!0),F}),S=Ae((P,I,N=!0)=>{let F=v.current;if(!F.didFirePressStart)return!1;F.didFirePressStart=!1,F.isTriggeringEvent=!0;let j=!0;if(o){let O=new mi("pressend",I,P);o(O),j=O.shouldStopPropagation}if(n&&n(!1),m(!1),t&&N&&!s){let O=new mi("press",I,P);t(O),j&&(j=O.shouldStopPropagation)}return F.isTriggeringEvent=!1,j}),k=Ae((P,I)=>{let N=v.current;if(s)return!1;if(i){N.isTriggeringEvent=!0;let F=new mi("pressup",I,P);return i(F),N.isTriggeringEvent=!1,F.shouldStopPropagation}return!0}),E=Ae(P=>{let I=v.current;if(I.isPressed&&I.target){I.didFirePressStart&&I.pointerType!=null&&S(Mn(I.target,P),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,x(),c||Pc(I.target);for(let N of I.disposables)N();I.disposables=[]}}),R=Ae(P=>{h&&E(P)}),M=Ae(P=>{s||a==null||a(P)}),_=Ae((P,I)=>{if(!s&&a){let N=new MouseEvent("click",P);z0(N,I),a(au(N))}}),D=d.useMemo(()=>{let P=v.current,I={onKeyDown(F){if(os(F.nativeEvent,F.currentTarget)&&ze(F.currentTarget,xe(F.nativeEvent))){var j;Tc(xe(F.nativeEvent),F.key)&&F.preventDefault();let O=!0;if(!P.isPressed&&!F.repeat){P.target=F.currentTarget,P.isPressed=!0,P.pointerType="keyboard",O=w(F,"keyboard");let T=F.currentTarget,A=K=>{os(K,T)&&!K.repeat&&ze(T,xe(K))&&P.target&&k(Mn(P.target,K),"keyboard")};b(se(F.currentTarget),"keyup",Gr(A,N),!0)}O&&F.stopPropagation(),F.metaKey&&Wn()&&((j=P.metaKeyEvents)===null||j===void 0||j.set(F.key,F.nativeEvent))}else F.key==="Meta"&&(P.metaKeyEvents=new Map)},onClick(F){if(!(F&&!ze(F.currentTarget,xe(F.nativeEvent)))&&F&&F.button===0&&!P.isTriggeringEvent&&!Gn.isOpening){let j=!0;if(s&&F.preventDefault(),!P.ignoreEmulatedMouseEvents&&!P.isPressed&&(P.pointerType==="virtual"||T0(F.nativeEvent))){let O=w(F,"virtual"),T=k(F,"virtual"),A=S(F,"virtual");M(F),j=O&&T&&A}else if(P.isPressed&&P.pointerType!=="keyboard"){let O=P.pointerType||F.nativeEvent.pointerType||"virtual",T=k(Mn(F.currentTarget,F),O),A=S(Mn(F.currentTarget,F),O,!0);j=T&&A,P.isOverTarget=!1,M(F),E(F)}P.ignoreEmulatedMouseEvents=!1,j&&F.stopPropagation()}}},N=F=>{var j;if(P.isPressed&&P.target&&os(F,P.target)){var O;Tc(xe(F),F.key)&&F.preventDefault();let A=xe(F),K=ze(P.target,xe(F));S(Mn(P.target,F),"keyboard",K),K&&_(F,P.target),x(),F.key!=="Enter"&&su(P.target)&&ze(P.target,A)&&!F[kc]&&(F[kc]=!0,Gn(P.target,F,!1)),P.isPressed=!1,(O=P.metaKeyEvents)===null||O===void 0||O.delete(F.key)}else if(F.key==="Meta"&&(!((j=P.metaKeyEvents)===null||j===void 0)&&j.size)){var T;let A=P.metaKeyEvents;P.metaKeyEvents=void 0;for(let K of A.values())(T=P.target)===null||T===void 0||T.dispatchEvent(new KeyboardEvent("keyup",K))}};if(typeof PointerEvent<"u"){I.onPointerDown=O=>{if(O.button!==0||!ze(O.currentTarget,xe(O.nativeEvent)))return;if(Ay(O.nativeEvent)){P.pointerType="virtual";return}P.pointerType=O.pointerType;let T=!0;if(!P.isPressed){P.isPressed=!0,P.isOverTarget=!0,P.activePointerId=O.pointerId,P.target=O.currentTarget,c||P5(P.target),T=w(O,P.pointerType);let A=xe(O.nativeEvent);"releasePointerCapture"in A&&A.releasePointerCapture(O.pointerId),b(se(O.currentTarget),"pointerup",F,!1),b(se(O.currentTarget),"pointercancel",j,!1)}T&&O.stopPropagation()},I.onMouseDown=O=>{if(ze(O.currentTarget,xe(O.nativeEvent))&&O.button===0){if(u){let T=E5(O.target);T&&P.disposables.push(T)}O.stopPropagation()}},I.onPointerUp=O=>{!ze(O.currentTarget,xe(O.nativeEvent))||P.pointerType==="virtual"||O.button===0&&!P.isPressed&&k(O,P.pointerType||O.pointerType)},I.onPointerEnter=O=>{O.pointerId===P.activePointerId&&P.target&&!P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!0,w(Mn(P.target,O),P.pointerType))},I.onPointerLeave=O=>{O.pointerId===P.activePointerId&&P.target&&P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!1,S(Mn(P.target,O),P.pointerType,!1),R(O))};let F=O=>{if(O.pointerId===P.activePointerId&&P.isPressed&&O.button===0&&P.target){if(ze(P.target,xe(O))&&P.pointerType!=null){let T=!1,A=setTimeout(()=>{P.isPressed&&P.target instanceof HTMLElement&&(T?E(O):(St(P.target),P.target.click()))},80);b(O.currentTarget,"click",()=>T=!0,!0),P.disposables.push(()=>clearTimeout(A))}else E(O);P.isOverTarget=!1}},j=O=>{E(O)};I.onDragStart=O=>{ze(O.currentTarget,xe(O.nativeEvent))&&E(O)}}return I},[b,s,u,x,c,E,R,S,w,k,M,_]);return d.useEffect(()=>{if(!p)return;const P=se(p.current);if(!P||!P.head||P.getElementById(Mc))return;const I=P.createElement("style");I.id=Mc,I.textContent=`
|
|
21
21
|
@layer {
|
|
22
|
-
[${
|
|
22
|
+
[${Oc}] {
|
|
23
23
|
touch-action: pan-x pan-y pinch-zoom;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`.trim(),P.head.prepend(L)},[p]),d.useEffect(()=>{let P=v.current;return()=>{var L;c||Ec((L=P.target)!==null&&L!==void 0?L:void 0);for(let N of P.disposables)N();P.disposables=[]}},[c]),{isPressed:l||g,pressProps:oe(f,D,{[kc]:!0})}}function su(e){return e.tagName==="A"&&e.hasAttribute("href")}function os(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&&!q0(o,n)||o instanceof ct(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&su(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}}function O5(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!su(e)}function Oc(e,t){return e instanceof HTMLInputElement?!q0(e,t):O5(e)}const T5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function q0(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":T5.has(e.type)}let Qr=null,ul=new Set,bo=new Map,Yn=!1,cl=!1;const D5={Tab:!0,Escape:!0};function lu(e,t){for(let n of ul)n(e,t)}function _5(e){return!(e.metaKey||!Wn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Xi(e){Yn=!0,_5(e)&&(Qr="keyboard",lu("keyboard",e))}function yr(e){Qr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Yn=!0,lu("pointer",e))}function W0(e){O0(e)&&(Yn=!0,Qr="virtual")}function G0(e){e.target===window||e.target===document||Yi||!e.isTrusted||(!Yn&&!cl&&(Qr="virtual",lu("virtual",e)),Yn=!1,cl=!1)}function Q0(){Yi||(Yn=!1,cl=!0)}function dl(e){if(typeof window>"u"||typeof document>"u"||bo.get(ct(e)))return;const t=ct(e),n=se(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Yn=!0,r.apply(this,arguments)},n.addEventListener("keydown",Xi,!0),n.addEventListener("keyup",Xi,!0),n.addEventListener("click",W0,!0),t.addEventListener("focus",G0,!0),t.addEventListener("blur",Q0,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",yr,!0),n.addEventListener("pointermove",yr,!0),n.addEventListener("pointerup",yr,!0)),t.addEventListener("beforeunload",()=>{Y0(e)},{once:!0}),bo.set(t,{focus:r})}const Y0=(e,t)=>{const n=ct(e),r=se(e);t&&r.removeEventListener("DOMContentLoaded",t),bo.has(n)&&(n.HTMLElement.prototype.focus=bo.get(n).focus,r.removeEventListener("keydown",Xi,!0),r.removeEventListener("keyup",Xi,!0),r.removeEventListener("click",W0,!0),n.removeEventListener("focus",G0,!0),n.removeEventListener("blur",Q0,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",yr,!0),r.removeEventListener("pointermove",yr,!0),r.removeEventListener("pointerup",yr,!0)),bo.delete(n))};function F5(e){const t=se(e);let n;return t.readyState!=="loading"?dl(e):(n=()=>{dl(e)},t.addEventListener("DOMContentLoaded",n)),()=>Y0(e,n)}typeof document<"u"&&F5();function Oo(){return Qr!=="pointer"}function To(){return Qr}const I5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function L5(e,t,n){let r=se(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&&!I5.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof s&&!D5[n.key])}function N5(e,t,n){dl(),d.useEffect(()=>{let r=(o,i)=>{L5(!!(n!=null&&n.isTextInput),o,i)&&e(Oo())};return ul.add(r),()=>{ul.delete(r)}},t)}function xn(e){const t=se(e),n=ke(t);if(To()==="virtual"){let r=n;P0(()=>{ke(t)===r&&e.isConnected&&St(e)})}else St(e)}function uu(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=z0(i),s=d.useCallback(l=>{const u=se(l.target),h=u?ke(u):ke();l.target===l.currentTarget&&h===xe(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 Tc(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 X0(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Tc(e.onKeyDown),onKeyUp:Tc(e.onKeyUp)}}}let Zi=d.createContext(null);function j5(e){let t=d.useContext(Zi)||{};nu(t,e);let{ref:n,...r}=t;return r}const A5=d.forwardRef(function(t,n){let{children:r,...o}=t,i=Gr(n),a={...o,ref:i};return d.createElement(Zi.Provider,{value:a},r)});function Z0(e,t){let{focusProps:n}=uu(e),{keyboardProps:r}=X0(e),o=oe(n,r),i=j5(t),a=e.isDisabled?{}:i,s=d.useRef(e.autoFocus);d.useEffect(()=>{s.current&&t.current&&xn(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:oe({...o,tabIndex:l},a)}}const J0=d.forwardRef(({children:e,...t},n)=>{let r=d.useRef(!1),o=d.useContext(ko);n=Gr(n||(o==null?void 0:o.ref));let i=oe(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return nu(o,n),d.useEffect(()=>{r.current||(r.current=!0)},[]),d.createElement(ko.Provider,{value:i},e)});function K5({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(ko.Provider,{value:t},e)}function cu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=d.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=Oa(),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=z0(l),h=d.useCallback(c=>{if(!c.currentTarget.contains(c.target))return;const p=se(c.target),f=ke(p);if(!i.current.isFocusWithin&&f===xe(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&&!ze(g,m.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:m.target});V0(v,g);let b=au(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 fl=!1,vi=0;function B5(){fl=!0,setTimeout(()=>{fl=!1},50)}function Dc(e){e.pointerType==="touch"&&B5()}function H5(){if(!(typeof document>"u"))return vi===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Dc),vi++,()=>{vi--,!(vi>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Dc)}}function Yr(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(H5,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=Oa(),{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(se(m.target),"pointerover",x=>{s.isHovered&&s.target&&!ze(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=>{fl&&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 V5(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Ae(l=>{n&&_c(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Ae(l=>{n&&n(l)});d.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,h=se(u);if(typeof PointerEvent<"u"){let c=p=>{l.isPointerDown&&_c(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,a,s])}function _c(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 z5=500;function eh(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=z5,accessibilityDescription:a}=e;const s=d.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=Oa(),{pressProps:h}=_a({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})),se(p.target).activeElement!==p.target&&St(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=Ny(o&&!t?a:void 0);return{longPressProps:oe(h,c)}}const Fc=d.createContext(null),hl="react-aria-focus-scope-restore";let he=null;function th(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(Fc)||{},u=d.useMemo(()=>new gl({scopeRef:s}),[s]);ce(()=>{let p=l||Ce.root;if(Ce.getTreeNode(p.scopeRef)&&he&&!Ji(he,p.scopeRef)){let f=Ce.getTreeNode(he);f&&(p=f)}p.addChild(u),Ce.addNode(u)},[u,l]),ce(()=>{let p=Ce.getTreeNode(s);p&&(p.contain=!!n)},[n]),ce(()=>{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(hl,m),f=f.nextSibling;return s.current=g,()=>{for(let v of g)v.removeEventListener(hl,m)}},[t]),Y5(s,r,n),W5(s,n),X5(s,r,n),Q5(s,o),d.useEffect(()=>{const p=ke(se(s.current?s.current[0]:void 0));let f=null;if(dt(p,s.current)){for(let g of Ce.traverse())g.scopeRef&&dt(p,g.scopeRef.current)&&(f=g);f===Ce.getTreeNode(s)&&(he=f.scopeRef)}},[s]),ce(()=>()=>{var p,f,g;let m=(g=(f=Ce.getTreeNode(s))===null||f===void 0||(p=f.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&g!==void 0?g:null;(s===he||Ji(s,he))&&(!m||Ce.getTreeNode(m))&&(he=m),Ce.removeTreeNode(s)},[s]);let h=d.useMemo(()=>U5(s),[]),c=d.useMemo(()=>({focusManager:h,parentNode:u}),[u,h]);return d.createElement(Fc.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 U5(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||ke(se((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[0].previousElementSibling,h=In(n),c=nt(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&&We(p,!0),p},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||ke(se((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[n.length-1].nextElementSibling,h=In(n),c=nt(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&&We(p,!0),p},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=In(n),a=nt(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&We(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=In(n),a=nt(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&We(s,!0),s}}}function In(e){return e[0].parentElement}function po(e){let t=Ce.getTreeNode(he);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function q5(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...se(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 W5(e,t){let n=d.useRef(void 0),r=d.useRef(void 0);ce(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=se(o?o[0]:void 0);let a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!po(e)||u.isComposing)return;let h=ke(i),c=e.current;if(!c||!dt(h,c))return;let p=In(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&&We(g,!0)},s=u=>{(!he||Ji(he,e))&&dt(xe(u),e.current)?(he=e,n.current=xe(u)):po(e)&&!hn(xe(u),e)?n.current?n.current.focus():he&&he.current&&pl(he.current):po(e)&&(n.current=xe(u))},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=To(),c=(h==="virtual"||h===null)&&tu()&&eu(),p=ke(i);if(!c&&p&&po(e)&&!hn(p,e)){he=e;let g=xe(u);if(g&&g.isConnected){var f;n.current=g,(f=n.current)===null||f===void 0||f.focus()}else he.current&&pl(he.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]),ce(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function nh(e){return hn(e)}function dt(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function hn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ce.traverse(Ce.getTreeNode(t)))if(n&&dt(e,n.current))return!0;return!1}function G5(e){return hn(e,he)}function Ji(e,t){var n;let r=(n=Ce.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function We(e,t=!1){if(e!=null&&!t)try{xn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function rh(e,t=!0){let n=e[0].previousElementSibling,r=In(e),o=nt(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=In(e),o=nt(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function pl(e,t=!0){We(rh(e,t))}function Q5(e,t){const n=d.useRef(t);d.useEffect(()=>{if(n.current){he=e;const r=se(e.current?e.current[0]:void 0);!dt(ke(r),he.current)&&e.current&&pl(e.current)}n.current=!1},[e])}function Y5(e,t,n){ce(()=>{if(t||n)return;let r=e.current;const o=se(r?r[0]:void 0);let i=a=>{let s=xe(a);dt(s,e.current)?he=e:nh(s)||(he=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 Ic(e){let t=Ce.getTreeNode(he);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function X5(e,t,n){const r=d.useRef(typeof document<"u"?ke(se(e.current?e.current[0]:void 0)):null);ce(()=>{let o=e.current;const i=se(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!he||Ji(he,e))&&dt(ke(i),e.current)&&(he=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]),ce(()=>{const o=se(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!po(e)||a.isComposing)return;let s=o.activeElement;if(!hn(s,e)||!Ic(e))return;let l=Ce.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||!hn(c,e))&&u){h.currentNode=u;do c=a.shiftKey?h.previousNode():h.nextNode();while(hn(c,e));a.preventDefault(),a.stopPropagation(),c?We(c,!0):nh(u)?We(u,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),ce(()=>{const o=se(e.current?e.current[0]:void 0);if(!t)return;let i=Ce.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=Ce.getTreeNode(e);if(!s)return;let l=s.nodeToRestore,u=ke(o);if(t&&l&&(u&&hn(u,e)||u===o.body&&Ic(e))){let h=Ce.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=h.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Lc(c.nodeToRestore);return}c=c.parent}for(c=h.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ce.getTreeNode(c.scopeRef)){let p=rh(c.scopeRef.current,!0);Lc(p);return}c=c.parent}}})}}}},[e,t])}function Lc(e){e.dispatchEvent(new CustomEvent(hl,{bubbles:!0,cancelable:!0}))&&We(e)}function nt(e,t,n){let r=t!=null&&t.tabbable?qy:D0,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=se(o),a=hy(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"&&(!q5(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 Z5(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||ke(se(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&&We(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||ke(se(r)),u=nt(r,{tabbable:i,accept:s});if(r.contains(l))u.currentNode=l;else{let c=is(u);return c&&We(c,!0),c??null}let h=u.previousNode();if(!h&&a){u.currentNode=r;let c=is(u);if(!c)return null;h=c}return h&&We(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&&We(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=is(a);return s&&We(s,!0),s??null}}}function is(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class du{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 gl({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 du;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 gl({scopeRef:null}),this.fastMap.set(null,this.root)}}class gl{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 Ce=new du;function oh(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||Oo()}),[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]);N5(f=>{o.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:c}=uu({isDisabled:r,onFocusChange:h}),{focusWithinProps:p}=cu({isDisabled:!r,onFocusWithinChange:h});return{isFocused:i,isFocusVisible:s,focusProps:r?p:c}}function ih(e){let t=e9(se(e));t!==e&&(t&&J5(t,e),e&&ah(e,t))}function J5(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function ah(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function e9(e){let t=ke(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const Mt=[];function sh(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;d.useEffect(()=>{if(o&&!Mt.includes(t))return Mt.push(t),()=>{let g=Mt.indexOf(t);g>=0&&Mt.splice(g,1)}},[o,t]);let l=()=>{Mt[Mt.length-1]===t&&n&&n()},u=g=>{(!s||s(g.target))&&Mt[Mt.length-1]===t&&(g.stopPropagation(),g.preventDefault())},h=g=>{(!s||s(g.target))&&(Mt[Mt.length-1]===t&&(g.stopPropagation(),g.preventDefault()),l())},c=g=>{g.key==="Escape"&&!a&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),l())};V5({ref:t,onInteractOutside:i&&o?h:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=cu({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||G5(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 lh(e,t,n){let{type:r}=e,{isOpen:o}=t;d.useEffect(()=>{n&&n.current&&j0.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 yo=typeof document<"u"&&window.visualViewport;let bi=0,as;function uh(e={}){let{isDisabled:t}=e;ce(()=>{if(!t)return bi++,bi===1&&(Ma()?as=n9():as=t9()),()=>{bi--,bi===0&&as()}},[t])}function t9(){let e=window.innerWidth-document.documentElement.clientWidth;return Wr(e>0&&("scrollbarGutter"in document.documentElement.style?ss(document.documentElement,"scrollbarGutter","stable"):ss(document.documentElement,"paddingRight",`${e}px`)),ss(document.documentElement,"overflow","hidden"))}function n9(){let e,t=!1,n=l=>{let u=l.target;e=Qn(u)?u:M0(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(),P.head.prepend(I)},[p]),d.useEffect(()=>{let P=v.current;return()=>{var I;c||Pc((I=P.target)!==null&&I!==void 0?I:void 0);for(let N of P.disposables)N();P.disposables=[]}},[c]),{isPressed:l||g,pressProps:oe(f,D,{[Oc]:!0})}}function su(e){return e.tagName==="A"&&e.hasAttribute("href")}function os(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&&!W0(o,n)||o instanceof dt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&su(o))&&n!=="Enter")}function Mn(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 T5(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!su(e)}function Tc(e,t){return e instanceof HTMLInputElement?!W0(e,t):T5(e)}const D5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function W0(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":D5.has(e.type)}let Yr=null,ul=new Set,yo=new Map,Yn=!1,cl=!1;const _5={Tab:!0,Escape:!0};function lu(e,t){for(let n of ul)n(e,t)}function F5(e){return!(e.metaKey||!Wn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Xi(e){Yn=!0,F5(e)&&(Yr="keyboard",lu("keyboard",e))}function yr(e){Yr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Yn=!0,lu("pointer",e))}function G0(e){T0(e)&&(Yn=!0,Yr="virtual")}function Q0(e){e.target===window||e.target===document||Yi||!e.isTrusted||(!Yn&&!cl&&(Yr="virtual",lu("virtual",e)),Yn=!1,cl=!1)}function Y0(){Yi||(Yn=!1,cl=!0)}function dl(e){if(typeof window>"u"||typeof document>"u"||yo.get(dt(e)))return;const t=dt(e),n=se(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Yn=!0,r.apply(this,arguments)},n.addEventListener("keydown",Xi,!0),n.addEventListener("keyup",Xi,!0),n.addEventListener("click",G0,!0),t.addEventListener("focus",Q0,!0),t.addEventListener("blur",Y0,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",yr,!0),n.addEventListener("pointermove",yr,!0),n.addEventListener("pointerup",yr,!0)),t.addEventListener("beforeunload",()=>{X0(e)},{once:!0}),yo.set(t,{focus:r})}const X0=(e,t)=>{const n=dt(e),r=se(e);t&&r.removeEventListener("DOMContentLoaded",t),yo.has(n)&&(n.HTMLElement.prototype.focus=yo.get(n).focus,r.removeEventListener("keydown",Xi,!0),r.removeEventListener("keyup",Xi,!0),r.removeEventListener("click",G0,!0),n.removeEventListener("focus",Q0,!0),n.removeEventListener("blur",Y0,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",yr,!0),r.removeEventListener("pointermove",yr,!0),r.removeEventListener("pointerup",yr,!0)),yo.delete(n))};function L5(e){const t=se(e);let n;return t.readyState!=="loading"?dl(e):(n=()=>{dl(e)},t.addEventListener("DOMContentLoaded",n)),()=>X0(e,n)}typeof document<"u"&&L5();function Oo(){return Yr!=="pointer"}function To(){return Yr}const I5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function N5(e,t,n){let r=se(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&&!I5.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof s&&!_5[n.key])}function j5(e,t,n){dl(),d.useEffect(()=>{let r=(o,i)=>{N5(!!(n!=null&&n.isTextInput),o,i)&&e(Oo())};return ul.add(r),()=>{ul.delete(r)}},t)}function xn(e){const t=se(e),n=Me(t);if(To()==="virtual"){let r=n;R0(()=>{Me(t)===r&&e.isConnected&&St(e)})}else St(e)}function uu(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=U0(i),s=d.useCallback(l=>{const u=se(l.target),h=u?Me(u):Me();l.target===l.currentTarget&&h===xe(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 Dc(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 Z0(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Dc(e.onKeyDown),onKeyUp:Dc(e.onKeyUp)}}}let Zi=d.createContext(null);function A5(e){let t=d.useContext(Zi)||{};nu(t,e);let{ref:n,...r}=t;return r}const K5=d.forwardRef(function(t,n){let{children:r,...o}=t,i=Qr(n),a={...o,ref:i};return d.createElement(Zi.Provider,{value:a},r)});function J0(e,t){let{focusProps:n}=uu(e),{keyboardProps:r}=Z0(e),o=oe(n,r),i=A5(t),a=e.isDisabled?{}:i,s=d.useRef(e.autoFocus);d.useEffect(()=>{s.current&&t.current&&xn(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:oe({...o,tabIndex:l},a)}}const eh=d.forwardRef(({children:e,...t},n)=>{let r=d.useRef(!1),o=d.useContext(Mo);n=Qr(n||(o==null?void 0:o.ref));let i=oe(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return nu(o,n),d.useEffect(()=>{r.current||(r.current=!0)},[]),d.createElement(Mo.Provider,{value:i},e)});function B5({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return d.createElement(Mo.Provider,{value:t},e)}function cu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=d.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=Oa(),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=U0(l),h=d.useCallback(c=>{if(!c.currentTarget.contains(c.target))return;const p=se(c.target),f=Me(p);if(!i.current.isFocusWithin&&f===xe(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&&!ze(g,m.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:m.target});z0(v,g);let b=au(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 fl=!1,vi=0;function H5(){fl=!0,setTimeout(()=>{fl=!1},50)}function _c(e){e.pointerType==="touch"&&H5()}function V5(){if(!(typeof document>"u"))return vi===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",_c),vi++,()=>{vi--,!(vi>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",_c)}}function Xr(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(V5,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=Oa(),{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(se(m.target),"pointerover",x=>{s.isHovered&&s.target&&!ze(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=>{fl&&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 z5(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Ae(l=>{n&&Fc(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Ae(l=>{n&&n(l)});d.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,h=se(u);if(typeof PointerEvent<"u"){let c=p=>{l.isPointerDown&&Fc(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,a,s])}function Fc(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 U5=500;function th(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=U5,accessibilityDescription:a}=e;const s=d.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=Oa(),{pressProps:h}=_a({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})),se(p.target).activeElement!==p.target&&St(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=jy(o&&!t?a:void 0);return{longPressProps:oe(h,c)}}const Lc=d.createContext(null),hl="react-aria-focus-scope-restore";let he=null;function nh(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(Lc)||{},u=d.useMemo(()=>new gl({scopeRef:s}),[s]);ce(()=>{let p=l||Ce.root;if(Ce.getTreeNode(p.scopeRef)&&he&&!Ji(he,p.scopeRef)){let f=Ce.getTreeNode(he);f&&(p=f)}p.addChild(u),Ce.addNode(u)},[u,l]),ce(()=>{let p=Ce.getTreeNode(s);p&&(p.contain=!!n)},[n]),ce(()=>{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(hl,m),f=f.nextSibling;return s.current=g,()=>{for(let v of g)v.removeEventListener(hl,m)}},[t]),X5(s,r,n),G5(s,n),Z5(s,r,n),Y5(s,o),d.useEffect(()=>{const p=Me(se(s.current?s.current[0]:void 0));let f=null;if(ft(p,s.current)){for(let g of Ce.traverse())g.scopeRef&&ft(p,g.scopeRef.current)&&(f=g);f===Ce.getTreeNode(s)&&(he=f.scopeRef)}},[s]),ce(()=>()=>{var p,f,g;let m=(g=(f=Ce.getTreeNode(s))===null||f===void 0||(p=f.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&g!==void 0?g:null;(s===he||Ji(s,he))&&(!m||Ce.getTreeNode(m))&&(he=m),Ce.removeTreeNode(s)},[s]);let h=d.useMemo(()=>q5(s),[]),c=d.useMemo(()=>({focusManager:h,parentNode:u}),[u,h]);return d.createElement(Lc.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 q5(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||Me(se((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[0].previousElementSibling,h=Ln(n),c=rt(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(se((s=n[0])!==null&&s!==void 0?s:void 0)),u=n[n.length-1].nextElementSibling,h=Ln(n),c=rt(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=Ln(n),a=rt(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=Ln(n),a=rt(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&Ge(s,!0),s}}}function Ln(e){return e[0].parentElement}function go(e){let t=Ce.getTreeNode(he);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function W5(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...se(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 G5(e,t){let n=d.useRef(void 0),r=d.useRef(void 0);ce(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=se(o?o[0]:void 0);let a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!go(e)||u.isComposing)return;let h=Me(i),c=e.current;if(!c||!ft(h,c))return;let p=Ln(c),f=rt(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=>{(!he||Ji(he,e))&&ft(xe(u),e.current)?(he=e,n.current=xe(u)):go(e)&&!hn(xe(u),e)?n.current?n.current.focus():he&&he.current&&pl(he.current):go(e)&&(n.current=xe(u))},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=To(),c=(h==="virtual"||h===null)&&tu()&&eu(),p=Me(i);if(!c&&p&&go(e)&&!hn(p,e)){he=e;let g=xe(u);if(g&&g.isConnected){var f;n.current=g,(f=n.current)===null||f===void 0||f.focus()}else he.current&&pl(he.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]),ce(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function rh(e){return hn(e)}function ft(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function hn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ce.traverse(Ce.getTreeNode(t)))if(n&&ft(e,n.current))return!0;return!1}function Q5(e){return hn(e,he)}function Ji(e,t){var n;let r=(n=Ce.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{xn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function oh(e,t=!0){let n=e[0].previousElementSibling,r=Ln(e),o=rt(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=Ln(e),o=rt(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function pl(e,t=!0){Ge(oh(e,t))}function Y5(e,t){const n=d.useRef(t);d.useEffect(()=>{if(n.current){he=e;const r=se(e.current?e.current[0]:void 0);!ft(Me(r),he.current)&&e.current&&pl(e.current)}n.current=!1},[e])}function X5(e,t,n){ce(()=>{if(t||n)return;let r=e.current;const o=se(r?r[0]:void 0);let i=a=>{let s=xe(a);ft(s,e.current)?he=e:rh(s)||(he=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 Ic(e){let t=Ce.getTreeNode(he);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Z5(e,t,n){const r=d.useRef(typeof document<"u"?Me(se(e.current?e.current[0]:void 0)):null);ce(()=>{let o=e.current;const i=se(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!he||Ji(he,e))&&ft(Me(i),e.current)&&(he=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]),ce(()=>{const o=se(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!go(e)||a.isComposing)return;let s=o.activeElement;if(!hn(s,e)||!Ic(e))return;let l=Ce.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,h=rt(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||!hn(c,e))&&u){h.currentNode=u;do c=a.shiftKey?h.previousNode():h.nextNode();while(hn(c,e));a.preventDefault(),a.stopPropagation(),c?Ge(c,!0):rh(u)?Ge(u,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),ce(()=>{const o=se(e.current?e.current[0]:void 0);if(!t)return;let i=Ce.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=Ce.getTreeNode(e);if(!s)return;let l=s.nodeToRestore,u=Me(o);if(t&&l&&(u&&hn(u,e)||u===o.body&&Ic(e))){let h=Ce.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=h.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Nc(c.nodeToRestore);return}c=c.parent}for(c=h.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ce.getTreeNode(c.scopeRef)){let p=oh(c.scopeRef.current,!0);Nc(p);return}c=c.parent}}})}}}},[e,t])}function Nc(e){e.dispatchEvent(new CustomEvent(hl,{bubbles:!0,cancelable:!0}))&&Ge(e)}function rt(e,t,n){let r=t!=null&&t.tabbable?Wy:_0,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=se(o),a=py(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"&&(!W5(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 J5(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(se(r)),u=rt(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(se(r)),u=rt(r,{tabbable:i,accept:s});if(r.contains(l))u.currentNode=l;else{let c=is(u);return c&&Ge(c,!0),c??null}let h=u.previousNode();if(!h&&a){u.currentNode=r;let c=is(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=rt(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=rt(r,{tabbable:o,accept:i}),s=is(a);return s&&Ge(s,!0),s??null}}}function is(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class du{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 gl({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 du;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 gl({scopeRef:null}),this.fastMap.set(null,this.root)}}class gl{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 Ce=new du;function ih(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||Oo()}),[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]);j5(f=>{o.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:c}=uu({isDisabled:r,onFocusChange:h}),{focusWithinProps:p}=cu({isDisabled:!r,onFocusWithinChange:h});return{isFocused:i,isFocusVisible:s,focusProps:r?p:c}}function ah(e){let t=t9(se(e));t!==e&&(t&&e9(t,e),e&&sh(e,t))}function e9(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function sh(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function t9(e){let t=Me(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const kt=[];function lh(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;d.useEffect(()=>{if(o&&!kt.includes(t))return kt.push(t),()=>{let g=kt.indexOf(t);g>=0&&kt.splice(g,1)}},[o,t]);let l=()=>{kt[kt.length-1]===t&&n&&n()},u=g=>{(!s||s(g.target))&&kt[kt.length-1]===t&&(g.stopPropagation(),g.preventDefault())},h=g=>{(!s||s(g.target))&&(kt[kt.length-1]===t&&(g.stopPropagation(),g.preventDefault()),l())},c=g=>{g.key==="Escape"&&!a&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),l())};z5({ref:t,onInteractOutside:i&&o?h:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=cu({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||Q5(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 uh(e,t,n){let{type:r}=e,{isOpen:o}=t;d.useEffect(()=>{n&&n.current&&A0.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=it();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const xo=typeof document<"u"&&window.visualViewport;let bi=0,as;function ch(e={}){let{isDisabled:t}=e;ce(()=>{if(!t)return bi++,bi===1&&(ka()?as=r9():as=n9()),()=>{bi--,bi===0&&as()}},[t])}function n9(){let e=window.innerWidth-document.documentElement.clientWidth;return Gr(e>0&&("scrollbarGutter"in document.documentElement.style?ss(document.documentElement,"scrollbarGutter","stable"):ss(document.documentElement,"paddingRight",`${e}px`)),ss(document.documentElement,"overflow","hidden"))}function r9(){let e,t=!1,n=l=>{let u=l.target;e=Qn(u)?u:M0(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=`
|
|
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&&vo(h))h.focus({preventScroll:!0}),Nc(h,vo(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&&vo(document.activeElement);a.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&Nc(this,u)};let s=Wr(ls(document,"touchstart",n,{passive:!1,capture:!0}),ls(document,"touchmove",o,{passive:!1,capture:!0}),ls(document,"blur",i,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=a}}function ss(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function ls(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Nc(e,t){t||!yo?jc(e):yo.addEventListener("resize",()=>jc(e),{once:!0})}function jc(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=M0(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;yo&&(a=Math.min(a,yo.offsetTop+yo.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 r9=d.createContext({});function ch(){var e;return(e=d.useContext(r9))!==null&&e!==void 0?e:{}}const ml=d.createContext(null);function o9(e){let{children:t}=e,n=d.useContext(ml),[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(ml.Provider,{value:i},t)}function i9(){let e=d.useContext(ml);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function a9(e){let{modalProviderProps:t}=i9();return d.createElement("div",{"data-overlay-container":!0,...e,...t})}function s9(e){return d.createElement(o9,null,d.createElement(a9,e))}function l9(e){let t=En(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:o}=ch();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(s9,r);return Vr.createPortal(i,n)}var dh={};dh={dismiss:"تجاهل"};var fh={};fh={dismiss:"Отхвърляне"};var hh={};hh={dismiss:"Odstranit"};var ph={};ph={dismiss:"Luk"};var gh={};gh={dismiss:"Schließen"};var mh={};mh={dismiss:"Απόρριψη"};var vh={};vh={dismiss:"Dismiss"};var bh={};bh={dismiss:"Descartar"};var yh={};yh={dismiss:"Lõpeta"};var xh={};xh={dismiss:"Hylkää"};var wh={};wh={dismiss:"Rejeter"};var Ch={};Ch={dismiss:"התעלם"};var Sh={};Sh={dismiss:"Odbaci"};var $h={};$h={dismiss:"Elutasítás"};var Eh={};Eh={dismiss:"Ignora"};var Ph={};Ph={dismiss:"閉じる"};var Rh={};Rh={dismiss:"무시"};var Mh={};Mh={dismiss:"Atmesti"};var kh={};kh={dismiss:"Nerādīt"};var Oh={};Oh={dismiss:"Lukk"};var Th={};Th={dismiss:"Negeren"};var Dh={};Dh={dismiss:"Zignoruj"};var _h={};_h={dismiss:"Descartar"};var Fh={};Fh={dismiss:"Dispensar"};var Ih={};Ih={dismiss:"Revocare"};var Lh={};Lh={dismiss:"Пропустить"};var Nh={};Nh={dismiss:"Zrušiť"};var jh={};jh={dismiss:"Opusti"};var Ah={};Ah={dismiss:"Odbaci"};var Kh={};Kh={dismiss:"Avvisa"};var Bh={};Bh={dismiss:"Kapat"};var Hh={};Hh={dismiss:"Скасувати"};var Vh={};Vh={dismiss:"取消"};var zh={};zh={dismiss:"關閉"};var Uh={};Uh={"ar-AE":dh,"bg-BG":fh,"cs-CZ":hh,"da-DK":ph,"de-DE":gh,"el-GR":mh,"en-US":vh,"es-ES":bh,"et-EE":yh,"fi-FI":xh,"fr-FR":wh,"he-IL":Ch,"hr-HR":Sh,"hu-HU":$h,"it-IT":Eh,"ja-JP":Ph,"ko-KR":Rh,"lt-LT":Mh,"lv-LV":kh,"nb-NO":Oh,"nl-NL":Th,"pl-PL":Dh,"pt-BR":_h,"pt-PT":Fh,"ro-RO":Ih,"ru-RU":Lh,"sk-SK":Nh,"sl-SI":jh,"sr-SP":Ah,"sv-SE":Kh,"tr-TR":Bh,"uk-UA":Hh,"zh-CN":Vh,"zh-TW":zh};const Ac={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 u9(e={}){let{style:t,isFocusable:n}=e,[r,o]=d.useState(!1),{focusWithinProps:i}=cu({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=d.useMemo(()=>r?t:t?{...Ac,...t}:Ac,[r]);return{visuallyHiddenProps:{...i,style:a}}}function c9(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=u9(e);return d.createElement(n,oe(i,a),t)}function d9(e){return e&&e.__esModule?e.default:e}function vl(e){let{onDismiss:t,...n}=e,r=K0(d9(Uh),"@react-aria/overlays"),o=R0(n,r.format("dismiss")),i=()=>{t&&t()};return d.createElement(c9,null,d.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const f9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let no=new WeakMap,Be=[];function qh(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)&&f9,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 E of s)if(w.contains(E))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=no.get(m))!==null&&v!==void 0?v:0;u(m)&&b===0||(b===0&&h(m,!0),l.add(m),no.set(m,b+1))};Be.length&&Be[Be.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 Be.push(g),()=>{f.disconnect();for(let m of l){let v=no.get(m);v!=null&&(v===1?(h(m,!1),no.delete(m)):no.set(m,v-1))}g===Be[Be.length-1]?(Be.pop(),Be.length&&Be[Be.length-1].observe()):Be.splice(Be.indexOf(g),1)}}function h9(e){let t=Be[Be.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function p9(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}=sh({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}=H0({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i&&!u?t.close:null});return uh({isDisabled:i||!t.isOpen}),d.useEffect(()=>{if(t.isOpen&&r.current){var v,b;return i?h9((v=o==null?void 0:o.current)!==null&&v!==void 0?v:r.current):qh([(b=o==null?void 0:o.current)!==null&&b!==void 0?b:r.current],{shouldUseInert:!0})}},[i,t.isOpen,r,o]),{popoverProps:oe(h,p),arrowProps:f,underlayProps:c,placement:g,triggerAnchorPoint:m}}const Wh=d.createContext(null);function bl(e){let t=En(),{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}=ch();if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=d.createElement(th,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!r},l)),l=d.createElement(Wh.Provider,{value:a},d.createElement(K5,null,l)),Vr.createPortal(l,n)}function Gh(){let e=d.useContext(Wh),t=e==null?void 0:e.setContain;ce(()=>{t==null||t(!0)},[t])}function g9(e,t,n){let{overlayProps:r,underlayProps:o}=sh({...e,isOpen:t.isOpen,onClose:t.close},n);return uh({isDisabled:!t.isOpen}),Gh(),d.useEffect(()=>{if(t.isOpen&&n.current)return qh([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:oe(r),underlayProps:o}}function m9(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=R0({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function yl(e){return Sy()?e.altKey:e.ctrlKey}function ji(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 Qh=new WeakMap;function v9(e){let t=ot();return Qh.set(e,t),t}function b9(e){return Qh.get(e)}const y9=1e3;function x9(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=d.useRef({search:"",timeout:void 0}).current,i=a=>{let s=w9(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=""},y9)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function w9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function C9(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}=er(),b=ka(),x=T=>{var A;if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!(!((A=r.current)===null||A===void 0)&&A.contains(T.target)))return;const K=(Y,pt)=>{if(Y!=null){if(t.isLink(Y)&&m==="selection"&&u&&!yl(T)){Vr.flushSync(()=>{t.setFocusedKey(Y,pt)});let Ge=ji(r,Y),Rn=t.getItemProps(Y);Ge&&b.open(Ge,T,Rn.href,Rn.routerOptions);return}if(t.setFocusedKey(Y,pt),t.isLink(Y)&&m==="override")return;T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&!yl(T)&&t.replaceSelection(Y)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var I,H,z;let Y=t.focusedKey!=null?(I=n.getKeyBelow)===null||I===void 0?void 0:I.call(n,t.focusedKey):(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n);Y==null&&i&&(Y=(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y))}break;case"ArrowUp":if(n.getKeyAbove){var V,W,q;let Y=t.focusedKey!=null?(V=n.getKeyAbove)===null||V===void 0?void 0:V.call(n,t.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n);Y==null&&i&&(Y=(q=n.getLastKey)===null||q===void 0?void 0:q.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ne,pe,ee;let Y=t.focusedKey!=null?(ne=n.getKeyLeftOf)===null||ne===void 0?void 0:ne.call(n,t.focusedKey):null;Y==null&&i&&(Y=v==="rtl"?(pe=n.getFirstKey)===null||pe===void 0?void 0:pe.call(n,t.focusedKey):(ee=n.getLastKey)===null||ee===void 0?void 0:ee.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Ke,Et,Pt;let Y=t.focusedKey!=null?(Ke=n.getKeyRightOf)===null||Ke===void 0?void 0:Ke.call(n,t.focusedKey):null;Y==null&&i&&(Y=v==="rtl"?(Et=n.getLastKey)===null||Et===void 0?void 0:Et.call(n,t.focusedKey):(Pt=n.getFirstKey)===null||Pt===void 0?void 0:Pt.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y,v==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&T.shiftKey)return;T.preventDefault();let Y=n.getFirstKey(t.focusedKey,cr(T));t.setFocusedKey(Y),Y!=null&&(cr(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&T.shiftKey)return;T.preventDefault();let Y=n.getLastKey(t.focusedKey,cr(T));t.setFocusedKey(Y),Y!=null&&(cr(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Y=n.getKeyPageBelow(t.focusedKey);Y!=null&&(T.preventDefault(),K(Y))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Y=n.getKeyPageAbove(t.focusedKey);Y!=null&&(T.preventDefault(),K(Y))}break;case"a":cr(T)&&t.selectionMode==="multiple"&&s!==!0&&(T.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(T.stopPropagation(),T.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(T.shiftKey)r.current.focus();else{let Y=nt(r.current,{tabbable:!0}),pt,Ge;do Ge=Y.lastChild(),Ge&&(pt=Ge);while(Ge);pt&&!pt.contains(document.activeElement)&&St(pt)}break}}},w=d.useRef({top:0,left:0});hi(g,"scroll",f?void 0:()=>{var T,A,K,I;w.current={top:(K=(T=g.current)===null||T===void 0?void 0:T.scrollTop)!==null&&K!==void 0?K:0,left:(I=(A=g.current)===null||A===void 0?void 0:A.scrollLeft)!==null&&I!==void 0?I:0}});let E=T=>{if(t.isFocused){T.currentTarget.contains(T.target)||t.setFocused(!1);return}if(T.currentTarget.contains(T.target)){if(t.setFocused(!0),t.focusedKey==null){var A,K;let z=W=>{W!=null&&(t.setFocusedKey(W),u&&!t.isSelected(W)&&t.replaceSelection(W))},V=T.relatedTarget;var I,H;V&&T.currentTarget.compareDocumentPosition(V)&Node.DOCUMENT_POSITION_FOLLOWING?z((I=t.lastSelectedKey)!==null&&I!==void 0?I:(A=n.getLastKey)===null||A===void 0?void 0:A.call(n)):z((H=t.firstSelectedKey)!==null&&H!==void 0?H:(K=n.getFirstKey)===null||K===void 0?void 0:K.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 z=ji(r,t.focusedKey);z instanceof HTMLElement&&(!z.contains(document.activeElement)&&!c&&St(z),To()==="keyboard"&&hc(z,{containingElement:r.current}))}}},k=T=>{T.currentTarget.contains(T.relatedTarget)||t.setFocused(!1)},$=d.useRef(!1);hi(r,Ky,c?T=>{let{detail:A}=T;T.stopPropagation(),t.setFocused(!0),(A==null?void 0:A.focusStrategy)==="first"&&($.current=!0)}:void 0);let R=Ae(()=>{var T,A;let K=(A=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&A!==void 0?A:null;if(K==null){let I=ke();ih(r.current),ah(I,null),t.collection.size>0&&($.current=!1)}else t.setFocusedKey(K),$.current=!1});cc(()=>{$.current&&R()},[t.collection,R]);let M=Ae(()=>{t.collection.size>0&&($.current=!1)});cc(()=>{M()},[t.focusedKey,M]),hi(r,Ay,c?T=>{var A;T.stopPropagation(),t.setFocused(!1),!((A=T.detail)===null||A===void 0)&&A.clearFocusKey&&t.setFocusedKey(null)}:void 0);const _=d.useRef(o),D=d.useRef(!1);d.useEffect(()=>{if(_.current){var T,A;let H=null;var K;o==="first"&&(H=(K=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&K!==void 0?K:null);var I;o==="last"&&(H=(I=(A=n.getLastKey)===null||A===void 0?void 0:A.call(n))!==null&&I!==void 0?I:null);let z=t.selectedKeys;if(z.size){for(let V of z)if(t.canSelectItem(V)){H=V;break}}t.setFocused(!0),t.setFocusedKey(H),H==null&&!c&&r.current&&xn(r.current),t.collection.size>0&&(_.current=!1,D.current=!0)}});let P=d.useRef(t.focusedKey),L=d.useRef(null);d.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==P.current||D.current)&&g.current&&r.current){let T=To(),A=ji(r,t.focusedKey);if(!(A instanceof HTMLElement))return;(T==="keyboard"||D.current)&&(L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(()=>{g.current&&(k0(g.current,A),T!=="virtual"&&hc(A,{containingElement:r.current}))}))}!c&&t.isFocused&&t.focusedKey==null&&P.current!=null&&r.current&&xn(r.current),P.current=t.focusedKey,D.current=!1}),d.useEffect(()=>()=>{L.current&&cancelAnimationFrame(L.current)},[]),hi(r,"react-aria-focus-scope-restore",T=>{T.preventDefault(),t.setFocused(!0)});let N={onKeyDown:x,onFocus:E,onBlur:k,onMouseDown(T){g.current===T.target&&T.preventDefault()}},{typeSelectProps:F}=x9({keyboardDelegate:n,selectionManager:t});h||(N=oe(F,N));let j;c||(j=t.focusedKey==null?0:-1);let O=v9(t.collection);return{collectionProps:oe(N,{tabIndex:j,"data-collection":O})}}function S9(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=ka();t=ot(t);let f=I=>{if(I.pointerType==="keyboard"&&yl(I))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(c==="selection"&&o.current){let H=n.getItemProps(r);p.open(o.current,I,H.href,H.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):I&&I.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||I&&(cr(I)||I.pointerType==="touch"||I.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};d.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(a?ih(o.current):s?s():document.activeElement!==o.current&&o.current&&xn(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(I){I.target===o.current&&n.setFocusedKey(r)}}:l&&(g.onMouseDown=I=>{I.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,E=w&&(n.selectionBehavior==="replace"?!x:!x||n.isEmpty),k=w&&x&&n.selectionBehavior==="replace",$=E||k,R=d.useRef(null),M=$&&x,_=d.useRef(!1),D=d.useRef(!1),P=n.getItemProps(r),L=I=>{if(u){var H;u(),(H=o.current)===null||H===void 0||H.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&p.open(o.current,I,P.href,P.routerOptions)},N={ref:o};if(i?(N.onPressStart=I=>{R.current=I.pointerType,_.current=M,I.pointerType==="keyboard"&&(!$||Bc())&&f(I)},h?(N.onPressUp=E?void 0:I=>{I.pointerType==="mouse"&&x&&f(I)},N.onPress=E?L:I=>{I.pointerType!=="keyboard"&&I.pointerType!=="mouse"&&x&&f(I)}):N.onPress=I=>{if(E||k&&I.pointerType!=="mouse"){if(I.pointerType==="keyboard"&&!Kc())return;L(I)}else I.pointerType!=="keyboard"&&x&&f(I)}):(N.onPressStart=I=>{R.current=I.pointerType,_.current=M,D.current=E,x&&(I.pointerType==="mouse"&&!E||I.pointerType==="keyboard"&&(!w||Bc()))&&f(I)},N.onPress=I=>{(I.pointerType==="touch"||I.pointerType==="pen"||I.pointerType==="virtual"||I.pointerType==="keyboard"&&$&&Kc()||I.pointerType==="mouse"&&D.current)&&($?L(I):x&&f(I))}),g["data-collection"]=b9(n.collection),g["data-key"]=r,N.preventFocusOnPress=a,a&&(N=oe(N,{onPressStart(I){I.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(I){I.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),P)for(let I of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])P[I]&&(N[I]=Wr(N[I],P[I]));let{pressProps:F,isPressed:j}=_a(N),O=k?I=>{R.current==="mouse"&&(I.stopPropagation(),I.preventDefault(),L(I))}:void 0,{longPressProps:T}=eh({isDisabled:!M,onLongPress(I){I.pointerType==="touch"&&(f(I),n.setSelectionBehavior("toggle"))}}),A=I=>{R.current==="touch"&&_.current&&I.preventDefault()},K=c!=="none"&&n.isLink(r)?I=>{Gn.isOpening||I.preventDefault()}:void 0;return{itemProps:oe(g,x||E||a&&!l?F:{},M?T:{},{onDoubleClick:O,onDragStartCapture:A,onClick:K,id:t},a?{onMouseDown:I=>I.preventDefault()}:void 0),isPressed:j,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:x,hasAction:$}}function Kc(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Bc(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Hc{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?ji(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 $9{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 Hc(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 Hc(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function E9(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,s=w5({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,u=d.useMemo(()=>i||new $9({collection:n,disabledKeys:r,disabledBehavior:l,ref:o,collator:s,layoutDelegate:a}),[i,a,n,r,o,s,l]),{collectionProps:h}=C9({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:h}}class P9{build(t,n){return this.context=n,Vc(()=>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 E=a.type;throw new Error(`Unknown element <${E}> 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 E=w.value;t.index=x;var l;let k=(l=E.key)!==null&&l!==void 0?l:null;k==null&&(k=E.element?null:this.getKey(a,t,n,r));let R=[...this.getFullNode({...E,key:k,index:x,wrapper:R9(t.wrapper,E.wrapper)},this.getChildState(n,E),r?`${r}${a.key}`:a.key,o)];for(let M of R){var u,h;M.value=(h=(u=E.value)!==null&&u!==void 0?u:t.value)!==null&&h!==void 0?h:null,M.value&&this.cache.set(M.value,M);var c;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${us(M.type)}> in <${us((c=o==null?void 0:o.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${us(t.type)}> is supported.`);x++,yield M}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:Vc(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 Vc(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 R9(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function us(e){return e[0].toUpperCase()+e.slice(1)}function M9(e,t,n){let r=d.useMemo(()=>new P9,[]),{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 Yh(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function k9(e){return O9(e)}function O9(e,t){for(let n of e)return n}function cs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...zc(e,t),t],o=[...zc(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 zc(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 Uc=new WeakMap;function T9(e){let t=Uc.get(e);if(t!=null)return t;let n=0,r=o=>{for(let i of o)i.type==="section"?r(Yh(i,e)):i.type==="item"&&n++};return r(e),Uc.set(e,n),n}var Xh={};Xh={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Zh={};Zh={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Jh={};Jh={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var ep={};ep={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var tp={};tp={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var np={};np={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var rp={};rp={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var op={};op={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var ip={};ip={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ap={};ap={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var sp={};sp={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var lp={};lp={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var up={};up={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var cp={};cp={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var dp={};dp={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var fp={};fp={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var hp={};hp={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var pp={};pp={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var gp={};gp={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 vp={};vp={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var bp={};bp={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var yp={};yp={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var xp={};xp={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var wp={};wp={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Cp={};Cp={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Sp={};Sp={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var $p={};$p={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Ep={};Ep={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Pp={};Pp={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Rp={};Rp={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Mp={};Mp={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var kp={};kp={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Op={};Op={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Tp={};Tp={"ar-AE":Xh,"bg-BG":Zh,"cs-CZ":Jh,"da-DK":ep,"de-DE":tp,"el-GR":np,"en-US":rp,"es-ES":op,"et-EE":ip,"fi-FI":ap,"fr-FR":sp,"he-IL":lp,"hr-HR":up,"hu-HU":cp,"it-IT":dp,"ja-JP":fp,"ko-KR":hp,"lt-LT":pp,"lv-LV":gp,"nb-NO":mp,"nl-NL":vp,"pl-PL":bp,"pt-BR":yp,"pt-PT":xp,"ro-RO":wp,"ru-RU":Cp,"sk-SK":Sp,"sl-SI":$p,"sr-SP":Ep,"sv-SE":Pp,"tr-TR":Rp,"uk-UA":Mp,"zh-CN":kp,"zh-TW":Op};function D9(e){return e&&e.__esModule?e.default:e}function _9(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=ot(),{triggerProps:s,overlayProps:l}=lh({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=K0(D9(Tp),"@react-aria/menu"),{longPressProps:c}=eh({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&&(St(f.target),t.open(f.pointerType==="virtual"?"first":null))},onPress(f){f.pointerType==="touch"&&!o&&(St(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 Dp=new WeakMap;function F9(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let s=$e(e,{labelable:!0}),{listProps:l}=E9({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Dp.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:oe(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 I9(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:E,onBlur:k,selectionManager:$=t.selectionManager}=e,R=!!s,M=R&&e["aria-expanded"]==="true";var _;let D=(_=e.isDisabled)!==null&&_!==void 0?_:$.isDisabled(o);var P;let L=(P=e.isSelected)!==null&&P!==void 0?P:$.isSelected(o),N=Dp.get(t),F=t.collection.getItem(o),j=e.onClose||N.onClose,O=ka(),T=()=>{var ie;if(!R&&(!(F==null||(ie=F.props)===null||ie===void 0)&&ie.onAction?F.props.onAction():e.onAction&&e.onAction(o),N.onAction)){let Xt=N.onAction;Xt(o)}},A="menuitem";R||($.selectionMode==="single"?A="menuitemradio":$.selectionMode==="multiple"&&(A="menuitemcheckbox"));let K=Li(),I=Li(),H=Li(),z={id:r,"aria-disabled":D||void 0,role:A,"aria-label":e["aria-label"],"aria-labelledby":K,"aria-describedby":[I,H].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};$.selectionMode!=="none"&&!R&&(z["aria-checked"]=L),a&&(z["aria-posinset"]=F==null?void 0:F.index,z["aria-setsize"]=T9(t.collection));let V=d.useRef(!1),W=ie=>{c==null||c(ie),V.current=ie},q=d.useRef(null),ne=ie=>{ie.pointerType!=="keyboard"&&(q.current={pointerType:ie.pointerType}),ie.pointerType==="mouse"&&(V.current||ie.target.click()),u==null||u(ie)},pe=ie=>{var Xt,Qe;f==null||f(ie),T(),Oy(ie,O,F.props.href,F==null?void 0:F.props.routerOptions);let Jr=((Xt=q.current)===null||Xt===void 0?void 0:Xt.pointerType)==="keyboard"?((Qe=q.current)===null||Qe===void 0?void 0:Qe.key)==="Enter"||$.selectionMode==="none"||$.isLink(o):$.selectionMode!=="multiple"||$.isLink(o);Jr=i??Jr,j&&!R&&Jr&&j(),q.current=null},{itemProps:ee,isFocused:Ke}=S9({id:r,selectionManager:$,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:N.shouldUseVirtualFocus}),{pressProps:Et,isPressed:Pt}=_a({onPressStart:l,onPress:h,onPressUp:ne,onPressChange:W,onPressEnd:p,isDisabled:D}),{hoverProps:Y}=Yr({isDisabled:D,onHoverStart(ie){!Oo()&&!(M&&s)&&($.setFocused(!0),$.setFocusedKey(o)),g==null||g(ie)},onHoverChange:m,onHoverEnd:v}),{keyboardProps:pt}=X0({onKeyDown:ie=>{if(ie.repeat){ie.continuePropagation();return}switch(ie.key){case" ":q.current={pointerType:"keyboard",key:" "},ie.target.click();break;case"Enter":q.current={pointerType:"keyboard",key:"Enter"},ie.target.tagName!=="A"&&ie.target.click();break;default:R||ie.continuePropagation(),b==null||b(ie);break}},onKeyUp:x}),{focusProps:Ge}=uu({onBlur:k,onFocus:w,onFocusChange:E}),Rn=$e(F==null?void 0:F.props);delete Rn.id;let ni=ky(F==null?void 0:F.props);return{menuItemProps:{...z,...oe(Rn,ni,R?{onFocus:ee.onFocus,"data-collection":ee["data-collection"],"data-key":ee["data-key"]}:ee,Et,Y,pt,Ge,N.shouldUseVirtualFocus||R?{onMouseDown:ie=>ie.preventDefault()}:void 0,D?void 0:{onClick:pe}),tabIndex:ee.tabIndex!=null&&M&&!N.shouldUseVirtualFocus?-1:ee.tabIndex},labelProps:{id:K},descriptionProps:{id:I},keyboardShortcutProps:{id:H},isFocused:Ke,isFocusVisible:Ke&&$.isFocused&&Oo()&&!M,isSelected:L,isPressed:Pt,isDisabled:D}}function L9(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 Xr{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 _p extends Xr{filter(t,n,r){let[o,i]=Ip(t,n,this.firstChildKey,r),a=this.clone();return a.firstChildKey=o,a.lastChildKey=i,a}}class N9 extends Xr{}N9.type="header";class j9 extends Xr{}j9.type="loader";class Fp extends _p{filter(t,n,r){if(r(this.textValue,this)){let o=this.clone();return n.addDescendants(o,t),o}return null}}Fp.type="item";class A9 extends _p{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}}A9.type="section";class K9{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]=Ip(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 Ip(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 Lp{*[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 xr extends Lp{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof xr?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 xr&&(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,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 B9 extends Lp{get isConnected(){return!0}createElement(t){return new xr(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 xr&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof xr?(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 Np(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&&(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 ea=d.createContext(!1);function H9(e){if(d.useContext(ea))return d.createElement(d.Fragment,null,e.children);let n=d.createElement(ea.Provider,{value:!0},e.children);return d.createElement("template",{"data-react-aria-hidden":!0},n)}function V9(e){let t=(n,r)=>d.useContext(ea)?null:e(n,r);return t.displayName=e.displayName||e.name,d.forwardRef(t)}function z9(){return d.useContext(ea)}var jp={exports:{}},Ap={};/**
|
|
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&&bo(h))h.focus({preventScroll:!0}),jc(h,bo(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&&bo(document.activeElement);a.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&jc(this,u)};let s=Gr(ls(document,"touchstart",n,{passive:!1,capture:!0}),ls(document,"touchmove",o,{passive:!1,capture:!0}),ls(document,"blur",i,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=a}}function ss(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function ls(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function jc(e,t){t||!xo?Ac(e):xo.addEventListener("resize",()=>Ac(e),{once:!0})}function Ac(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=M0(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;xo&&(a=Math.min(a,xo.offsetTop+xo.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 o9=d.createContext({});function dh(){var e;return(e=d.useContext(o9))!==null&&e!==void 0?e:{}}const ml=d.createContext(null);function i9(e){let{children:t}=e,n=d.useContext(ml),[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(ml.Provider,{value:i},t)}function a9(){let e=d.useContext(ml);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function s9(e){let{modalProviderProps:t}=a9();return d.createElement("div",{"data-overlay-container":!0,...e,...t})}function l9(e){return d.createElement(i9,null,d.createElement(s9,e))}function u9(e){let t=En(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:o}=dh();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(l9,r);return zr.createPortal(i,n)}var fh={};fh={dismiss:"تجاهل"};var hh={};hh={dismiss:"Отхвърляне"};var ph={};ph={dismiss:"Odstranit"};var gh={};gh={dismiss:"Luk"};var mh={};mh={dismiss:"Schließen"};var vh={};vh={dismiss:"Απόρριψη"};var bh={};bh={dismiss:"Dismiss"};var yh={};yh={dismiss:"Descartar"};var xh={};xh={dismiss:"Lõpeta"};var wh={};wh={dismiss:"Hylkää"};var Ch={};Ch={dismiss:"Rejeter"};var Sh={};Sh={dismiss:"התעלם"};var $h={};$h={dismiss:"Odbaci"};var Eh={};Eh={dismiss:"Elutasítás"};var Ph={};Ph={dismiss:"Ignora"};var Rh={};Rh={dismiss:"閉じる"};var kh={};kh={dismiss:"무시"};var Mh={};Mh={dismiss:"Atmesti"};var Oh={};Oh={dismiss:"Nerādīt"};var Th={};Th={dismiss:"Lukk"};var Dh={};Dh={dismiss:"Negeren"};var _h={};_h={dismiss:"Zignoruj"};var Fh={};Fh={dismiss:"Descartar"};var Lh={};Lh={dismiss:"Dispensar"};var Ih={};Ih={dismiss:"Revocare"};var Nh={};Nh={dismiss:"Пропустить"};var jh={};jh={dismiss:"Zrušiť"};var Ah={};Ah={dismiss:"Opusti"};var Kh={};Kh={dismiss:"Odbaci"};var Bh={};Bh={dismiss:"Avvisa"};var Hh={};Hh={dismiss:"Kapat"};var Vh={};Vh={dismiss:"Скасувати"};var zh={};zh={dismiss:"取消"};var Uh={};Uh={dismiss:"關閉"};var qh={};qh={"ar-AE":fh,"bg-BG":hh,"cs-CZ":ph,"da-DK":gh,"de-DE":mh,"el-GR":vh,"en-US":bh,"es-ES":yh,"et-EE":xh,"fi-FI":wh,"fr-FR":Ch,"he-IL":Sh,"hr-HR":$h,"hu-HU":Eh,"it-IT":Ph,"ja-JP":Rh,"ko-KR":kh,"lt-LT":Mh,"lv-LV":Oh,"nb-NO":Th,"nl-NL":Dh,"pl-PL":_h,"pt-BR":Fh,"pt-PT":Lh,"ro-RO":Ih,"ru-RU":Nh,"sk-SK":jh,"sl-SI":Ah,"sr-SP":Kh,"sv-SE":Bh,"tr-TR":Hh,"uk-UA":Vh,"zh-CN":zh,"zh-TW":Uh};const Kc={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 c9(e={}){let{style:t,isFocusable:n}=e,[r,o]=d.useState(!1),{focusWithinProps:i}=cu({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=d.useMemo(()=>r?t:t?{...Kc,...t}:Kc,[r]);return{visuallyHiddenProps:{...i,style:a}}}function d9(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=c9(e);return d.createElement(n,oe(i,a),t)}function f9(e){return e&&e.__esModule?e.default:e}function vl(e){let{onDismiss:t,...n}=e,r=B0(f9(qh),"@react-aria/overlays"),o=k0(n,r.format("dismiss")),i=()=>{t&&t()};return d.createElement(d9,null,d.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const h9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let ro=new WeakMap,Be=[];function Wh(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)&&h9,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=ro.get(m))!==null&&v!==void 0?v:0;u(m)&&b===0||(b===0&&h(m,!0),l.add(m),ro.set(m,b+1))};Be.length&&Be[Be.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 Be.push(g),()=>{f.disconnect();for(let m of l){let v=ro.get(m);v!=null&&(v===1?(h(m,!1),ro.delete(m)):ro.set(m,v-1))}g===Be[Be.length-1]?(Be.pop(),Be.length&&Be[Be.length-1].observe()):Be.splice(Be.indexOf(g),1)}}function p9(e){let t=Be[Be.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function g9(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}=lh({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}=V0({...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?p9((v=o==null?void 0:o.current)!==null&&v!==void 0?v:r.current):Wh([(b=o==null?void 0:o.current)!==null&&b!==void 0?b:r.current],{shouldUseInert:!0})}},[i,t.isOpen,r,o]),{popoverProps:oe(h,p),arrowProps:f,underlayProps:c,placement:g,triggerAnchorPoint:m}}const Gh=d.createContext(null);function bl(e){let t=En(),{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}=dh();if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=d.createElement(nh,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!r},l)),l=d.createElement(Gh.Provider,{value:a},d.createElement(B5,null,l)),zr.createPortal(l,n)}function Qh(){let e=d.useContext(Gh),t=e==null?void 0:e.setContain;ce(()=>{t==null||t(!0)},[t])}function m9(e,t,n){let{overlayProps:r,underlayProps:o}=lh({...e,isOpen:t.isOpen,onClose:t.close},n);return ch({isDisabled:!t.isOpen}),Qh(),d.useEffect(()=>{if(t.isOpen&&n.current)return Wh([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:oe(r),underlayProps:o}}function v9(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=it(t);let a=it(),s={};n&&(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0});let l=k0({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function yl(e){return $y()?e.altKey:e.ctrlKey}function ji(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 Yh=new WeakMap;function b9(e){let t=it();return Yh.set(e,t),t}function y9(e){return Yh.get(e)}const x9=1e3;function w9(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=d.useRef({search:"",timeout:void 0}).current,i=a=>{let s=C9(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=""},x9)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function C9(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function S9(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}=er(),b=Ma(),x=T=>{var A;if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!(!((A=r.current)===null||A===void 0)&&A.contains(T.target)))return;const K=(Y,gt)=>{if(Y!=null){if(t.isLink(Y)&&m==="selection"&&u&&!yl(T)){zr.flushSync(()=>{t.setFocusedKey(Y,gt)});let Qe=ji(r,Y),Rn=t.getItemProps(Y);Qe&&b.open(Qe,T,Rn.href,Rn.routerOptions);return}if(t.setFocusedKey(Y,gt),t.isLink(Y)&&m==="override")return;T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&!yl(T)&&t.replaceSelection(Y)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var L,H,z;let Y=t.focusedKey!=null?(L=n.getKeyBelow)===null||L===void 0?void 0:L.call(n,t.focusedKey):(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n);Y==null&&i&&(Y=(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y))}break;case"ArrowUp":if(n.getKeyAbove){var V,W,q;let Y=t.focusedKey!=null?(V=n.getKeyAbove)===null||V===void 0?void 0:V.call(n,t.focusedKey):(W=n.getLastKey)===null||W===void 0?void 0:W.call(n);Y==null&&i&&(Y=(q=n.getLastKey)===null||q===void 0?void 0:q.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ne,pe,ee;let Y=t.focusedKey!=null?(ne=n.getKeyLeftOf)===null||ne===void 0?void 0:ne.call(n,t.focusedKey):null;Y==null&&i&&(Y=v==="rtl"?(pe=n.getFirstKey)===null||pe===void 0?void 0:pe.call(n,t.focusedKey):(ee=n.getLastKey)===null||ee===void 0?void 0:ee.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Ke,Et,Pt;let Y=t.focusedKey!=null?(Ke=n.getKeyRightOf)===null||Ke===void 0?void 0:Ke.call(n,t.focusedKey):null;Y==null&&i&&(Y=v==="rtl"?(Et=n.getLastKey)===null||Et===void 0?void 0:Et.call(n,t.focusedKey):(Pt=n.getFirstKey)===null||Pt===void 0?void 0:Pt.call(n,t.focusedKey)),Y!=null&&(T.preventDefault(),K(Y,v==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&T.shiftKey)return;T.preventDefault();let Y=n.getFirstKey(t.focusedKey,cr(T));t.setFocusedKey(Y),Y!=null&&(cr(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&T.shiftKey)return;T.preventDefault();let Y=n.getLastKey(t.focusedKey,cr(T));t.setFocusedKey(Y),Y!=null&&(cr(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Y=n.getKeyPageBelow(t.focusedKey);Y!=null&&(T.preventDefault(),K(Y))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Y=n.getKeyPageAbove(t.focusedKey);Y!=null&&(T.preventDefault(),K(Y))}break;case"a":cr(T)&&t.selectionMode==="multiple"&&s!==!0&&(T.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(T.stopPropagation(),T.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(T.shiftKey)r.current.focus();else{let Y=rt(r.current,{tabbable:!0}),gt,Qe;do Qe=Y.lastChild(),Qe&&(gt=Qe);while(Qe);gt&&!gt.contains(document.activeElement)&&St(gt)}break}}},w=d.useRef({top:0,left:0});hi(g,"scroll",f?void 0:()=>{var T,A,K,L;w.current={top:(K=(T=g.current)===null||T===void 0?void 0:T.scrollTop)!==null&&K!==void 0?K:0,left:(L=(A=g.current)===null||A===void 0?void 0:A.scrollLeft)!==null&&L!==void 0?L:0}});let S=T=>{if(t.isFocused){T.currentTarget.contains(T.target)||t.setFocused(!1);return}if(T.currentTarget.contains(T.target)){if(t.setFocused(!0),t.focusedKey==null){var A,K;let z=W=>{W!=null&&(t.setFocusedKey(W),u&&!t.isSelected(W)&&t.replaceSelection(W))},V=T.relatedTarget;var L,H;V&&T.currentTarget.compareDocumentPosition(V)&Node.DOCUMENT_POSITION_FOLLOWING?z((L=t.lastSelectedKey)!==null&&L!==void 0?L:(A=n.getLastKey)===null||A===void 0?void 0:A.call(n)):z((H=t.firstSelectedKey)!==null&&H!==void 0?H:(K=n.getFirstKey)===null||K===void 0?void 0:K.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 z=ji(r,t.focusedKey);z instanceof HTMLElement&&(!z.contains(document.activeElement)&&!c&&St(z),To()==="keyboard"&&pc(z,{containingElement:r.current}))}}},k=T=>{T.currentTarget.contains(T.relatedTarget)||t.setFocused(!1)},E=d.useRef(!1);hi(r,By,c?T=>{let{detail:A}=T;T.stopPropagation(),t.setFocused(!0),(A==null?void 0:A.focusStrategy)==="first"&&(E.current=!0)}:void 0);let R=Ae(()=>{var T,A;let K=(A=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&A!==void 0?A:null;if(K==null){let L=Me();ah(r.current),sh(L,null),t.collection.size>0&&(E.current=!1)}else t.setFocusedKey(K),E.current=!1});dc(()=>{E.current&&R()},[t.collection,R]);let M=Ae(()=>{t.collection.size>0&&(E.current=!1)});dc(()=>{M()},[t.focusedKey,M]),hi(r,Ky,c?T=>{var A;T.stopPropagation(),t.setFocused(!1),!((A=T.detail)===null||A===void 0)&&A.clearFocusKey&&t.setFocusedKey(null)}:void 0);const _=d.useRef(o),D=d.useRef(!1);d.useEffect(()=>{if(_.current){var T,A;let H=null;var K;o==="first"&&(H=(K=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&K!==void 0?K:null);var L;o==="last"&&(H=(L=(A=n.getLastKey)===null||A===void 0?void 0:A.call(n))!==null&&L!==void 0?L:null);let z=t.selectedKeys;if(z.size){for(let V of z)if(t.canSelectItem(V)){H=V;break}}t.setFocused(!0),t.setFocusedKey(H),H==null&&!c&&r.current&&xn(r.current),t.collection.size>0&&(_.current=!1,D.current=!0)}});let P=d.useRef(t.focusedKey),I=d.useRef(null);d.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==P.current||D.current)&&g.current&&r.current){let T=To(),A=ji(r,t.focusedKey);if(!(A instanceof HTMLElement))return;(T==="keyboard"||D.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{g.current&&(O0(g.current,A),T!=="virtual"&&pc(A,{containingElement:r.current}))}))}!c&&t.isFocused&&t.focusedKey==null&&P.current!=null&&r.current&&xn(r.current),P.current=t.focusedKey,D.current=!1}),d.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),hi(r,"react-aria-focus-scope-restore",T=>{T.preventDefault(),t.setFocused(!0)});let N={onKeyDown:x,onFocus:S,onBlur:k,onMouseDown(T){g.current===T.target&&T.preventDefault()}},{typeSelectProps:F}=w9({keyboardDelegate:n,selectionManager:t});h||(N=oe(F,N));let j;c||(j=t.focusedKey==null?0:-1);let O=b9(t.collection);return{collectionProps:oe(N,{tabIndex:j,"data-collection":O})}}function $9(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=Ma();t=it(t);let f=L=>{if(L.pointerType==="keyboard"&&yl(L))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(c==="selection"&&o.current){let H=n.getItemProps(r);p.open(o.current,L,H.href,H.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):L&&L.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||L&&(cr(L)||L.pointerType==="touch"||L.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};d.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(a?ah(o.current):s?s():document.activeElement!==o.current&&o.current&&xn(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(L){L.target===o.current&&n.setFocusedKey(r)}}:l&&(g.onMouseDown=L=>{L.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),k=w&&x&&n.selectionBehavior==="replace",E=S||k,R=d.useRef(null),M=E&&x,_=d.useRef(!1),D=d.useRef(!1),P=n.getItemProps(r),I=L=>{if(u){var H;u(),(H=o.current)===null||H===void 0||H.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&p.open(o.current,L,P.href,P.routerOptions)},N={ref:o};if(i?(N.onPressStart=L=>{R.current=L.pointerType,_.current=M,L.pointerType==="keyboard"&&(!E||Hc())&&f(L)},h?(N.onPressUp=S?void 0:L=>{L.pointerType==="mouse"&&x&&f(L)},N.onPress=S?I:L=>{L.pointerType!=="keyboard"&&L.pointerType!=="mouse"&&x&&f(L)}):N.onPress=L=>{if(S||k&&L.pointerType!=="mouse"){if(L.pointerType==="keyboard"&&!Bc())return;I(L)}else L.pointerType!=="keyboard"&&x&&f(L)}):(N.onPressStart=L=>{R.current=L.pointerType,_.current=M,D.current=S,x&&(L.pointerType==="mouse"&&!S||L.pointerType==="keyboard"&&(!w||Hc()))&&f(L)},N.onPress=L=>{(L.pointerType==="touch"||L.pointerType==="pen"||L.pointerType==="virtual"||L.pointerType==="keyboard"&&E&&Bc()||L.pointerType==="mouse"&&D.current)&&(E?I(L):x&&f(L))}),g["data-collection"]=y9(n.collection),g["data-key"]=r,N.preventFocusOnPress=a,a&&(N=oe(N,{onPressStart(L){L.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(L){L.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),P)for(let L of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])P[L]&&(N[L]=Gr(N[L],P[L]));let{pressProps:F,isPressed:j}=_a(N),O=k?L=>{R.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),I(L))}:void 0,{longPressProps:T}=th({isDisabled:!M,onLongPress(L){L.pointerType==="touch"&&(f(L),n.setSelectionBehavior("toggle"))}}),A=L=>{R.current==="touch"&&_.current&&L.preventDefault()},K=c!=="none"&&n.isLink(r)?L=>{Gn.isOpening||L.preventDefault()}:void 0;return{itemProps:oe(g,x||S||a&&!l?F:{},M?T:{},{onDoubleClick:O,onDragStartCapture:A,onClick:K,id:t},a?{onMouseDown:L=>L.preventDefault()}:void 0),isPressed:j,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:x,hasAction:E}}function Bc(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Hc(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Vc{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?ji(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 E9{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 Vc(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 Vc(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function P9(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,s=C5({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,u=d.useMemo(()=>i||new E9({collection:n,disabledKeys:r,disabledBehavior:l,ref:o,collator:s,layoutDelegate:a}),[i,a,n,r,o,s,l]),{collectionProps:h}=S9({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:h}}class R9{build(t,n){return this.context=n,zc(()=>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 k=(l=S.key)!==null&&l!==void 0?l:null;k==null&&(k=S.element?null:this.getKey(a,t,n,r));let R=[...this.getFullNode({...S,key:k,index:x,wrapper:k9(t.wrapper,S.wrapper)},this.getChildState(n,S),r?`${r}${a.key}`:a.key,o)];for(let M of R){var u,h;M.value=(h=(u=S.value)!==null&&u!==void 0?u:t.value)!==null&&h!==void 0?h:null,M.value&&this.cache.set(M.value,M);var c;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${us(M.type)}> in <${us((c=o==null?void 0:o.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${us(t.type)}> is supported.`);x++,yield M}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:zc(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 zc(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 k9(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function us(e){return e[0].toUpperCase()+e.slice(1)}function M9(e,t,n){let r=d.useMemo(()=>new R9,[]),{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 Xh(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function O9(e){return T9(e)}function T9(e,t){for(let n of e)return n}function cs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Uc(e,t),t],o=[...Uc(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 Uc(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 qc=new WeakMap;function D9(e){let t=qc.get(e);if(t!=null)return t;let n=0,r=o=>{for(let i of o)i.type==="section"?r(Xh(i,e)):i.type==="item"&&n++};return r(e),qc.set(e,n),n}var Zh={};Zh={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Jh={};Jh={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var ep={};ep={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var tp={};tp={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var np={};np={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var rp={};rp={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var op={};op={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var ip={};ip={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var ap={};ap={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var sp={};sp={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var lp={};lp={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var up={};up={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var cp={};cp={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var dp={};dp={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var fp={};fp={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var hp={};hp={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var pp={};pp={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var gp={};gp={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var mp={};mp={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var vp={};vp={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var bp={};bp={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var yp={};yp={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var xp={};xp={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var wp={};wp={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Cp={};Cp={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Sp={};Sp={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var $p={};$p={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Ep={};Ep={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Pp={};Pp={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Rp={};Rp={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 Mp={};Mp={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Op={};Op={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Tp={};Tp={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var Dp={};Dp={"ar-AE":Zh,"bg-BG":Jh,"cs-CZ":ep,"da-DK":tp,"de-DE":np,"el-GR":rp,"en-US":op,"es-ES":ip,"et-EE":ap,"fi-FI":sp,"fr-FR":lp,"he-IL":up,"hr-HR":cp,"hu-HU":dp,"it-IT":fp,"ja-JP":hp,"ko-KR":pp,"lt-LT":gp,"lv-LV":mp,"nb-NO":vp,"nl-NL":bp,"pl-PL":yp,"pt-BR":xp,"pt-PT":wp,"ro-RO":Cp,"ru-RU":Sp,"sk-SK":$p,"sl-SI":Ep,"sr-SP":Pp,"sv-SE":Rp,"tr-TR":kp,"uk-UA":Mp,"zh-CN":Op,"zh-TW":Tp};function _9(e){return e&&e.__esModule?e.default:e}function F9(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=it(),{triggerProps:s,overlayProps:l}=uh({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=B0(_9(Dp),"@react-aria/menu"),{longPressProps:c}=th({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&&(St(f.target),t.open(f.pointerType==="virtual"?"first":null))},onPress(f){f.pointerType==="touch"&&!o&&(St(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 _p=new WeakMap;function L9(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let s=$e(e,{labelable:!0}),{listProps:l}=P9({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return _p.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:oe(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 I9(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:k,selectionManager:E=t.selectionManager}=e,R=!!s,M=R&&e["aria-expanded"]==="true";var _;let D=(_=e.isDisabled)!==null&&_!==void 0?_:E.isDisabled(o);var P;let I=(P=e.isSelected)!==null&&P!==void 0?P:E.isSelected(o),N=_p.get(t),F=t.collection.getItem(o),j=e.onClose||N.onClose,O=Ma(),T=()=>{var ie;if(!R&&(!(F==null||(ie=F.props)===null||ie===void 0)&&ie.onAction?F.props.onAction():e.onAction&&e.onAction(o),N.onAction)){let Xt=N.onAction;Xt(o)}},A="menuitem";R||(E.selectionMode==="single"?A="menuitemradio":E.selectionMode==="multiple"&&(A="menuitemcheckbox"));let K=Ii(),L=Ii(),H=Ii(),z={id:r,"aria-disabled":D||void 0,role:A,"aria-label":e["aria-label"],"aria-labelledby":K,"aria-describedby":[L,H].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};E.selectionMode!=="none"&&!R&&(z["aria-checked"]=I),a&&(z["aria-posinset"]=F==null?void 0:F.index,z["aria-setsize"]=D9(t.collection));let V=d.useRef(!1),W=ie=>{c==null||c(ie),V.current=ie},q=d.useRef(null),ne=ie=>{ie.pointerType!=="keyboard"&&(q.current={pointerType:ie.pointerType}),ie.pointerType==="mouse"&&(V.current||ie.target.click()),u==null||u(ie)},pe=ie=>{var Xt,Ye;f==null||f(ie),T(),Ty(ie,O,F.props.href,F==null?void 0:F.props.routerOptions);let eo=((Xt=q.current)===null||Xt===void 0?void 0:Xt.pointerType)==="keyboard"?((Ye=q.current)===null||Ye===void 0?void 0:Ye.key)==="Enter"||E.selectionMode==="none"||E.isLink(o):E.selectionMode!=="multiple"||E.isLink(o);eo=i??eo,j&&!R&&eo&&j(),q.current=null},{itemProps:ee,isFocused:Ke}=$9({id:r,selectionManager:E,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:N.shouldUseVirtualFocus}),{pressProps:Et,isPressed:Pt}=_a({onPressStart:l,onPress:h,onPressUp:ne,onPressChange:W,onPressEnd:p,isDisabled:D}),{hoverProps:Y}=Xr({isDisabled:D,onHoverStart(ie){!Oo()&&!(M&&s)&&(E.setFocused(!0),E.setFocusedKey(o)),g==null||g(ie)},onHoverChange:m,onHoverEnd:v}),{keyboardProps:gt}=Z0({onKeyDown:ie=>{if(ie.repeat){ie.continuePropagation();return}switch(ie.key){case" ":q.current={pointerType:"keyboard",key:" "},ie.target.click();break;case"Enter":q.current={pointerType:"keyboard",key:"Enter"},ie.target.tagName!=="A"&&ie.target.click();break;default:R||ie.continuePropagation(),b==null||b(ie);break}},onKeyUp:x}),{focusProps:Qe}=uu({onBlur:k,onFocus:w,onFocusChange:S}),Rn=$e(F==null?void 0:F.props);delete Rn.id;let ni=Oy(F==null?void 0:F.props);return{menuItemProps:{...z,...oe(Rn,ni,R?{onFocus:ee.onFocus,"data-collection":ee["data-collection"],"data-key":ee["data-key"]}:ee,Et,Y,gt,Qe,N.shouldUseVirtualFocus||R?{onMouseDown:ie=>ie.preventDefault()}:void 0,D?void 0:{onClick:pe}),tabIndex:ee.tabIndex!=null&&M&&!N.shouldUseVirtualFocus?-1:ee.tabIndex},labelProps:{id:K},descriptionProps:{id:L},keyboardShortcutProps:{id:H},isFocused:Ke,isFocusVisible:Ke&&E.isFocused&&Oo()&&!M,isSelected:I,isPressed:Pt,isDisabled:D}}function N9(e){let{heading:t,"aria-label":n}=e,r=it();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class Zr{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 Fp extends Zr{filter(t,n,r){let[o,i]=Ip(t,n,this.firstChildKey,r),a=this.clone();return a.firstChildKey=o,a.lastChildKey=i,a}}class j9 extends Zr{}j9.type="header";class A9 extends Zr{}A9.type="loader";class Lp extends Fp{filter(t,n,r){if(r(this.textValue,this)){let o=this.clone();return n.addDescendants(o,t),o}return null}}Lp.type="item";class K9 extends Fp{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}}K9.type="section";class B9{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]=Ip(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 Ip(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 Np{*[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 xr extends Np{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof xr?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 xr&&(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,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 H9 extends Np{get isConnected(){return!0}createElement(t){return new xr(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 xr&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof xr?(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 jp(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&&(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 ea=d.createContext(!1);function V9(e){if(d.useContext(ea))return d.createElement(d.Fragment,null,e.children);let n=d.createElement(ea.Provider,{value:!0},e.children);return d.createElement("template",{"data-react-aria-hidden":!0},n)}function z9(e){let t=(n,r)=>d.useContext(ea)?null:e(n,r);return t.displayName=e.displayName||e.name,d.forwardRef(t)}function U9(){return d.useContext(ea)}var Ap={exports:{}},Kp={};/**
|
|
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 jr=d;function U9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var q9=typeof Object.is=="function"?Object.is:U9,W9=jr.useState,G9=jr.useEffect,Q9=jr.useLayoutEffect,Y9=jr.useDebugValue;function X9(e,t){var n=t(),r=W9({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Q9(function(){o.value=n,o.getSnapshot=t,ds(o)&&i({inst:o})},[e,n,t]),G9(function(){return ds(o)&&i({inst:o}),e(function(){ds(o)&&i({inst:o})})},[e]),Y9(n),n}function ds(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!q9(e,n)}catch{return!0}}function Z9(e,t){return t()}var J9=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Z9:X9;Ap.useSyncExternalStore=jr.useSyncExternalStore!==void 0?jr.useSyncExternalStore:J9;jp.exports=Ap;var e3=jp.exports;const Kp=d.createContext(!1),Do=d.createContext(null);function t3(e){if(d.useContext(Do))return e.content;let{collection:n,document:r}=i3(e.createCollection);return d.createElement(d.Fragment,null,d.createElement(H9,null,d.createElement(Do.Provider,{value:r},e.content)),d.createElement(n3,{render:e.children,collection:n}))}function n3({collection:e,render:t}){return t(e)}function r3(e,t,n){let r=En(),o=d.useRef(r);o.current=r;let i=d.useCallback(()=>o.current?n():t(),[t,n]);return e3.useSyncExternalStore(e,i)}const o3=typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore:r3;function i3(e){let[t]=d.useState(()=>new B9((e==null?void 0:e())||new K9)),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:o3(n,r,o),document:t}}const xl=d.createContext(null);function a3(e){var t;return t=class extends Xr{},t.type=e,t}function s3(e,t,n,r,o,i){typeof e=="string"&&(e=a3(e));let a=d.useCallback(l=>{l==null||l.setProps(t,n,e,r,i)},[t,n,r,i,e]),s=d.useContext(xl);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(xl.Provider,{value:l},o):null}return d.createElement(e.type,{ref:a},o)}function l3(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=d.forwardRef((o,i)=>{let a=d.useContext(Zi);if(!d.useContext(Kp)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return s3(e,o,i,"children"in o?o.children:null,null,l=>d.createElement(Zi.Provider,{value:a},d.createElement(n,{node:l})))});return r.displayName=t.name,r}function u3(e){return Np({...e,addIdAndValue:!0})}const qc=d.createContext(null);function c3(e){let t=d.useContext(qc),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),r=e.idScope||(t==null?void 0:t.idScope),o=u3({...e,idScope:r,dependencies:n});return d.useContext(Do)&&(o=d.createElement(d3,null,o)),t=d.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),d.createElement(qc.Provider,{value:t},o)}function d3({children:e}){let t=d.useContext(Do),n=d.useMemo(()=>d.createElement(Do.Provider,{value:null},d.createElement(Kp.Provider,{value:!0},e)),[e]);return En()?d.createElement(xl.Provider,{value:t},n):Vr.createPortal(n,t)}const f3=d.createContext(null),h3={CollectionRoot({collection:e,renderDropIndicator:t}){return Wc(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Wc(e,t,n)}};function Wc(e,t,n){return Np({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,p3(e,r,n))}})}function p3(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&&(!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 Bp=d.createContext(h3);function g3(e){return d.useMemo(()=>e!=null?new Set([e]):null,[e])}function Hp(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}=_a({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,onClick:c,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:w}=Z0(e,t);h&&(w.tabIndex=r?-1:w.tabIndex);let E=oe(w,b,$e(e,{labelable:!0}));return{isPressed:x,buttonProps:oe(v,E,{"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 Vp(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=Hp({...e,onPress:Wr(t.toggle,e.onPress)},n);return{isPressed:o,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:oe(i,{"aria-pressed":r})}}function m3(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=e;let[i,a]=d.useState(!1);ce(()=>{var g;a(!!(t.current&&(!((g=t.current.parentElement)===null||g===void 0)&&g.closest('[role="toolbar"]'))))});const{direction:s}=er(),l=s==="rtl"&&o==="horizontal";let u=Z5(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:{...$e(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 v3(e,t,n){let{isDisabled:r}=e,{toolbarProps:o}=m3(e,n);return{groupProps:{...o,role:t.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":r}}}function b3(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}=Vp({...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 y3(e={}){let{isReadOnly:t}=e,[n,r]=Zo(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 x3(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:r=!1}=e,[o,i]=Zo(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 w3(e,t){let{role:n="dialog"}=e,r=Li();r=e["aria-label"]?void 0:r;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){xn(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),xn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),Gh(),{dialogProps:{...$e(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function C3(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=$e(e,{labelable:!0}),{labelProps:l,fieldProps:u}=m9({...e,labelElementType:"span"});t=Mo(t,n,r);let h=(t-n)/(r-n),c=x5(a);if(!i&&!o){let p=a.style==="percent"?h:t;o=c.format(p)}return{progressBarProps:oe(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 S3(e){let{progressBarProps:t,labelProps:n}=C3(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}function $3(e,t){let n=$e(e,{labelable:!0}),{hoverProps:r}=Yr({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:oe(n,r,{role:"tooltip"})}}function E3(e,t,n){let{isDisabled:r,trigger:o}=e,i=ot(),a=d.useRef(!1),s=d.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},u=b=>{!a.current&&!s.current&&t.close(b)};d.useEffect(()=>{let b=x=>{n&&n.current&&x.key==="Escape"&&(x.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0)}},[n,t]);let h=()=>{o!=="focus"&&(To()==="pointer"?a.current=!0:a.current=!1,l())},c=()=>{o!=="focus"&&(s.current=!1,a.current=!1,u())},p=()=>{s.current=!1,a.current=!1,u(!0)},f=()=>{Oo()&&(s.current=!0,l())},g=()=>{s.current=!1,a.current=!1,u(!0)},{hoverProps:m}=Yr({isDisabled:r,onHoverStart:h,onHoverEnd:c}),{focusableProps:v}=Z0({isDisabled:r,onFocus:f,onBlur:g},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...oe(v,m,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:i}}}const P3=d.createContext({}),R3=d.createContext(null),zp=d.createContext({}),fu=V9(function(t,n){[t,n]=ht(t,n,zp);let r=t,{isPending:o}=r,{buttonProps:i,isPressed:a}=Hp(t,n);i=M3(i,o);let{focusProps:s,isFocused:l,isFocusVisible:u}=oh(t),{hoverProps:h,isHovered:c}=Yr({...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=ft({...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)&&pc(w,"assertive"),b.current=o},[o,l,v,g]);let x=$e(t,{global:!0});return delete x.onClick,d.createElement("button",{...oe(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(R3.Provider,{value:{id:m}},f.children))});function M3(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 k3=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 Up(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(()=>Gc(e.selectedKeys),[e.selectedKeys]),p=d.useMemo(()=>Gc(e.defaultSelectedKeys,new yt),[e.defaultSelectedKeys]),[f,g]=Zo(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,E="first"){l.current=w,u.current=E,h(w)},selectedKeys:f,setSelectedKeys(w){(r||!O3(w,f))&&g(w)},disabledKeys:m,disabledBehavior:i}}function Gc(e,t){return e?e==="all"?"all":new yt(e):t}class Fa{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&&cs(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&&cs(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?cs(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=k9(Yh(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 Fa(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 Ia(e){let[t,n]=Zo(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 hu(e){let t=Ia(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 T3=1500,Qc=500;let On={},D3=0,ro=!1,jt=null,Tn=null;function qp(e={}){let{delay:t=T3,closeDelay:n=Qc}=e,{isOpen:r,open:o,close:i}=Ia(e),a=d.useMemo(()=>`${++D3}`,[]),s=d.useRef(null),l=d.useRef(i),u=()=>{On[a]=p},h=()=>{for(let g in On)g!==a&&(On[g](!0),delete On[g])},c=()=>{s.current&&clearTimeout(s.current),s.current=null,h(),u(),ro=!0,o(),jt&&(clearTimeout(jt),jt=null),Tn&&(clearTimeout(Tn),Tn=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)),jt&&(clearTimeout(jt),jt=null),ro&&(Tn&&clearTimeout(Tn),Tn=setTimeout(()=>{delete On[a],Tn=null,ro=!1},Math.max(Qc,n)))},f=()=>{h(),u(),!r&&!jt&&!ro?jt=setTimeout(()=>{jt=null,ro=!0,c()},t):r||c()};return d.useEffect(()=>{l.current=i},[i]),d.useEffect(()=>()=>{s.current&&clearTimeout(s.current),On[a]&&delete On[a]},[a]),{isOpen:r,open:g=>{!g&&t>0&&!s.current?f():c()},close:p}}class _3{*[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 F3(e){let{onExpandedChange:t}=e,[n,r]=Zo(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Up(e),i=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=M9(e,d.useCallback(l=>new _3(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(I3(n,l))},setExpandedKeys:r,selectionManager:new Fa(a,o)}}function I3(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const L3=d.createContext({}),N3=d.createContext(null);function Wp(e){let t=d.useRef({});return d.createElement(N3.Provider,{value:t},e.children)}const Gp=d.createContext({isSelected:!1}),j3=d.createContext({});class A3 extends Xr{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}}A3.type="separator";const Qp=d.createContext({placement:"bottom"}),pu=d.createContext(null),Yc=d.createContext(null),K3=d.forwardRef(function(t,n){[t,n]=ht(t,n,pu);let r=d.useContext(tr),o=Ia(t),i=t.isOpen!=null||t.defaultOpen!=null||!r?o:r,a=qi(n,i.isOpen)||t.isExiting||!1,s=z9(),{direction:l}=er();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(B3,{...t,triggerRef:t.triggerRef,state:i,popoverRef:n,isExiting:a,dir:l})});function B3({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...o}){let i=d.useRef(null),a=d.useRef(null),s=d.useContext(Yc),l=s&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:h,underlayProps:c,arrowProps:p,placement:f,triggerAnchorPoint:g}=p9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:l?s:a},e),m=o.popoverRef,v=Ta(m,!!f)||o.isEntering||!1,b=ft({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:f,isEntering:v,isExiting:t}}),x=!o.isNonModal||o.trigger==="SubmenuTrigger",[w,E]=d.useState(!1);ce(()=>{m.current&&E(x&&!m.current.querySelector("[role=dialog]"))},[m,x]),d.useEffect(()=>{w&&o.trigger!=="SubmenuTrigger"&&m.current&&!m.current.contains(document.activeElement)&&xn(m.current)},[w,m,o.trigger]);let k=d.useMemo(()=>{let _=b.children;if(r)for(let D of r)_=d.createElement(D.Provider,{value:null},_);return _},[b.children,r]),$={...h.style,"--trigger-anchor-point":g?`${g.x}px ${g.y}px`:void 0,...b.style},R=d.createElement("div",{...oe($e(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:$,dir:o.dir,"data-trigger":o.trigger,"data-placement":f,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&d.createElement(vl,{onDismiss:e.close}),d.createElement(Qp.Provider,{value:{...p,placement:f,ref:i}},k),d.createElement(vl,{onDismiss:e.close}));if(!l)return d.createElement(bl,{...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(Yc.Provider,{value:a},R)));var M;return d.createElement(bl,{...o,shouldContainFocus:w,isExiting:t,portalContainer:(M=n??(s==null?void 0:s.current))!==null&&M!==void 0?M:void 0},R)}const H3=d.createContext({}),Yp=d.createContext(null),gu=d.createContext(null),ta=d.createContext(null),na=d.createContext(null);function V3(e){let t=hu(e),n=d.useRef(null),{menuTriggerProps:r,menuProps:o}=_9({...e,type:"menu"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);Ui({ref:n,onResize:s});let l=d.useRef(null);return d.createElement(Pn,{values:[[Yp,{...o,ref:l}],[tr,t],[ta,t],[pu,{trigger:"MenuTrigger",triggerRef:n,scrollRef:l,placement:"bottom start",style:{"--trigger-width":i},"aria-labelledby":o["aria-labelledby"]}]]},d.createElement(J0,{...r,ref:n,isPressed:t.isOpen},e.children))}const z3=d.createContext(null);class U3 extends Xr{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}}U3.type="submenutrigger";const q3=d.forwardRef(function(t,n){return[t,n]=ht(t,n,Yp),d.createElement(t3,{content:d.createElement(c3,t)},r=>d.createElement(W3,{props:t,collection:r,menuRef:n}))});function W3({props:e,collection:t,menuRef:n}){[e,n]=ht(e,n,ac);let{filter:r,...o}=e,i=d.useMemo(()=>r?t.filter(r):t,[t,r]),a=F3({...e,collection:i,children:void 0}),s=d.useContext(ta),{isVirtualized:l,CollectionRoot:u}=d.useContext(Bp),{menuProps:h}=F9({...e,isVirtualized:l,onClose:e.onClose||(s==null?void 0:s.close)},a,n),c=ft({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=$e(e,{global:!0});return d.createElement(th,null,d.createElement("div",{...oe(f,c,h),ref:n,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},d.createElement(Pn,{values:[[gu,a],[j3,{elementType:"div"}],[f3,{name:"MenuSection",render:Q3}],[z3,{parentMenuRef:n,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[wl,null],[ac,null],[Y2,null],[na,a.selectionManager],[ta,s??hu({})]]},d.createElement(Wp,null,d.createElement(u,{collection:a.collection,persistedKeys:g3(a.selectionManager.focusedKey),scrollRef:n}))),p))}class G3 extends Fa{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 Q3(e,t,n,r="react-aria-MenuSection"){var o,i;let a=d.useContext(gu),{CollectionBranch:s}=d.useContext(Bp),[l,u]=I0();var h;let{headingProps:c,groupProps:p}=L9({heading:u,"aria-label":(h=n.props["aria-label"])!==null&&h!==void 0?h:void 0}),f=ft({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(na),m=Up(e),v=e.selectionMode!=null?new G3(g,m):g,b=$e(e,{global:!0});return delete b.id,d.createElement("section",{...oe(b,f,p),ref:t},d.createElement(Pn,{values:[[L3,{...c,ref:l}],[na,v]]},d.createElement(s,{collection:a.collection,parent:n})))}const wl=d.createContext(null),Y3=l3(Fp,function(t,n,r){var o;[t,n]=ht(t,n,wl);let i=(o=F0(wl))===null||o===void 0?void 0:o.id,a=d.useContext(gu),s=Gr(n),l=d.useContext(na),{menuItemProps:u,labelProps:h,descriptionProps:c,keyboardShortcutProps:p,...f}=I9({...t,id:i,key:r.key,selectionManager:l},a,s),{hoverProps:g,isHovered:m}=Yr({isDisabled:f.isDisabled}),v=ft({...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=$e(t,{global:!0});return delete x.id,delete x.onClick,d.createElement(b,{...oe(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(Pn,{values:[[k3,{slots:{[Wi]:h,label:h,description:c}}],[H3,p],[Gp,{isSelected:f.isSelected}]]},v.children))}),Xp=d.createContext(null),tr=d.createContext(null);function Zp(e){let t=hu(e),n=d.useRef(null),{triggerProps:r,overlayProps:o}=lh({type:"dialog"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);return Ui({ref:n,onResize:s}),r.id=ot(),o["aria-labelledby"]=r.id,d.createElement(Pn,{values:[[tr,t],[ta,t],[Xp,o],[pu,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},d.createElement(J0,{...r,ref:n,isPressed:t.isOpen},e.children))}const La=d.forwardRef(function(t,n){let r=t["aria-labelledby"];[t,n]=ht(t,n,Xp);let{dialogProps:o,titleProps:i}=w3({...t,"aria-labelledby":r},n),a=d.useContext(tr);!o["aria-label"]&&!o["aria-labelledby"]&&t["aria-labelledby"]&&(o["aria-labelledby"]=t["aria-labelledby"]);let s=ft({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(a==null?void 0:a.close)||(()=>{})}}),l=$e(t,{global:!0});return d.createElement("section",{...oe(l,s,o),ref:n,slot:t.slot||void 0},d.createElement(Pn,{values:[[y0,{slots:{[Wi]:{},title:{...i,level:2}}}],[zp,{slots:{[Wi]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},s.children))}),Na=d.forwardRef(function(t,n){[t,n]=ht(t,n,y0);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)}),X3=d.createContext(null),Z3=d.forwardRef(function(t,n){[t,n]=ht(t,n,X3);let{value:r=0,minValue:o=0,maxValue:i=100}=t;r=Mo(r,o,i);let[a,s]=I0(!t["aria-label"]&&!t["aria-labelledby"]),{meterProps:l,labelProps:u}=S3({...t,label:s}),h=(r-o)/(i-o)*100,c=ft({...t,defaultClassName:"react-aria-Meter",values:{percentage:h,valueText:l["aria-valuetext"]}}),p=$e(t,{global:!0});return d.createElement("div",{...oe(p,c,l),ref:n,slot:t.slot||void 0},d.createElement(P3.Provider,{value:{...u,ref:a,elementType:"span"}},c.children))}),J3=d.createContext(null),mu=d.createContext(null),ja=d.forwardRef(function(t,n){if(d.useContext(mu))return d.createElement(Xc,{...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(t8,{isDismissable:o,isKeyboardDismissDisabled:i,isOpen:a,defaultOpen:s,onOpenChange:l,isEntering:h,isExiting:c,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:f},d.createElement(Xc,{...g,modalRef:n},u))});function e8(e,t){[e,t]=ht(e,t,J3);let n=d.useContext(tr),r=Ia(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Gr(t),a=d.useRef(null),s=qi(i,o.isOpen),l=qi(a,o.isOpen),u=s||l||e.isExiting||!1,h=En();return!o.isOpen&&!u||h?null:d.createElement(n8,{...e,state:o,isExiting:u,overlayRef:i,modalRef:a})}const t8=d.forwardRef(e8);function n8({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=g9(t,r,n),a=Ta(t.overlayRef)||t.isEntering||!1,s=ft({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=Iy(),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(bl,{isExiting:t.isExiting,portalContainer:e},d.createElement("div",{...oe($e(t,{global:!0}),i),...s,style:h,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},d.createElement(Pn,{values:[[mu,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[tr,r]]},s.children)))}function Xc(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=d.useContext(mu),i=d.useContext(tr),a=d.useMemo(()=>S0(e.modalRef,n),[e.modalRef,n]),s=Gr(a),l=Ta(s),u=ft({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return d.createElement("div",{...oe($e(e,{global:!0}),t),...u,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&d.createElement(vl,{onDismiss:i.close}),u.children)}const r8=d.createContext({}),Jp=d.createContext(null),o8=d.forwardRef(function(t,n){[t,n]=ht(t,n,r8);let r=x3(t),{groupProps:o}=v3(t,r,n),i=ft({...t,values:{isDisabled:r.isDisabled,state:r},defaultClassName:"react-aria-ToggleButtonGroup"}),a=$e(t,{global:!0});return d.createElement("div",{...oe(a,i,o),ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal","data-disabled":t.isDisabled||void 0},d.createElement(Jp.Provider,{value:r},d.createElement(Wp,null,i.children)))}),i8=d.createContext({}),a8=d.forwardRef(function(t,n){[t,n]=ht(t,n,i8);let r=d.useContext(Jp),o=y3(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?b3({...t,id:t.id},r,n):Vp({...t,id:t.id!=null?String(t.id):void 0},o,n),{focusProps:u,isFocused:h,isFocusVisible:c}=oh(t),{hoverProps:p,isHovered:f}=Yr(t),g=ft({...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=$e(t,{global:!0});return delete m.id,delete m.onClick,d.createElement("button",{...oe(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(Gp.Provider,{value:{isSelected:s}},g.children))}),vu=d.createContext(null),e1=d.createContext(null);function s8(e){let t=qp(e),n=d.useRef(null),{triggerProps:r,tooltipProps:o}=E3(e,t,n);return d.createElement(Pn,{values:[[vu,t],[e1,{...o,triggerRef:n}]]},d.createElement(A5,{...r,ref:n},e.children))}const l8=d.forwardRef(function({UNSTABLE_portalContainer:t,...n},r){[n,r]=ht(n,r,e1);let o=d.useContext(vu),i=qp(n),a=n.isOpen!=null||n.defaultOpen!=null||!o?i:o,s=qi(r,a.isOpen)||n.isExiting||!1;return!a.isOpen&&!s?null:d.createElement(l9,{portalContainer:t},d.createElement(u8,{...n,tooltipRef:r,isExiting:s}))});function u8(e){let t=d.useContext(vu),n=d.useRef(null),{overlayProps:r,arrowProps:o,placement:i,triggerAnchorPoint:a}=H0({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=Ta(e.tooltipRef,!!i)||e.isEntering||!1,l=ft({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:s,isExiting:e.isExiting,state:t}});e=oe(e,r);let{tooltipProps:u}=$3(e,t),h=$e(e,{global:!0});return d.createElement("div",{...oe(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(Qp.Provider,{value:{...o,placement:i,ref:n}},l.children))}function c8(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 d8=function(){var e=c8("user-preferences",{theme:"system"}),t=e[0],n=e[1];return y.jsx(o8,{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(b2,{})},ariaLabel:"System theme"},{value:"light",icon:function(){return y.jsx(q2,{})},ariaLabel:"Light theme"},{value:"dark",icon:function(){return y.jsx(N2,{})},ariaLabel:"Dark theme"}].map(function(r){return y.jsx(a8,{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)})})},Cl=function(e){var t=e.message;return y.jsx("div",{className:"flex items-center justify-center rounded-md bg-red-50 py-4",children:y.jsx("div",{className:"flex flex-col justify-center",children:y.jsx("p",{className:"text-sm text-red-900",children:t})})})},Zc=function(e){var t=e.to,n=e.label,r=e.icon;return y.jsxs(f0,{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})]})},t1=function(e){var t=e.children,n=de.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(V2,{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(Zc,{label:"Overview",icon:y.jsx(m2,{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?xt([],new Array(10),!0).map(function(a,s){return y.jsx(zi,{className:"h-8 w-full"},s)}):i?y.jsx(Cl,{message:"Could not fetch queues"}):r==null?void 0:r.map(function(a){return y.jsx(Zc,{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(R2,{})}),y.jsx(d8,{})]})]})}),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 Ar=d;function q9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var W9=typeof Object.is=="function"?Object.is:q9,G9=Ar.useState,Q9=Ar.useEffect,Y9=Ar.useLayoutEffect,X9=Ar.useDebugValue;function Z9(e,t){var n=t(),r=G9({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Y9(function(){o.value=n,o.getSnapshot=t,ds(o)&&i({inst:o})},[e,n,t]),Q9(function(){return ds(o)&&i({inst:o}),e(function(){ds(o)&&i({inst:o})})},[e]),X9(n),n}function ds(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!W9(e,n)}catch{return!0}}function J9(e,t){return t()}var e3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?J9:Z9;Kp.useSyncExternalStore=Ar.useSyncExternalStore!==void 0?Ar.useSyncExternalStore:e3;Ap.exports=Kp;var t3=Ap.exports;const Bp=d.createContext(!1),Do=d.createContext(null);function n3(e){if(d.useContext(Do))return e.content;let{collection:n,document:r}=a3(e.createCollection);return d.createElement(d.Fragment,null,d.createElement(V9,null,d.createElement(Do.Provider,{value:r},e.content)),d.createElement(r3,{render:e.children,collection:n}))}function r3({collection:e,render:t}){return t(e)}function o3(e,t,n){let r=En(),o=d.useRef(r);o.current=r;let i=d.useCallback(()=>o.current?n():t(),[t,n]);return t3.useSyncExternalStore(e,i)}const i3=typeof d.useSyncExternalStore=="function"?d.useSyncExternalStore:o3;function a3(e){let[t]=d.useState(()=>new H9((e==null?void 0:e())||new B9)),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:i3(n,r,o),document:t}}const xl=d.createContext(null);function s3(e){var t;return t=class extends Zr{},t.type=e,t}function l3(e,t,n,r,o,i){typeof e=="string"&&(e=s3(e));let a=d.useCallback(l=>{l==null||l.setProps(t,n,e,r,i)},[t,n,r,i,e]),s=d.useContext(xl);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(xl.Provider,{value:l},o):null}return d.createElement(e.type,{ref:a},o)}function u3(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=d.forwardRef((o,i)=>{let a=d.useContext(Zi);if(!d.useContext(Bp)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return l3(e,o,i,"children"in o?o.children:null,null,l=>d.createElement(Zi.Provider,{value:a},d.createElement(n,{node:l})))});return r.displayName=t.name,r}function c3(e){return jp({...e,addIdAndValue:!0})}const Wc=d.createContext(null);function d3(e){let t=d.useContext(Wc),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),r=e.idScope||(t==null?void 0:t.idScope),o=c3({...e,idScope:r,dependencies:n});return d.useContext(Do)&&(o=d.createElement(f3,null,o)),t=d.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),d.createElement(Wc.Provider,{value:t},o)}function f3({children:e}){let t=d.useContext(Do),n=d.useMemo(()=>d.createElement(Do.Provider,{value:null},d.createElement(Bp.Provider,{value:!0},e)),[e]);return En()?d.createElement(xl.Provider,{value:t},n):zr.createPortal(n,t)}const h3=d.createContext(null),p3={CollectionRoot({collection:e,renderDropIndicator:t}){return Gc(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Gc(e,t,n)}};function Gc(e,t,n){return jp({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,g3(e,r,n))}})}function g3(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&&(!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 Hp=d.createContext(p3);function m3(e){return d.useMemo(()=>e!=null?new Set([e]):null,[e])}function Vp(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}=_a({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,onClick:c,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:w}=J0(e,t);h&&(w.tabIndex=r?-1:w.tabIndex);let S=oe(w,b,$e(e,{labelable:!0}));return{isPressed:x,buttonProps:oe(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 zp(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=Vp({...e,onPress:Gr(t.toggle,e.onPress)},n);return{isPressed:o,isSelected:r,isDisabled:e.isDisabled||!1,buttonProps:oe(i,{"aria-pressed":r})}}function v3(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=e;let[i,a]=d.useState(!1);ce(()=>{var g;a(!!(t.current&&(!((g=t.current.parentElement)===null||g===void 0)&&g.closest('[role="toolbar"]'))))});const{direction:s}=er(),l=s==="rtl"&&o==="horizontal";let u=J5(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:{...$e(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 b3(e,t,n){let{isDisabled:r}=e,{toolbarProps:o}=v3(e,n);return{groupProps:{...o,role:t.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":r}}}function y3(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}=zp({...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 x3(e={}){let{isReadOnly:t}=e,[n,r]=Zo(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 w3(e){let{selectionMode:t="single",disallowEmptySelection:n,isDisabled:r=!1}=e,[o,i]=Zo(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 C3(e,t){let{role:n="dialog"}=e,r=Ii();r=e["aria-label"]?void 0:r;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){xn(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),xn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),Qh(),{dialogProps:{...$e(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function S3(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=$e(e,{labelable:!0}),{labelProps:l,fieldProps:u}=v9({...e,labelElementType:"span"});t=ko(t,n,r);let h=(t-n)/(r-n),c=w5(a);if(!i&&!o){let p=a.style==="percent"?h:t;o=c.format(p)}return{progressBarProps:oe(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 $3(e){let{progressBarProps:t,labelProps:n}=S3(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}function E3(e,t){let n=$e(e,{labelable:!0}),{hoverProps:r}=Xr({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:oe(n,r,{role:"tooltip"})}}function P3(e,t,n){let{isDisabled:r,trigger:o}=e,i=it(),a=d.useRef(!1),s=d.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},u=b=>{!a.current&&!s.current&&t.close(b)};d.useEffect(()=>{let b=x=>{n&&n.current&&x.key==="Escape"&&(x.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0)}},[n,t]);let h=()=>{o!=="focus"&&(To()==="pointer"?a.current=!0:a.current=!1,l())},c=()=>{o!=="focus"&&(s.current=!1,a.current=!1,u())},p=()=>{s.current=!1,a.current=!1,u(!0)},f=()=>{Oo()&&(s.current=!0,l())},g=()=>{s.current=!1,a.current=!1,u(!0)},{hoverProps:m}=Xr({isDisabled:r,onHoverStart:h,onHoverEnd:c}),{focusableProps:v}=J0({isDisabled:r,onFocus:f,onBlur:g},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...oe(v,m,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:i}}}const R3=d.createContext({}),k3=d.createContext(null),Up=d.createContext({}),fu=z9(function(t,n){[t,n]=pt(t,n,Up);let r=t,{isPending:o}=r,{buttonProps:i,isPressed:a}=Vp(t,n);i=M3(i,o);let{focusProps:s,isFocused:l,isFocusVisible:u}=ih(t),{hoverProps:h,isHovered:c}=Xr({...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"}),g=it(i.id),m=it(),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)&&gc(w,"assertive"),b.current=o},[o,l,v,g]);let x=$e(t,{global:!0});return delete x.onClick,d.createElement("button",{...oe(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(k3.Provider,{value:{id:m}},f.children))});function M3(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 O3=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 qp(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(()=>Qc(e.selectedKeys),[e.selectedKeys]),p=d.useMemo(()=>Qc(e.defaultSelectedKeys,new xt),[e.defaultSelectedKeys]),[f,g]=Zo(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 Qc(e,t){return e?e==="all"?"all":new xt(e):t}class Fa{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&&cs(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&&cs(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?cs(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=O9(Xh(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 Fa(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 La(e){let[t,n]=Zo(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 hu(e){let t=La(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 D3=1500,Yc=500;let On={},_3=0,oo=!1,jt=null,Tn=null;function Wp(e={}){let{delay:t=D3,closeDelay:n=Yc}=e,{isOpen:r,open:o,close:i}=La(e),a=d.useMemo(()=>`${++_3}`,[]),s=d.useRef(null),l=d.useRef(i),u=()=>{On[a]=p},h=()=>{for(let g in On)g!==a&&(On[g](!0),delete On[g])},c=()=>{s.current&&clearTimeout(s.current),s.current=null,h(),u(),oo=!0,o(),jt&&(clearTimeout(jt),jt=null),Tn&&(clearTimeout(Tn),Tn=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)),jt&&(clearTimeout(jt),jt=null),oo&&(Tn&&clearTimeout(Tn),Tn=setTimeout(()=>{delete On[a],Tn=null,oo=!1},Math.max(Yc,n)))},f=()=>{h(),u(),!r&&!jt&&!oo?jt=setTimeout(()=>{jt=null,oo=!0,c()},t):r||c()};return d.useEffect(()=>{l.current=i},[i]),d.useEffect(()=>()=>{s.current&&clearTimeout(s.current),On[a]&&delete On[a]},[a]),{isOpen:r,open:g=>{!g&&t>0&&!s.current?f():c()},close:p}}class F3{*[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]=Zo(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=qp(e),i=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=M9(e,d.useCallback(l=>new F3(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(I3(n,l))},setExpandedKeys:r,selectionManager:new Fa(a,o)}}function I3(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}const N3=d.createContext({}),j3=d.createContext(null);function Gp(e){let t=d.useRef({});return d.createElement(j3.Provider,{value:t},e.children)}const Qp=d.createContext({isSelected:!1}),A3=d.createContext({});class K3 extends Zr{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}}K3.type="separator";const Yp=d.createContext({placement:"bottom"}),pu=d.createContext(null),Xc=d.createContext(null),B3=d.forwardRef(function(t,n){[t,n]=pt(t,n,pu);let r=d.useContext(tr),o=La(t),i=t.isOpen!=null||t.defaultOpen!=null||!r?o:r,a=qi(n,i.isOpen)||t.isExiting||!1,s=U9(),{direction:l}=er();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(H3,{...t,triggerRef:t.triggerRef,state:i,popoverRef:n,isExiting:a,dir:l})});function H3({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...o}){let i=d.useRef(null),a=d.useRef(null),s=d.useContext(Xc),l=s&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:h,underlayProps:c,arrowProps:p,placement:f,triggerAnchorPoint:g}=g9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:l?s:a},e),m=o.popoverRef,v=Ta(m,!!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,S]=d.useState(!1);ce(()=>{m.current&&S(x&&!m.current.querySelector("[role=dialog]"))},[m,x]),d.useEffect(()=>{w&&o.trigger!=="SubmenuTrigger"&&m.current&&!m.current.contains(document.activeElement)&&xn(m.current)},[w,m,o.trigger]);let k=d.useMemo(()=>{let _=b.children;if(r)for(let D of r)_=d.createElement(D.Provider,{value:null},_);return _},[b.children,r]),E={...h.style,"--trigger-anchor-point":g?`${g.x}px ${g.y}px`:void 0,...b.style},R=d.createElement("div",{...oe($e(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:E,dir:o.dir,"data-trigger":o.trigger,"data-placement":f,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&d.createElement(vl,{onDismiss:e.close}),d.createElement(Yp.Provider,{value:{...p,placement:f,ref:i}},k),d.createElement(vl,{onDismiss:e.close}));if(!l)return d.createElement(bl,{...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(Xc.Provider,{value:a},R)));var M;return d.createElement(bl,{...o,shouldContainFocus:w,isExiting:t,portalContainer:(M=n??(s==null?void 0:s.current))!==null&&M!==void 0?M:void 0},R)}const V3=d.createContext({}),Xp=d.createContext(null),gu=d.createContext(null),ta=d.createContext(null),na=d.createContext(null);function z3(e){let t=hu(e),n=d.useRef(null),{menuTriggerProps:r,menuProps:o}=F9({...e,type:"menu"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);Ui({ref:n,onResize:s});let l=d.useRef(null);return d.createElement(Pn,{values:[[Xp,{...o,ref:l}],[tr,t],[ta,t],[pu,{trigger:"MenuTrigger",triggerRef:n,scrollRef:l,placement:"bottom start",style:{"--trigger-width":i},"aria-labelledby":o["aria-labelledby"]}]]},d.createElement(eh,{...r,ref:n,isPressed:t.isOpen},e.children))}const U3=d.createContext(null);class q3 extends Zr{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}}q3.type="submenutrigger";const W3=d.forwardRef(function(t,n){return[t,n]=pt(t,n,Xp),d.createElement(n3,{content:d.createElement(d3,t)},r=>d.createElement(G3,{props:t,collection:r,menuRef:n}))});function G3({props:e,collection:t,menuRef:n}){[e,n]=pt(e,n,sc);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(ta),{isVirtualized:l,CollectionRoot:u}=d.useContext(Hp),{menuProps:h}=L9({...e,isVirtualized:l,onClose:e.onClose||(s==null?void 0:s.close)},a,n),c=ht({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=$e(e,{global:!0});return d.createElement(nh,null,d.createElement("div",{...oe(f,c,h),ref:n,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},d.createElement(Pn,{values:[[gu,a],[A3,{elementType:"div"}],[h3,{name:"MenuSection",render:Y3}],[U3,{parentMenuRef:n,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[wl,null],[sc,null],[X2,null],[na,a.selectionManager],[ta,s??hu({})]]},d.createElement(Gp,null,d.createElement(u,{collection:a.collection,persistedKeys:m3(a.selectionManager.focusedKey),scrollRef:n}))),p))}class Q3 extends Fa{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 Y3(e,t,n,r="react-aria-MenuSection"){var o,i;let a=d.useContext(gu),{CollectionBranch:s}=d.useContext(Hp),[l,u]=I0();var h;let{headingProps:c,groupProps:p}=N9({heading:u,"aria-label":(h=n.props["aria-label"])!==null&&h!==void 0?h:void 0}),f=ht({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(na),m=qp(e),v=e.selectionMode!=null?new Q3(g,m):g,b=$e(e,{global:!0});return delete b.id,d.createElement("section",{...oe(b,f,p),ref:t},d.createElement(Pn,{values:[[N3,{...c,ref:l}],[na,v]]},d.createElement(s,{collection:a.collection,parent:n})))}const wl=d.createContext(null),X3=u3(Lp,function(t,n,r){var o;[t,n]=pt(t,n,wl);let i=(o=L0(wl))===null||o===void 0?void 0:o.id,a=d.useContext(gu),s=Qr(n),l=d.useContext(na),{menuItemProps:u,labelProps:h,descriptionProps:c,keyboardShortcutProps:p,...f}=I9({...t,id:i,key:r.key,selectionManager:l},a,s),{hoverProps:g,isHovered:m}=Xr({isDisabled:f.isDisabled}),v=ht({...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=$e(t,{global:!0});return delete x.id,delete x.onClick,d.createElement(b,{...oe(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(Pn,{values:[[O3,{slots:{[Wi]:h,label:h,description:c}}],[V3,p],[Qp,{isSelected:f.isSelected}]]},v.children))}),Zp=d.createContext(null),tr=d.createContext(null);function Jp(e){let t=hu(e),n=d.useRef(null),{triggerProps:r,overlayProps:o}=uh({type:"dialog"},t,n),[i,a]=d.useState(null),s=d.useCallback(()=>{n.current&&a(n.current.offsetWidth+"px")},[n]);return Ui({ref:n,onResize:s}),r.id=it(),o["aria-labelledby"]=r.id,d.createElement(Pn,{values:[[tr,t],[ta,t],[Zp,o],[pu,{trigger:"DialogTrigger",triggerRef:n,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},d.createElement(eh,{...r,ref:n,isPressed:t.isOpen},e.children))}const Ia=d.forwardRef(function(t,n){let r=t["aria-labelledby"];[t,n]=pt(t,n,Zp);let{dialogProps:o,titleProps:i}=C3({...t,"aria-labelledby":r},n),a=d.useContext(tr);!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=$e(t,{global:!0});return d.createElement("section",{...oe(l,s,o),ref:n,slot:t.slot||void 0},d.createElement(Pn,{values:[[x0,{slots:{[Wi]:{},title:{...i,level:2}}}],[Up,{slots:{[Wi]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},s.children))}),Na=d.forwardRef(function(t,n){[t,n]=pt(t,n,x0);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)}),Z3=d.createContext(null),J3=d.forwardRef(function(t,n){[t,n]=pt(t,n,Z3);let{value:r=0,minValue:o=0,maxValue:i=100}=t;r=ko(r,o,i);let[a,s]=I0(!t["aria-label"]&&!t["aria-labelledby"]),{meterProps:l,labelProps:u}=$3({...t,label:s}),h=(r-o)/(i-o)*100,c=ht({...t,defaultClassName:"react-aria-Meter",values:{percentage:h,valueText:l["aria-valuetext"]}}),p=$e(t,{global:!0});return d.createElement("div",{...oe(p,c,l),ref:n,slot:t.slot||void 0},d.createElement(R3.Provider,{value:{...u,ref:a,elementType:"span"}},c.children))}),e4=d.createContext(null),mu=d.createContext(null),ja=d.forwardRef(function(t,n){if(d.useContext(mu))return d.createElement(Zc,{...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(n4,{isDismissable:o,isKeyboardDismissDisabled:i,isOpen:a,defaultOpen:s,onOpenChange:l,isEntering:h,isExiting:c,UNSTABLE_portalContainer:p,shouldCloseOnInteractOutside:f},d.createElement(Zc,{...g,modalRef:n},u))});function t4(e,t){[e,t]=pt(e,t,e4);let n=d.useContext(tr),r=La(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Qr(t),a=d.useRef(null),s=qi(i,o.isOpen),l=qi(a,o.isOpen),u=s||l||e.isExiting||!1,h=En();return!o.isOpen&&!u||h?null:d.createElement(r4,{...e,state:o,isExiting:u,overlayRef:i,modalRef:a})}const n4=d.forwardRef(t4);function r4({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=m9(t,r,n),a=Ta(t.overlayRef)||t.isEntering||!1,s=ht({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=Iy(),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(bl,{isExiting:t.isExiting,portalContainer:e},d.createElement("div",{...oe($e(t,{global:!0}),i),...s,style:h,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},d.createElement(Pn,{values:[[mu,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[tr,r]]},s.children)))}function Zc(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=d.useContext(mu),i=d.useContext(tr),a=d.useMemo(()=>$0(e.modalRef,n),[e.modalRef,n]),s=Qr(a),l=Ta(s),u=ht({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return d.createElement("div",{...oe($e(e,{global:!0}),t),...u,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&d.createElement(vl,{onDismiss:i.close}),u.children)}const o4=d.createContext({}),eg=d.createContext(null),i4=d.forwardRef(function(t,n){[t,n]=pt(t,n,o4);let r=w3(t),{groupProps:o}=b3(t,r,n),i=ht({...t,values:{isDisabled:r.isDisabled,state:r},defaultClassName:"react-aria-ToggleButtonGroup"}),a=$e(t,{global:!0});return d.createElement("div",{...oe(a,i,o),ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal","data-disabled":t.isDisabled||void 0},d.createElement(eg.Provider,{value:r},d.createElement(Gp,null,i.children)))}),a4=d.createContext({}),s4=d.forwardRef(function(t,n){[t,n]=pt(t,n,a4);let r=d.useContext(eg),o=x3(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?y3({...t,id:t.id},r,n):zp({...t,id:t.id!=null?String(t.id):void 0},o,n),{focusProps:u,isFocused:h,isFocusVisible:c}=ih(t),{hoverProps:p,isHovered:f}=Xr(t),g=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"}),m=$e(t,{global:!0});return delete m.id,delete m.onClick,d.createElement("button",{...oe(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(Qp.Provider,{value:{isSelected:s}},g.children))}),vu=d.createContext(null),tg=d.createContext(null);function l4(e){let t=Wp(e),n=d.useRef(null),{triggerProps:r,tooltipProps:o}=P3(e,t,n);return d.createElement(Pn,{values:[[vu,t],[tg,{...o,triggerRef:n}]]},d.createElement(K5,{...r,ref:n},e.children))}const u4=d.forwardRef(function({UNSTABLE_portalContainer:t,...n},r){[n,r]=pt(n,r,tg);let o=d.useContext(vu),i=Wp(n),a=n.isOpen!=null||n.defaultOpen!=null||!o?i:o,s=qi(r,a.isOpen)||n.isExiting||!1;return!a.isOpen&&!s?null:d.createElement(u9,{portalContainer:t},d.createElement(c4,{...n,tooltipRef:r,isExiting:s}))});function c4(e){let t=d.useContext(vu),n=d.useRef(null),{overlayProps:r,arrowProps:o,placement:i,triggerAnchorPoint:a}=V0({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=Ta(e.tooltipRef,!!i)||e.isEntering||!1,l=ht({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:s,isExiting:e.isExiting,state:t}});e=oe(e,r);let{tooltipProps:u}=E3(e,t),h=$e(e,{global:!0});return d.createElement("div",{...oe(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(Yp.Provider,{value:{...o,placement:i,ref:n}},l.children))}function d4(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 f4=function(){var e=d4("user-preferences",{theme:"system"}),t=e[0],n=e[1];return y.jsx(i4,{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(y2,{})},ariaLabel:"System theme"},{value:"light",icon:function(){return y.jsx(W2,{})},ariaLabel:"Light theme"},{value:"dark",icon:function(){return y.jsx(j2,{})},ariaLabel:"Dark theme"}].map(function(r){return y.jsx(s4,{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)})})},Cl=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})})})},Jc=function(e){var t=e.to,n=e.label,r=e.icon;return y.jsxs(h0,{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})]})},ng=function(e){var t=e.children,n=de.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(z2,{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(Jc,{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?We([],new Array(10),!0).map(function(a,s){return y.jsx(zi,{className:"h-8 w-full"},s)}):i?y.jsx(Cl,{message:"Could not fetch queues"}):r==null?void 0:r.map(function(a){return y.jsx(Jc,{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(k2,{})}),y.jsx(f4,{})]})]})}),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 rg(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function pn(e,t){return typeof e=="function"?e(t):e}function at(e,t){return n=>{t.setState(r=>({...r,[e]:pn(n,r[e])}))}}function Aa(e){return e instanceof Function}function h4(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function p4(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 Z(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=(g,m)=>{for(g=String(g);g.length<m;)g=" "+g;return g};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 J(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 p8(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:Z(()=>[e,n,t,i],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),J(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(i,n,t,e)},{}),i}function g8(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:Z(()=>[!0],()=>{var p;return[c,...(p=c.columns)==null?void 0:p.flatMap(f=>f.getFlatColumns())]},J(e.options,"debugColumns")),getLeafColumns:Z(()=>[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]},J(e.options,"debugColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(c,e);return c}const Fe="debugHeaders";function Jc(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 m8={createTable:e=>{e.getHeaderGroups=Z(()=>[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 yi(t,[...s,...u,...l],e)},J(e.options,Fe)),e.getCenterHeaderGroups=Z(()=>[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))),yi(t,n,e,"center")),J(e.options,Fe)),e.getLeftHeaderGroups=Z(()=>[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 yi(t,i,e,"left")},J(e.options,Fe)),e.getRightHeaderGroups=Z(()=>[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 yi(t,i,e,"right")},J(e.options,Fe)),e.getFooterGroups=Z(()=>[e.getHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getLeftFooterGroups=Z(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getCenterFooterGroups=Z(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getRightFooterGroups=Z(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getFlatHeaders=Z(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getLeftFlatHeaders=Z(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getCenterFlatHeaders=Z(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getRightFlatHeaders=Z(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getCenterLeafHeaders=Z(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),J(e.options,Fe)),e.getLeftLeafHeaders=Z(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),J(e.options,Fe)),e.getRightLeafHeaders=Z(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),J(e.options,Fe)),e.getLeafHeaders=Z(()=>[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()},J(e.options,Fe))}};function yi(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,E=!1;if(x&&v.column.parent?w=v.column.parent:(w=v.column,E=!0),b&&(b==null?void 0:b.column)===w)b.subHeaders.push(v);else{const k=Jc(n,w,{id:[r,f,w.id,v==null?void 0:v.id].filter(Boolean).join("_"),isPlaceholder:E,placeholderId:E?`${m.filter($=>$.column===w).length}`:void 0,depth:f,index:m.length});k.subHeaders.push(v),m.push(k)}g.headers.push(v),v.headerGroup=g}),l.push(g),f>0&&u(m,f-1)},h=t.map((p,f)=>Jc(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:E,rowSpan:k}=w;m+=E,b.push(k)})):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 v8=(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:()=>h8(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:Z(()=>[e.getAllLeafColumns()],l=>l.map(u=>p8(e,s,u,u.id)),J(e.options,"debugRows")),_getAllCellsByColumnId:Z(()=>[s.getAllCells()],l=>l.reduce((u,h)=>(u[h.column.id]=h,u),{}),J(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},b8={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()}}},r1=(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))};r1.autoRemove=e=>wt(e);const o1=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};o1.autoRemove=e=>wt(e);const i1=(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())};i1.autoRemove=e=>wt(e);const a1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};a1.autoRemove=e=>wt(e);const s1=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});s1.autoRemove=e=>wt(e)||!(e!=null&&e.length);const l1=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});l1.autoRemove=e=>wt(e)||!(e!=null&&e.length);const u1=(e,t,n)=>e.getValue(t)===n;u1.autoRemove=e=>wt(e);const c1=(e,t,n)=>e.getValue(t)==n;c1.autoRemove=e=>wt(e);const bu=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};bu.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]};bu.autoRemove=e=>wt(e)||wt(e[0])&&wt(e[1]);const Bt={includesString:r1,includesStringSensitive:o1,equalsString:i1,arrIncludes:a1,arrIncludesAll:s1,arrIncludesSome:l1,equals:u1,weakEquals:c1,inNumberRange:bu};function wt(e){return e==null||e===""}const y8={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"?Bt.includesString:typeof r=="number"?Bt.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Bt.equals:Array.isArray(r)?Bt.arrIncludes:Bt.weakEquals},e.getFilterFn=()=>{var n,r;return Aa(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:Bt[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=pn(n,i?i.value:void 0);if(ed(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=pn(t,o))==null?void 0:i.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(ed(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 ed(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const x8=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),w8=(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},C8=(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},S8=(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]},$8=(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},E8=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!f8(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},P8=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),R8=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,M8=(e,t)=>t.length,fs={sum:x8,min:w8,max:C8,extent:S8,mean:$8,median:E8,unique:P8,uniqueCount:R8,count:M8},k8={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 fs.sum;if(Object.prototype.toString.call(r)==="[object Date]")return fs.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Aa(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:fs[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 T8={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:it("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Z(n=>[xo(t,n)],n=>n.findIndex(r=>r.id===e.id),J(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=xo(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=xo(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=Z(()=>[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)},J(e.options,"debugTable"))}},hs=()=>({left:[],right:[]}),D8={getInitialState:e=>({columnPinning:hs(),...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=Z(()=>[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))},J(t.options,"debugRows")),e.getLeftVisibleCells=Z(()=>[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"})),J(t.options,"debugRows")),e.getRightVisibleCells=Z(()=>[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"})),J(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?hs():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:hs())},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=Z(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),J(e.options,"debugColumns")),e.getRightLeafColumns=Z(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),J(e.options,"debugColumns")),e.getCenterLeafColumns=Z(()=>[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))},J(e.options,"debugColumns"))}};function _8(e){return e||(typeof document<"u"?document:null)}const xi={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ps=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),F8={getDefaultColumnDef:()=>xi,getInitialState:e=>({columnSizing:{},columnSizingInfo:ps(),...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:xi.minSize,(r=i??e.columnDef.size)!=null?r:xi.size),(o=e.columnDef.maxSize)!=null?o:xi.maxSize)},e.getStart=Z(n=>[n,xo(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),J(t.options,"debugColumns")),e.getAfter=Z(n=>[n,xo(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),J(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(),gs(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=gs(i)?Math.round(i.touches[0].clientX):i.clientX,u={},h=(b,x)=>{typeof x=="number"&&(t.setColumnSizingInfo(w=>{var E,k;const $=t.options.columnResizeDirection==="rtl"?-1:1,R=(x-((E=w==null?void 0:w.startOffset)!=null?E:0))*$,M=Math.max(R/((k=w==null?void 0:w.startSize)!=null?k:0),-.999999);return w.columnSizingStart.forEach(_=>{let[D,P]=_;u[D]=Math.round(Math.max(P+P*M,0)*100)/100}),{...w,deltaOffset:R,deltaPercentage:M}}),(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=_8(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=I8()?{passive:!1}:!1;gs(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?ps():(n=e.initialState.columnSizingInfo)!=null?n:ps())},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 wi=null;function I8(){if(typeof wi=="boolean")return wi;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 wi=e,wi}function gs(e){return e.type==="touchstart"}const L8={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=Z(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),J(t.options,"debugRows")),e.getVisibleCells=Z(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],J(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>Z(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),J(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 xo(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const N8={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()}}},j8={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=()=>Bt.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Aa(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Bt[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},A8={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()}}}},Sl=0,$l=10,ms=()=>({pageIndex:Sl,pageSize:$l}),K8={getInitialState:e=>({...e,pagination:{...ms(),...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=>pn(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?ms():(o=e.initialState.pagination)!=null?o:ms())},e.setPageIndex=r=>{e.setPagination(o=>{let i=pn(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?Sl:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Sl)},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,pn(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=pn(r,(i=e.options.pageCount)!=null?i:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=Z(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,a)=>a)),o},J(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}}},vs=()=>({top:[],bottom:[]}),B8={getInitialState:e=>({rowPinning:vs(),...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?vs():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:vs())},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=Z(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),J(e.options,"debugRows")),e.getBottomRows=Z(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),J(e.options,"debugRows")),e.getCenterRows=Z(()=>[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))},J(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=>{El(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?bs(e,n):{rows:[],flatRows:[],rowsById:{}},J(e.options,"debugTable")),e.getFilteredSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?bs(e,n):{rows:[],flatRows:[],rowsById:{}},J(e.options,"debugTable")),e.getGroupedSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?bs(e,n):{rows:[],flatRows:[],rowsById:{}},J(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 El(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return yu(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Pl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Pl(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)}}}},El=(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=>El(e,s.id,n,r,o))};function bs(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(a,s){return a.map(l=>{var u;const h=yu(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 yu(e,t){var n;return(n=t[e.id])!=null?n:!1}function Pl(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()&&(yu(a,t)?i=!0:o=!1),a.subRows&&a.subRows.length)){const s=Pl(a,t);s==="all"?i=!0:(s==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Rl=/([0-9]+)/gm,V8=(e,t,n)=>d1(wn(e.getValue(n)).toLowerCase(),wn(t.getValue(n)).toLowerCase()),z8=(e,t,n)=>d1(wn(e.getValue(n)),wn(t.getValue(n))),U8=(e,t,n)=>xu(wn(e.getValue(n)).toLowerCase(),wn(t.getValue(n)).toLowerCase()),q8=(e,t,n)=>xu(wn(e.getValue(n)),wn(t.getValue(n))),W8=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},G8=(e,t,n)=>xu(e.getValue(n),t.getValue(n));function xu(e,t){return e===t?0:e>t?1:-1}function wn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function d1(e,t){const n=e.split(Rl).filter(Boolean),r=t.split(Rl).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 oo={alphanumeric:V8,alphanumericCaseSensitive:z8,text:U8,textCaseSensitive:q8,datetime:W8,basic:G8},Q8={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 oo.datetime;if(typeof i=="string"&&(r=!0,i.split(Rl).length>1))return oo.alphanumeric}return r?oo.text:oo.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 Aa(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:oo[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())}},Y8=[m8,L8,T8,D8,b8,y8,N8,j8,Q8,k8,A8,K8,B8,H8,F8];function X8(e){var t,n;const r=[...Y8,...(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=pn(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:Z(()=>[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}},J(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Z(()=>[o._getColumnDefs()],p=>{const f=function(g,m,v){return v===void 0&&(v=0),g.map(b=>{const x=g8(o,b,v,m),w=b;return x.columns=w.columns?f(w.columns,x,v+1):[],x})};return f(p)},J(e,"debugColumns")),getAllFlatColumns:Z(()=>[o.getAllColumns()],p=>p.flatMap(f=>f.getFlatColumns()),J(e,"debugColumns")),_getAllFlatColumnsById:Z(()=>[o.getAllFlatColumns()],p=>p.reduce((f,g)=>(f[g.id]=g,f),{}),J(e,"debugColumns")),getAllLeafColumns:Z(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(p,f)=>{let g=p.flatMap(m=>m.getLeafColumns());return f(g)},J(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 f1(){return e=>Z(()=>[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=v8(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},J(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 J(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 g4(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:Z(()=>[e,n,t,i],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),J(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(i,n,t,e)},{}),i}function m4(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:Z(()=>[!0],()=>{var p;return[c,...(p=c.columns)==null?void 0:p.flatMap(f=>f.getFlatColumns())]},J(e.options,"debugColumns")),getLeafColumns:Z(()=>[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]},J(e.options,"debugColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(c,e);return c}const Fe="debugHeaders";function ed(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 v4={createTable:e=>{e.getHeaderGroups=Z(()=>[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 yi(t,[...s,...u,...l],e)},J(e.options,Fe)),e.getCenterHeaderGroups=Z(()=>[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))),yi(t,n,e,"center")),J(e.options,Fe)),e.getLeftHeaderGroups=Z(()=>[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 yi(t,i,e,"left")},J(e.options,Fe)),e.getRightHeaderGroups=Z(()=>[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 yi(t,i,e,"right")},J(e.options,Fe)),e.getFooterGroups=Z(()=>[e.getHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getLeftFooterGroups=Z(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getCenterFooterGroups=Z(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getRightFooterGroups=Z(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),J(e.options,Fe)),e.getFlatHeaders=Z(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getLeftFlatHeaders=Z(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getCenterFlatHeaders=Z(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getRightFlatHeaders=Z(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),J(e.options,Fe)),e.getCenterLeafHeaders=Z(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),J(e.options,Fe)),e.getLeftLeafHeaders=Z(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),J(e.options,Fe)),e.getRightLeafHeaders=Z(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),J(e.options,Fe)),e.getLeafHeaders=Z(()=>[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()},J(e.options,Fe))}};function yi(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 k=ed(n,w,{id:[r,f,w.id,v==null?void 0:v.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${m.filter(E=>E.column===w).length}`:void 0,depth:f,index:m.length});k.subHeaders.push(v),m.push(k)}g.headers.push(v),v.headerGroup=g}),l.push(g),f>0&&u(m,f-1)},h=t.map((p,f)=>ed(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:k}=w;m+=S,b.push(k)})):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 b4=(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:()=>p4(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:Z(()=>[e.getAllLeafColumns()],l=>l.map(u=>g4(e,s,u,u.id)),J(e.options,"debugRows")),_getAllCellsByColumnId:Z(()=>[s.getAllCells()],l=>l.reduce((u,h)=>(u[h.column.id]=h,u),{}),J(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},y4={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()}}},og=(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))};og.autoRemove=e=>wt(e);const ig=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};ig.autoRemove=e=>wt(e);const ag=(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())};ag.autoRemove=e=>wt(e);const sg=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};sg.autoRemove=e=>wt(e);const lg=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});lg.autoRemove=e=>wt(e)||!(e!=null&&e.length);const ug=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});ug.autoRemove=e=>wt(e)||!(e!=null&&e.length);const cg=(e,t,n)=>e.getValue(t)===n;cg.autoRemove=e=>wt(e);const dg=(e,t,n)=>e.getValue(t)==n;dg.autoRemove=e=>wt(e);const bu=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};bu.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]};bu.autoRemove=e=>wt(e)||wt(e[0])&&wt(e[1]);const Bt={includesString:og,includesStringSensitive:ig,equalsString:ag,arrIncludes:sg,arrIncludesAll:lg,arrIncludesSome:ug,equals:cg,weakEquals:dg,inNumberRange:bu};function wt(e){return e==null||e===""}const x4={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:at("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"?Bt.includesString:typeof r=="number"?Bt.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Bt.equals:Array.isArray(r)?Bt.arrIncludes:Bt.weakEquals},e.getFilterFn=()=>{var n,r;return Aa(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:Bt[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=pn(n,i?i.value:void 0);if(td(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=pn(t,o))==null?void 0:i.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(td(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 td(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const w4=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),C4=(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},S4=(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},$4=(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]},E4=(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},P4=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!h4(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},R4=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),k4=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,M4=(e,t)=>t.length,fs={sum:w4,min:C4,max:S4,extent:$4,mean:E4,median:P4,unique:R4,uniqueCount:k4,count:M4},O4={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:at("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 fs.sum;if(Object.prototype.toString.call(r)==="[object Date]")return fs.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Aa(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:fs[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 T4(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 D4={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:at("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Z(n=>[wo(t,n)],n=>n.findIndex(r=>r.id===e.id),J(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=wo(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=wo(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=Z(()=>[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 T4(i,n,r)},J(e.options,"debugTable"))}},hs=()=>({left:[],right:[]}),_4={getInitialState:e=>({columnPinning:hs(),...e}),getDefaultOptions:e=>({onColumnPinningChange:at("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=Z(()=>[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))},J(t.options,"debugRows")),e.getLeftVisibleCells=Z(()=>[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"})),J(t.options,"debugRows")),e.getRightVisibleCells=Z(()=>[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"})),J(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?hs():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:hs())},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=Z(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),J(e.options,"debugColumns")),e.getRightLeafColumns=Z(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),J(e.options,"debugColumns")),e.getCenterLeafColumns=Z(()=>[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))},J(e.options,"debugColumns"))}};function F4(e){return e||(typeof document<"u"?document:null)}const xi={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ps=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),L4={getDefaultColumnDef:()=>xi,getInitialState:e=>({columnSizing:{},columnSizingInfo:ps(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:at("columnSizing",e),onColumnSizingInfoChange:at("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:xi.minSize,(r=i??e.columnDef.size)!=null?r:xi.size),(o=e.columnDef.maxSize)!=null?o:xi.maxSize)},e.getStart=Z(n=>[n,wo(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),J(t.options,"debugColumns")),e.getAfter=Z(n=>[n,wo(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),J(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(),gs(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=gs(i)?Math.round(i.touches[0].clientX):i.clientX,u={},h=(b,x)=>{typeof x=="number"&&(t.setColumnSizingInfo(w=>{var S,k;const E=t.options.columnResizeDirection==="rtl"?-1:1,R=(x-((S=w==null?void 0:w.startOffset)!=null?S:0))*E,M=Math.max(R/((k=w==null?void 0:w.startSize)!=null?k:0),-.999999);return w.columnSizingStart.forEach(_=>{let[D,P]=_;u[D]=Math.round(Math.max(P+P*M,0)*100)/100}),{...w,deltaOffset:R,deltaPercentage:M}}),(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=F4(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=I4()?{passive:!1}:!1;gs(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?ps():(n=e.initialState.columnSizingInfo)!=null?n:ps())},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 wi=null;function I4(){if(typeof wi=="boolean")return wi;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 wi=e,wi}function gs(e){return e.type==="touchstart"}const N4={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:at("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=Z(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),J(t.options,"debugRows")),e.getVisibleCells=Z(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],J(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>Z(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),J(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 wo(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const j4={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()}}},A4={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:at("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=()=>Bt.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Aa(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Bt[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},K4={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:at("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()}}}},Sl=0,$l=10,ms=()=>({pageIndex:Sl,pageSize:$l}),B4={getInitialState:e=>({...e,pagination:{...ms(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:at("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=>pn(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?ms():(o=e.initialState.pagination)!=null?o:ms())},e.setPageIndex=r=>{e.setPagination(o=>{let i=pn(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?Sl:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Sl)},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,pn(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=pn(r,(i=e.options.pageCount)!=null?i:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=Z(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,a)=>a)),o},J(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}}},vs=()=>({top:[],bottom:[]}),H4={getInitialState:e=>({rowPinning:vs(),...e}),getDefaultOptions:e=>({onRowPinningChange:at("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?vs():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:vs())},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=Z(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),J(e.options,"debugRows")),e.getBottomRows=Z(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),J(e.options,"debugRows")),e.getCenterRows=Z(()=>[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))},J(e.options,"debugRows"))}},V4={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:at("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=>{El(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?bs(e,n):{rows:[],flatRows:[],rowsById:{}},J(e.options,"debugTable")),e.getFilteredSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?bs(e,n):{rows:[],flatRows:[],rowsById:{}},J(e.options,"debugTable")),e.getGroupedSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?bs(e,n):{rows:[],flatRows:[],rowsById:{}},J(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 El(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return yu(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Pl(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Pl(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)}}}},El=(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=>El(e,s.id,n,r,o))};function bs(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(a,s){return a.map(l=>{var u;const h=yu(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 yu(e,t){var n;return(n=t[e.id])!=null?n:!1}function Pl(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()&&(yu(a,t)?i=!0:o=!1),a.subRows&&a.subRows.length)){const s=Pl(a,t);s==="all"?i=!0:(s==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Rl=/([0-9]+)/gm,z4=(e,t,n)=>fg(wn(e.getValue(n)).toLowerCase(),wn(t.getValue(n)).toLowerCase()),U4=(e,t,n)=>fg(wn(e.getValue(n)),wn(t.getValue(n))),q4=(e,t,n)=>xu(wn(e.getValue(n)).toLowerCase(),wn(t.getValue(n)).toLowerCase()),W4=(e,t,n)=>xu(wn(e.getValue(n)),wn(t.getValue(n))),G4=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},Q4=(e,t,n)=>xu(e.getValue(n),t.getValue(n));function xu(e,t){return e===t?0:e>t?1:-1}function wn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function fg(e,t){const n=e.split(Rl).filter(Boolean),r=t.split(Rl).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 io={alphanumeric:z4,alphanumericCaseSensitive:U4,text:q4,textCaseSensitive:W4,datetime:G4,basic:Q4},Y4={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:at("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 io.datetime;if(typeof i=="string"&&(r=!0,i.split(Rl).length>1))return io.alphanumeric}return r?io.text:io.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 Aa(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:io[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())}},X4=[v4,N4,D4,_4,y4,x4,j4,A4,Y4,O4,K4,B4,H4,V4,L4];function Z4(e){var t,n;const r=[...X4,...(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=pn(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:Z(()=>[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}},J(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Z(()=>[o._getColumnDefs()],p=>{const f=function(g,m,v){return v===void 0&&(v=0),g.map(b=>{const x=m4(o,b,v,m),w=b;return x.columns=w.columns?f(w.columns,x,v+1):[],x})};return f(p)},J(e,"debugColumns")),getAllFlatColumns:Z(()=>[o.getAllColumns()],p=>p.flatMap(f=>f.getFlatColumns()),J(e,"debugColumns")),_getAllFlatColumnsById:Z(()=>[o.getAllFlatColumns()],p=>p.reduce((f,g)=>(f[g.id]=g,f),{}),J(e,"debugColumns")),getAllLeafColumns:Z(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(p,f)=>{let g=p.flatMap(m=>m.getLeafColumns());return f(g)},J(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 hg(){return e=>Z(()=>[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=b4(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},J(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 ra(e,t){return e?Z8(e)?S.createElement(e,t):e:null}function Z8(e){return J8(e)||typeof e=="function"||e4(e)}function J8(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function e4(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function h1(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=S.useState(()=>({current:X8(t)})),[r,o]=S.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 p1=6048e5,t4=864e5,td=6e4,nd=525600,gr=43200,oa=1440,rd=Symbol.for("constructDateFrom");function Qt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&rd in e?e[rd](t):e instanceof Date?new e.constructor(t):new Date(t)}function Oe(e,t){return Qt(t||e,e)}let n4={};function Zr(){return n4}function _o(e,t){var s,l,u,h;const n=Zr(),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 ia(e,t){return _o(e,{...t,weekStartsOn:1})}function g1(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=ia(o),a=Qt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=ia(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Ar(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 Jo(e,...t){const n=Qt.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function od(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function r4(e,t,n){const[r,o]=Jo(n==null?void 0:n.in,e,t),i=od(r),a=od(o),s=+i-Ar(i),l=+a-Ar(a);return Math.round((s-l)/t4)}function o4(e,t){const n=g1(e,t),r=Qt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ia(r)}function wo(e,t){const n=+Oe(e)-+Oe(t);return n<0?-1:n>0?1:n}function i4(e){return Qt(e,Date.now())}function a4(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function s4(e){return!(!a4(e)&&typeof e!="number"||isNaN(+Oe(e)))}function l4(e,t,n){const[r,o]=Jo(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 u4(e,t){return+Oe(e)-+Oe(t)}function c4(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function d4(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 f4(e,t){const n=Oe(e,t==null?void 0:t.in);return+c4(n,t)==+d4(n,t)}function h4(e,t,n){const[r,o,i]=Jo(n==null?void 0:n.in,e,e,t),a=wo(o,i),s=Math.abs(l4(o,i));if(s<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-a*s);let l=wo(o,i)===-a;f4(r)&&s===1&&wo(r,i)===1&&(l=!1);const u=a*(s-+l);return u===0?0:u}function p4(e,t,n){const r=u4(e,t)/1e3;return m1(n==null?void 0:n.roundingMethod)(r)}function g4(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 m4={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"}},v4=(e,t,n)=>{let r;const o=m4[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 ys(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const b4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},y4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},x4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},w4={date:ys({formats:b4,defaultWidth:"full"}),time:ys({formats:y4,defaultWidth:"full"}),dateTime:ys({formats:x4,defaultWidth:"full"})},C4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},S4=(e,t,n,r)=>C4[e];function io(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 $4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},E4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},P4={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"]},R4={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"]},M4={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"}},k4={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"}},O4=(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"},T4={ordinalNumber:O4,era:io({values:$4,defaultWidth:"wide"}),quarter:io({values:E4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:io({values:P4,defaultWidth:"wide"}),day:io({values:R4,defaultWidth:"wide"}),dayPeriod:io({values:M4,defaultWidth:"wide",formattingValues:k4,defaultFormattingWidth:"wide"})};function ao(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)?_4(s,c=>c.test(a)):D4(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 D4(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _4(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function F4(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 I4=/^(\d+)(th|st|nd|rd)?/i,L4=/\d+/i,N4={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},j4={any:[/^b/i,/^(a|c)/i]},A4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},K4={any:[/1/i,/2/i,/3/i,/4/i]},B4={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},H4={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]},V4={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},z4={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]},U4={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},q4={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}},W4={ordinalNumber:F4({matchPattern:I4,parsePattern:L4,valueCallback:e=>parseInt(e,10)}),era:ao({matchPatterns:N4,defaultMatchWidth:"wide",parsePatterns:j4,defaultParseWidth:"any"}),quarter:ao({matchPatterns:A4,defaultMatchWidth:"wide",parsePatterns:K4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ao({matchPatterns:B4,defaultMatchWidth:"wide",parsePatterns:H4,defaultParseWidth:"any"}),day:ao({matchPatterns:V4,defaultMatchWidth:"wide",parsePatterns:z4,defaultParseWidth:"any"}),dayPeriod:ao({matchPatterns:U4,defaultMatchWidth:"any",parsePatterns:q4,defaultParseWidth:"any"})},wu={code:"en-US",formatDistance:v4,formatLong:w4,formatRelative:S4,localize:T4,match:W4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function G4(e,t){const n=Oe(e,t==null?void 0:t.in);return r4(n,g4(n))+1}function Q4(e,t){const n=Oe(e,t==null?void 0:t.in),r=+ia(n)-+o4(n);return Math.round(r/p1)+1}function v1(e,t){var h,c,p,f;const n=Oe(e,t==null?void 0:t.in),r=n.getFullYear(),o=Zr(),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=_o(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=_o(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function Y4(e,t){var s,l,u,h;const n=Zr(),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=v1(e,t),i=Qt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),_o(i,t)}function X4(e,t){const n=Oe(e,t==null?void 0:t.in),r=+_o(n,t)-+Y4(n,t);return Math.round(r/p1)+1}function ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Jt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ue(n+1,2)},d(e,t){return ue(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 ue(e.getHours()%12||12,t.length)},H(e,t){return ue(e.getHours(),t.length)},m(e,t){return ue(e.getMinutes(),t.length)},s(e,t){return ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return ue(o,t.length)}},lr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},id={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 Jt.y(e,t)},Y:function(e,t,n,r){const o=v1(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return ue(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):ue(i,t.length)},R:function(e,t){const n=g1(e);return ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return ue(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 ue(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 ue(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 Jt.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 ue(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=X4(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):ue(o,t.length)},I:function(e,t,n){const r=Q4(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Jt.d(e,t)},D:function(e,t,n){const r=G4(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ue(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 ue(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 ue(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 ue(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=lr.noon:r===0?o=lr.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=lr.evening:r>=12?o=lr.afternoon:r>=4?o=lr.morning:o=lr.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 Jt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Jt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Jt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Jt.s(e,t)},S:function(e,t){return Jt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return sd(r);case"XXXX":case"XX":return _n(r);case"XXXXX":case"XXX":default:return _n(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return sd(r);case"xxxx":case"xx":return _n(r);case"xxxxx":case"xxx":default:return _n(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ad(r,":");case"OOOO":default:return"GMT"+_n(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ad(r,":");case"zzzz":default:return"GMT"+_n(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ue(r,t.length)},T:function(e,t,n){return ue(+e,t.length)}};function ad(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+ue(i,2)}function sd(e,t){return e%60===0?(e>0?"-":"+")+ue(Math.abs(e)/60,2):_n(e,t)}function _n(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=ue(Math.trunc(r/60),2),i=ue(r%60,2);return n+o+t+i}const ld=(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"})}},b1=(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"})}},Z4=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ld(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}}",ld(r,t)).replace("{{time}}",b1(o,t))},J4={p:b1,P:Z4},e7=/^D+$/,t7=/^Y+$/,n7=["D","DD","YY","YYYY"];function r7(e){return e7.test(e)}function o7(e){return t7.test(e)}function i7(e,t,n){const r=a7(e,t,n);if(console.warn(r),n7.includes(e))throw new RangeError(r)}function a7(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 s7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,l7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,u7=/^'([^]*?)'?$/,c7=/''/g,d7=/[a-zA-Z]/;function y1(e,t,n){var h,c,p,f;const r=Zr(),o=r.locale??wu,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(!s4(s))throw new RangeError("Invalid time value");let l=t.match(l7).map(g=>{const m=g[0];if(m==="p"||m==="P"){const v=J4[m];return v(g,o.formatLong)}return g}).join("").match(s7).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const m=g[0];if(m==="'")return{isToken:!1,value:f7(g)};if(id[m])return{isToken:!0,value:g};if(m.match(d7))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;(o7(m)||r7(m))&&i7(m,t,String(e));const v=id[m[0]];return v(s,m,o.localize,u)}).join("")}function f7(e){const t=e.match(u7);return t?t[1].replace(c7,"'"):e}function h7(e,t,n){const r=Zr(),o=(n==null?void 0:n.locale)??r.locale??wu,i=2520,a=wo(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]=Jo(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),h=p4(u,l),c=(Ar(u)-Ar(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<oa){const g=Math.round(p/60);return o.formatDistance("aboutXHours",g,s)}else{if(p<i)return o.formatDistance("xDays",1,s);if(p<gr){const g=Math.round(p/oa);return o.formatDistance("xDays",g,s)}else if(p<gr*2)return f=Math.round(p/gr),o.formatDistance("aboutXMonths",f,s)}if(f=h4(u,l),f<12){const g=Math.round(p/gr);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 p7(e,t,n){const r=Zr(),o=(n==null?void 0:n.locale)??r.locale??wu,i=wo(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]=Jo(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/td,p=Ar(l)-Ar(s),f=(h-p)/td,g=n==null?void 0:n.unit;let m;if(g?m=g:c<1?m="second":c<60?m="minute":c<oa?m="hour":f<gr?m="day":f<nd?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/oa);return o.formatDistance("xDays",v,a)}else if(m==="month"){const v=u(f/gr);return v===12&&g!=="month"?o.formatDistance("xYears",1,a):o.formatDistance("xMonths",v,a)}else{const v=u(f/nd);return o.formatDistance("xYears",v,a)}}function x1(e,t){return h7(e,i4(e),t)}var Ml=new Map,Ci=new WeakMap,ud=0,g7=void 0;function m7(e){return e?(Ci.has(e)||(ud+=1,Ci.set(e,ud.toString())),Ci.get(e)):"0"}function v7(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?m7(e.root):e[t]}`).toString()}function b7(e){const t=v7(e);let n=Ml.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},Ml.set(t,n)}return n}function y7(e,t,n={},r=g7){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}=b7(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(),Ml.delete(o))}}function x7({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]=S.useState(null),f=S.useRef(u),[g,m]=S.useState({inView:!!s,entry:void 0});f.current=u,S.useEffect(()=>{if(a||!c)return;let w;return w=y7(c,(E,k)=>{m({inView:E,entry:k}),f.current&&f.current(E,k),k.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=S.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 w1=function(e){var t=e.isLastRow,n=e.children,r=e.isSelected,o=e.onClick,i=e.layoutVariant;return y.jsx("div",{onClick:o,"aria-label":"button",className:"group grid w-full cursor-pointer p-2 active:bg-slate-50/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":"hover:bg-slate-50/50 dark:hover:bg-slate-900"),children:n})},kl=30,Ol=2e3,Tl=2,C1=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"})}),xt([],new Array(kl),!0).map(function(e,t){return y.jsx("div",{className:Nr("p-2",kl!==t+1?"border-b border-slate-200 dark:border-slate-700":""),children:y.jsx(zi,{className:"h-6 w-full"})},t)})]})};function cd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function S1(...e){return t=>{let n=!1;const r=e.map(o=>{const i=cd(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():cd(e[o],null)}}}}function Cu(...e){return S.useCallback(S1(...e),e)}function w7(e,t=[]){let n=[];function r(i,a){const s=S.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=S.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=S.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=>S.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,C7(o,...t)]}function C7(...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 S.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function dd(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 aa=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},S7=S[" useInsertionEffect ".trim().toString()]||aa;function $7({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=E7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const h=S.useRef(e!==void 0);S.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=S.useCallback(h=>{var c;if(s){const p=P7(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 E7({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),o=S.useRef(n),i=S.useRef(t);return S7(()=>{i.current=t},[t]),S.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function P7(e){return typeof e=="function"}function R7(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function M7(e){const[t,n]=S.useState(void 0);return aa(()=>{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 k7(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var $1=e=>{const{present:t,children:n}=e,r=O7(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),i=Cu(r.ref,T7(o));return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:i}):null};$1.displayName="Presence";function O7(e){const[t,n]=S.useState(),r=S.useRef(null),o=S.useRef(e),i=S.useRef("none"),a=e?"mounted":"unmounted",[s,l]=k7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const u=Si(r.current);i.current=s==="mounted"?u:"none"},[s]),aa(()=>{const u=r.current,h=o.current;if(h!==e){const p=i.current,f=Si(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]),aa(()=>{if(t){let u;const h=t.ownerDocument.defaultView??window,c=f=>{const m=Si(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=Si(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:S.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Si(e){return(e==null?void 0:e.animationName)||"none"}function T7(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 D7(e){const t=_7(e),n=S.forwardRef((r,o)=>{const{children:i,...a}=r,s=S.Children.toArray(i),l=s.find(I7);if(l){const u=l.props.children,h=s.map(c=>c===l?S.Children.count(u)>1?S.Children.only(null):S.isValidElement(u)?u.props.children:null:c);return y.jsx(t,{...a,ref:o,children:S.isValidElement(u)?S.cloneElement(u,void 0,h):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function _7(e){const t=S.forwardRef((n,r)=>{const{children:o,...i}=n;if(S.isValidElement(o)){const a=N7(o),s=L7(i,o.props);return o.type!==S.Fragment&&(s.ref=r?S1(r,a):a),S.cloneElement(o,s)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var F7=Symbol("radix.slottable");function I7(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===F7}function L7(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 N7(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 j7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Su=j7.reduce((e,t)=>{const n=D7(`Primitive.${t}`),r=S.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}},{}),Ka="Checkbox",[A7]=w7(Ka),[K7,$u]=A7(Ka);function B7(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]=$7({prop:n,defaultProp:o??!1,onChange:l,caller:Ka}),[g,m]=S.useState(null),[v,b]=S.useState(null),x=S.useRef(!1),w=g?!!a||!!g.closest("form"):!0,E={checked:p,disabled:i,setChecked:f,control:g,setControl:m,name:s,form:a,value:h,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:mn(o)?!1:o,isFormControl:w,bubbleInput:v,setBubbleInput:b};return y.jsx(K7,{scope:t,...E,children:H7(c)?c(E):r})}var E1="CheckboxTrigger",P1=S.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}=$u(E1,e),m=Cu(o,h),v=S.useRef(l);return S.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(Su.button,{type:"button",role:"checkbox","aria-checked":mn(l)?"mixed":l,"aria-required":u,"data-state":D1(l),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:m,onKeyDown:dd(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:dd(n,b=>{c(x=>mn(x)?!0:!x),g&&f&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});P1.displayName=E1;var R1=S.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(B7,{__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(P1,{...c,ref:t,__scopeCheckbox:n}),p&&y.jsx(T1,{__scopeCheckbox:n})]})})});R1.displayName=Ka;var M1="CheckboxIndicator",k1=S.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=$u(M1,n);return y.jsx($1,{present:r||mn(i.checked)||i.checked===!0,children:y.jsx(Su.span,{"data-state":D1(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});k1.displayName=M1;var O1="CheckboxBubbleInput",T1=S.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(O1,e),g=Cu(n,f),m=R7(i),v=M7(r);S.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(w,"checked").set,$=!o.current;if(m!==i&&k){const R=new Event("click",{bubbles:$});x.indeterminate=mn(i),k.call(x,mn(i)?!1:i),x.dispatchEvent(R)}},[p,m,i,o]);const b=S.useRef(mn(i)?!1:i);return y.jsx(Su.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%)"}})});T1.displayName=O1;function H7(e){return typeof e=="function"}function mn(e){return e==="indeterminate"}function D1(e){return mn(e)?"indeterminate":e?"checked":"unchecked"}var sa=function(e){var t=e.className,n=uv(e,["className"]);return y.jsx(R1,{className:Nr("flex size-4 cursor-pointer rounded-sm border shadow-sm",t,{"border-slate-300 hover:border-slate-500 hover:bg-slate-100":!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":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(x2,{height:12,width:12}),n.checked===!0&&y.jsx(l2,{height:12,width:12})]})})},so=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",children:[n,y.jsx("span",{children:t})]})},Eu=function(e){var t=e.children,n=e.message;return y.jsxs(s8,{children:[y.jsx(fu,{children:t}),y.jsx(l8,{offset:6,className:"rounded-md bg-white px-2 py-1 text-sm text-slate-900 shadow-md",children:n})]})},_1={exports:{}},F1={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]},I1={exports:{}},V7=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")},z7=V7,U7=Array.prototype.concat,q7=Array.prototype.slice,fd=I1.exports=function(t){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];z7(i)?n=U7.call(n,q7.call(i)):n.push(i)}return n};fd.wrap=function(e){return function(){return e(fd(arguments))}};var W7=I1.exports,Co=F1,ei=W7,L1=Object.hasOwnProperty,N1=Object.create(null);for(var xs in Co)L1.call(Co,xs)&&(N1[Co[xs]]=xs);var rt=_1.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]:L1.call(Co,s[1])?(a=Co[s[1]],a[3]=1,a):null:null;for(l=0;l<3;l++)a[l]=vn(a[l],0,255);return a[3]=vn(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=vn(parseFloat(n[2]),0,100),a=vn(parseFloat(n[3]),0,100),s=vn(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=vn(parseFloat(n[2]),0,100),a=vn(parseFloat(n[3]),0,100),s=vn(isNaN(r)?1:r,0,1);return[o,i,a,s]}return null};rt.to.hex=function(){var e=ei(arguments);return"#"+$i(e[0])+$i(e[1])+$i(e[2])+(e[3]<1?$i(Math.round(e[3]*255)):"")};rt.to.rgb=function(){var e=ei(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=ei(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=ei(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=ei(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 N1[e.slice(0,3)]};function vn(e,t,n){return Math.min(Math.max(t,e),n)}function $i(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var G7=_1.exports;const Fo=F1,j1={};for(const e of Object.keys(Fo))j1[Fo[e]]=e;const Q={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 A1=Q;for(const e of Object.keys(Q)){if(!("channels"in Q[e]))throw new Error("missing channels property: "+e);if(!("labels"in Q[e]))throw new Error("missing channel labels property: "+e);if(Q[e].labels.length!==Q[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Q[e];delete Q[e].channels,delete Q[e].labels,Object.defineProperty(Q[e],"channels",{value:t}),Object.defineProperty(Q[e],"labels",{value:n})}Q.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]};Q.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]};Q.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=Q.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]};Q.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 Q7(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Q.rgb.keyword=function(e){const t=j1[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(Fo)){const i=Fo[o],a=Q7(e,i);a<n&&(n=a,r=o)}return r};Q.keyword.rgb=function(e){return Fo[e]};Q.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]};Q.rgb.lab=function(e){const t=Q.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]};Q.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};Q.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]};Q.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]}};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=t===null?Q.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};Q.hsv.ansi16=function(e){return Q.rgb.ansi16(Q.hsv.rgb(e),e[2])};Q.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)};Q.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]};Q.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]};Q.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};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Q.gray.hsl=function(e){return[0,0,e[0]]};Q.gray.hsv=Q.gray.hsl;Q.gray.hwb=function(e){return[0,100,e[0]]};Q.gray.cmyk=function(e){return[0,0,0,e[0]]};Q.gray.lab=function(e){return[e[0],0,0]};Q.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};Q.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const la=A1;function Y7(){const e={},t=Object.keys(la);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function X7(e){const t=Y7(),n=[e];for(t[e].distance=0;n.length;){const r=n.pop(),o=Object.keys(la[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 Z7(e,t){return function(n){return t(e(n))}}function J7(e,t){const n=[t[e].parent,e];let r=la[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=Z7(la[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}var ex=function(e){const t=X7(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]=J7(a,t))}return n};const Dl=A1,tx=ex,dr={},nx=Object.keys(Dl);function rx(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 ox(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}nx.forEach(e=>{dr[e]={},Object.defineProperty(dr[e],"channels",{value:Dl[e].channels}),Object.defineProperty(dr[e],"labels",{value:Dl[e].labels});const t=tx(e);Object.keys(t).forEach(r=>{const o=t[r];dr[e][r]=ox(o),dr[e][r].raw=rx(o)})});var ix=dr;const fr=G7,tt=ix,K1=["keyword","gray","hex"],_l={};for(const e of Object.keys(tt))_l[[...tt[e].labels].sort().join("")]=e;const ua={};function Me(e,t){if(!(this instanceof Me))return new Me(e,t);if(t&&t in K1&&(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 Me)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const o=fr.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=Fl(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 _l))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=_l[i];const{labels:a}=tt[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=Fl(s)}if(ua[this.model])for(r=tt[this.model].channels,n=0;n<r;n++){const o=ua[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 fr.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return fr.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 fr.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 Me([...this.color.map(sx(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: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 Me(e):tt[this.model].keyword(this.color)},hex(e){return e!==void 0?new Me(e):fr.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),fr.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(tt)){if(K1.includes(e))continue;const{channels:t}=tt[e];Me.prototype[e]=function(...n){return this.model===e?new Me(this):n.length>0?new Me(n,e):new Me([...lx(tt[this.model][e].raw(this.color)),this.valpha],e)},Me[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=Fl(n,t)),new Me(r,e)}}function ax(e,t){return Number(e.toFixed(t))}function sx(e){return function(t){return ax(t,e)}}function me(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(ua[r]||(ua[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 lx(e){return Array.isArray(e)?e:[e]}function Fl(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var ux=Me;const hd=af(ux);var cx=typeof global=="object"&&global&&global.Object===Object&&global,dx=typeof self=="object"&&self&&self.Object===Object&&self,nr=cx||dx||Function("return this")(),ca=nr.Symbol,B1=Object.prototype,fx=B1.hasOwnProperty,hx=B1.toString,lo=ca?ca.toStringTag:void 0;function px(e){var t=fx.call(e,lo),n=e[lo];try{e[lo]=void 0;var r=!0}catch{}var o=hx.call(e);return r&&(t?e[lo]=n:delete e[lo]),o}var gx=Object.prototype,mx=gx.toString;function vx(e){return mx.call(e)}var bx="[object Null]",yx="[object Undefined]",pd=ca?ca.toStringTag:void 0;function H1(e){return e==null?e===void 0?yx:bx:pd&&pd in Object(e)?px(e):vx(e)}function V1(e){return e!=null&&typeof e=="object"}var xx="[object Symbol]";function wx(e){return typeof e=="symbol"||V1(e)&&H1(e)==xx}var Cx=Array.isArray,Sx=/\s/;function $x(e){for(var t=e.length;t--&&Sx.test(e.charAt(t)););return t}var Ex=/^\s+/;function Px(e){return e&&e.slice(0,$x(e)+1).replace(Ex,"")}function Kr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gd=NaN,Rx=/^[-+]0x[0-9a-f]+$/i,Mx=/^0b[01]+$/i,kx=/^0o[0-7]+$/i,Ox=parseInt;function Tx(e){if(typeof e=="number")return e;if(wx(e))return gd;if(Kr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Px(e);var n=Mx.test(e);return n||kx.test(e)?Ox(e.slice(2),n?2:8):Rx.test(e)?gd:+e}var md=1/0,Dx=17976931348623157e292;function _x(e){if(!e)return e===0?e:0;if(e=Tx(e),e===md||e===-md){var t=e<0?-1:1;return t*Dx}return e===e?e:0}function vd(e){var t=_x(e),n=t%1;return t===t?n?t-n:t:0}function z1(e){return e}var Fx="[object AsyncFunction]",Ix="[object Function]",Lx="[object GeneratorFunction]",Nx="[object Proxy]";function jx(e){if(!Kr(e))return!1;var t=H1(e);return t==Ix||t==Lx||t==Fx||t==Nx}var ws=nr["__core-js_shared__"],bd=function(){var e=/[^.]+$/.exec(ws&&ws.keys&&ws.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ax(e){return!!bd&&bd in e}var Kx=Function.prototype,Bx=Kx.toString;function Hx(e){if(e!=null){try{return Bx.call(e)}catch{}try{return e+""}catch{}}return""}var Vx=/[\\^$.*+?()[\]{}|]/g,zx=/^\[object .+?Constructor\]$/,Ux=Function.prototype,qx=Object.prototype,Wx=Ux.toString,Gx=qx.hasOwnProperty,Qx=RegExp("^"+Wx.call(Gx).replace(Vx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Yx(e){if(!Kr(e)||Ax(e))return!1;var t=jx(e)?Qx:zx;return t.test(Hx(e))}function Xx(e,t){return e==null?void 0:e[t]}function U1(e,t){var n=Xx(e,t);return Yx(n)?n:void 0}var yd=U1(nr,"WeakMap"),da=yd&&new yd,q1=da?function(e,t){return da.set(e,t),e}:z1,xd=Object.create,Pu=function(){function e(){}return function(t){if(!Kr(t))return{};if(xd)return xd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Io(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=Pu(e.prototype),r=e.apply(n,t);return Kr(r)?r:n}}var Zx=1;function Jx(e,t,n){var r=t&Zx,o=Io(e);function i(){var a=this&&this!==nr&&this instanceof i?o:e;return a.apply(r?n:this,arguments)}return i}function W1(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 G1(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 t6=Math.max;function Q1(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,h=t6(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 n6(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function Ru(){}var r6=4294967295;function Br(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=r6,this.__views__=[]}Br.prototype=Pu(Ru.prototype);Br.prototype.constructor=Br;function o6(){}var Y1=da?function(e){return da.get(e)}:o6,wd={},i6=Object.prototype,a6=i6.hasOwnProperty;function s6(e){for(var t=e.name+"",n=wd[t],r=a6.call(wd,t)?n.length:0;r--;){var o=n[r],i=o.func;if(i==null||i==e)return o.name}return t}function Hr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Hr.prototype=Pu(Ru.prototype);Hr.prototype.constructor=Hr;function X1(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function l6(e){if(e instanceof Br)return e.clone();var t=new Hr(e.__wrapped__,e.__chain__);return t.__actions__=X1(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var u6=Object.prototype,c6=u6.hasOwnProperty;function fa(e){if(V1(e)&&!Cx(e)&&!(e instanceof Br)){if(e instanceof Hr)return e;if(c6.call(e,"__wrapped__"))return l6(e)}return new Hr(e)}fa.prototype=Ru.prototype;fa.prototype.constructor=fa;function d6(e){var t=s6(e),n=fa[t];if(typeof n!="function"||!(t in Br.prototype))return!1;if(e===n)return!0;var r=Y1(n);return!!r&&e===r[0]}var f6=800,h6=16,p6=Date.now;function Z1(e){var t=0,n=0;return function(){var r=p6(),o=h6-(r-n);if(n=r,o>0){if(++t>=f6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var J1=Z1(q1),g6=/\{\n\/\* \[wrapped with (.+)\] \*/,m6=/,? & /;function v6(e){var t=e.match(g6);return t?t[1].split(m6):[]}var b6=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function y6(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(b6,`{
|
|
60
|
+
*/function ra(e,t){return e?J4(e)?$.createElement(e,t):e:null}function J4(e){return e8(e)||typeof e=="function"||t8(e)}function e8(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function t8(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function pg(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=$.useState(()=>({current:Z4(t)})),[r,o]=$.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 gg=6048e5,n8=864e5,nd=6e4,rd=525600,gr=43200,oa=1440,od=Symbol.for("constructDateFrom");function Qt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&od in e?e[od](t):e instanceof Date?new e.constructor(t):new Date(t)}function Oe(e,t){return Qt(t||e,e)}let r8={};function Jr(){return r8}function _o(e,t){var s,l,u,h;const n=Jr(),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 ia(e,t){return _o(e,{...t,weekStartsOn:1})}function mg(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=ia(o),a=Qt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=ia(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Kr(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 Jo(e,...t){const n=Qt.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function id(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function o8(e,t,n){const[r,o]=Jo(n==null?void 0:n.in,e,t),i=id(r),a=id(o),s=+i-Kr(i),l=+a-Kr(a);return Math.round((s-l)/n8)}function i8(e,t){const n=mg(e,t),r=Qt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ia(r)}function Co(e,t){const n=+Oe(e)-+Oe(t);return n<0?-1:n>0?1:n}function a8(e){return Qt(e,Date.now())}function s8(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function l8(e){return!(!s8(e)&&typeof e!="number"||isNaN(+Oe(e)))}function u8(e,t,n){const[r,o]=Jo(n==null?void 0:n.in,e,t),i=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return i*12+a}function vg(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function c8(e,t){return+Oe(e)-+Oe(t)}function d8(e,t){const n=Oe(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function f8(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 h8(e,t){const n=Oe(e,t==null?void 0:t.in);return+d8(n,t)==+f8(n,t)}function p8(e,t,n){const[r,o,i]=Jo(n==null?void 0:n.in,e,e,t),a=Co(o,i),s=Math.abs(u8(o,i));if(s<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-a*s);let l=Co(o,i)===-a;h8(r)&&s===1&&Co(r,i)===1&&(l=!1);const u=a*(s-+l);return u===0?0:u}function g8(e,t,n){const r=c8(e,t)/1e3;return vg(n==null?void 0:n.roundingMethod)(r)}function m8(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 v8={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"}},b8=(e,t,n)=>{let r;const o=v8[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 ys(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const y8={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},x8={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},w8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},C8={date:ys({formats:y8,defaultWidth:"full"}),time:ys({formats:x8,defaultWidth:"full"}),dateTime:ys({formats:w8,defaultWidth:"full"})},S8={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$8=(e,t,n,r)=>S8[e];function ao(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 E8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},P8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},R8={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"]},k8={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"]},M8={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"}},O8={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"}},T8=(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"},D8={ordinalNumber:T8,era:ao({values:E8,defaultWidth:"wide"}),quarter:ao({values:P8,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ao({values:R8,defaultWidth:"wide"}),day:ao({values:k8,defaultWidth:"wide"}),dayPeriod:ao({values:M8,defaultWidth:"wide",formattingValues:O8,defaultFormattingWidth:"wide"})};function so(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)?F8(s,c=>c.test(a)):_8(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 _8(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function F8(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function L8(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 I8=/^(\d+)(th|st|nd|rd)?/i,N8=/\d+/i,j8={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},A8={any:[/^b/i,/^(a|c)/i]},K8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},B8={any:[/1/i,/2/i,/3/i,/4/i]},H8={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},V8={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]},z8={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},U8={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]},q8={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},W8={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}},G8={ordinalNumber:L8({matchPattern:I8,parsePattern:N8,valueCallback:e=>parseInt(e,10)}),era:so({matchPatterns:j8,defaultMatchWidth:"wide",parsePatterns:A8,defaultParseWidth:"any"}),quarter:so({matchPatterns:K8,defaultMatchWidth:"wide",parsePatterns:B8,defaultParseWidth:"any",valueCallback:e=>e+1}),month:so({matchPatterns:H8,defaultMatchWidth:"wide",parsePatterns:V8,defaultParseWidth:"any"}),day:so({matchPatterns:z8,defaultMatchWidth:"wide",parsePatterns:U8,defaultParseWidth:"any"}),dayPeriod:so({matchPatterns:q8,defaultMatchWidth:"any",parsePatterns:W8,defaultParseWidth:"any"})},wu={code:"en-US",formatDistance:b8,formatLong:C8,formatRelative:$8,localize:D8,match:G8,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Q8(e,t){const n=Oe(e,t==null?void 0:t.in);return o8(n,m8(n))+1}function Y8(e,t){const n=Oe(e,t==null?void 0:t.in),r=+ia(n)-+i8(n);return Math.round(r/gg)+1}function bg(e,t){var h,c,p,f;const n=Oe(e,t==null?void 0:t.in),r=n.getFullYear(),o=Jr(),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=_o(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=_o(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function X8(e,t){var s,l,u,h;const n=Jr(),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=bg(e,t),i=Qt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),_o(i,t)}function Z8(e,t){const n=Oe(e,t==null?void 0:t.in),r=+_o(n,t)-+X8(n,t);return Math.round(r/gg)+1}function ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Jt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ue(n+1,2)},d(e,t){return ue(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 ue(e.getHours()%12||12,t.length)},H(e,t){return ue(e.getHours(),t.length)},m(e,t){return ue(e.getMinutes(),t.length)},s(e,t){return ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return ue(o,t.length)}},lr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ad={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 Jt.y(e,t)},Y:function(e,t,n,r){const o=bg(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return ue(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):ue(i,t.length)},R:function(e,t){const n=mg(e);return ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return ue(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 ue(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 ue(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 Jt.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 ue(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=Z8(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):ue(o,t.length)},I:function(e,t,n){const r=Y8(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Jt.d(e,t)},D:function(e,t,n){const r=Q8(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ue(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 ue(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 ue(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 ue(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=lr.noon:r===0?o=lr.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=lr.evening:r>=12?o=lr.afternoon:r>=4?o=lr.morning:o=lr.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 Jt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Jt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Jt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Jt.s(e,t)},S:function(e,t){return Jt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return ld(r);case"XXXX":case"XX":return _n(r);case"XXXXX":case"XXX":default:return _n(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return ld(r);case"xxxx":case"xx":return _n(r);case"xxxxx":case"xxx":default:return _n(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+sd(r,":");case"OOOO":default:return"GMT"+_n(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+sd(r,":");case"zzzz":default:return"GMT"+_n(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ue(r,t.length)},T:function(e,t,n){return ue(+e,t.length)}};function sd(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+ue(i,2)}function ld(e,t){return e%60===0?(e>0?"-":"+")+ue(Math.abs(e)/60,2):_n(e,t)}function _n(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=ue(Math.trunc(r/60),2),i=ue(r%60,2);return n+o+t+i}const ud=(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"})}},yg=(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"})}},J8=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ud(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}}",ud(r,t)).replace("{{time}}",yg(o,t))},e7={p:yg,P:J8},t7=/^D+$/,n7=/^Y+$/,r7=["D","DD","YY","YYYY"];function o7(e){return t7.test(e)}function i7(e){return n7.test(e)}function a7(e,t,n){const r=s7(e,t,n);if(console.warn(r),r7.includes(e))throw new RangeError(r)}function s7(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 l7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,c7=/^'([^]*?)'?$/,d7=/''/g,f7=/[a-zA-Z]/;function xg(e,t,n){var h,c,p,f;const r=Jr(),o=r.locale??wu,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(!l8(s))throw new RangeError("Invalid time value");let l=t.match(u7).map(g=>{const m=g[0];if(m==="p"||m==="P"){const v=e7[m];return v(g,o.formatLong)}return g}).join("").match(l7).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const m=g[0];if(m==="'")return{isToken:!1,value:h7(g)};if(ad[m])return{isToken:!0,value:g};if(m.match(f7))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;(i7(m)||o7(m))&&a7(m,t,String(e));const v=ad[m[0]];return v(s,m,o.localize,u)}).join("")}function h7(e){const t=e.match(c7);return t?t[1].replace(d7,"'"):e}function p7(e,t,n){const r=Jr(),o=(n==null?void 0:n.locale)??r.locale??wu,i=2520,a=Co(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]=Jo(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),h=g8(u,l),c=(Kr(u)-Kr(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<oa){const g=Math.round(p/60);return o.formatDistance("aboutXHours",g,s)}else{if(p<i)return o.formatDistance("xDays",1,s);if(p<gr){const g=Math.round(p/oa);return o.formatDistance("xDays",g,s)}else if(p<gr*2)return f=Math.round(p/gr),o.formatDistance("aboutXMonths",f,s)}if(f=p8(u,l),f<12){const g=Math.round(p/gr);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 g7(e,t,n){const r=Jr(),o=(n==null?void 0:n.locale)??r.locale??wu,i=Co(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]=Jo(n==null?void 0:n.in,...i>0?[t,e]:[e,t]),u=vg((n==null?void 0:n.roundingMethod)??"round"),h=l.getTime()-s.getTime(),c=h/nd,p=Kr(l)-Kr(s),f=(h-p)/nd,g=n==null?void 0:n.unit;let m;if(g?m=g:c<1?m="second":c<60?m="minute":c<oa?m="hour":f<gr?m="day":f<rd?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/oa);return o.formatDistance("xDays",v,a)}else if(m==="month"){const v=u(f/gr);return v===12&&g!=="month"?o.formatDistance("xYears",1,a):o.formatDistance("xMonths",v,a)}else{const v=u(f/rd);return o.formatDistance("xYears",v,a)}}function wg(e,t){return p7(e,a8(e),t)}var kl=new Map,Ci=new WeakMap,cd=0,m7=void 0;function v7(e){return e?(Ci.has(e)||(cd+=1,Ci.set(e,cd.toString())),Ci.get(e)):"0"}function b7(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?v7(e.root):e[t]}`).toString()}function y7(e){const t=b7(e);let n=kl.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},kl.set(t,n)}return n}function x7(e,t,n={},r=m7){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}=y7(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(),kl.delete(o))}}function w7({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]=$.useState(null),f=$.useRef(u),[g,m]=$.useState({inView:!!s,entry:void 0});f.current=u,$.useEffect(()=>{if(a||!c)return;let w;return w=x7(c,(S,k)=>{m({inView:S,entry:k}),f.current&&f.current(S,k),k.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=$.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 Cg=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})},Ml=30,Ol=2e3,Tl=2,Sg=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"})}),We([],new Array(Ml),!0).map(function(e,t){return y.jsx("div",{className:jr("p-2",Ml!==t+1?"border-b border-slate-200 dark:border-slate-700":""),children:y.jsx(zi,{className:"h-6 w-full"})},t)})]})};function dd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $g(...e){return t=>{let n=!1;const r=e.map(o=>{const i=dd(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():dd(e[o],null)}}}}function Cu(...e){return $.useCallback($g(...e),e)}function C7(e,t=[]){let n=[];function r(i,a){const s=$.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=$.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=$.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=>$.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return $.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,S7(o,...t)]}function S7(...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 $.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function fd(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 aa=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},$7=$[" useInsertionEffect ".trim().toString()]||aa;function E7({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=P7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const h=$.useRef(e!==void 0);$.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=$.useCallback(h=>{var c;if(s){const p=R7(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 P7({defaultProp:e,onChange:t}){const[n,r]=$.useState(e),o=$.useRef(n),i=$.useRef(t);return $7(()=>{i.current=t},[t]),$.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function R7(e){return typeof e=="function"}function k7(e){const t=$.useRef({value:e,previous:e});return $.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function M7(e){const[t,n]=$.useState(void 0);return aa(()=>{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 O7(e,t){return $.useReducer((n,r)=>t[n][r]??n,e)}var Eg=e=>{const{present:t,children:n}=e,r=T7(t),o=typeof n=="function"?n({present:r.isPresent}):$.Children.only(n),i=Cu(r.ref,D7(o));return typeof n=="function"||r.isPresent?$.cloneElement(o,{ref:i}):null};Eg.displayName="Presence";function T7(e){const[t,n]=$.useState(),r=$.useRef(null),o=$.useRef(e),i=$.useRef("none"),a=e?"mounted":"unmounted",[s,l]=O7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect(()=>{const u=Si(r.current);i.current=s==="mounted"?u:"none"},[s]),aa(()=>{const u=r.current,h=o.current;if(h!==e){const p=i.current,f=Si(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]),aa(()=>{if(t){let u;const h=t.ownerDocument.defaultView??window,c=f=>{const m=Si(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=Si(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:$.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Si(e){return(e==null?void 0:e.animationName)||"none"}function D7(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 _7(e){const t=F7(e),n=$.forwardRef((r,o)=>{const{children:i,...a}=r,s=$.Children.toArray(i),l=s.find(I7);if(l){const u=l.props.children,h=s.map(c=>c===l?$.Children.count(u)>1?$.Children.only(null):$.isValidElement(u)?u.props.children:null:c);return y.jsx(t,{...a,ref:o,children:$.isValidElement(u)?$.cloneElement(u,void 0,h):null})}return y.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function F7(e){const t=$.forwardRef((n,r)=>{const{children:o,...i}=n;if($.isValidElement(o)){const a=j7(o),s=N7(i,o.props);return o.type!==$.Fragment&&(s.ref=r?$g(r,a):a),$.cloneElement(o,s)}return $.Children.count(o)>1?$.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var L7=Symbol("radix.slottable");function I7(e){return $.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===L7}function N7(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 j7(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 A7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Su=A7.reduce((e,t)=>{const n=_7(`Primitive.${t}`),r=$.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}},{}),Ka="Checkbox",[K7]=C7(Ka),[B7,$u]=K7(Ka);function H7(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]=E7({prop:n,defaultProp:o??!1,onChange:l,caller:Ka}),[g,m]=$.useState(null),[v,b]=$.useState(null),x=$.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:mn(o)?!1:o,isFormControl:w,bubbleInput:v,setBubbleInput:b};return y.jsx(B7,{scope:t,...S,children:V7(c)?c(S):r})}var Pg="CheckboxTrigger",Rg=$.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}=$u(Pg,e),m=Cu(o,h),v=$.useRef(l);return $.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(Su.button,{type:"button",role:"checkbox","aria-checked":mn(l)?"mixed":l,"aria-required":u,"data-state":_g(l),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:m,onKeyDown:fd(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:fd(n,b=>{c(x=>mn(x)?!0:!x),g&&f&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});Rg.displayName=Pg;var kg=$.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(H7,{__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(Rg,{...c,ref:t,__scopeCheckbox:n}),p&&y.jsx(Dg,{__scopeCheckbox:n})]})})});kg.displayName=Ka;var Mg="CheckboxIndicator",Og=$.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=$u(Mg,n);return y.jsx(Eg,{present:r||mn(i.checked)||i.checked===!0,children:y.jsx(Su.span,{"data-state":_g(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Og.displayName=Mg;var Tg="CheckboxBubbleInput",Dg=$.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(Tg,e),g=Cu(n,f),m=k7(i),v=M7(r);$.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(w,"checked").set,E=!o.current;if(m!==i&&k){const R=new Event("click",{bubbles:E});x.indeterminate=mn(i),k.call(x,mn(i)?!1:i),x.dispatchEvent(R)}},[p,m,i,o]);const b=$.useRef(mn(i)?!1:i);return y.jsx(Su.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%)"}})});Dg.displayName=Tg;function V7(e){return typeof e=="function"}function mn(e){return e==="indeterminate"}function _g(e){return mn(e)?"indeterminate":e?"checked":"unchecked"}var sa=function(e){var t=e.className,n=cv(e,["className"]);return y.jsx(kg,{className:jr("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(Og,{className:"flex size-full items-center justify-center",children:[n.checked==="indeterminate"&&y.jsx(w2,{height:12,width:12}),n.checked===!0&&y.jsx(u2,{height:12,width:12})]})})},lo=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})]})},Eu=function(e){var t=e.children,n=e.message;return y.jsxs(l4,{children:[y.jsx(fu,{children:t}),y.jsx(u4,{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})]})},Fg={exports:{}},Lg={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]},Ig={exports:{}},z7=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")},U7=z7,q7=Array.prototype.concat,W7=Array.prototype.slice,hd=Ig.exports=function(t){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];U7(i)?n=q7.call(n,W7.call(i)):n.push(i)}return n};hd.wrap=function(e){return function(){return e(hd(arguments))}};var G7=Ig.exports,So=Lg,ei=G7,Ng=Object.hasOwnProperty,jg=Object.create(null);for(var xs in So)Ng.call(So,xs)&&(jg[So[xs]]=xs);var ot=Fg.exports={to:{},get:{}};ot.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case"hsl":n=ot.get.hsl(e),r="hsl";break;case"hwb":n=ot.get.hwb(e),r="hwb";break;default:n=ot.get.rgb(e),r="rgb";break}return n?{model:r,value:n}:null};ot.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]:Ng.call(So,s[1])?(a=So[s[1]],a[3]=1,a):null:null;for(l=0;l<3;l++)a[l]=vn(a[l],0,255);return a[3]=vn(a[3],0,1),a};ot.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=vn(parseFloat(n[2]),0,100),a=vn(parseFloat(n[3]),0,100),s=vn(isNaN(r)?1:r,0,1);return[o,i,a,s]}return null};ot.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=vn(parseFloat(n[2]),0,100),a=vn(parseFloat(n[3]),0,100),s=vn(isNaN(r)?1:r,0,1);return[o,i,a,s]}return null};ot.to.hex=function(){var e=ei(arguments);return"#"+$i(e[0])+$i(e[1])+$i(e[2])+(e[3]<1?$i(Math.round(e[3]*255)):"")};ot.to.rgb=function(){var e=ei(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]+")"};ot.to.rgb.percent=function(){var e=ei(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]+")"};ot.to.hsl=function(){var e=ei(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};ot.to.hwb=function(){var e=ei(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};ot.to.keyword=function(e){return jg[e.slice(0,3)]};function vn(e,t,n){return Math.min(Math.max(t,e),n)}function $i(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var Q7=Fg.exports;const Fo=Lg,Ag={};for(const e of Object.keys(Fo))Ag[Fo[e]]=e;const Q={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 Kg=Q;for(const e of Object.keys(Q)){if(!("channels"in Q[e]))throw new Error("missing channels property: "+e);if(!("labels"in Q[e]))throw new Error("missing channel labels property: "+e);if(Q[e].labels.length!==Q[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Q[e];delete Q[e].channels,delete Q[e].labels,Object.defineProperty(Q[e],"channels",{value:t}),Object.defineProperty(Q[e],"labels",{value:n})}Q.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]};Q.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]};Q.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=Q.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]};Q.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 Y7(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Q.rgb.keyword=function(e){const t=Ag[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(Fo)){const i=Fo[o],a=Y7(e,i);a<n&&(n=a,r=o)}return r};Q.keyword.rgb=function(e){return Fo[e]};Q.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]};Q.rgb.lab=function(e){const t=Q.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]};Q.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};Q.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]};Q.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]}};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=t===null?Q.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};Q.hsv.ansi16=function(e){return Q.rgb.ansi16(Q.hsv.rgb(e),e[2])};Q.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)};Q.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]};Q.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]};Q.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};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.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]};Q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Q.gray.hsl=function(e){return[0,0,e[0]]};Q.gray.hsv=Q.gray.hsl;Q.gray.hwb=function(e){return[0,100,e[0]]};Q.gray.cmyk=function(e){return[0,0,0,e[0]]};Q.gray.lab=function(e){return[e[0],0,0]};Q.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};Q.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const la=Kg;function X7(){const e={},t=Object.keys(la);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function Z7(e){const t=X7(),n=[e];for(t[e].distance=0;n.length;){const r=n.pop(),o=Object.keys(la[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 J7(e,t){return function(n){return t(e(n))}}function ex(e,t){const n=[t[e].parent,e];let r=la[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=J7(la[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}var tx=function(e){const t=Z7(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]=ex(a,t))}return n};const Dl=Kg,nx=tx,dr={},rx=Object.keys(Dl);function ox(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 ix(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=>{dr[e]={},Object.defineProperty(dr[e],"channels",{value:Dl[e].channels}),Object.defineProperty(dr[e],"labels",{value:Dl[e].labels});const t=nx(e);Object.keys(t).forEach(r=>{const o=t[r];dr[e][r]=ix(o),dr[e][r].raw=ox(o)})});var ax=dr;const fr=Q7,nt=ax,Bg=["keyword","gray","hex"],_l={};for(const e of Object.keys(nt))_l[[...nt[e].labels].sort().join("")]=e;const ua={};function ke(e,t){if(!(this instanceof ke))return new ke(e,t);if(t&&t in Bg&&(t=null),t&&!(t in nt))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=fr.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,r=nt[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=nt[this.model].channels;const o=Array.prototype.slice.call(e,0,r);this.color=Fl(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 _l))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=_l[i];const{labels:a}=nt[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=Fl(s)}if(ua[this.model])for(r=nt[this.model].channels,n=0;n<r;n++){const o=ua[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 fr.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return fr.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 fr.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=nt[this.model],{labels:n}=nt[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(lx(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):nt[this.model].keyword(this.color)},hex(e){return e!==void 0?new ke(e):fr.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),fr.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(nt)){if(Bg.includes(e))continue;const{channels:t}=nt[e];ke.prototype[e]=function(...n){return this.model===e?new ke(this):n.length>0?new ke(n,e):new ke([...ux(nt[this.model][e].raw(this.color)),this.valpha],e)},ke[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=Fl(n,t)),new ke(r,e)}}function sx(e,t){return Number(e.toFixed(t))}function lx(e){return function(t){return sx(t,e)}}function me(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(ua[r]||(ua[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 ux(e){return Array.isArray(e)?e:[e]}function Fl(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var cx=ke;const pd=sf(cx);var dx=typeof global=="object"&&global&&global.Object===Object&&global,fx=typeof self=="object"&&self&&self.Object===Object&&self,nr=dx||fx||Function("return this")(),ca=nr.Symbol,Hg=Object.prototype,hx=Hg.hasOwnProperty,px=Hg.toString,uo=ca?ca.toStringTag:void 0;function gx(e){var t=hx.call(e,uo),n=e[uo];try{e[uo]=void 0;var r=!0}catch{}var o=px.call(e);return r&&(t?e[uo]=n:delete e[uo]),o}var mx=Object.prototype,vx=mx.toString;function bx(e){return vx.call(e)}var yx="[object Null]",xx="[object Undefined]",gd=ca?ca.toStringTag:void 0;function Vg(e){return e==null?e===void 0?xx:yx:gd&&gd in Object(e)?gx(e):bx(e)}function zg(e){return e!=null&&typeof e=="object"}var wx="[object Symbol]";function Cx(e){return typeof e=="symbol"||zg(e)&&Vg(e)==wx}var Sx=Array.isArray,$x=/\s/;function Ex(e){for(var t=e.length;t--&&$x.test(e.charAt(t)););return t}var Px=/^\s+/;function Rx(e){return e&&e.slice(0,Ex(e)+1).replace(Px,"")}function Br(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var md=NaN,kx=/^[-+]0x[0-9a-f]+$/i,Mx=/^0b[01]+$/i,Ox=/^0o[0-7]+$/i,Tx=parseInt;function Dx(e){if(typeof e=="number")return e;if(Cx(e))return md;if(Br(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Br(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rx(e);var n=Mx.test(e);return n||Ox.test(e)?Tx(e.slice(2),n?2:8):kx.test(e)?md:+e}var vd=1/0,_x=17976931348623157e292;function Fx(e){if(!e)return e===0?e:0;if(e=Dx(e),e===vd||e===-vd){var t=e<0?-1:1;return t*_x}return e===e?e:0}function bd(e){var t=Fx(e),n=t%1;return t===t?n?t-n:t:0}function Ug(e){return e}var Lx="[object AsyncFunction]",Ix="[object Function]",Nx="[object GeneratorFunction]",jx="[object Proxy]";function Ax(e){if(!Br(e))return!1;var t=Vg(e);return t==Ix||t==Nx||t==Lx||t==jx}var ws=nr["__core-js_shared__"],yd=function(){var e=/[^.]+$/.exec(ws&&ws.keys&&ws.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Kx(e){return!!yd&&yd in e}var Bx=Function.prototype,Hx=Bx.toString;function Vx(e){if(e!=null){try{return Hx.call(e)}catch{}try{return e+""}catch{}}return""}var zx=/[\\^$.*+?()[\]{}|]/g,Ux=/^\[object .+?Constructor\]$/,qx=Function.prototype,Wx=Object.prototype,Gx=qx.toString,Qx=Wx.hasOwnProperty,Yx=RegExp("^"+Gx.call(Qx).replace(zx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xx(e){if(!Br(e)||Kx(e))return!1;var t=Ax(e)?Yx:Ux;return t.test(Vx(e))}function Zx(e,t){return e==null?void 0:e[t]}function qg(e,t){var n=Zx(e,t);return Xx(n)?n:void 0}var xd=qg(nr,"WeakMap"),da=xd&&new xd,Wg=da?function(e,t){return da.set(e,t),e}:Ug,wd=Object.create,Pu=function(){function e(){}return function(t){if(!Br(t))return{};if(wd)return wd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Lo(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=Pu(e.prototype),r=e.apply(n,t);return Br(r)?r:n}}var Jx=1;function e6(e,t,n){var r=t&Jx,o=Lo(e);function i(){var a=this&&this!==nr&&this instanceof i?o:e;return a.apply(r?n:this,arguments)}return i}function Gg(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 t6=Math.max;function Qg(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=t6(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 n6=Math.max;function Yg(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,h=n6(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 Ru(){}var o6=4294967295;function Hr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=o6,this.__views__=[]}Hr.prototype=Pu(Ru.prototype);Hr.prototype.constructor=Hr;function i6(){}var Xg=da?function(e){return da.get(e)}:i6,Cd={},a6=Object.prototype,s6=a6.hasOwnProperty;function l6(e){for(var t=e.name+"",n=Cd[t],r=s6.call(Cd,t)?n.length:0;r--;){var o=n[r],i=o.func;if(i==null||i==e)return o.name}return t}function Vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Vr.prototype=Pu(Ru.prototype);Vr.prototype.constructor=Vr;function Zg(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function u6(e){if(e instanceof Hr)return e.clone();var t=new Vr(e.__wrapped__,e.__chain__);return t.__actions__=Zg(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var c6=Object.prototype,d6=c6.hasOwnProperty;function fa(e){if(zg(e)&&!Sx(e)&&!(e instanceof Hr)){if(e instanceof Vr)return e;if(d6.call(e,"__wrapped__"))return u6(e)}return new Vr(e)}fa.prototype=Ru.prototype;fa.prototype.constructor=fa;function f6(e){var t=l6(e),n=fa[t];if(typeof n!="function"||!(t in Hr.prototype))return!1;if(e===n)return!0;var r=Xg(n);return!!r&&e===r[0]}var h6=800,p6=16,g6=Date.now;function Jg(e){var t=0,n=0;return function(){var r=g6(),o=p6-(r-n);if(n=r,o>0){if(++t>=h6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var e1=Jg(Wg),m6=/\{\n\/\* \[wrapped with (.+)\] \*/,v6=/,? & /;function b6(e){var t=e.match(m6);return t?t[1].split(v6):[]}var y6=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function x6(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(y6,`{
|
|
61
61
|
/* [wrapped with `+t+`] */
|
|
62
|
-
`)}function x6(e){return function(){return e}}var Cd=function(){try{var e=U1(Object,"defineProperty");return e({},"",{}),e}catch{}}(),w6=Cd?function(e,t){return Cd(e,"toString",{configurable:!0,enumerable:!1,value:x6(t),writable:!0})}:z1,C6=Z1(w6);function S6(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function $6(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 E6(e){return e!==e}function P6(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function R6(e,t,n){return t===t?P6(e,t,n):$6(e,E6,n)}function M6(e,t){var n=e==null?0:e.length;return!!n&&R6(e,t,0)>-1}var k6=1,O6=2,T6=8,D6=16,_6=32,F6=64,I6=128,L6=256,N6=512,j6=[["ary",I6],["bind",k6],["bindKey",O6],["curry",T6],["curryRight",D6],["flip",N6],["partial",_6],["partialRight",F6],["rearg",L6]];function A6(e,t){return S6(j6,function(n){var r="_."+n[0];t&n[1]&&!M6(e,r)&&e.push(r)}),e.sort()}function eg(e,t,n){var r=t+"";return C6(e,y6(r,A6(v6(r),n)))}var K6=4,B6=8,Sd=32,$d=64;function tg(e,t,n,r,o,i,a,s,l,u){var h=t&B6,c=h?a:void 0,p=h?void 0:a,f=h?i:void 0,g=h?void 0:i;t|=h?Sd:$d,t&=~(h?$d:Sd),t&K6||(t&=-4);var m=[e,t,o,f,c,g,p,s,l,u],v=n.apply(void 0,m);return d6(e)&&J1(v,m),v.placeholder=r,eg(v,e,t)}function ng(e){var t=e;return t.placeholder}var H6=9007199254740991,V6=/^(?:0|[1-9]\d*)$/;function z6(e,t){var n=typeof e;return t=t??H6,!!t&&(n=="number"||n!="symbol"&&V6.test(e))&&e>-1&&e%1==0&&e<t}var U6=Math.min;function q6(e,t){for(var n=e.length,r=U6(t.length,n),o=X1(e);r--;){var i=t[r];e[r]=z6(i,n)?o[i]:void 0}return e}var Ed="__lodash_placeholder__";function ha(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];(a===t||a===Ed)&&(e[n]=Ed,i[o++]=n)}return i}var W6=1,G6=2,Q6=8,Y6=16,X6=128,Z6=512;function Mu(e,t,n,r,o,i,a,s,l,u){var h=t&X6,c=t&W6,p=t&G6,f=t&(Q6|Y6),g=t&Z6,m=p?void 0:Io(e);function v(){for(var b=arguments.length,x=Array(b),w=b;w--;)x[w]=arguments[w];if(f)var E=ng(v),k=n6(x,E);if(r&&(x=G1(x,r,o,f)),i&&(x=Q1(x,i,a,f)),b-=k,f&&b<u){var $=ha(x,E);return tg(e,t,Mu,v.placeholder,n,x,$,s,l,u-b)}var R=c?n:this,M=p?R[e]:e;return b=x.length,s?x=q6(x,s):g&&b>1&&x.reverse(),h&&l<b&&(x.length=l),this&&this!==nr&&this instanceof v&&(M=m||Io(M)),M.apply(R,x)}return v}function J6(e,t,n){var r=Io(e);function o(){for(var i=arguments.length,a=Array(i),s=i,l=ng(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:ha(a,l);if(i-=u.length,i<n)return tg(e,t,Mu,o.placeholder,void 0,a,u,void 0,void 0,n-i);var h=this&&this!==nr&&this instanceof o?r:e;return W1(h,this,a)}return o}var ew=1;function tw(e,t,n,r){var o=t&ew,i=Io(e);function a(){for(var s=-1,l=arguments.length,u=-1,h=r.length,c=Array(h+l),p=this&&this!==nr&&this instanceof a?i:e;++u<h;)c[u]=r[u];for(;l--;)c[u++]=arguments[++s];return W1(p,o?n:this,c)}return a}var Pd="__lodash_placeholder__",Cs=1,nw=2,rw=4,Rd=8,uo=128,Md=256,ow=Math.min;function iw(e,t){var n=e[1],r=t[1],o=n|r,i=o<(Cs|nw|uo),a=r==uo&&n==Rd||r==uo&&n==Md&&e[7].length<=t[8]||r==(uo|Md)&&t[7].length<=t[8]&&n==Rd;if(!(i||a))return e;r&Cs&&(e[2]=t[2],o|=n&Cs?0:rw);var s=t[3];if(s){var l=e[3];e[3]=l?G1(l,s,t[4]):s,e[4]=l?ha(e[3],Pd):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?Q1(l,s,t[6]):s,e[6]=l?ha(e[5],Pd):t[6]),s=t[7],s&&(e[7]=s),r&uo&&(e[8]=e[8]==null?t[8]:ow(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}var aw="Expected a function",kd=1,sw=2,Od=8,Td=16,Dd=32,lw=64,_d=Math.max;function uw(e,t,n,r,o,i,a,s){var l=t&sw;if(!l&&typeof e!="function")throw new TypeError(aw);var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),a=a===void 0?a:_d(vd(a),0),s=s===void 0?s:vd(s),u-=o?o.length:0,t&lw){var h=r,c=o;r=o=void 0}var p=l?void 0:Y1(e),f=[e,t,n,r,o,h,c,i,a,s];if(p&&iw(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:_d(f[9]-u,0),!s&&t&(Od|Td)&&(t&=-25),!t||t==kd)var g=Jx(e,t,n);else t==Od||t==Td?g=J6(e,t,s):(t==Dd||t==(kd|Dd))&&!o.length?g=tw(e,t,n,r):g=Mu.apply(void 0,f);var m=p?q1:J1;return eg(m(g,f),e,t)}var cw=8;function pa(e,t,n){t=n?void 0:t;var r=uw(e,cw,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=pa.placeholder,r}pa.placeholder={};function dw(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 fw(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 hw={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"},pw={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"},gw={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"},mw={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"},vw={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"},bw={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"},yw={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"},xw={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"},ww={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"},Cw={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"},Sw={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"},$w={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"},Ew={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"},Pw={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"},Rw={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"},Mw={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"},kw={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"},Ow={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"},Tw={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"},Dw={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"},_w={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"},Fw={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"},Iw={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"},Lw={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"},Nw={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"},jw={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"},Aw={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"},Kw={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"},Bw={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"},Hw={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"},Vw={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"},zw={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"},Uw={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"},qw={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"},Ww={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"},Gw={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"},Qw={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"},Yw={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"},rg={threezerotwofour:hw,apathy:pw,ashes:gw,atelierDune:mw,atelierForest:vw,atelierHeath:bw,atelierLakeside:yw,atelierSeaside:xw,bespin:ww,brewer:Cw,bright:Sw,chalk:$w,codeschool:Ew,colors:Pw,default:Rw,eighties:Mw,embers:kw,flat:Ow,google:Tw,grayscale:Dw,greenscreen:_w,harmonic:Fw,hopscotch:Iw,isotope:Lw,marrakesh:Nw,mocha:jw,monokai:Aw,nicinabox:Kw,ocean:Bw,paraiso:Hw,pop:Vw,railscasts:zw,shapeshifter:Uw,solarized:qw,summerfruit:Ww,tomorrow:Gw,tube:Qw,twilight:Yw},og=rg.default,Fd=Object.keys(og),Xw=e=>e<.25?1:e<.5?.9-e:1.1-e,Zw=e=>{const t=hd(e),[n,r,o]=fw(t.array()),i=[Xw(n),r,o],a=dw(i);return hd.rgb(a).hex()},ur=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),Jw=(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 ur({className:e,style:t});case"function":return(o,...i)=>ur({className:e})(t(o,...i))}break;case"object":switch(r){case"string":return ur({className:t,style:e});case"object":return{...t,...e};case"function":return(o,...i)=>ur({style:e})(t(o,...i))}break;case"function":switch(r){case"string":return(o,...i)=>e(ur(o)({className:t}),...i);case"object":return(o,...i)=>e(ur(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]=Jw(e[o],t[o]),r),{})},tC=(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},Il=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?Zw(e[n]):n==="scheme"?e[n]+":inverted":e[n],t),{}),nC=pa((e,t={},n={},...r)=>{const{defaultBase16:o=og,base16Themes:i=null}=t,a=rC(n,i);a&&(n={...a,...n});const s=Fd.reduce((c,p)=>(c[p]=n[p]||o[p],c),{}),l=Object.keys(n).reduce((c,p)=>(Fd.indexOf(p)===-1&&(c[p]=n[p]),c),{}),u=e(s),h=eC(l,u);return pa(tC,2)(h,...r)},3),ig=e=>!!e.extend,rC=(e,t)=>{if(e&&ig(e)&&e.extend&&(e=e.extend),typeof e=="string"){const[n,r]=e.split(":");t?e=t[n]:e=rg[n],r==="inverted"&&(e=Il(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},oC=e=>typeof e=="string"?`${e}:inverted`:e&&ig(e)&&e.extend?typeof e.extend=="string"?{...e,extend:`${e.extend}:inverted`}:{...e,extend:Il(e.extend)}:e&&Il(e);function iC(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 ag({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 aC(e,t){return e==="Object"?Object.keys(t).length:e==="Array"?t.length:1/0}function sC(e){return typeof e.set=="function"}function lC(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=sC(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 Ss(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 uC(e,t,n,r,o=0,i=1/0){const a=lC.bind(null,e,t,n);if(!r)return a().entries;const s=i<1/0,l=Math.min(i-o,aC(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,...Ss(o+r,o+2*r-1,r)]:c}else u=s?Ss(o,i,r):[...a(0,r-5).entries,...Ss(r-4,l-5,r),...a(l-4,l-1).entries];return u}function cC(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(ag,{nodeType:i,styling:t,expanded:!1,onClick:l,arrowStyle:"double"}),`${n} ... ${r}`)}function dC(e){return e.to!==void 0}function sg(e,t,n){const{nodeType:r,data:o,collectionLimit:i,circularCache:a,keyPath:s,postprocessValue:l,sortObjectKeys:u}=e,h=[];return uC(r,o,u,i,t,n).forEach(c=>{if(dC(c))h.push(d.createElement(cC,{...e,key:`ItemRange--${c.from}-${c.to}`,from:c.from,to:c.to,renderChildNodes:sg}));else{const{key:p,value:f}=c,g=a.includes(f);h.push(d.createElement(lg,{...e,postprocessValue:l,collectionLimit:i,key:`Node--${p}`,keyPath:[p,...s],value:l(f),circularCache:[...a,f],isCircular:g,hideRoot:!1}))}}),h}function ku(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?sg({...e,circularCache:t,level:c+1}):null,E=d.createElement("span",{...m("nestedNodeItemType",v)},f),k=a(p,o,E,r(o,n),u),$=[u,p,v,i];return s?d.createElement("li",{...m("rootNode",...$)},d.createElement("ul",{...m("rootNodeChildren",...$)},w)):d.createElement("li",{...m("nestedNode",...$)},i&&d.createElement(ag,{styling:m,nodeType:p,expanded:v,onClick:x}),d.createElement("label",{...m(["label","nestedNodeLabel"],...$),onClick:x},h(...$)),d.createElement("span",{...m("nestedNodeItemString",...$),onClick:x},k),d.createElement("ul",{...m("nestedNodeChildren",...$)},w))}function fC(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function hC({data:e,...t}){return d.createElement(ku,{...t,data:e,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:fC,expandable:Object.getOwnPropertyNames(e).length>0})}function pC(e){return`${e.length} ${e.length!==1?"items":"item"}`}function gC({data:e,...t}){return d.createElement(ku,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:pC,expandable:e.length>0})}function mC(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 vC(e){return d.createElement(ku,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:mC,expandable:!0})}function At({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 lg({getItemString:e,keyPath:t,labelRenderer:n,styling:r,value:o,valueRenderer:i,isCustomNode:a,...s}){const l=a(o)?"Custom":iC(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(hC,{...h});case"Array":return d.createElement(gC,{...h});case"Iterable":case"Map":case"Set":return d.createElement(vC,{...h});case"String":return d.createElement(At,{...u,valueGetter:c=>`"${c}"`});case"Number":return d.createElement(At,{...u});case"Boolean":return d.createElement(At,{...u,valueGetter:c=>c?"true":"false"});case"Date":return d.createElement(At,{...u,valueGetter:c=>c.toISOString()});case"Null":return d.createElement(At,{...u,valueGetter:()=>"null"});case"Undefined":return d.createElement(At,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return d.createElement(At,{...u,valueGetter:c=>c.toString()});case"Custom":return d.createElement(At,{...u});default:return d.createElement(At,{...u,valueGetter:()=>`<${l}>`})}}const bC={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"},yC=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}),xC=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}),wC=e=>{const t=yC(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:xC(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"}}},CC=nC(wC,{defaultBase16:bC}),Id=e=>e,SC=(e,t,n)=>n===0,$C=(e,t,n,r)=>d.createElement("span",null,n," ",r),EC=([e])=>d.createElement("span",null,e,":"),PC=()=>!1;function ga({data:e,theme:t,invertTheme:n,keyPath:r=["root"],labelRenderer:o=EC,valueRenderer:i=Id,shouldExpandNodeInitially:a=SC,hideRoot:s=!1,getItemString:l=$C,postprocessValue:u=Id,isCustomNode:h=PC,collectionLimit:c=50,sortObjectKeys:p=!1}){const f=d.useMemo(()=>CC(n?oC(t):t),[t,n]);return d.createElement("ul",{...f("tree")},d.createElement(lg,{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 Ba=function(e){var t=e.actions;return y.jsxs(V3,{children:[y.jsx(fu,{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","aria-label":"Action menu",children:y.jsx(S2,{width:18,height:18})}),y.jsx(K3,{placement:"bottom left",className:"space-y-0.5 rounded-md border border-slate-50 bg-white/75 p-1 shadow-sm backdrop-blur-md ",offset:5,children:y.jsx(q3,{children:t.map(function(n){return y.jsxs(Y3,{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",onAction:n.onSelect,children:[n.icon,y.jsx("span",{children:n.label})]},n.label)})})})]})},RC=function(e){var t=e.job,n=e.queueName,r=e.onRemove,o=de.job.retry.useMutation(),i=o.mutate,a=o.isSuccess,s=de.job.discard.useMutation(),l=s.mutate,u=s.isSuccess,h=de.job.rerun.useMutation(),c=h.mutate,p=h.isSuccess,f=de.job.remove.useMutation(),g=f.mutate,m=f.isSuccess;d.useEffect(function(){(a||u||p||m)&&(r==null||r())},[a,u,p,m,r]);var v={queueName:n,jobId:t.id};return y.jsx(Ba,{actions:xt(xt(xt([],t.failedReason?[{label:"Retry",onSelect:function(){i(v)},icon:y.jsx(Lr,{})}]:[],!0),t.finishedAt?[{label:"Rerun",onSelect:function(){c(v)},icon:y.jsx(Lr,{})}]:[{label:"Discard",onSelect:function(){l(v)},icon:y.jsx(k2,{})}],!0),[{label:"Remove",onSelect:function(){g(v)},icon:y.jsx(qr,{})}],!1)})},Cn=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:Nr("flex items-center space-x-1 rounded-md border text-sm font-medium",{"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":n==="yellow"&&o==="outline","border-slate-900 text-slate-900 hover:bg-slate-50 focus:bg-slate-50":n==="slate"&&o==="outline","border-red-900 text-red-900 hover:bg-red-50 focus:bg-red-50":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":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":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":n==="red"&&o==="filled"}),children:[u?y.jsx("div",{className:"flex w-4 justify-center",children:y.jsx(Zl,{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})]})},MC=function(e){var t=e.job,n=e.queueName,r=e.onDismiss,o=de.queue.byName.useQuery({queueName:n}),i=de.job.retry.useMutation().mutate,a=de.job.logs.useQuery({jobId:t.id,queueName:n}).data;return y.jsx(ja,{isOpen:!0,isDismissable:!0,onOpenChange:function(s){s||r()},className:"fixed inset-0 bg-black/10",children:y.jsx(La,{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",children:function(s){var l,u=s.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","aria-label":"Close",onClick:function(){r(),u()},children:y.jsx(Xl,{})}),y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsxs(Na,{className:"mb-1 flex items-center space-x-2",children:[y.jsx("span",{className:"text-xl font-semibold text-slate-900",children:t.name}),y.jsxs("span",{className:"rounded-md text-slate-500",children:["#",t.id]})]}),y.jsx(RC,{queueName:n,job:t,onRemove:r})]}),y.jsxs("div",{children:[t.failedReason?y.jsxs("div",{className:"space-y-2 border-b border-b-slate-200 py-4",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600",children:"Error"}),y.jsx("p",{className:"text-sm text-red-600",children:t.failedReason}),y.jsx(Cn,{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",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600",children:"Options"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(ga,{data:t.opts,theme:"monokai"})})]}),y.jsxs("div",{className:"space-y-2 pt-4",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600",children:"Data"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(ga,{data:t.data,theme:"monokai"})})]}),((l=o.data)===null||l===void 0?void 0:l.type)==="bullmq"&&(a!=null&&a.length)?y.jsxs("div",{className:"mt-4 space-y-2 border-t border-t-slate-200 pt-4",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600",children:"Logs"}),y.jsx("div",{className:"space-y-1",children:a==null?void 0:a.map(function(h,c){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"}),y.jsx("p",{className:"font-mono text-sm",children:h})]},c)})})]}):null]})]})}})})},Ei=n1(),kC=[Ei.display({id:"select",header:function(e){var t=e.table;return y.jsx(sa,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return y.jsx(sa,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),Ei.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"}),Ei.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(Ld,{}):null,r?y.jsxs(y.Fragment,{children:[y.jsx(Nd,{date:new Date(r),baseDate:new Date(n)}),y.jsx($s,{date:new Date(r),variant:a?"retried":"processing"})]}):null,i==="active"?y.jsx(Ld,{}):null,o&&r?y.jsxs(y.Fragment,{children:[y.jsx(Nd,{date:new Date(o),baseDate:new Date(r)}),y.jsx($s,{date:new Date(o),variant:i==="failed"?"failed":"completed"})]}):null]})}}),Ei.display({id:"options",header:"Options",cell:function(e){var t=e.row.original.opts;return y.jsxs("div",{className:"flex items-center space-x-2",children:[t.priority?y.jsx(so,{icon:y.jsx(E2,{width:12,height:12}),label:t.priority}):null,t.attempts&&t.attempts>1?y.jsx(so,{icon:y.jsx(Lr,{width:12,height:12}),label:t.attempts}):null,t.lifo?y.jsx(so,{icon:y.jsx(G2,{width:12,height:12}),label:"LIFO"}):null,t.delay?y.jsx(so,{icon:y.jsx(T2,{width:12,height:12}),label:t.delay}):null,t.repeat?y.jsx(so,{icon:y.jsx(_2,{width:12,height:12}),label:t.repeat.count}):null]})}})],OC=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=x7({threshold:0,onChange:function(k){k&&r()}}).ref,p=h1({data:t,columns:kC,getCoreRowModel:f1(),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=de.job.retry.useMutation().mutate,w=de.job.rerun.useMutation().mutate,E=de.job.bulkRemove.useMutation().mutate;return d.useEffect(function(){p.resetRowSelection()},[s]),y.jsxs("div",{children:[v?y.jsx(MC,{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(C1,{}):y.jsxs("div",{children:[p.getHeaderGroups().map(function(k,$){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:k.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($!==0?"pr-10":"pr-3"),children:R.isPlaceholder?null:ra(R.column.columnDef.header,R.getContext())},R.id)})},k.id)}),p.getRowModel().rows.map(function(k,$){return y.jsx(w1,{isLastRow:p.getRowModel().rows.length!==$+1,isSelected:k.getIsSelected(),onClick:function(){return b(k.original)},layoutVariant:"job",children:k.getVisibleCells().map(function(R,M){return y.jsx("div",{className:"flex h-full items-center ".concat(M!==0?"pr-10":"pr-3"),children:ra(R.column.columnDef.cell,R.getContext())},R.id)})},k.id)}),!o&&f?y.jsx("div",{className:"flex items-center justify-center py-10",children:y.jsx("p",{className:"text-slate-500",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",children:["You've viewed ",t.length," of ",n," jobs"]}),y.jsx(Z3,{value:g,children:function(k){var $=k.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",children:y.jsx("div",{className:"size-full bg-cyan-500 transition duration-300 ease-in-out",style:{transform:"translateX(-".concat(100-$,"%)")}})})})}}),i?y.jsx(Zl,{className:"animate-spin text-slate-300"}):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",children:[y.jsxs("p",{children:[p.getSelectedRowModel().rows.length," selected"]}),s==="completed"||s==="failed"?y.jsx(Cn,{label:s==="failed"?"Retry":"Rerun",icon:y.jsx(Lr,{}),size:"sm",onClick:function(){p.getSelectedRowModel().rows.forEach(function(k){s==="failed"?x({queueName:a,jobId:k.original.id}):w({queueName:a,jobId:k.original.id})}),p.resetRowSelection()}}):null,y.jsx(Cn,{label:"Delete",colorScheme:"red",icon:y.jsx(qr,{}),size:"sm",onClick:function(){E({queueName:a,jobIds:p.getSelectedRowModel().rows.map(function(k){return k.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(Eu,{message:"".concat(r[t]," ").concat(x1(n)," ago"),children:y.jsxs("div",{className:"flex items-center space-x-1.5",children:[t==="added"&&y.jsx(b0,{width:14,height:14,className:"rounded-full bg-cyan-50 text-cyan-900"}),t==="processing"&&y.jsx(d2,{width:14,height:14,className:"rounded-full bg-slate-50 text-slate-900"}),t==="retried"&&y.jsx(Lr,{width:14,height:14,className:"rounded-full bg-amber-50 text-amber-900"}),t==="completed"&&y.jsx(p0,{width:14,height:14,className:"rounded-full bg-green-50 text-green-900"}),t==="failed"&&y.jsx(g0,{width:14,height:14,className:"rounded-full bg-red-50 text-red-900"}),y.jsx("p",{className:"text-slate-900 dark:text-slate-200",children:y1(n,"".concat(t==="added"?"MM/dd ":"","HH:mm:ss"))})]})})},Ld=function(){return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(rl,{width:14,height:14,className:"text-slate-300"}),y.jsx(Zl,{width:14,height:14,className:"animate-spin text-slate-300 dark:text-slate-600"})]})},Nd=function(e){var t=e.date,n=e.baseDate;return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(rl,{width:14,height:14,className:"text-slate-300"}),y.jsx("p",{className:"w-7 rounded-sm text-center text-xs text-slate-500 dark:text-slate-400",children:p7(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(rl,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"})]})},TC=function(e){var t=e.title,n=e.description,r=e.action,o=e.children;return y.jsxs(Zp,{children:[y.jsx(fu,{children:o}),y.jsx(ja,{isDismissable:!0,className:"fixed inset-0 bg-black/10",children:y.jsx(La,{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",children:function(i){var a=i.close;return y.jsxs(y.Fragment,{children:[y.jsx(Na,{className:"mb-3 text-xl font-semibold text-slate-900",children:t}),y.jsx("p",{className:"mb-6 text-slate-600",children:n}),y.jsxs("div",{className:"flex justify-end space-x-3",children:[y.jsx(Cn,{onClick:a,label:"Cancel"}),r]})]})}})})]})};function DC(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 _C=e=>{switch(e){case"success":return LC;case"info":return jC;case"warning":return NC;case"error":return AC;default:return null}},FC=Array(12).fill(0),IC=({visible:e,className:t})=>d.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},d.createElement("div",{className:"sonner-spinner"},FC.map((n,r)=>d.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),LC=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"})),NC=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"})),jC=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"})),AC=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"})),KC=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"})),BC=()=>{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 Ll=1;class HC{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:Ll++,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(zC(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)||Ll++;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 Ue=new HC,VC=(e,t)=>{const n=(t==null?void 0:t.id)||Ll++;return Ue.addToast({title:e,...t,id:n}),n},zC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",UC=VC,qC=()=>Ue.toasts,WC=()=>Ue.getActiveToasts(),hr=Object.assign(UC,{success:Ue.success,info:Ue.info,warning:Ue.warning,error:Ue.error,custom:Ue.custom,message:Ue.message,promise:Ue.promise,dismiss:Ue.dismiss,loading:Ue.loading},{getHistory:qC,getToasts:WC});DC("[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 Pi(e){return e.label!==void 0}const GC=3,QC="24px",YC="16px",jd=4e3,XC=356,ZC=14,JC=45,eS=200;function kt(...e){return e.filter(Boolean).join(" ")}function tS(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const nS=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:E,defaultRichColors:k,closeButton:$,style:R,cancelButtonStyle:M,actionButtonStyle:_,className:D="",descriptionClassName:P="",duration:L,position:N,gap:F,expandByDefault:j,classNames:O,icons:T,closeButtonAriaLabel:A="Close toast"}=e,[K,I]=d.useState(null),[H,z]=d.useState(null),[V,W]=d.useState(!1),[q,ne]=d.useState(!1),[pe,ee]=d.useState(!1),[Ke,Et]=d.useState(!1),[Pt,Y]=d.useState(!1),[pt,Ge]=d.useState(0),[Rn,ni]=d.useState(0),ie=d.useRef(c.duration||L||jd),Xt=d.useRef(null),Qe=d.useRef(null),Jr=b===0,bg=b+1<=m,Ye=c.type,rr=c.dismissible!==!1,yg=c.className||"",xg=c.descriptionClassName||"",ri=d.useMemo(()=>v.findIndex(te=>te.toastId===c.id)||0,[v,c.id]),wg=d.useMemo(()=>{var te;return(te=c.closeButton)!=null?te:$},[c.closeButton,$]),Ou=d.useMemo(()=>c.duration||L||jd,[c.duration,L]),Va=d.useRef(0),or=d.useRef(0),Tu=d.useRef(0),ir=d.useRef(null),[Cg,Sg]=N.split("-"),Du=d.useMemo(()=>v.reduce((te,Ee,_e)=>_e>=ri?te:te+Ee.height,0),[v,ri]),_u=BC(),$g=c.invert||h,za=Ye==="loading";or.current=d.useMemo(()=>ri*F+Du,[ri,Du]),d.useEffect(()=>{ie.current=Ou},[Ou]),d.useEffect(()=>{W(!0)},[]),d.useEffect(()=>{const te=Qe.current;if(te){const Ee=te.getBoundingClientRect().height;return ni(Ee),g(_e=>[{toastId:c.id,height:Ee,position:c.position},..._e]),()=>g(_e=>_e.filter(Xe=>Xe.toastId!==c.id))}},[g,c.id]),d.useLayoutEffect(()=>{if(!V)return;const te=Qe.current,Ee=te.style.height;te.style.height="auto";const _e=te.getBoundingClientRect().height;te.style.height=Ee,ni(_e),g(Xe=>Xe.find(Te=>Te.toastId===c.id)?Xe.map(Te=>Te.toastId===c.id?{...Te,height:_e}:Te):[{toastId:c.id,height:_e,position:c.position},...Xe])},[V,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Zt=d.useCallback(()=>{ne(!0),Ge(or.current),g(te=>te.filter(Ee=>Ee.toastId!==c.id)),setTimeout(()=>{E(c)},eS)},[c,E,g,or]);d.useEffect(()=>{if(c.promise&&Ye==="loading"||c.duration===1/0||c.type==="loading")return;let te;return w||f||_u?(()=>{if(Tu.current<Va.current){const Xe=new Date().getTime()-Va.current;ie.current=ie.current-Xe}Tu.current=new Date().getTime()})():(()=>{ie.current!==1/0&&(Va.current=new Date().getTime(),te=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Zt()},ie.current))})(),()=>clearTimeout(te)},[w,f,c,Ye,_u,Zt]),d.useEffect(()=>{c.delete&&(Zt(),c.onDismiss==null||c.onDismiss.call(c,c))},[Zt,c.delete]);function Eg(){var te;if(T!=null&&T.loading){var Ee;return d.createElement("div",{className:kt(O==null?void 0:O.loader,c==null||(Ee=c.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":Ye==="loading"},T.loading)}return d.createElement(IC,{className:kt(O==null?void 0:O.loader,c==null||(te=c.classNames)==null?void 0:te.loader),visible:Ye==="loading"})}const Pg=c.icon||(T==null?void 0:T[Ye])||_C(Ye);var Fu,Iu;return d.createElement("li",{tabIndex:0,ref:Qe,className:kt(D,yg,O==null?void 0:O.toast,c==null||(t=c.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[Ye],c==null||(n=c.classNames)==null?void 0:n[Ye]),"data-sonner-toast":"","data-rich-colors":(Fu=c.richColors)!=null?Fu:k,"data-styled":!(c.jsx||c.unstyled||p),"data-mounted":V,"data-promise":!!c.promise,"data-swiped":Pt,"data-removed":q,"data-visible":bg,"data-y-position":Cg,"data-x-position":Sg,"data-index":b,"data-front":Jr,"data-swiping":pe,"data-dismissible":rr,"data-type":Ye,"data-invert":$g,"data-swipe-out":Ke,"data-swipe-direction":H,"data-expanded":!!(w||j&&V),"data-testid":c.testId,style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":`${q?pt:or.current}px`,"--initial-height":j?"auto":`${Rn}px`,...R,...c.style},onDragEnd:()=>{ee(!1),I(null),ir.current=null},onPointerDown:te=>{te.button!==2&&(za||!rr||(Xt.current=new Date,Ge(or.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(ee(!0),ir.current={x:te.clientX,y:te.clientY})))},onPointerUp:()=>{var te,Ee,_e;if(Ke||!rr)return;ir.current=null;const Xe=Number(((te=Qe.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),oi=Number(((Ee=Qe.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Te=new Date().getTime()-((_e=Xt.current)==null?void 0:_e.getTime()),at=K==="x"?Xe:oi,ii=Math.abs(at)/Te;if(Math.abs(at)>=JC||ii>.11){Ge(or.current),c.onDismiss==null||c.onDismiss.call(c,c),z(K==="x"?Xe>0?"right":"left":oi>0?"down":"up"),Zt(),Et(!0);return}else{var gt,mt;(gt=Qe.current)==null||gt.style.setProperty("--swipe-amount-x","0px"),(mt=Qe.current)==null||mt.style.setProperty("--swipe-amount-y","0px")}Y(!1),ee(!1),I(null)},onPointerMove:te=>{var Ee,_e,Xe;if(!ir.current||!rr||((Ee=window.getSelection())==null?void 0:Ee.toString().length)>0)return;const Te=te.clientY-ir.current.y,at=te.clientX-ir.current.x;var ii;const gt=(ii=e.swipeDirections)!=null?ii:tS(N);!K&&(Math.abs(at)>1||Math.abs(Te)>1)&&I(Math.abs(at)>Math.abs(Te)?"x":"y");let mt={x:0,y:0};const Lu=Mn=>1/(1.5+Math.abs(Mn)/20);if(K==="y"){if(gt.includes("top")||gt.includes("bottom"))if(gt.includes("top")&&Te<0||gt.includes("bottom")&&Te>0)mt.y=Te;else{const Mn=Te*Lu(Te);mt.y=Math.abs(Mn)<Math.abs(Te)?Mn:Te}}else if(K==="x"&&(gt.includes("left")||gt.includes("right")))if(gt.includes("left")&&at<0||gt.includes("right")&&at>0)mt.x=at;else{const Mn=at*Lu(at);mt.x=Math.abs(Mn)<Math.abs(at)?Mn:at}(Math.abs(mt.x)>0||Math.abs(mt.y)>0)&&Y(!0),(_e=Qe.current)==null||_e.style.setProperty("--swipe-amount-x",`${mt.x}px`),(Xe=Qe.current)==null||Xe.style.setProperty("--swipe-amount-y",`${mt.y}px`)}},wg&&!c.jsx&&Ye!=="loading"?d.createElement("button",{"aria-label":A,"data-disabled":za,"data-close-button":!0,onClick:za||!rr?()=>{}:()=>{Zt(),c.onDismiss==null||c.onDismiss.call(c,c)},className:kt(O==null?void 0:O.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Iu=T==null?void 0:T.close)!=null?Iu:KC):null,(Ye||c.icon||c.promise)&&c.icon!==null&&((T==null?void 0:T[Ye])!==null||c.icon)?d.createElement("div",{"data-icon":"",className:kt(O==null?void 0:O.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Eg():null,c.type!=="loading"?Pg:null):null,d.createElement("div",{"data-content":"",className:kt(O==null?void 0:O.content,c==null||(i=c.classNames)==null?void 0:i.content)},d.createElement("div",{"data-title":"",className:kt(O==null?void 0:O.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:kt(P,xg,O==null?void 0:O.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&&Pi(c.cancel)?d.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||M,onClick:te=>{Pi(c.cancel)&&rr&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,te),Zt())},className:kt(O==null?void 0:O.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,d.isValidElement(c.action)?c.action:c.action&&Pi(c.action)?d.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||_,onClick:te=>{Pi(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,te),!te.defaultPrevented&&Zt())},className:kt(O==null?void 0:O.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Ad(){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 rS(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,a=i?"--mobile-offset":"--offset",s=i?YC:QC;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 oS=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=GC,toastOptions:b,dir:x=Ad(),gap:w=ZC,icons:E,containerAriaLabel:k="Notifications"}=t,[$,R]=d.useState([]),M=d.useMemo(()=>r?$.filter(V=>V.toasterId===r):$.filter(V=>!V.toasterId),[$,r]),_=d.useMemo(()=>Array.from(new Set([i].concat(M.filter(V=>V.position).map(V=>V.position)))),[M,i]),[D,P]=d.useState([]),[L,N]=d.useState(!1),[F,j]=d.useState(!1),[O,T]=d.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=d.useRef(null),K=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=d.useRef(null),H=d.useRef(!1),z=d.useCallback(V=>{R(W=>{var q;return(q=W.find(ne=>ne.id===V.id))!=null&&q.delete||Ue.dismiss(V.id),W.filter(({id:ne})=>ne!==V.id)})},[]);return d.useEffect(()=>Ue.subscribe(V=>{if(V.dismiss){requestAnimationFrame(()=>{R(W=>W.map(q=>q.id===V.id?{...q,delete:!0}:q))});return}setTimeout(()=>{Vr.flushSync(()=>{R(W=>{const q=W.findIndex(ne=>ne.id===V.id);return q!==-1?[...W.slice(0,q),{...W[q],...V},...W.slice(q+1)]:[V,...W]})})})}),[$]),d.useEffect(()=>{if(p!=="system"){T(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?T("dark"):T("light")),typeof window>"u")return;const V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:W})=>{T(W?"dark":"light")})}catch{V.addListener(({matches:q})=>{try{T(q?"dark":"light")}catch(ne){console.error(ne)}})}},[p]),d.useEffect(()=>{$.length<=1&&N(!1)},[$]),d.useEffect(()=>{const V=W=>{var q;if(a.every(ee=>W[ee]||W.code===ee)){var pe;N(!0),(pe=A.current)==null||pe.focus()}W.code==="Escape"&&(document.activeElement===A.current||(q=A.current)!=null&&q.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[a]),d.useEffect(()=>{if(A.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,H.current=!1)}},[A.current]),d.createElement("section",{ref:n,"aria-label":`${k} ${K}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},_.map((V,W)=>{var q;const[ne,pe]=V.split("-");return M.length?d.createElement("ol",{key:V,dir:x==="auto"?Ad():x,tabIndex:-1,ref:A,className:u,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":ne,"data-x-position":pe,style:{"--front-toast-height":`${((q=D[0])==null?void 0:q.height)||0}px`,"--width":`${XC}px`,"--gap":`${w}px`,...m,...rS(h,c)},onBlur:ee=>{H.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(H.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||H.current||(H.current=!0,I.current=ee.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{F||N(!1)},onDragEnd:()=>N(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},M.filter(ee=>!ee.position&&W===0||ee.position===V).map((ee,Ke)=>{var Et,Pt;return d.createElement(nS,{key:ee.id,icons:E,index:Ke,toast:ee,defaultRichColors:f,duration:(Et=b==null?void 0:b.duration)!=null?Et:g,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:o,visibleToasts:v,closeButton:(Pt=b==null?void 0:b.closeButton)!=null?Pt:l,interacting:F,position:V,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:z,toasts:M.filter(Y=>Y.position==ee.position),heights:D.filter(Y=>Y.position==ee.position),setHeights:P,expandByDefault:s,gap:w,expanded:L,swipeDirections:t.swipeDirections})})):null}))});var iS=function(e){var t=e.showCleanAllButton,n=e.queueName,r=e.status,o=e.queue,i=de.queue.clean.useMutation({onSuccess:function(){hr.success("All ".concat(r," jobs have been removed"))}}),a=i.mutate,s=i.status,l=xt(xt(xt(xt([{name:"Completed",status:"completed"},{name:"Failed",status:"failed"},{name:"Active",status:"active"}],o&&"prioritized"in o.counts?[{name:"Prioritized",status:"prioritized"}]:[],!0),[{name:"Waiting",status:"waiting"}],!1),o&&"waiting-children"in o.counts?[{name:"Waiting Children",status:"waiting-children"}]:[],!0),[{name:"Delayed",status:"delayed"},{name:"Paused",status:"paused"}],!1);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(Ea,{to:"?status=".concat(u.status),className:Nr("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":h&&u.status==="active","bg-purple-50 text-purple-900":h&&u.status==="prioritized","bg-amber-50 text-amber-900":h&&u.status==="waiting","bg-orange-50 text-orange-900":h&&u.status==="waiting-children","bg-indigo-50 text-indigo-900":h&&u.status==="delayed","bg-stone-50 text-stone-900":h&&u.status==="paused"}),children:[y.jsx("span",{children:u.name}),o!=null&&o.counts[u.status]?y.jsx("span",{className:Nr("rounded-md px-1.5 py-0.5 text-xs font-semibold",{"bg-slate-400 text-slate-50":!h,"bg-green-600 text-green-50":h&&u.status==="completed","bg-red-600 text-red-50":h&&u.status==="failed","bg-cyan-600 text-cyan-50":h&&u.status==="active","bg-purple-600 text-purple-50":h&&u.status==="prioritized","bg-amber-600 text-amber-50":h&&u.status==="waiting","bg-orange-600 text-orange-50":h&&u.status==="waiting-children","bg-indigo-600 text-indigo-50":h&&u.status==="delayed","bg-stone-600 text-stone-50":h&&u.status==="paused"}),children:o.counts[u.status]}):null]},u.name)})}),t&&r!=="waiting-children"?y.jsx(TC,{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(Cn,{variant:"filled",colorScheme:"red",label:"Yes, remove jobs",onClick:function(){return a({queueName:n,status:r})}}),children:y.jsx(Cn,{colorScheme:"yellow",icon:y.jsx(qr,{}),label:"Clean all",size:"sm",isLoading:s==="pending"})}):null]})};function Kd(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 aS(e){if(Array.isArray(e))return e}function sS(e,t,n){return(t=pS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lS(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 uS(){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 w6(e){return function(){return e}}var Sd=function(){try{var e=qg(Object,"defineProperty");return e({},"",{}),e}catch{}}(),C6=Sd?function(e,t){return Sd(e,"toString",{configurable:!0,enumerable:!1,value:w6(t),writable:!0})}:Ug,S6=Jg(C6);function $6(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function E6(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 P6(e){return e!==e}function R6(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function k6(e,t,n){return t===t?R6(e,t,n):E6(e,P6,n)}function M6(e,t){var n=e==null?0:e.length;return!!n&&k6(e,t,0)>-1}var O6=1,T6=2,D6=8,_6=16,F6=32,L6=64,I6=128,N6=256,j6=512,A6=[["ary",I6],["bind",O6],["bindKey",T6],["curry",D6],["curryRight",_6],["flip",j6],["partial",F6],["partialRight",L6],["rearg",N6]];function K6(e,t){return $6(A6,function(n){var r="_."+n[0];t&n[1]&&!M6(e,r)&&e.push(r)}),e.sort()}function t1(e,t,n){var r=t+"";return S6(e,x6(r,K6(b6(r),n)))}var B6=4,H6=8,$d=32,Ed=64;function n1(e,t,n,r,o,i,a,s,l,u){var h=t&H6,c=h?a:void 0,p=h?void 0:a,f=h?i:void 0,g=h?void 0:i;t|=h?$d:Ed,t&=~(h?Ed:$d),t&B6||(t&=-4);var m=[e,t,o,f,c,g,p,s,l,u],v=n.apply(void 0,m);return f6(e)&&e1(v,m),v.placeholder=r,t1(v,e,t)}function r1(e){var t=e;return t.placeholder}var V6=9007199254740991,z6=/^(?:0|[1-9]\d*)$/;function U6(e,t){var n=typeof e;return t=t??V6,!!t&&(n=="number"||n!="symbol"&&z6.test(e))&&e>-1&&e%1==0&&e<t}var q6=Math.min;function W6(e,t){for(var n=e.length,r=q6(t.length,n),o=Zg(e);r--;){var i=t[r];e[r]=U6(i,n)?o[i]:void 0}return e}var Pd="__lodash_placeholder__";function ha(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];(a===t||a===Pd)&&(e[n]=Pd,i[o++]=n)}return i}var G6=1,Q6=2,Y6=8,X6=16,Z6=128,J6=512;function ku(e,t,n,r,o,i,a,s,l,u){var h=t&Z6,c=t&G6,p=t&Q6,f=t&(Y6|X6),g=t&J6,m=p?void 0:Lo(e);function v(){for(var b=arguments.length,x=Array(b),w=b;w--;)x[w]=arguments[w];if(f)var S=r1(v),k=r6(x,S);if(r&&(x=Qg(x,r,o,f)),i&&(x=Yg(x,i,a,f)),b-=k,f&&b<u){var E=ha(x,S);return n1(e,t,ku,v.placeholder,n,x,E,s,l,u-b)}var R=c?n:this,M=p?R[e]:e;return b=x.length,s?x=W6(x,s):g&&b>1&&x.reverse(),h&&l<b&&(x.length=l),this&&this!==nr&&this instanceof v&&(M=m||Lo(M)),M.apply(R,x)}return v}function ew(e,t,n){var r=Lo(e);function o(){for(var i=arguments.length,a=Array(i),s=i,l=r1(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:ha(a,l);if(i-=u.length,i<n)return n1(e,t,ku,o.placeholder,void 0,a,u,void 0,void 0,n-i);var h=this&&this!==nr&&this instanceof o?r:e;return Gg(h,this,a)}return o}var tw=1;function nw(e,t,n,r){var o=t&tw,i=Lo(e);function a(){for(var s=-1,l=arguments.length,u=-1,h=r.length,c=Array(h+l),p=this&&this!==nr&&this instanceof a?i:e;++u<h;)c[u]=r[u];for(;l--;)c[u++]=arguments[++s];return Gg(p,o?n:this,c)}return a}var Rd="__lodash_placeholder__",Cs=1,rw=2,ow=4,kd=8,co=128,Md=256,iw=Math.min;function aw(e,t){var n=e[1],r=t[1],o=n|r,i=o<(Cs|rw|co),a=r==co&&n==kd||r==co&&n==Md&&e[7].length<=t[8]||r==(co|Md)&&t[7].length<=t[8]&&n==kd;if(!(i||a))return e;r&Cs&&(e[2]=t[2],o|=n&Cs?0:ow);var s=t[3];if(s){var l=e[3];e[3]=l?Qg(l,s,t[4]):s,e[4]=l?ha(e[3],Rd):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?Yg(l,s,t[6]):s,e[6]=l?ha(e[5],Rd):t[6]),s=t[7],s&&(e[7]=s),r&co&&(e[8]=e[8]==null?t[8]:iw(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}var sw="Expected a function",Od=1,lw=2,Td=8,Dd=16,_d=32,uw=64,Fd=Math.max;function cw(e,t,n,r,o,i,a,s){var l=t&lw;if(!l&&typeof e!="function")throw new TypeError(sw);var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),a=a===void 0?a:Fd(bd(a),0),s=s===void 0?s:bd(s),u-=o?o.length:0,t&uw){var h=r,c=o;r=o=void 0}var p=l?void 0:Xg(e),f=[e,t,n,r,o,h,c,i,a,s];if(p&&aw(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:Fd(f[9]-u,0),!s&&t&(Td|Dd)&&(t&=-25),!t||t==Od)var g=e6(e,t,n);else t==Td||t==Dd?g=ew(e,t,s):(t==_d||t==(Od|_d))&&!o.length?g=nw(e,t,n,r):g=ku.apply(void 0,f);var m=p?Wg:e1;return t1(m(g,f),e,t)}var dw=8;function pa(e,t,n){t=n?void 0:t;var r=cw(e,dw,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=pa.placeholder,r}pa.placeholder={};function fw(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 hw(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 pw={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"},gw={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"},mw={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"},vw={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"},bw={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"},yw={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"},xw={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"},ww={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"},Cw={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"},Sw={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"},$w={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"},Ew={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"},Pw={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"},Rw={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"},kw={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"},Mw={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"},Ow={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"},Tw={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"},Dw={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"},_w={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"},Fw={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"},Lw={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"},Iw={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"},Nw={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"},jw={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"},Aw={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"},Kw={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"},Bw={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"},Hw={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"},Vw={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"},zw={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"},Uw={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"},qw={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"},Ww={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"},Gw={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"},Qw={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"},Yw={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"},Xw={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"},o1={threezerotwofour:pw,apathy:gw,ashes:mw,atelierDune:vw,atelierForest:bw,atelierHeath:yw,atelierLakeside:xw,atelierSeaside:ww,bespin:Cw,brewer:Sw,bright:$w,chalk:Ew,codeschool:Pw,colors:Rw,default:kw,eighties:Mw,embers:Ow,flat:Tw,google:Dw,grayscale:_w,greenscreen:Fw,harmonic:Lw,hopscotch:Iw,isotope:Nw,marrakesh:jw,mocha:Aw,monokai:Kw,nicinabox:Bw,ocean:Hw,paraiso:Vw,pop:zw,railscasts:Uw,shapeshifter:qw,solarized:Ww,summerfruit:Gw,tomorrow:Qw,tube:Yw,twilight:Xw},i1=o1.default,Ld=Object.keys(i1),Zw=e=>e<.25?1:e<.5?.9-e:1.1-e,Jw=e=>{const t=pd(e),[n,r,o]=hw(t.array()),i=[Zw(n),r,o],a=fw(i);return pd.rgb(a).hex()},ur=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),eC=(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 ur({className:e,style:t});case"function":return(o,...i)=>ur({className:e})(t(o,...i))}break;case"object":switch(r){case"string":return ur({className:t,style:e});case"object":return{...t,...e};case"function":return(o,...i)=>ur({style:e})(t(o,...i))}break;case"function":switch(r){case"string":return(o,...i)=>e(ur(o)({className:t}),...i);case"object":return(o,...i)=>e(ur(o)({style:t}),...i);case"function":return(o,...i)=>e(t(o,...i),...i)}}},tC=(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]=eC(e[o],t[o]),r),{})},nC=(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},Ll=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?Jw(e[n]):n==="scheme"?e[n]+":inverted":e[n],t),{}),rC=pa((e,t={},n={},...r)=>{const{defaultBase16:o=i1,base16Themes:i=null}=t,a=oC(n,i);a&&(n={...a,...n});const s=Ld.reduce((c,p)=>(c[p]=n[p]||o[p],c),{}),l=Object.keys(n).reduce((c,p)=>(Ld.indexOf(p)===-1&&(c[p]=n[p]),c),{}),u=e(s),h=tC(l,u);return pa(nC,2)(h,...r)},3),a1=e=>!!e.extend,oC=(e,t)=>{if(e&&a1(e)&&e.extend&&(e=e.extend),typeof e=="string"){const[n,r]=e.split(":");t?e=t[n]:e=o1[n],r==="inverted"&&(e=Ll(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},iC=e=>typeof e=="string"?`${e}:inverted`:e&&a1(e)&&e.extend?typeof e.extend=="string"?{...e,extend:`${e.extend}:inverted`}:{...e,extend:Ll(e.extend)}:e&&Ll(e);function aC(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 s1({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 sC(e,t){return e==="Object"?Object.keys(t).length:e==="Array"?t.length:1/0}function lC(e){return typeof e.set=="function"}function uC(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=lC(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 Ss(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 cC(e,t,n,r,o=0,i=1/0){const a=uC.bind(null,e,t,n);if(!r)return a().entries;const s=i<1/0,l=Math.min(i-o,sC(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,...Ss(o+r,o+2*r-1,r)]:c}else u=s?Ss(o,i,r):[...a(0,r-5).entries,...Ss(r-4,l-5,r),...a(l-4,l-1).entries];return u}function dC(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(s1,{nodeType:i,styling:t,expanded:!1,onClick:l,arrowStyle:"double"}),`${n} ... ${r}`)}function fC(e){return e.to!==void 0}function l1(e,t,n){const{nodeType:r,data:o,collectionLimit:i,circularCache:a,keyPath:s,postprocessValue:l,sortObjectKeys:u}=e,h=[];return cC(r,o,u,i,t,n).forEach(c=>{if(fC(c))h.push(d.createElement(dC,{...e,key:`ItemRange--${c.from}-${c.to}`,from:c.from,to:c.to,renderChildNodes:l1}));else{const{key:p,value:f}=c,g=a.includes(f);h.push(d.createElement(u1,{...e,postprocessValue:l,collectionLimit:i,key:`Node--${p}`,keyPath:[p,...s],value:l(f),circularCache:[...a,f],isCircular:g,hideRoot:!1}))}}),h}function Mu(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?l1({...e,circularCache:t,level:c+1}):null,S=d.createElement("span",{...m("nestedNodeItemType",v)},f),k=a(p,o,S,r(o,n),u),E=[u,p,v,i];return s?d.createElement("li",{...m("rootNode",...E)},d.createElement("ul",{...m("rootNodeChildren",...E)},w)):d.createElement("li",{...m("nestedNode",...E)},i&&d.createElement(s1,{styling:m,nodeType:p,expanded:v,onClick:x}),d.createElement("label",{...m(["label","nestedNodeLabel"],...E),onClick:x},h(...E)),d.createElement("span",{...m("nestedNodeItemString",...E),onClick:x},k),d.createElement("ul",{...m("nestedNodeChildren",...E)},w))}function hC(e){const t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function pC({data:e,...t}){return d.createElement(Mu,{...t,data:e,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:hC,expandable:Object.getOwnPropertyNames(e).length>0})}function gC(e){return`${e.length} ${e.length!==1?"items":"item"}`}function mC({data:e,...t}){return d.createElement(Mu,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:gC,expandable:e.length>0})}function vC(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 bC(e){return d.createElement(Mu,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:vC,expandable:!0})}function At({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 u1({getItemString:e,keyPath:t,labelRenderer:n,styling:r,value:o,valueRenderer:i,isCustomNode:a,...s}){const l=a(o)?"Custom":aC(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(pC,{...h});case"Array":return d.createElement(mC,{...h});case"Iterable":case"Map":case"Set":return d.createElement(bC,{...h});case"String":return d.createElement(At,{...u,valueGetter:c=>`"${c}"`});case"Number":return d.createElement(At,{...u});case"Boolean":return d.createElement(At,{...u,valueGetter:c=>c?"true":"false"});case"Date":return d.createElement(At,{...u,valueGetter:c=>c.toISOString()});case"Null":return d.createElement(At,{...u,valueGetter:()=>"null"});case"Undefined":return d.createElement(At,{...u,valueGetter:()=>"undefined"});case"Function":case"Symbol":return d.createElement(At,{...u,valueGetter:c=>c.toString()});case"Custom":return d.createElement(At,{...u});default:return d.createElement(At,{...u,valueGetter:()=>`<${l}>`})}}const yC={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"},xC=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}),wC=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}),CC=e=>{const t=xC(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:wC(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"}}},SC=rC(CC,{defaultBase16:yC}),Id=e=>e,$C=(e,t,n)=>n===0,EC=(e,t,n,r)=>d.createElement("span",null,n," ",r),PC=([e])=>d.createElement("span",null,e,":"),RC=()=>!1;function ga({data:e,theme:t,invertTheme:n,keyPath:r=["root"],labelRenderer:o=PC,valueRenderer:i=Id,shouldExpandNodeInitially:a=$C,hideRoot:s=!1,getItemString:l=EC,postprocessValue:u=Id,isCustomNode:h=RC,collectionLimit:c=50,sortObjectKeys:p=!1}){const f=d.useMemo(()=>SC(n?iC(t):t),[t,n]);return d.createElement("ul",{...f("tree")},d.createElement(u1,{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 Ba=function(e){var t=e.actions;return y.jsxs(z3,{children:[y.jsx(fu,{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($2,{width:18,height:18})}),y.jsx(B3,{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(W3,{children:t.map(function(n){return y.jsxs(X3,{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)})})})]})},kC=function(e){var t=e.job,n=e.queueName,r=e.queue,o=e.onRemove,i=de.job.retry.useMutation(),a=i.mutate,s=i.isSuccess,l=de.job.discard.useMutation(),u=l.mutate,h=l.isSuccess,c=de.job.rerun.useMutation(),p=c.mutate,f=c.isSuccess,g=de.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=We(We(We([],t.failedReason&&x?[{label:"Retry",onSelect:function(){a(b)},icon:y.jsx(Nr,{})}]:[],!0),t.finishedAt?[{label:"Rerun",onSelect:function(){p(b)},icon:y.jsx(Nr,{})}]:[{label:"Discard",onSelect:function(){u(b)},icon:y.jsx(O2,{})}],!0),[{label:"Remove",onSelect:function(){m(b)},icon:y.jsx(Wr,{})}],!1);return y.jsx(Ba,{actions:w})},Cn=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:jr("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(Zl,{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})]})},MC=function(e){var t=e.job,n=e.queueName,r=e.onDismiss,o=de.queue.byName.useQuery({queueName:n}),i=de.job.retry.useMutation().mutate,a=de.job.logs.useQuery({jobId:t.id,queueName:n}).data;return y.jsx(ja,{isOpen:!0,isDismissable:!0,onOpenChange:function(s){s||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Ia,{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.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(),h()},children:y.jsx(Xl,{})}),y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsxs(Na,{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(kC,{queueName:n,job:t,queue:(l=o.data)!==null&&l!==void 0?l:void 0,onRemove:r})]}),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(Cn,{label:"Retry",size:"sm",icon:y.jsx(Nr,{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(ga,{data:t.opts,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:"Data"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(ga,{data:t.data,theme:"monokai"})})]}),!((u=o.data)===null||u===void 0)&&u.supports.logs&&(a!=null&&a.length)?y.jsxs("div",{className:"mt-4 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]})]})}})})},Ei=rg(),OC=[Ei.display({id:"select",header:function(e){var t=e.table;return y.jsx(sa,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return y.jsx(sa,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),Ei.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"}),Ei.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(Nd,{}):null,r?y.jsxs(y.Fragment,{children:[y.jsx(jd,{date:new Date(r),baseDate:new Date(n)}),y.jsx($s,{date:new Date(r),variant:a?"retried":"processing"})]}):null,i==="active"?y.jsx(Nd,{}):null,o&&r?y.jsxs(y.Fragment,{children:[y.jsx(jd,{date:new Date(o),baseDate:new Date(r)}),y.jsx($s,{date:new Date(o),variant:i==="failed"?"failed":"completed"})]}):null]})}}),Ei.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(lo,{icon:y.jsx(P2,{width:12,height:12}),label:n.priority}):null,n.attempts&&n.attempts>1?y.jsx(lo,{icon:y.jsx(Nr,{width:12,height:12}),label:n.attempts}):null,n.lifo?y.jsx(lo,{icon:y.jsx(Q2,{width:12,height:12}),label:"LIFO"}):null,n.delay?y.jsx(lo,{icon:y.jsx(D2,{width:12,height:12}),label:n.delay}):null,!((t=n.repeat)===null||t===void 0)&&t.count?y.jsx(lo,{icon:y.jsx(F2,{width:12,height:12}),label:n.repeat.count}):null]})}})],TC=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=w7({threshold:0,onChange:function(k){k&&r()}}).ref,p=pg({data:t,columns:OC,getCoreRowModel:hg(),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=de.job.retry.useMutation().mutate,w=de.job.rerun.useMutation().mutate,S=de.job.bulkRemove.useMutation().mutate;return d.useEffect(function(){p.resetRowSelection()},[s]),y.jsxs("div",{children:[v?y.jsx(MC,{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(Sg,{}):y.jsxs("div",{children:[p.getHeaderGroups().map(function(k,E){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:k.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(E!==0?"pr-10":"pr-3"),children:R.isPlaceholder?null:ra(R.column.columnDef.header,R.getContext())},R.id)})},k.id)}),p.getRowModel().rows.map(function(k,E){return y.jsx(Cg,{isLastRow:p.getRowModel().rows.length!==E+1,isSelected:k.getIsSelected(),onClick:function(){return b(k.original)},layoutVariant:"job",children:k.getVisibleCells().map(function(R,M){return y.jsx("div",{className:"flex h-full items-center ".concat(M!==0?"pr-10":"pr-3"),children:ra(R.column.columnDef.cell,R.getContext())},R.id)})},k.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(J3,{value:g,children:function(k){var E=k.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-E,"%)")}})})})}}),i?y.jsx(Zl,{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(Cn,{label:s==="failed"?"Retry":"Rerun",icon:y.jsx(Nr,{}),size:"sm",onClick:function(){p.getSelectedRowModel().rows.forEach(function(k){s==="failed"?x({queueName:a,jobId:k.original.id}):w({queueName:a,jobId:k.original.id})}),p.resetRowSelection()}}):null,y.jsx(Cn,{label:"Delete",colorScheme:"red",icon:y.jsx(Wr,{}),size:"sm",onClick:function(){S({queueName:a,jobIds:p.getSelectedRowModel().rows.map(function(k){return k.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(Eu,{message:"".concat(r[t]," ").concat(wg(n)," ago"),children:y.jsxs("div",{className:"flex items-center space-x-1.5",children:[t==="added"&&y.jsx(y0,{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(f2,{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(Nr,{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(g0,{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(m0,{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:xg(n,"".concat(t==="added"?"MM/dd ":"","HH:mm:ss"))})]})})},Nd=function(){return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(rl,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"}),y.jsx(Zl,{width:14,height:14,className:"animate-spin text-slate-300 dark:text-slate-600"})]})},jd=function(e){var t=e.date,n=e.baseDate;return y.jsxs("div",{className:"flex items-center space-x-1.5",children:[y.jsx(rl,{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:g7(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(rl,{width:14,height:14,className:"text-slate-300 dark:text-slate-600"})]})},DC=function(e){var t=e.title,n=e.description,r=e.action,o=e.children;return y.jsxs(Jp,{children:[y.jsx(fu,{children:o}),y.jsx(ja,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Ia,{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(Na,{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(Cn,{onClick:a,label:"Cancel"}),r]})]})}})})]})};function _C(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 FC=e=>{switch(e){case"success":return NC;case"info":return AC;case"warning":return jC;case"error":return KC;default:return null}},LC=Array(12).fill(0),IC=({visible:e,className:t})=>d.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},d.createElement("div",{className:"sonner-spinner"},LC.map((n,r)=>d.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),NC=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"})),jC=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"})),AC=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"})),KC=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"})),BC=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"})),HC=()=>{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 Il=1;class VC{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:Il++,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(UC(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)||Il++;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 Ue=new VC,zC=(e,t)=>{const n=(t==null?void 0:t.id)||Il++;return Ue.addToast({title:e,...t,id:n}),n},UC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qC=zC,WC=()=>Ue.toasts,GC=()=>Ue.getActiveToasts(),hr=Object.assign(qC,{success:Ue.success,info:Ue.info,warning:Ue.warning,error:Ue.error,custom:Ue.custom,message:Ue.message,promise:Ue.promise,dismiss:Ue.dismiss,loading:Ue.loading},{getHistory:WC,getToasts:GC});_C("[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 Pi(e){return e.label!==void 0}const QC=3,YC="24px",XC="16px",Ad=4e3,ZC=356,JC=14,eS=45,tS=200;function Mt(...e){return e.filter(Boolean).join(" ")}function nS(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const rS=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:k,closeButton:E,style:R,cancelButtonStyle:M,actionButtonStyle:_,className:D="",descriptionClassName:P="",duration:I,position:N,gap:F,expandByDefault:j,classNames:O,icons:T,closeButtonAriaLabel:A="Close toast"}=e,[K,L]=d.useState(null),[H,z]=d.useState(null),[V,W]=d.useState(!1),[q,ne]=d.useState(!1),[pe,ee]=d.useState(!1),[Ke,Et]=d.useState(!1),[Pt,Y]=d.useState(!1),[gt,Qe]=d.useState(0),[Rn,ni]=d.useState(0),ie=d.useRef(c.duration||I||Ad),Xt=d.useRef(null),Ye=d.useRef(null),eo=b===0,y1=b+1<=m,Xe=c.type,rr=c.dismissible!==!1,x1=c.className||"",w1=c.descriptionClassName||"",ri=d.useMemo(()=>v.findIndex(te=>te.toastId===c.id)||0,[v,c.id]),C1=d.useMemo(()=>{var te;return(te=c.closeButton)!=null?te:E},[c.closeButton,E]),Ou=d.useMemo(()=>c.duration||I||Ad,[c.duration,I]),Va=d.useRef(0),or=d.useRef(0),Tu=d.useRef(0),ir=d.useRef(null),[S1,$1]=N.split("-"),Du=d.useMemo(()=>v.reduce((te,Ee,_e)=>_e>=ri?te:te+Ee.height,0),[v,ri]),_u=HC(),E1=c.invert||h,za=Xe==="loading";or.current=d.useMemo(()=>ri*F+Du,[ri,Du]),d.useEffect(()=>{ie.current=Ou},[Ou]),d.useEffect(()=>{W(!0)},[]),d.useEffect(()=>{const te=Ye.current;if(te){const Ee=te.getBoundingClientRect().height;return ni(Ee),g(_e=>[{toastId:c.id,height:Ee,position:c.position},..._e]),()=>g(_e=>_e.filter(Ze=>Ze.toastId!==c.id))}},[g,c.id]),d.useLayoutEffect(()=>{if(!V)return;const te=Ye.current,Ee=te.style.height;te.style.height="auto";const _e=te.getBoundingClientRect().height;te.style.height=Ee,ni(_e),g(Ze=>Ze.find(Te=>Te.toastId===c.id)?Ze.map(Te=>Te.toastId===c.id?{...Te,height:_e}:Te):[{toastId:c.id,height:_e,position:c.position},...Ze])},[V,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Zt=d.useCallback(()=>{ne(!0),Qe(or.current),g(te=>te.filter(Ee=>Ee.toastId!==c.id)),setTimeout(()=>{S(c)},tS)},[c,S,g,or]);d.useEffect(()=>{if(c.promise&&Xe==="loading"||c.duration===1/0||c.type==="loading")return;let te;return w||f||_u?(()=>{if(Tu.current<Va.current){const Ze=new Date().getTime()-Va.current;ie.current=ie.current-Ze}Tu.current=new Date().getTime()})():(()=>{ie.current!==1/0&&(Va.current=new Date().getTime(),te=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Zt()},ie.current))})(),()=>clearTimeout(te)},[w,f,c,Xe,_u,Zt]),d.useEffect(()=>{c.delete&&(Zt(),c.onDismiss==null||c.onDismiss.call(c,c))},[Zt,c.delete]);function P1(){var te;if(T!=null&&T.loading){var Ee;return d.createElement("div",{className:Mt(O==null?void 0:O.loader,c==null||(Ee=c.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":Xe==="loading"},T.loading)}return d.createElement(IC,{className:Mt(O==null?void 0:O.loader,c==null||(te=c.classNames)==null?void 0:te.loader),visible:Xe==="loading"})}const R1=c.icon||(T==null?void 0:T[Xe])||FC(Xe);var Fu,Lu;return d.createElement("li",{tabIndex:0,ref:Ye,className:Mt(D,x1,O==null?void 0:O.toast,c==null||(t=c.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[Xe],c==null||(n=c.classNames)==null?void 0:n[Xe]),"data-sonner-toast":"","data-rich-colors":(Fu=c.richColors)!=null?Fu:k,"data-styled":!(c.jsx||c.unstyled||p),"data-mounted":V,"data-promise":!!c.promise,"data-swiped":Pt,"data-removed":q,"data-visible":y1,"data-y-position":S1,"data-x-position":$1,"data-index":b,"data-front":eo,"data-swiping":pe,"data-dismissible":rr,"data-type":Xe,"data-invert":E1,"data-swipe-out":Ke,"data-swipe-direction":H,"data-expanded":!!(w||j&&V),"data-testid":c.testId,style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":`${q?gt:or.current}px`,"--initial-height":j?"auto":`${Rn}px`,...R,...c.style},onDragEnd:()=>{ee(!1),L(null),ir.current=null},onPointerDown:te=>{te.button!==2&&(za||!rr||(Xt.current=new Date,Qe(or.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(ee(!0),ir.current={x:te.clientX,y:te.clientY})))},onPointerUp:()=>{var te,Ee,_e;if(Ke||!rr)return;ir.current=null;const Ze=Number(((te=Ye.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),oi=Number(((Ee=Ye.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Te=new Date().getTime()-((_e=Xt.current)==null?void 0:_e.getTime()),st=K==="x"?Ze:oi,ii=Math.abs(st)/Te;if(Math.abs(st)>=eS||ii>.11){Qe(or.current),c.onDismiss==null||c.onDismiss.call(c,c),z(K==="x"?Ze>0?"right":"left":oi>0?"down":"up"),Zt(),Et(!0);return}else{var mt,vt;(mt=Ye.current)==null||mt.style.setProperty("--swipe-amount-x","0px"),(vt=Ye.current)==null||vt.style.setProperty("--swipe-amount-y","0px")}Y(!1),ee(!1),L(null)},onPointerMove:te=>{var Ee,_e,Ze;if(!ir.current||!rr||((Ee=window.getSelection())==null?void 0:Ee.toString().length)>0)return;const Te=te.clientY-ir.current.y,st=te.clientX-ir.current.x;var ii;const mt=(ii=e.swipeDirections)!=null?ii:nS(N);!K&&(Math.abs(st)>1||Math.abs(Te)>1)&&L(Math.abs(st)>Math.abs(Te)?"x":"y");let vt={x:0,y:0};const Iu=kn=>1/(1.5+Math.abs(kn)/20);if(K==="y"){if(mt.includes("top")||mt.includes("bottom"))if(mt.includes("top")&&Te<0||mt.includes("bottom")&&Te>0)vt.y=Te;else{const kn=Te*Iu(Te);vt.y=Math.abs(kn)<Math.abs(Te)?kn:Te}}else if(K==="x"&&(mt.includes("left")||mt.includes("right")))if(mt.includes("left")&&st<0||mt.includes("right")&&st>0)vt.x=st;else{const kn=st*Iu(st);vt.x=Math.abs(kn)<Math.abs(st)?kn:st}(Math.abs(vt.x)>0||Math.abs(vt.y)>0)&&Y(!0),(_e=Ye.current)==null||_e.style.setProperty("--swipe-amount-x",`${vt.x}px`),(Ze=Ye.current)==null||Ze.style.setProperty("--swipe-amount-y",`${vt.y}px`)}},C1&&!c.jsx&&Xe!=="loading"?d.createElement("button",{"aria-label":A,"data-disabled":za,"data-close-button":!0,onClick:za||!rr?()=>{}:()=>{Zt(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Mt(O==null?void 0:O.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Lu=T==null?void 0:T.close)!=null?Lu:BC):null,(Xe||c.icon||c.promise)&&c.icon!==null&&((T==null?void 0:T[Xe])!==null||c.icon)?d.createElement("div",{"data-icon":"",className:Mt(O==null?void 0:O.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||P1():null,c.type!=="loading"?R1:null):null,d.createElement("div",{"data-content":"",className:Mt(O==null?void 0:O.content,c==null||(i=c.classNames)==null?void 0:i.content)},d.createElement("div",{"data-title":"",className:Mt(O==null?void 0:O.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:Mt(P,w1,O==null?void 0:O.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&&Pi(c.cancel)?d.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||M,onClick:te=>{Pi(c.cancel)&&rr&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,te),Zt())},className:Mt(O==null?void 0:O.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,d.isValidElement(c.action)?c.action:c.action&&Pi(c.action)?d.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||_,onClick:te=>{Pi(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,te),!te.defaultPrevented&&Zt())},className:Mt(O==null?void 0:O.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Kd(){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 oS(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,a=i?"--mobile-offset":"--offset",s=i?XC:YC;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 iS=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=QC,toastOptions:b,dir:x=Kd(),gap:w=JC,icons:S,containerAriaLabel:k="Notifications"}=t,[E,R]=d.useState([]),M=d.useMemo(()=>r?E.filter(V=>V.toasterId===r):E.filter(V=>!V.toasterId),[E,r]),_=d.useMemo(()=>Array.from(new Set([i].concat(M.filter(V=>V.position).map(V=>V.position)))),[M,i]),[D,P]=d.useState([]),[I,N]=d.useState(!1),[F,j]=d.useState(!1),[O,T]=d.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=d.useRef(null),K=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=d.useRef(null),H=d.useRef(!1),z=d.useCallback(V=>{R(W=>{var q;return(q=W.find(ne=>ne.id===V.id))!=null&&q.delete||Ue.dismiss(V.id),W.filter(({id:ne})=>ne!==V.id)})},[]);return d.useEffect(()=>Ue.subscribe(V=>{if(V.dismiss){requestAnimationFrame(()=>{R(W=>W.map(q=>q.id===V.id?{...q,delete:!0}:q))});return}setTimeout(()=>{zr.flushSync(()=>{R(W=>{const q=W.findIndex(ne=>ne.id===V.id);return q!==-1?[...W.slice(0,q),{...W[q],...V},...W.slice(q+1)]:[V,...W]})})})}),[E]),d.useEffect(()=>{if(p!=="system"){T(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?T("dark"):T("light")),typeof window>"u")return;const V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:W})=>{T(W?"dark":"light")})}catch{V.addListener(({matches:q})=>{try{T(q?"dark":"light")}catch(ne){console.error(ne)}})}},[p]),d.useEffect(()=>{E.length<=1&&N(!1)},[E]),d.useEffect(()=>{const V=W=>{var q;if(a.every(ee=>W[ee]||W.code===ee)){var pe;N(!0),(pe=A.current)==null||pe.focus()}W.code==="Escape"&&(document.activeElement===A.current||(q=A.current)!=null&&q.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[a]),d.useEffect(()=>{if(A.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,H.current=!1)}},[A.current]),d.createElement("section",{ref:n,"aria-label":`${k} ${K}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},_.map((V,W)=>{var q;const[ne,pe]=V.split("-");return M.length?d.createElement("ol",{key:V,dir:x==="auto"?Kd():x,tabIndex:-1,ref:A,className:u,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":ne,"data-x-position":pe,style:{"--front-toast-height":`${((q=D[0])==null?void 0:q.height)||0}px`,"--width":`${ZC}px`,"--gap":`${w}px`,...m,...oS(h,c)},onBlur:ee=>{H.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(H.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||H.current||(H.current=!0,L.current=ee.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{F||N(!1)},onDragEnd:()=>N(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},M.filter(ee=>!ee.position&&W===0||ee.position===V).map((ee,Ke)=>{var Et,Pt;return d.createElement(rS,{key:ee.id,icons:S,index:Ke,toast:ee,defaultRichColors:f,duration:(Et=b==null?void 0:b.duration)!=null?Et:g,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:o,visibleToasts:v,closeButton:(Pt=b==null?void 0:b.closeButton)!=null?Pt:l,interacting:F,position:V,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:z,toasts:M.filter(Y=>Y.position==ee.position),heights:D.filter(Y=>Y.position==ee.position),setHeights:P,expandByDefault:s,gap:w,expanded:I,swipeDirections:t.swipeDirections})})):null}))});var aS=function(e){var t=e.showCleanAllButton,n=e.queueName,r=e.status,o=e.queue,i=de.queue.clean.useMutation({onSuccess:function(){hr.success("All ".concat(r," jobs have been removed"))}}),a=i.mutate,s=i.status,l=We(We(We(We(We([{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(Ea,{to:"?status=".concat(u.status),className:jr("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:jr("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(DC,{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(Cn,{variant:"filled",colorScheme:"red",label:"Yes, remove jobs",onClick:function(){return a({queueName:n,status:r})}}),children:y.jsx(Cn,{colorScheme:"yellow",icon:y.jsx(Wr,{}),label:"Clean all",size:"sm",isLoading:s==="pending"})}):null]})};function Bd(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 sS(e){if(Array.isArray(e))return e}function lS(e,t,n){return(t=gS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uS(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 cS(){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 Hd(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 Vd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hd(Object(n),!0).forEach(function(r){lS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dS(e,t){if(e==null)return{};var n,r,o=fS(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 fS(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 hS(e,t){return sS(e)||uS(e,t)||mS(e,t)||cS()}function pS(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 gS(e){var t=pS(e,"string");return typeof t=="symbol"?t:t+""}function mS(e,t){if(e){if(typeof e=="string")return Bd(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)?Bd(e,t):void 0}}function vS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 Ud(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){vS(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 bS(){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 mo(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 ma(e){return{}.toString.call(e).includes("Object")}function yS(e){return!Object.keys(e).length}function Io(e){return typeof e=="function"}function xS(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function wS(e,t){return ma(t)||bn("changeType"),Object.keys(t).some(function(n){return!xS(e,n)})&&bn("changeField"),t}function CS(e){Io(e)||bn("selectorType")}function SS(e){Io(e)||ma(e)||bn("handlerType"),ma(e)&&Object.values(e).some(function(t){return!Io(t)})&&bn("handlersType")}function $S(e){e||bn("initialIsRequired"),ma(e)||bn("initialType"),yS(e)&&bn("initialContent")}function ES(e,t){throw new Error(e[t]||e.default)}var PS={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"},bn=mo(ES)(PS),Ri={changes:wS,selector:CS,handler:SS,initial:$S};function RS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ri.initial(e),Ri.handler(t);var n={current:e},r=mo(OS)(n,t),o=mo(MS)(n),i=mo(Ri.changes)(e),a=mo(kS)(n);function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return Ri.selector(u),u(n.current)}function l(u){bS(r,o,i,a)(u)}return[s,l]}function kS(e,t){return Io(t)?t(e.current):t}function MS(e,t){return e.current=Ud(Ud({},e.current),t),t}function OS(e,t,n){return Io(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 TS={create:RS},DS={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.54.0/min/vs"}};function _S(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 FS(e){return{}.toString.call(e).includes("Object")}function LS(e){return e||qd("configIsRequired"),FS(e)||qd("configType"),e.urls?(IS(),{paths:{vs:e.urls.monacoBase}}):e}function IS(){console.warn(c1.deprecation)}function NS(e,t){throw new Error(e[t]||e.default)}var c1={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
|
-
`},Ud=DS(LS)(ug),NS={config:FS},jS=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 cg(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],cg(e[n],t[n]))}),Hd(Hd({},e),t)}var AS={type:"cancelation",msg:"operation is manually canceled"};function Es(e){var t=!1,n=new Promise(function(r,o){e.then(function(i){return t?o(AS):r(i)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var KS=["monaco"],BS=OS.create({config:TS,isInitialized:!1,resolve:null,reject:null,monaco:null}),dg=fS(BS,2),ti=dg[0],Ha=dg[1];function HS(e){var t=NS.config(e),n=t.monaco,r=cS(t,KS);Ha(function(o){return{config:cg(o.config,r),monaco:n}})}function VS(){var e=ti(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(Ha({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Es(Ps);if(window.monaco&&window.monaco.editor)return fg(window.monaco),e.resolve(window.monaco),Es(Ps);jS(zS,qS)(WS)}return Es(Ps)}function zS(e){return document.body.appendChild(e)}function US(e){var t=document.createElement("script");return e&&(t.src=e),t}function qS(e){var t=ti(function(r){var o=r.config,i=r.reject;return{config:o,reject:i}}),n=US("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function WS(){var e=ti(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;fg(r),e.resolve(r)},function(n){e.reject(n)})}function fg(e){ti().monaco||Ha({monaco:e})}function GS(){return ti(function(e){var t=e.monaco;return t})}var Ps=new Promise(function(e,t){return Ha({resolve:e,reject:t})}),hg={config:HS,init:VS,__getMonacoInstance:GS},QS={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Rs=QS,YS={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},XS=YS;function ZS({children:e}){return d.createElement("div",{style:XS.container},e)}var JS=ZS,e$=JS;function t$({width:e,height:t,isEditorReady:n,loading:r,_ref:o,className:i,wrapperProps:a}){return d.createElement("section",{style:{...Rs.wrapper,width:e,height:t},...a},!n&&d.createElement(e$,null,r),d.createElement("div",{ref:o,style:{...Rs.fullWidth,...!n&&Rs.hide},className:i}))}var n$=t$,pg=d.memo(n$);function r$(e){d.useEffect(e,[])}var gg=r$;function o$(e,t,n=!0){let r=d.useRef(!0);d.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Je=o$;function So(){}function mr(e,t,n,r){return i$(e,r)||a$(e,t,n,r)}function i$(e,t){return e.editor.getModel(mg(e,t))}function a$(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 s$({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=So,onMount:b=So}){let[x,w]=d.useState(!1),[E,k]=d.useState(!0),$=d.useRef(null),R=d.useRef(null),M=d.useRef(null),_=d.useRef(b),D=d.useRef(v),P=d.useRef(!1);gg(()=>{let j=hg.init();return j.then(O=>(R.current=O)&&k(!1)).catch(O=>(O==null?void 0:O.type)!=="cancelation"&&console.error("Monaco initialization: error:",O)),()=>$.current?F():j.cancel()}),Je(()=>{if($.current&&R.current){let j=$.current.getOriginalEditor(),O=mr(R.current,e||"",r||n||"text",i||"");O!==j.getModel()&&j.setModel(O)}},[i],x),Je(()=>{if($.current&&R.current){let j=$.current.getModifiedEditor(),O=mr(R.current,t||"",o||n||"text",a||"");O!==j.getModel()&&j.setModel(O)}},[a],x),Je(()=>{let j=$.current.getModifiedEditor();j.getOption(R.current.editor.EditorOption.readOnly)?j.setValue(t||""):t!==j.getValue()&&(j.executeEdits("",[{range:j.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),j.pushUndoStop())},[t],x),Je(()=>{var j,O;(O=(j=$.current)==null?void 0:j.getModel())==null||O.original.setValue(e||"")},[e],x),Je(()=>{let{original:j,modified:O}=$.current.getModel();R.current.editor.setModelLanguage(j,r||n||"text"),R.current.editor.setModelLanguage(O,o||n||"text")},[n,r,o],x),Je(()=>{var j;(j=R.current)==null||j.editor.setTheme(u)},[u],x),Je(()=>{var j;(j=$.current)==null||j.updateOptions(c)},[c],x);let L=d.useCallback(()=>{var T;if(!R.current)return;D.current(R.current);let j=mr(R.current,e||"",r||n||"text",i||""),O=mr(R.current,t||"",o||n||"text",a||"");(T=$.current)==null||T.setModel({original:j,modified:O})},[n,t,o,e,r,i,a]),N=d.useCallback(()=>{var j;!P.current&&M.current&&($.current=R.current.editor.createDiffEditor(M.current,{automaticLayout:!0,...c}),L(),(j=R.current)==null||j.editor.setTheme(u),w(!0),P.current=!0)},[c,u,L]);d.useEffect(()=>{x&&_.current($.current,R.current)},[x]),d.useEffect(()=>{!E&&!x&&N()},[E,x,N]);function F(){var O,T,A,K;let j=(O=$.current)==null?void 0:O.getModel();s||((T=j==null?void 0:j.original)==null||T.dispose()),l||((A=j==null?void 0:j.modified)==null||A.dispose()),(K=$.current)==null||K.dispose()}return d.createElement(pg,{width:f,height:p,isEditorReady:x,loading:h,_ref:M,className:g,wrapperProps:m})}var l$=s$;d.memo(l$);function u$(e){let t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}var c$=u$,Mi=new Map;function d$({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=So,onMount:x=So,onChange:w,onValidate:E=So}){let[k,$]=d.useState(!1),[R,M]=d.useState(!0),_=d.useRef(null),D=d.useRef(null),P=d.useRef(null),L=d.useRef(x),N=d.useRef(b),F=d.useRef(),j=d.useRef(r),O=c$(i),T=d.useRef(!1),A=d.useRef(!1);gg(()=>{let H=hg.init();return H.then(z=>(_.current=z)&&M(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>D.current?I():H.cancel()}),Je(()=>{var z,V,W,q;let H=mr(_.current,e||r||"",t||o||"",i||n||"");H!==((z=D.current)==null?void 0:z.getModel())&&(c&&Mi.set(O,(V=D.current)==null?void 0:V.saveViewState()),(W=D.current)==null||W.setModel(H),c&&((q=D.current)==null||q.restoreViewState(Mi.get(i))))},[i],k),Je(()=>{var H;(H=D.current)==null||H.updateOptions(u)},[u],k),Je(()=>{!D.current||r===void 0||(D.current.getOption(_.current.editor.EditorOption.readOnly)?D.current.setValue(r):r!==D.current.getValue()&&(A.current=!0,D.current.executeEdits("",[{range:D.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),D.current.pushUndoStop(),A.current=!1))},[r],k),Je(()=>{var z,V;let H=(z=D.current)==null?void 0:z.getModel();H&&o&&((V=_.current)==null||V.editor.setModelLanguage(H,o))},[o],k),Je(()=>{var H;s!==void 0&&((H=D.current)==null||H.revealLine(s))},[s],k),Je(()=>{var H;(H=_.current)==null||H.editor.setTheme(a)},[a],k);let K=d.useCallback(()=>{var H;if(!(!P.current||!_.current)&&!T.current){N.current(_.current);let z=i||n,V=mr(_.current,r||e||"",t||o||"",z||"");D.current=(H=_.current)==null?void 0:H.editor.create(P.current,{model:V,automaticLayout:!0,...u},h),c&&D.current.restoreViewState(Mi.get(z)),_.current.editor.setTheme(a),s!==void 0&&D.current.revealLine(s),$(!0),T.current=!0}},[e,t,n,r,o,i,u,h,c,a,s]);d.useEffect(()=>{k&&L.current(D.current,_.current)},[k]),d.useEffect(()=>{!R&&!k&&K()},[R,k,K]),j.current=r,d.useEffect(()=>{var H,z;k&&w&&((H=F.current)==null||H.dispose(),F.current=(z=D.current)==null?void 0:z.onDidChangeModelContent(V=>{A.current||w(D.current.getValue(),V)}))},[k,w]),d.useEffect(()=>{if(k){let H=_.current.editor.onDidChangeMarkers(z=>{var W;let V=(W=D.current.getModel())==null?void 0:W.uri;if(V&&z.find(q=>q.path===V.path)){let q=_.current.editor.getModelMarkers({resource:V});E==null||E(q)}});return()=>{H==null||H.dispose()}}return()=>{}},[k,E]);function I(){var H,z;(H=F.current)==null||H.dispose(),p?c&&Mi.set(i,D.current.saveViewState()):(z=D.current.getModel())==null||z.dispose(),D.current.dispose()}return d.createElement(pg,{width:f,height:g,isEditorReady:k,loading:l,_ref:P,className:m,wrapperProps:v})}var f$=d$,h$=d.memo(f$),p$=h$,Ms=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(p$,{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")}})})},qd=function(e){var t=e.queue,n=e.onDismiss,r=e.variant,o=r===void 0?"job":r,i=de.queue.addJob.useMutation({onSuccess:function(){hr.success("New job has been added"),n()},onError:function($){hr.error($.message)}}),a=i.mutate,s=i.status,l=de.queue.addJobScheduler.useMutation({onSuccess:function(){hr.success("New job scheduler has been added"),n()},onError:function($){hr.error($.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],E=o==="job",k=E?s:h;return y.jsx(Zp,{isOpen:!0,onOpenChange:function($){$||n()},children:y.jsx(ja,{isDismissable:!0,className:"fixed inset-0 bg-black/10",children:y.jsx(La,{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",children:function($){var 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","aria-label":"Close",onClick:function(){R(),n()},children:y.jsx(Xl,{})}),y.jsx("div",{className:"flex items-center space-x-4",children:y.jsxs(Na,{className:"mb-1 text-xl font-semibold text-slate-900",children:["Add ",E?"job":"scheduler"," to"," ",t.displayName.toLocaleLowerCase()]})}),E?y.jsx(Ms,{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",children:"Template"}),y.jsx(Ms,{value:m,onChange:v})]}),y.jsxs("div",{children:[y.jsx("label",{className:"text-xs font-semibold uppercase text-slate-600",children:"Options"}),y.jsx(Ms,{value:x,onChange:w})]})]}),y.jsx("div",{children:y.jsx(Cn,{label:E?"Add job":"Add scheduler",variant:"filled",disabled:k==="pending",onClick:function(){try{if(E){var M=JSON.parse(p);a({queueName:t.name,data:M})}else{var _=JSON.parse(m),D=JSON.parse(x);u({queueName:t.name,template:_,opts:D})}}catch{hr.error("Invalid JSON")}}})})]})}})})})},g$=function(e){var t=e.queue,n=de.queue.pause.useMutation().mutate,r=de.queue.resume.useMutation().mutate,o=de.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};return y.jsxs(y.Fragment,{children:[y.jsx(Ba,{actions:xt(xt([{label:t.paused?"Resume":"Pause",onSelect:function(){t.paused?r(c):n(c)},icon:t.paused?y.jsx(v0,{}):y.jsx(m0,{})},{label:"Add job",onSelect:function(){s(!0)},icon:y.jsx(ic,{})}],t.type==="bullmq"?[{label:"Add scheduler",onSelect:function(){h(!0)},icon:y.jsx(ic,{})}]:[],!0),[{label:"Empty",onSelect:function(){o(c)},icon:y.jsx(qr,{})}],!1)}),a?y.jsx(qd,{queue:t,variant:"job",onDismiss:function(){return s(!1)}}):null,u?y.jsx(qd,{queue:t,variant:"scheduler",onDismiss:function(){return h(!1)}}):null]})},vg={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(k){var $=k.replace(/\D/,""),R=$;return f.dayOfWeekStartIndexZero?$=="7"&&(R="0"):R=(parseInt($)-1).toString(),k.replace($,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(k){var $=k.replace(/\D/,""),R=$;return f.monthStartIndexZero&&(R=(parseInt($)+1).toString()),k.replace($,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(k){return k!==""}).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 E=p[x].split("/");p[x]="".concat(E[0],"-").concat(w,"/").concat(E[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,E=m.dayOfWeekStartIndexZero,k=E===void 0?!0:E,$=m.monthStartIndexZero,R=$===void 0?!1:$,M=m.use24HourTimeFormat,_=m.locale,D=_===void 0?null:_,P={throwExceptionOnParseError:b,verbose:w,dayOfWeekStartIndexZero:k,monthStartIndexZero:R,use24HourTimeFormat:M,locale:D};P.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var L=new p(f,P);return L.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(),E=this.getDayOfWeekDescription(),k=this.getYearDescription();m+=b+x+E+w+k,m=this.transformVerbosity(m,!!this.options.verbose),m=m.charAt(0).toLocaleUpperCase()+m.substr(1)}catch($){if(!this.options.throwExceptionOnParseError)m=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat($)}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 E=this.getSecondsDescription(),k=this.getMinutesDescription(),$=this.getHoursDescription();if(v+=E,v&&k&&(v+=", "),v+=k,k===$)return v;v&&$&&(v+=", "),v+=$}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 E=w.split("-");E.length===2&&v.push({value:E[1],index:m+1}),m+=E.length});var b=0,x=this.getSegmentDescription(g,this.i18n.everyHour(),function(w){var E=v.find(function($){return $.value===w&&$.index===b}),k=E&&f.expressionParts[1]!=="0";return b++,k?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),E=f.i18n.daysOfTheWeekInCase?f.i18n.daysOfTheWeekInCase(b)[w]:g[w];if(v.indexOf("#")>-1){var k=null,$=v.substring(v.indexOf("#")+1),R=v.substring(0,v.indexOf("#"));switch($){case"1":k=f.i18n.first(R);break;case"2":k=f.i18n.second(R);break;case"3":k=f.i18n.third(R);break;case"4":k=f.i18n.fourth(R);break;case"5":k=f.i18n.fifth(R);break}E=k+" "+E}return E},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 E=f.expressionParts[3]!="*";b=E?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 E=w[1];g=u.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(E),E);break}else{if(m=="*"&&this.expressionParts[5]!="*")return"";g=this.getSegmentDescription(m,this.i18n.commaEveryDay(),function(k){return k=="L"?f.i18n.lastDay():f.i18n.dayX0?u.StringUtilities.format(f.i18n.dayX0(),k):k},function(k){return k=="1"?f.i18n.commaEveryDay():f.i18n.commaEveryX0Days(k)},function(k){return f.i18n.commaBetweenDayX0AndX1OfTheMonth(k)},function(k){return f.i18n.commaOnDayX0OfTheMonth(k)})}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,E=f.indexOf("/")>-1,k=f.indexOf("-")>-1,$=f.indexOf(",")>-1;if(!f)w="";else if(f==="*")w=g;else if(!E&&!k&&!$)w=u.StringUtilities.format(x(f),m(f));else if($){for(var R=f.split(","),M="",_=0;_<R.length;_++)if(_>0&&R.length>2&&(M+=",",_<R.length-1&&(M+=" ")),_>0&&R.length>1&&(_==R.length-1||R.length==2)&&(M+="".concat(this.i18n.spaceAnd()," ")),R[_].indexOf("/")>-1||R[_].indexOf("-")>-1){var D=R[_].indexOf("-")>-1&&R[_].indexOf("/")==-1,P=this.getSegmentDescription(R[_],g,m,v,D?this.i18n.commaX0ThroughX1:b,x);D&&(P=P.replace(", ","")),M+=P}else E?M+=this.getSegmentDescription(R[_],g,m,v,b,x):M+=m(R[_]);E?w=M:w=u.StringUtilities.format(x(f),M)}else if(E){var R=f.split("/");if(w=u.StringUtilities.format(v(R[1]),R[1]),R[0].indexOf("-")>-1){var L=this.generateRangeSegmentDescription(R[0],b,m);L.indexOf(", ")!=0&&(w+=", "),w+=L}else if(R[0].indexOf("*")==-1){var N=u.StringUtilities.format(x(R[0]),m(R[0]));N=N.replace(", ",""),w+=u.StringUtilities.format(this.i18n.commaStartingX0(),N)}}else k&&(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),E=g(f);return v+=u.StringUtilities.format(E,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 E="",k=!1;this.options.use24HourTimeFormat||(k=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),E=k?"".concat(this.getPeriod(x)," "):" ".concat(this.getPeriod(x)),x>12&&(x-=12),x===0&&(x=12));var $="";return m&&($=":".concat(("00"+m).substring(m.length))),"".concat(k?E:"").concat(("00"+x.toString()).substring(x.toString().length),":").concat(("00"+w.toString()).substring(w.toString().length)).concat($).concat(k?"":E)},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})())})(vg);var m$=vg.exports;const v$=af(m$);var b$=function(e){var t=e.scheduler,n=e.queueName,r=e.onRemove,o=de.scheduler.remove.useMutation(),i=o.mutate,a=o.isSuccess;return d.useEffect(function(){a&&(r==null||r())},[a,r]),y.jsx(Ba,{actions:[{label:"Remove",onSelect:function(){i({queueName:n,jobSchedulerId:t.key})},icon:y.jsx(qr,{})}]})},y$=function(e){var t=e.scheduler,n=e.queueName,r=e.onDismiss,o=t.template,i=Po({},t);return delete i.template,y.jsx(ja,{isOpen:!0,isDismissable:!0,onOpenChange:function(a){a||r()},className:"fixed inset-0 bg-black/10",children:y.jsx(La,{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",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","aria-label":"Close",onClick:function(){r(),s()},children:y.jsx(Xl,{})}),y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsxs(Na,{className:"mb-1 flex items-center space-x-2",children:[y.jsx("span",{className:"text-xl font-semibold text-slate-900",children:t.name}),y.jsxs("span",{className:"rounded-md text-slate-500",children:["#",t.id]})]}),y.jsx(b$,{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",children:[y.jsx("p",{className:"text-xs font-semibold uppercase text-slate-600",children:"Options"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(ga,{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",children:"Template"}),y.jsx("div",{className:"data-json-renderer [&>ul]:max-h-[400px]",children:y.jsx(ga,{data:o,theme:"monokai"})})]})]})]})}})})},ki=n1();function x$(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 w$=[ki.display({id:"select",header:function(e){var t=e.table;return y.jsx(sa,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onCheckedChange:function(){t.toggleAllRowsSelected()}})},cell:function(e){var t=e.row,n=e.table;return y.jsx(sa,{className:n.getIsSomeRowsSelected()||n.getIsAllRowsSelected()?"":"opacity-0 transition group-hover:opacity-100",checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})}}),ki.accessor("name",{cell:function(e){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:e.cell.row.original.name})})},header:"Scheduler"}),ki.accessor("pattern",{cell:function(e){return y.jsxs("span",{className:"grow basis-full truncate text-slate-900 dark:text-slate-200",children:[e.cell.row.original.pattern?v$.toString(e.cell.row.original.pattern,{verbose:!0}):e.cell.row.original.every?"Every ".concat(e.cell.row.original.every):""," ",e.cell.row.original.tz?"(".concat(x$(e.cell.row.original.tz),")"):""]})},header:"Pattern"}),ki.accessor("next",{cell:function(e){return e.cell.row.original.next?y.jsx(Eu,{message:y1(new Date(e.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 ",x1(new Date(e.cell.row.original.next))," ",y.jsxs("span",{className:"text-sm text-slate-700",children:["(",e.cell.row.original.iterationCount," run",e.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"})],C$=function(e){var t=e.queueName,n=d.useState({}),r=n[0],o=n[1],i=de.scheduler.list.useQuery({queueName:t}),a=i.data,s=i.isLoading,l=(a==null?void 0:a.length)===0,u=h1({data:a||[],columns:w$,getCoreRowModel:f1(),state:{rowSelection:r},onRowSelectionChange:o}),h=d.useState(null),c=h[0],p=h[1],f=de.scheduler.bulkRemove.useMutation().mutate;return!s&&l?null:y.jsxs("div",{children:[c?y.jsx(y$,{scheduler:c,queueName:t,onDismiss:function(){return p(null)}}):null,y.jsx("div",{className:"rounded-md border border-slate-200 shadow-sm dark:border-slate-700",children:s?y.jsx(C1,{}):y.jsxs("div",{children:[u.getHeaderGroups().map(function(g,m){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:g.headers.map(function(v){return y.jsx("div",{className:"flex h-full items-center text-sm font-semibold text-slate-700 dark:text-slate-300 ".concat(m!==0?"pr-10":"pr-3"),children:v.isPlaceholder?null:ra(v.column.columnDef.header,v.getContext())},v.id)})},g.id)}),u.getRowModel().rows.map(function(g,m){return y.jsx(w1,{isLastRow:u.getRowModel().rows.length!==m+1,isSelected:g.getIsSelected(),onClick:function(){return p(g.original)},layoutVariant:"scheduler",children:g.getVisibleCells().map(function(v,b){return y.jsx("div",{className:"flex h-full items-center ".concat(b!==0?"pr-10":"pr-3"),children:ra(v.column.columnDef.cell,v.getContext())},v.id)})},g.id)})]})}),u.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",children:[y.jsxs("p",{children:[u.getSelectedRowModel().rows.length," selected"]}),y.jsx(Cn,{label:"Delete",colorScheme:"red",icon:y.jsx(qr,{}),size:"sm",onClick:function(){f({queueName:t,jobSchedulerIds:u.getSelectedRowModel().rows.map(function(g){return g.original.key})}),u.resetRowSelection()}})]})}):null]})},ks=new Intl.NumberFormat("en-US").format,S$=function(){var e,t,n,r,o=fb().id,i=o,a=t2()[0],s=d.useState("completed"),l=s[0],u=s[1],h=de.job.list.useInfiniteQuery({queueName:i,limit:kl,status:l},{getNextPageParam:function(w){return w.nextCursor},enabled:!!i,refetchInterval:Ol,retry:Tl}),c=h.data,p=h.fetchNextPage,f=h.isLoading,g=h.isError,m=h.isFetchingNextPage,v=h.hasNextPage;d.useEffect(function(){var w=a.get("status");w&&u(w),!w&&l&&u("completed")},[a,l]);var b=de.queue.byName.useQuery({queueName:i},{enabled:!!i,refetchInterval:Ol,retry:Tl}),x=(e=c==null?void 0:c.pages.map(function(w){return w.jobs}).flat())!==null&&e!==void 0?e:[];return y.jsx(t1,{children:b.data===null?y.jsx(Cl,{message:"No queue found"}):g?y.jsx(Cl,{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:b.data?b.data.displayName:y.jsx(zi,{className:"h-8 w-52 rounded-md"})}),y.jsxs("div",{className:"flex items-center space-x-2",children:[b.data?y.jsx(g$,{queue:b.data}):null,!((t=b.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",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:b.data?y.jsxs(y.Fragment,{children:[y.jsxs("p",{className:"text-slate-600",children:[y.jsxs("span",{className:"text-green-800",children:[ks(b.data.client.connectedClients)," ","connected"]})," ","and"," ",y.jsxs("span",{className:"text-red-800",children:[ks(b.data.client.blockedClients)," ","blocked"]})," ","out of"," ",y.jsxs("span",{className:"text-slate-900",children:[ks(b.data.client.maxClients)," max clients"]})]}),y.jsx("p",{className:"text-slate-600",children:"·"}),y.jsxs("p",{className:"text-slate-600",children:[b.data.client.usedMemoryHuman," /"," ",b.data.client.totalMemoryHuman," (",(b.data.client.usedMemoryPercentage*100).toFixed(2),"%)"]}),y.jsx("p",{className:"text-slate-600",children:"·"}),y.jsxs("p",{className:"text-slate-600",children:["Redis v",b.data.client.version]})]}):y.jsx(zi,{className:"h-6 w-80"})})}),y.jsxs("div",{className:"space-y-8",children:[((n=b.data)===null||n===void 0?void 0:n.type)==="bullmq"?y.jsx(C$,{queueName:i}):null,y.jsxs("div",{className:"space-y-4",children:[y.jsx(iS,{showCleanAllButton:x.length>0,queueName:i,status:l,queue:b.data}),y.jsx(OC,{onBottomInView:function(){m||!v||p()},status:l,totalJobs:((r=c==null?void 0:c.pages.at(-1))===null||r===void 0?void 0:r.totalCount)||0,jobs:x.map(function(w){return Po(Po({},w),{status:l})}),isLoading:f,isFetchingNextPage:m,queueName:i})]})]})]})})},Oi=function(e){var t=e.count,n=e.variant,r={active:"text-cyan-600",completed:"text-green-600",failed:"text-red-600",waiting:"text-amber-600"},o={active:y.jsx(b0,{width:16,height:16}),completed:y.jsx(p0,{width:16,height:16}),failed:y.jsx(g0,{width:16,height:16}),waiting:y.jsx(I2,{width:16,height:16})};return y.jsx("div",{children:y.jsx(Eu,{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]]})})})},$$=function(e){var t=e.queueName,n=de.queue.byName.useQuery({queueName:t},{refetchInterval:Ol,retry:Tl});return n.data?y.jsxs(Ea,{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",children:y.jsx("span",{children:"Paused"})}):null})]}),y.jsxs("div",{className:"flex space-x-5",children:[y.jsx(Oi,{count:n.data.counts.completed,variant:"completed"}),y.jsx(Oi,{count:n.data.counts.failed,variant:"failed"}),y.jsx(Oi,{count:n.data.counts.active,variant:"active"}),y.jsx(Oi,{count:n.data.counts.waiting,variant:"waiting"})]})]}):null},E$=function(){var e=de.queue.list.useQuery().data,t=de.queue.pauseAll.useMutation().mutate,n=de.queue.resumeAll.useMutation().mutate;return y.jsx(t1,{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(Ba,{actions:[{label:"Resume all",icon:y.jsx(v0,{}),onSelect:function(){return n()}},{label:"Pause all",icon:y.jsx(m0,{}),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($$,{queueName:r.name},r.name)},r.name)})})]})})},P$=function(e){var t=e.apiUrl,n=e.basename,r=d.useState(!1),o=r[0],i=r[1],a=d.useState(function(){return new em})[0],s=d.useState(function(){return de.createClient({links:[Qm({url:t})]})})[0];return d.useEffect(function(){var l=JSON.parse(localStorage.getItem("user-preferences")||"null");l?l.theme==="dark"||l.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"),i(!0)},[]),o?y.jsx(de.Provider,{client:s,queryClient:a,children:y.jsxs(tm,{client:a,children:[y.jsx(oS,{}),y.jsx(Xb,{basename:n,children:y.jsxs(Rb,{children:[y.jsx(el,{path:"/",element:y.jsx(E$,{})}),y.jsx(el,{path:"/:id",element:y.jsx(S$,{})})]})})]})}):null};exports.QueueDashApp=P$;
|
|
72
|
+
`},qd=_S(NS)(c1),jS={config:LS},AS=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 d1(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],d1(e[n],t[n]))}),Vd(Vd({},e),t)}var KS={type:"cancelation",msg:"operation is manually canceled"};function Es(e){var t=!1,n=new Promise(function(r,o){e.then(function(i){return t?o(KS):r(i)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var BS=["monaco"],HS=TS.create({config:DS,isInitialized:!1,resolve:null,reject:null,monaco:null}),f1=hS(HS,2),ti=f1[0],Ha=f1[1];function VS(e){var t=jS.config(e),n=t.monaco,r=dS(t,BS);Ha(function(o){return{config:d1(o.config,r),monaco:n}})}function zS(){var e=ti(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(Ha({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Es(Ps);if(window.monaco&&window.monaco.editor)return h1(window.monaco),e.resolve(window.monaco),Es(Ps);AS(US,WS)(GS)}return Es(Ps)}function US(e){return document.body.appendChild(e)}function qS(e){var t=document.createElement("script");return e&&(t.src=e),t}function WS(e){var t=ti(function(r){var o=r.config,i=r.reject;return{config:o,reject:i}}),n=qS("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function GS(){var e=ti(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;h1(r),e.resolve(r)},function(n){e.reject(n)})}function h1(e){ti().monaco||Ha({monaco:e})}function QS(){return ti(function(e){var t=e.monaco;return t})}var Ps=new Promise(function(e,t){return Ha({resolve:e,reject:t})}),p1={config:VS,init:zS,__getMonacoInstance:QS},YS={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Rs=YS,XS={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},ZS=XS;function JS({children:e}){return d.createElement("div",{style:ZS.container},e)}var e$=JS,t$=e$;function n$({width:e,height:t,isEditorReady:n,loading:r,_ref:o,className:i,wrapperProps:a}){return d.createElement("section",{style:{...Rs.wrapper,width:e,height:t},...a},!n&&d.createElement(t$,null,r),d.createElement("div",{ref:o,style:{...Rs.fullWidth,...!n&&Rs.hide},className:i}))}var r$=n$,g1=d.memo(r$);function o$(e){d.useEffect(e,[])}var m1=o$;function i$(e,t,n=!0){let r=d.useRef(!0);d.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var et=i$;function $o(){}function mr(e,t,n,r){return a$(e,r)||s$(e,t,n,r)}function a$(e,t){return e.editor.getModel(v1(e,t))}function s$(e,t,n,r){return e.editor.createModel(t,n,r?v1(e,r):void 0)}function v1(e,t){return e.Uri.parse(t)}function l$({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,k]=d.useState(!0),E=d.useRef(null),R=d.useRef(null),M=d.useRef(null),_=d.useRef(b),D=d.useRef(v),P=d.useRef(!1);m1(()=>{let j=p1.init();return j.then(O=>(R.current=O)&&k(!1)).catch(O=>(O==null?void 0:O.type)!=="cancelation"&&console.error("Monaco initialization: error:",O)),()=>E.current?F():j.cancel()}),et(()=>{if(E.current&&R.current){let j=E.current.getOriginalEditor(),O=mr(R.current,e||"",r||n||"text",i||"");O!==j.getModel()&&j.setModel(O)}},[i],x),et(()=>{if(E.current&&R.current){let j=E.current.getModifiedEditor(),O=mr(R.current,t||"",o||n||"text",a||"");O!==j.getModel()&&j.setModel(O)}},[a],x),et(()=>{let j=E.current.getModifiedEditor();j.getOption(R.current.editor.EditorOption.readOnly)?j.setValue(t||""):t!==j.getValue()&&(j.executeEdits("",[{range:j.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),j.pushUndoStop())},[t],x),et(()=>{var j,O;(O=(j=E.current)==null?void 0:j.getModel())==null||O.original.setValue(e||"")},[e],x),et(()=>{let{original:j,modified:O}=E.current.getModel();R.current.editor.setModelLanguage(j,r||n||"text"),R.current.editor.setModelLanguage(O,o||n||"text")},[n,r,o],x),et(()=>{var j;(j=R.current)==null||j.editor.setTheme(u)},[u],x),et(()=>{var j;(j=E.current)==null||j.updateOptions(c)},[c],x);let I=d.useCallback(()=>{var T;if(!R.current)return;D.current(R.current);let j=mr(R.current,e||"",r||n||"text",i||""),O=mr(R.current,t||"",o||n||"text",a||"");(T=E.current)==null||T.setModel({original:j,modified:O})},[n,t,o,e,r,i,a]),N=d.useCallback(()=>{var j;!P.current&&M.current&&(E.current=R.current.editor.createDiffEditor(M.current,{automaticLayout:!0,...c}),I(),(j=R.current)==null||j.editor.setTheme(u),w(!0),P.current=!0)},[c,u,I]);d.useEffect(()=>{x&&_.current(E.current,R.current)},[x]),d.useEffect(()=>{!S&&!x&&N()},[S,x,N]);function F(){var O,T,A,K;let j=(O=E.current)==null?void 0:O.getModel();s||((T=j==null?void 0:j.original)==null||T.dispose()),l||((A=j==null?void 0:j.modified)==null||A.dispose()),(K=E.current)==null||K.dispose()}return d.createElement(g1,{width:f,height:p,isEditorReady:x,loading:h,_ref:M,className:g,wrapperProps:m})}var u$=l$;d.memo(u$);function c$(e){let t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}var d$=c$,ki=new Map;function f$({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[k,E]=d.useState(!1),[R,M]=d.useState(!0),_=d.useRef(null),D=d.useRef(null),P=d.useRef(null),I=d.useRef(x),N=d.useRef(b),F=d.useRef(),j=d.useRef(r),O=d$(i),T=d.useRef(!1),A=d.useRef(!1);m1(()=>{let H=p1.init();return H.then(z=>(_.current=z)&&M(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>D.current?L():H.cancel()}),et(()=>{var z,V,W,q;let H=mr(_.current,e||r||"",t||o||"",i||n||"");H!==((z=D.current)==null?void 0:z.getModel())&&(c&&ki.set(O,(V=D.current)==null?void 0:V.saveViewState()),(W=D.current)==null||W.setModel(H),c&&((q=D.current)==null||q.restoreViewState(ki.get(i))))},[i],k),et(()=>{var H;(H=D.current)==null||H.updateOptions(u)},[u],k),et(()=>{!D.current||r===void 0||(D.current.getOption(_.current.editor.EditorOption.readOnly)?D.current.setValue(r):r!==D.current.getValue()&&(A.current=!0,D.current.executeEdits("",[{range:D.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),D.current.pushUndoStop(),A.current=!1))},[r],k),et(()=>{var z,V;let H=(z=D.current)==null?void 0:z.getModel();H&&o&&((V=_.current)==null||V.editor.setModelLanguage(H,o))},[o],k),et(()=>{var H;s!==void 0&&((H=D.current)==null||H.revealLine(s))},[s],k),et(()=>{var H;(H=_.current)==null||H.editor.setTheme(a)},[a],k);let K=d.useCallback(()=>{var H;if(!(!P.current||!_.current)&&!T.current){N.current(_.current);let z=i||n,V=mr(_.current,r||e||"",t||o||"",z||"");D.current=(H=_.current)==null?void 0:H.editor.create(P.current,{model:V,automaticLayout:!0,...u},h),c&&D.current.restoreViewState(ki.get(z)),_.current.editor.setTheme(a),s!==void 0&&D.current.revealLine(s),E(!0),T.current=!0}},[e,t,n,r,o,i,u,h,c,a,s]);d.useEffect(()=>{k&&I.current(D.current,_.current)},[k]),d.useEffect(()=>{!R&&!k&&K()},[R,k,K]),j.current=r,d.useEffect(()=>{var H,z;k&&w&&((H=F.current)==null||H.dispose(),F.current=(z=D.current)==null?void 0:z.onDidChangeModelContent(V=>{A.current||w(D.current.getValue(),V)}))},[k,w]),d.useEffect(()=>{if(k){let H=_.current.editor.onDidChangeMarkers(z=>{var W;let V=(W=D.current.getModel())==null?void 0:W.uri;if(V&&z.find(q=>q.path===V.path)){let q=_.current.editor.getModelMarkers({resource:V});S==null||S(q)}});return()=>{H==null||H.dispose()}}return()=>{}},[k,S]);function L(){var H,z;(H=F.current)==null||H.dispose(),p?c&&ki.set(i,D.current.saveViewState()):(z=D.current.getModel())==null||z.dispose(),D.current.dispose()}return d.createElement(g1,{width:f,height:g,isEditorReady:k,loading:l,_ref:P,className:m,wrapperProps:v})}var h$=f$,p$=d.memo(h$),g$=p$,ks=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(g$,{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")}})})},Wd=function(e){var t=e.queue,n=e.onDismiss,r=e.variant,o=r===void 0?"job":r,i=de.queue.addJob.useMutation({onSuccess:function(){hr.success("New job has been added"),n()},onError:function(E){hr.error(E.message)}}),a=i.mutate,s=i.status,l=de.queue.addJobScheduler.useMutation({onSuccess:function(){hr.success("New job scheduler has been added"),n()},onError:function(E){hr.error(E.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",k=S?s:h;return y.jsx(Jp,{isOpen:!0,onOpenChange:function(E){E||n()},children:y.jsx(ja,{isDismissable:!0,className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Ia,{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(E){var R=E.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(Xl,{})}),y.jsx("div",{className:"flex items-center space-x-4",children:y.jsxs(Na,{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(ks,{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(ks,{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(ks,{value:x,onChange:w})]})]}),y.jsx("div",{children:y.jsx(Cn,{label:S?"Add job":"Add scheduler",variant:"filled",disabled:k==="pending",onClick:function(){try{if(S){var M=JSON.parse(p);a({queueName:t.name,data:M})}else{var _=JSON.parse(m),D=JSON.parse(x);u({queueName:t.name,template:_,opts:D})}}catch{hr.error("Invalid JSON")}}})})]})}})})})},m$=function(e){var t=e.queue,n=de.queue.pause.useMutation().mutate,r=de.queue.resume.useMutation().mutate,o=de.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=We(We(We(We([],t.supports.pause&&t.supports.resume?[{label:t.paused?"Resume":"Pause",onSelect:function(){t.paused?r(c):n(c)},icon:t.paused?y.jsx(b0,{}):y.jsx(v0,{})}]:[],!0),[{label:"Add job",onSelect:function(){s(!0)},icon:y.jsx(ac,{})}],!1),t.supports.schedulers?[{label:"Add scheduler",onSelect:function(){h(!0)},icon:y.jsx(ac,{})}]:[],!0),t.supports.empty?[{label:"Empty",onSelect:function(){o(c)},icon:y.jsx(Wr,{})}]:[],!0);return y.jsxs(y.Fragment,{children:[y.jsx(Ba,{actions:p}),a?y.jsx(Wd,{queue:t,variant:"job",onDismiss:function(){return s(!1)}}):null,u?y.jsx(Wd,{queue:t,variant:"scheduler",onDismiss:function(){return h(!1)}}):null]})},b1={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(k){var E=k.replace(/\D/,""),R=E;return f.dayOfWeekStartIndexZero?E=="7"&&(R="0"):R=(parseInt(E)-1).toString(),k.replace(E,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(k){var E=k.replace(/\D/,""),R=E;return f.monthStartIndexZero&&(R=(parseInt(E)+1).toString()),k.replace(E,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(k){return k!==""}).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,k=S===void 0?!0:S,E=m.monthStartIndexZero,R=E===void 0?!1:E,M=m.use24HourTimeFormat,_=m.locale,D=_===void 0?null:_,P={throwExceptionOnParseError:b,verbose:w,dayOfWeekStartIndexZero:k,monthStartIndexZero:R,use24HourTimeFormat:M,locale:D};P.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var I=new p(f,P);return I.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(),k=this.getYearDescription();m+=b+x+S+w+k,m=this.transformVerbosity(m,!!this.options.verbose),m=m.charAt(0).toLocaleUpperCase()+m.substr(1)}catch(E){if(!this.options.throwExceptionOnParseError)m=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(E)}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(),k=this.getMinutesDescription(),E=this.getHoursDescription();if(v+=S,v&&k&&(v+=", "),v+=k,k===E)return v;v&&E&&(v+=", "),v+=E}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(E){return E.value===w&&E.index===b}),k=S&&f.expressionParts[1]!=="0";return b++,k?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 k=null,E=v.substring(v.indexOf("#")+1),R=v.substring(0,v.indexOf("#"));switch(E){case"1":k=f.i18n.first(R);break;case"2":k=f.i18n.second(R);break;case"3":k=f.i18n.third(R);break;case"4":k=f.i18n.fourth(R);break;case"5":k=f.i18n.fifth(R);break}S=k+" "+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(k){return k=="L"?f.i18n.lastDay():f.i18n.dayX0?u.StringUtilities.format(f.i18n.dayX0(),k):k},function(k){return k=="1"?f.i18n.commaEveryDay():f.i18n.commaEveryX0Days(k)},function(k){return f.i18n.commaBetweenDayX0AndX1OfTheMonth(k)},function(k){return f.i18n.commaOnDayX0OfTheMonth(k)})}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,k=f.indexOf("-")>-1,E=f.indexOf(",")>-1;if(!f)w="";else if(f==="*")w=g;else if(!S&&!k&&!E)w=u.StringUtilities.format(x(f),m(f));else if(E){for(var R=f.split(","),M="",_=0;_<R.length;_++)if(_>0&&R.length>2&&(M+=",",_<R.length-1&&(M+=" ")),_>0&&R.length>1&&(_==R.length-1||R.length==2)&&(M+="".concat(this.i18n.spaceAnd()," ")),R[_].indexOf("/")>-1||R[_].indexOf("-")>-1){var D=R[_].indexOf("-")>-1&&R[_].indexOf("/")==-1,P=this.getSegmentDescription(R[_],g,m,v,D?this.i18n.commaX0ThroughX1:b,x);D&&(P=P.replace(", ","")),M+=P}else S?M+=this.getSegmentDescription(R[_],g,m,v,b,x):M+=m(R[_]);S?w=M:w=u.StringUtilities.format(x(f),M)}else if(S){var R=f.split("/");if(w=u.StringUtilities.format(v(R[1]),R[1]),R[0].indexOf("-")>-1){var I=this.generateRangeSegmentDescription(R[0],b,m);I.indexOf(", ")!=0&&(w+=", "),w+=I}else if(R[0].indexOf("*")==-1){var N=u.StringUtilities.format(x(R[0]),m(R[0]));N=N.replace(", ",""),w+=u.StringUtilities.format(this.i18n.commaStartingX0(),N)}}else k&&(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="",k=!1;this.options.use24HourTimeFormat||(k=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),S=k?"".concat(this.getPeriod(x)," "):" ".concat(this.getPeriod(x)),x>12&&(x-=12),x===0&&(x=12));var E="";return m&&(E=":".concat(("00"+m).substring(m.length))),"".concat(k?S:"").concat(("00"+x.toString()).substring(x.toString().length),":").concat(("00"+w.toString()).substring(w.toString().length)).concat(E).concat(k?"":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})())})(b1);var v$=b1.exports;const b$=sf(v$);var y$=function(e){var t=e.scheduler,n=e.queueName,r=e.onRemove,o=de.scheduler.remove.useMutation(),i=o.mutate,a=o.isSuccess;return d.useEffect(function(){a&&(r==null||r())},[a,r]),y.jsx(Ba,{actions:[{label:"Remove",onSelect:function(){i({queueName:n,jobSchedulerId:t.key})},icon:y.jsx(Wr,{})}]})},x$=function(e){var t=e.scheduler,n=e.queueName,r=e.onDismiss,o=t.template,i=Ir({},t);return delete i.template,y.jsx(ja,{isOpen:!0,isDismissable:!0,onOpenChange:function(a){a||r()},className:"fixed inset-0 bg-black/20 dark:bg-black/40",children:y.jsx(Ia,{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(Xl,{})}),y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsxs(Na,{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(y$,{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(ga,{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(ga,{data:o,theme:"monokai"})})]})]})]})}})})},Mi=rg();function w$(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 C$=function(e){return[Mi.display({id:"select",header:function(t){var n=t.table;return y.jsx(sa,{checked:n.getIsSomeRowsSelected()?"indeterminate":n.getIsAllRowsSelected(),onCheckedChange:function(){n.toggleAllRowsSelected()}})},cell:function(t){var n=t.row,r=t.table;return y.jsx(sa,{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)}})}}),Mi.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"}),Mi.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?b$.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(w$(t.cell.row.original.tz),")"):""]})},header:"Pattern"}),Mi.accessor("next",{cell:function(t){return t.cell.row.original.next?y.jsx(Eu,{message:xg(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 ",wg(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"})]},S$=function(e){var t=e.queueName,n=d.useState({}),r=n[0],o=n[1],i=d.useRef(null),a=de.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=C$(h),p=pg({data:s||[],columns:c,getCoreRowModel:hg(),state:{rowSelection:r},onRowSelectionChange:o}),f=d.useState(null),g=f[0],m=f[1],v=de.scheduler.bulkRemove.useMutation().mutate,b=function(x,w){if(x.shiftKey&&i.current!==null){x.preventDefault();for(var S=Math.min(i.current,w),k=Math.max(i.current,w),E=Ir({},r),R=S;R<=k;R++)E[R]=!0;o(E)}else m(p.getRowModel().rows[w].original),i.current=w};return!l&&u?null:y.jsxs("div",{children:[g?y.jsx(x$,{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(Sg,{}):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:ra(S.column.columnDef.header,S.getContext())},S.id)})},x.id)}),p.getRowModel().rows.map(function(x,w){return y.jsx(Cg,{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,k){return y.jsx("div",{className:"flex h-full items-center ".concat(k!==0?"pr-10":"pr-3"),children:ra(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(Cn,{label:"Delete",colorScheme:"red",icon:y.jsx(Wr,{}),size:"sm",onClick:function(){v({queueName:t,jobSchedulerIds:p.getSelectedRowModel().rows.map(function(x){return x.original.key})}),p.resetRowSelection()}})]})}):null]})},Ms=new Intl.NumberFormat("en-US").format,$$=function(){var e,t,n,r,o=hb().id,i=o,a=n2()[0],s=d.useState("completed"),l=s[0],u=s[1],h=de.job.list.useInfiniteQuery({queueName:i,limit:Ml,status:l},{getNextPageParam:function(w){return w.nextCursor},enabled:!!i,refetchInterval:Ol,retry:Tl}),c=h.data,p=h.fetchNextPage,f=h.isLoading,g=h.isError,m=h.isFetchingNextPage,v=h.hasNextPage;d.useEffect(function(){var w=a.get("status");w&&u(w),!w&&l&&u("completed")},[a,l]);var b=de.queue.byName.useQuery({queueName:i},{enabled:!!i,refetchInterval:Ol,retry:Tl}),x=(e=c==null?void 0:c.pages.map(function(w){return w.jobs}).flat())!==null&&e!==void 0?e:[];return y.jsx(ng,{children:b.data===null?y.jsx(Cl,{message:"No queue found"}):g?y.jsx(Cl,{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:b.data?b.data.displayName:y.jsx(zi,{className:"h-8 w-52 rounded-md"})}),y.jsxs("div",{className:"flex items-center space-x-2",children:[b.data?y.jsx(m$,{queue:b.data}):null,!((t=b.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:b.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:[Ms(b.data.client.connectedClients)," ","connected"]})," ","and"," ",y.jsxs("span",{className:"text-red-800 dark:text-red-400",children:[Ms(b.data.client.blockedClients)," ","blocked"]})," ","out of"," ",y.jsxs("span",{className:"text-slate-900 dark:text-slate-100",children:[Ms(b.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:[b.data.client.usedMemoryHuman," /"," ",b.data.client.totalMemoryHuman," (",(b.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",b.data.client.version]})]}):y.jsx(zi,{className:"h-6 w-80"})})}),y.jsxs("div",{className:"space-y-8",children:[!((n=b.data)===null||n===void 0)&&n.supports.schedulers?y.jsx(S$,{queueName:i}):null,y.jsxs("div",{className:"space-y-4",children:[y.jsx(aS,{showCleanAllButton:x.length>0,queueName:i,status:l,queue:b.data}),y.jsx(TC,{onBottomInView:function(){m||!v||p()},status:l,totalJobs:((r=c==null?void 0:c.pages.at(-1))===null||r===void 0?void 0:r.totalCount)||0,jobs:x.map(function(w){return Ir(Ir({},w),{status:l})}),isLoading:f,isFetchingNextPage:m,queueName:i})]})]})]})})},Oi=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(y0,{width:16,height:16}),completed:y.jsx(g0,{width:16,height:16}),failed:y.jsx(m0,{width:16,height:16}),waiting:y.jsx(I2,{width:16,height:16})};return y.jsx("div",{children:y.jsx(Eu,{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]]})})})},E$=function(e){var t=e.queueName,n=de.queue.byName.useQuery({queueName:t},{refetchInterval:Ol,retry:Tl});return n.data?y.jsxs(Ea,{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(Oi,{count:n.data.counts.completed,variant:"completed"}),y.jsx(Oi,{count:n.data.counts.failed,variant:"failed"}),y.jsx(Oi,{count:n.data.counts.active,variant:"active"}),y.jsx(Oi,{count:n.data.counts.waiting,variant:"waiting"})]})]}):null},P$=function(){var e=de.queue.list.useQuery().data,t=de.queue.pauseAll.useMutation().mutate,n=de.queue.resumeAll.useMutation().mutate;return y.jsx(ng,{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(Ba,{actions:[{label:"Resume all",icon:y.jsx(b0,{}),onSelect:function(){return n()}},{label:"Pause all",icon:y.jsx(v0,{}),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(E$,{queueName:r.name},r.name)},r.name)})})]})})},R$=function(e){var t=e.apiUrl,n=e.basename,r=d.useState(!1),o=r[0],i=r[1],a=d.useState(function(){return new tm})[0],s=d.useState(function(){return de.createClient({links:[Ym({url:t})]})})[0];return d.useEffect(function(){var l=JSON.parse(localStorage.getItem("user-preferences")||"null");l?l.theme==="dark"||l.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"),i(!0)},[]),o?y.jsx(de.Provider,{client:s,queryClient:a,children:y.jsxs(nm,{client:a,children:[y.jsx(iS,{}),y.jsx(Zb,{basename:n,children:y.jsxs(kb,{children:[y.jsx(el,{path:"/",element:y.jsx(P$,{})}),y.jsx(el,{path:"/:id",element:y.jsx($$,{})})]})})]})}):null};exports.QueueDashApp=R$;
|