@llmops/app 0.2.0-beta.1 → 0.2.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/.vite/manifest.json +246 -246
- package/dist/assets/{DialogTitle-CxBLj1-9.js → DialogTitle-UCL-cueg.js} +1 -1
- package/dist/assets/{Form-BNRL8XWO.js → Form-DCtoTR-p.js} +1 -1
- package/dist/assets/{_environment-DP283K6-.js → _environment-DK0RuLfe.js} +1 -1
- package/dist/assets/{_observability-CKbO1YDc.js → _observability-BsCcZkih.js} +1 -1
- package/dist/assets/{_settings-D_xgTz13.js → _settings-BBP4PpLX.js} +1 -1
- package/dist/assets/{_tabs-Du0rKJRQ.js → _tabs-DhgOS8ht.js} +1 -1
- package/dist/assets/{_tabs-B4OeOdtD.js → _tabs-DrzB5Z0A.js} +1 -1
- package/dist/assets/{_variant-Coggt7xV.js → _variant-CnHZzp0Z.js} +1 -1
- package/dist/assets/{_variants-7Dzwfolk.js → _variants-B1QyPFs9.js} +1 -1
- package/dist/assets/{area.css-vuJcGX7o.js → area.css-CLOfP5iE.js} +1 -1
- package/dist/assets/{arrow-left-6hmTZAiR.js → arrow-left-lxisLR8v.js} +1 -1
- package/dist/assets/{auth.css-DZwRqaUN.js → auth.css-B5Lrnlbx.js} +1 -1
- package/dist/assets/{button-COE7JEux.js → button-BOiGz4Ne.js} +1 -1
- package/dist/assets/check-CPNSKHk4.js +1 -0
- package/dist/assets/{chevron-right-Flf_erVP.js → chevron-right-BtD8s6fj.js} +1 -1
- package/dist/assets/{combobox-7tupXBmD.js → combobox-JWj_3Y0m.js} +1 -1
- package/dist/assets/{configs-DiX0v39W.js → configs-CWaFij7a.js} +1 -1
- package/dist/assets/{configs.css-CcfMCKcJ.js → configs.css-C0mqmoVB.js} +1 -1
- package/dist/assets/{copy-DpJ7J1QT.js → copy-Dyj2k1Sq.js} +1 -1
- package/dist/assets/{costs-YGYS6p97.js → costs-5Vkkcitr.js} +1 -1
- package/dist/assets/{environments-SG5eHA9e.js → environments-BHZ_35T8.js} +1 -1
- package/dist/assets/{index-DBcmlZIg.js → index-Ba7KtRo4.js} +1 -1
- package/dist/assets/{index-L9LUh7qm.js → index-Bx54WVNn.js} +1 -1
- package/dist/assets/{index-ClFgoD7G.js → index-CKUiONR1.js} +1 -1
- package/dist/assets/{index-BZWJrClo.js → index-CmwqDWtN.js} +1 -1
- package/dist/assets/{index-CXl8yUk6.js → index-D7CjbFS0.js} +1 -1
- package/dist/assets/{index-DAHIcm_Z.js → index-DWCIocaw.js} +2 -2
- package/dist/assets/{index-wAmb7-nC.js → index-DdbFK5pg.js} +1 -1
- package/dist/assets/{index.esm-DsH_UQKJ.js → index.esm-Cx4qB0Tk.js} +1 -1
- package/dist/assets/info-box.css-qBxEQPo-.js +1 -0
- package/dist/assets/{logo.css-DtCuocdz.js → logo.css-CYdOI33_.js} +1 -1
- package/dist/assets/new-config-state.css-BQLyMmey.js +1 -0
- package/dist/assets/{observability.css-BAXibO_9.js → observability.css-ScdW-rjk.js} +1 -1
- package/dist/assets/{overview-F3JSdG23.js → overview-BhnAFrza.js} +1 -1
- package/dist/assets/{plus-BcVQn54p.js → plus-BwJa6tsj.js} +1 -1
- package/dist/assets/{popover-D36G19tP.js → popover-CWoAmEjp.js} +1 -1
- package/dist/assets/{requests-Dy44WwrQ.js → requests-jUGszjv8.js} +1 -1
- package/dist/assets/{route-C1mboO2Z.js → route-BlPm4saZ.js} +1 -1
- package/dist/assets/{route-C7NpQ_hb.js → route-D4DCefa9.js} +1 -1
- package/dist/assets/{route-COMWKM5H.js → route-DHkrULGT.js} +1 -1
- package/dist/assets/{route-z4_NUCvs.js → route-mr2mV0Yu.js} +1 -1
- package/dist/assets/{route-Dsk5qQsg.js → route-v7PO6657.js} +1 -1
- package/dist/assets/{secrets-Cgp8qBss.js → secrets-Bn-e_u13.js} +1 -1
- package/dist/assets/{settings-Dzk0Fgyf.js → settings-DmnvYt0Y.js} +1 -1
- package/dist/assets/{settings-ByLwomz8.js → settings-IRh_XlY0.js} +1 -1
- package/dist/assets/{setup-DIckLV4k.js → setup-CIRVKcq-.js} +1 -1
- package/dist/assets/{signin-DT7q7n3E.js → signin-B_kUyGAp.js} +1 -1
- package/dist/assets/{table-B17CQG8y.js → table-49TSZbdr.js} +1 -1
- package/dist/assets/{tabs.css-uCzsVQVs.js → tabs.css-BIuQQZaU.js} +1 -1
- package/dist/assets/{targeting-CVDqzB8u.js → targeting-CbWcgm3w.js} +1 -1
- package/dist/assets/{tooltip-9kZBdRqy.js → tooltip-CkWL0dMr.js} +1 -1
- package/dist/assets/{update-or-create-name-Cio7-6LW.js → update-or-create-name-BGp6o60I.js} +1 -1
- package/dist/assets/{useAnalytics-CWiKryQj.js → useAnalytics-DiWjBhLw.js} +1 -1
- package/dist/assets/{useConfigList-Djrmvw_F.js → useConfigList-DuUKjCrF.js} +1 -1
- package/dist/assets/{useConfigVariants-DGrcmy6W.js → useConfigVariants-ChEQ-YUl.js} +1 -1
- package/dist/assets/{useEnvironments-LtKuRdzZ.js → useEnvironments-WGqvCy8N.js} +1 -1
- package/dist/assets/{useMutation-DsF6JMg-.js → useMutation-DflbfH1f.js} +1 -1
- package/dist/assets/{usePopupAutoResize-C3drixvS.js → usePopupAutoResize-RFCDgOFp.js} +1 -1
- package/dist/assets/{useProvidersList-C-va39q5.js → useProvidersList-DtWn_MJs.js} +1 -1
- package/dist/assets/{useSetTargeting-CrvMMukp.js → useSetTargeting-DCF7D6n-.js} +1 -1
- package/dist/assets/{useTargetingRules-6Axog9iE.js → useTargetingRules-1RFyDPYx.js} +1 -1
- package/dist/assets/{useValueChanged-BrWmvpGJ.js → useValueChanged-CIhVK-Fa.js} +1 -1
- package/dist/assets/{user-profile-DrbTr5ek.js → user-profile-CbijLYlM.js} +1 -1
- package/dist/assets/{variants-BS8SfM2u.js → variants-Bgidd8eE.js} +1 -1
- package/dist/assets/variants.css-BI8mTlOx.js +1 -0
- package/dist/assets/{workspace-general-4coxLwka.js → workspace-general-CRDqD2_R.js} +1 -1
- package/dist/assets/workspace-providers-B6qtGU0q.css +1 -0
- package/dist/assets/{workspace-providers-DpuJYL2J.js → workspace-providers-CBKGYtAx.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/assets/check-oX5AO5gn.js +0 -1
- package/dist/assets/info-box.css-tM-8eGuh.js +0 -1
- package/dist/assets/new-config-state.css-Ynd55T0z.js +0 -1
- package/dist/assets/variants.css-BzwJYCz7.js +0 -1
- package/dist/assets/workspace-providers-BixYd9Gg.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./route-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./route-v7PO6657.js","./styles-Ds0dHEK-.css","./index-D7CjbFS0.js","./area.css-CLOfP5iE.js","./area-DoOD1Loz.css","./button-BOiGz4Ne.js","./table-49TSZbdr.js","./useConfigList-DuUKjCrF.js","./formatDistance-Bok3-MB1.js","./en-US-C8ut0f5H.js","./chevron-right-BtD8s6fj.js","./check-CPNSKHk4.js","./copy-Dyj2k1Sq.js","./index-DcAb9uJ1.css","./signin-B_kUyGAp.js","./index.esm-Cx4qB0Tk.js","./logo.css-CYdOI33_.js","./logo-D4ybjOzp.css","./auth.css-B5Lrnlbx.js","./auth-Bfx1NO3t.css","./setup-CIRVKcq-.js","./environments-BHZ_35T8.js","./update-or-create-name-BGp6o60I.js","./configs.css-C0mqmoVB.js","./configs-_Qxo3N29.css","./tabs.css.ts-9m2TgQoD.css","./tooltip-CkWL0dMr.js","./usePopupAutoResize-RFCDgOFp.js","./update-or-create-name-DW-QlCah.css","./index-CKUiONR1.js","./useEnvironments-WGqvCy8N.js","./useMutation-DflbfH1f.js","./plus-BwJa6tsj.js","./configs-CWaFij7a.js","./arrow-left-lxisLR8v.js","./configs-BKxrD14d.css","./route-BlPm4saZ.js","./route-DHkrULGT.js","./index-CmwqDWtN.js","./index-Bx54WVNn.js","./_settings-BBP4PpLX.js","./_settings-B87EsM9n.css","./_observability-BsCcZkih.js","./popover-CWoAmEjp.js","./combobox-JWj_3Y0m.js","./useValueChanged-CIhVK-Fa.js","./useConfigVariants-ChEQ-YUl.js","./useAnalytics-DiWjBhLw.js","./_observability-CBX-o26D.css","./route-mr2mV0Yu.js","./route-D4DCefa9.js","./index-Ba7KtRo4.js","./new-config-state.css-BQLyMmey.js","./new-config-state-B8sMe-TC.css","./index-DdbFK5pg.js","./workspace-providers-CBKGYtAx.js","./useProvidersList-DtWn_MJs.js","./DialogTitle-UCL-cueg.js","./workspace-providers-B6qtGU0q.css","./workspace-general-CRDqD2_R.js","./workspace-general-ET4CEZQV.css","./user-profile-CbijLYlM.js","./info-box.css-qBxEQPo-.js","./info-box-JXSyJ9E4.css","./requests-jUGszjv8.js","./observability.css-ScdW-rjk.js","./observability-DEEfw22p.css","./overview-BhnAFrza.js","./costs-5Vkkcitr.js","./_tabs-DhgOS8ht.js","./tabs.css-BIuQQZaU.js","./_variants-B1QyPFs9.js","./_tabs-DrzB5Z0A.js","./settings-IRh_XlY0.js","./Form-DCtoTR-p.js","./settings-CvvrMdCu.css","./secrets-Bn-e_u13.js","./secrets-BGHMIr_s.css","./variants-Bgidd8eE.js","./variants.css-BI8mTlOx.js","./variants-9qaqEb_G.css","./targeting-CbWcgm3w.js","./useTargetingRules-1RFyDPYx.js","./settings-DmnvYt0Y.js","./settings-BwmM525w.css","./_variant-CnHZzp0Z.js","./useSetTargeting-DCF7D6n-.js","./useSetTargeting-CQWutQzN.css","./_variant-CD-PVgqt.css","./_environment-DK0RuLfe.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
/* empty css */function Hx(e,t){for(var s=0;s<t.length;s++){const o=t[s];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in e)){const u=Object.getOwnPropertyDescriptor(o,r);u&&Object.defineProperty(e,r,u.get?u:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Q9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qh={exports:{}},Fr={};var tv;function Kx(){if(tv)return Fr;tv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function s(o,r,u){var c=null;if(u!==void 0&&(c=""+u),r.key!==void 0&&(c=""+r.key),"key"in r){u={};for(var f in r)f!=="key"&&(u[f]=r[f])}else u=r;return r=u.ref,{$$typeof:e,type:o,key:c,ref:r!==void 0?r:null,props:u}}return Fr.Fragment=t,Fr.jsx=s,Fr.jsxs=s,Fr}var nv;function Gx(){return nv||(nv=1,Qh.exports=Kx()),Qh.exports}var Y=Gx(),Xh={exports:{}},Wh={},Zh={exports:{}},Ne={};var sv;function Yx(){if(sv)return Ne;sv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),y=Symbol.iterator;function _(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function R(N,K,X){this.props=N,this.context=K,this.refs=C,this.updater=X||k}R.prototype.isReactComponent={},R.prototype.setState=function(N,K){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,K,"setState")},R.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function T(){}T.prototype=R.prototype;function A(N,K,X){this.props=N,this.context=K,this.refs=C,this.updater=X||k}var w=A.prototype=new T;w.constructor=A,S(w,R.prototype),w.isPureReactComponent=!0;var x=Array.isArray;function M(){}var L={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function V(N,K,X){var re=X.ref;return{$$typeof:e,type:N,key:K,ref:re!==void 0?re:null,props:X}}function Z(N,K){return V(N.type,K,N.props)}function z(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function Q(N){var K={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(X){return K[X]})}var B=/\/+/g;function q(N,K){return typeof N=="object"&&N!==null&&N.key!=null?Q(""+N.key):K.toString(36)}function J(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(M,M):(N.status="pending",N.then(function(K){N.status==="pending"&&(N.status="fulfilled",N.value=K)},function(K){N.status==="pending"&&(N.status="rejected",N.reason=K)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function D(N,K,X,re,fe){var le=typeof N;(le==="undefined"||le==="boolean")&&(N=null);var ue=!1;if(N===null)ue=!0;else switch(le){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(N.$$typeof){case e:case t:ue=!0;break;case m:return ue=N._init,D(ue(N._payload),K,X,re,fe)}}if(ue)return fe=fe(N),ue=re===""?"."+q(N,0):re,x(fe)?(X="",ue!=null&&(X=ue.replace(B,"$&/")+"/"),D(fe,K,X,"",function(xe){return xe})):fe!=null&&(z(fe)&&(fe=Z(fe,X+(fe.key==null||N&&N.key===fe.key?"":(""+fe.key).replace(B,"$&/")+"/")+ue)),K.push(fe)),1;ue=0;var de=re===""?".":re+":";if(x(N))for(var ye=0;ye<N.length;ye++)re=N[ye],le=de+q(re,ye),ue+=D(re,K,X,le,fe);else if(ye=_(N),typeof ye=="function")for(N=ye.call(N),ye=0;!(re=N.next()).done;)re=re.value,le=de+q(re,ye++),ue+=D(re,K,X,le,fe);else if(le==="object"){if(typeof N.then=="function")return D(J(N),K,X,re,fe);throw K=String(N),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return ue}function I(N,K,X){if(N==null)return N;var re=[],fe=0;return D(N,re,"","",function(le){return K.call(X,le,fe++)}),re}function U(N){if(N._status===-1){var K=N._result;K=K(),K.then(function(X){(N._status===0||N._status===-1)&&(N._status=1,N._result=X)},function(X){(N._status===0||N._status===-1)&&(N._status=2,N._result=X)}),N._status===-1&&(N._status=0,N._result=K)}if(N._status===1)return N._result.default;throw N._result}var oe=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ae={map:I,forEach:function(N,K,X){I(N,function(){K.apply(this,arguments)},X)},count:function(N){var K=0;return I(N,function(){K++}),K},toArray:function(N){return I(N,function(K){return K})||[]},only:function(N){if(!z(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return Ne.Activity=b,Ne.Children=ae,Ne.Component=R,Ne.Fragment=s,Ne.Profiler=r,Ne.PureComponent=A,Ne.StrictMode=o,Ne.Suspense=h,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(N){return L.H.useMemoCache(N)}},Ne.cache=function(N){return function(){return N.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(N,K,X){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var re=S({},N.props),fe=N.key;if(K!=null)for(le in K.key!==void 0&&(fe=""+K.key),K)!P.call(K,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&K.ref===void 0||(re[le]=K[le]);var le=arguments.length-2;if(le===1)re.children=X;else if(1<le){for(var ue=Array(le),de=0;de<le;de++)ue[de]=arguments[de+2];re.children=ue}return V(N.type,fe,re)},Ne.createContext=function(N){return N={$$typeof:c,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:u,_context:N},N},Ne.createElement=function(N,K,X){var re,fe={},le=null;if(K!=null)for(re in K.key!==void 0&&(le=""+K.key),K)P.call(K,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(fe[re]=K[re]);var ue=arguments.length-2;if(ue===1)fe.children=X;else if(1<ue){for(var de=Array(ue),ye=0;ye<ue;ye++)de[ye]=arguments[ye+2];fe.children=de}if(N&&N.defaultProps)for(re in ue=N.defaultProps,ue)fe[re]===void 0&&(fe[re]=ue[re]);return V(N,le,fe)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(N){return{$$typeof:f,render:N}},Ne.isValidElement=z,Ne.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:U}},Ne.memo=function(N,K){return{$$typeof:g,type:N,compare:K===void 0?null:K}},Ne.startTransition=function(N){var K=L.T,X={};L.T=X;try{var re=N(),fe=L.S;fe!==null&&fe(X,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(M,oe)}catch(le){oe(le)}finally{K!==null&&X.types!==null&&(K.types=X.types),L.T=K}},Ne.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Ne.use=function(N){return L.H.use(N)},Ne.useActionState=function(N,K,X){return L.H.useActionState(N,K,X)},Ne.useCallback=function(N,K){return L.H.useCallback(N,K)},Ne.useContext=function(N){return L.H.useContext(N)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(N,K){return L.H.useDeferredValue(N,K)},Ne.useEffect=function(N,K){return L.H.useEffect(N,K)},Ne.useEffectEvent=function(N){return L.H.useEffectEvent(N)},Ne.useId=function(){return L.H.useId()},Ne.useImperativeHandle=function(N,K,X){return L.H.useImperativeHandle(N,K,X)},Ne.useInsertionEffect=function(N,K){return L.H.useInsertionEffect(N,K)},Ne.useLayoutEffect=function(N,K){return L.H.useLayoutEffect(N,K)},Ne.useMemo=function(N,K){return L.H.useMemo(N,K)},Ne.useOptimistic=function(N,K){return L.H.useOptimistic(N,K)},Ne.useReducer=function(N,K,X){return L.H.useReducer(N,K,X)},Ne.useRef=function(N){return L.H.useRef(N)},Ne.useState=function(N){return L.H.useState(N)},Ne.useSyncExternalStore=function(N,K,X){return L.H.useSyncExternalStore(N,K,X)},Ne.useTransition=function(){return L.H.useTransition()},Ne.version="19.2.3",Ne}var iv;function Ba(){return iv||(iv=1,Zh.exports=Yx()),Zh.exports}var ov;function Qx(){if(ov)return Wh;ov=1;var e=Ba().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Wh.c=function(t){return e.H.useMemoCache(t)},Wh}var av;function Xx(){return av||(av=1,Xh.exports=Qx()),Xh.exports}var Ut=Xx();const Fg=new WeakMap,Wx=new WeakMap,Bc={current:[]};let Jh=!1,al=0;const tl=new Set,sc=new Map;function x_(e){for(const t of e){if(Bc.current.includes(t))continue;Bc.current.push(t),t.recompute();const s=Wx.get(t);if(s)for(const o of s){const r=Fg.get(o);r?.length&&x_(r)}}}function Zx(e){const t={prevVal:e.prevState,currentVal:e.state};for(const s of e.listeners)s(t)}function Jx(e){const t={prevVal:e.prevState,currentVal:e.state};for(const s of e.listeners)s(t)}function T_(e){if(al>0&&!sc.has(e)&&sc.set(e,e.prevState),tl.add(e),!(al>0)&&!Jh)try{for(Jh=!0;tl.size>0;){const t=Array.from(tl);tl.clear();for(const s of t){const o=sc.get(s)??s.prevState;s.prevState=o,Zx(s)}for(const s of t){const o=Fg.get(s);o&&(Bc.current.push(s),x_(o))}for(const s of t){const o=Fg.get(s);if(o)for(const r of o)Jx(r)}}}finally{Jh=!1,Bc.current=[],sc.clear()}}function rl(e){al++;try{e()}finally{if(al--,al===0){const t=tl.values().next().value;t&&T_(t)}}}function eT(e){return typeof e=="function"}let tT=class{constructor(t,s){this.listeners=new Set,this.subscribe=o=>{var r,u;this.listeners.add(o);const c=(u=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:u.call(r,o,this);return()=>{this.listeners.delete(o),c?.()}},this.prevState=t,this.state=t,this.options=s}setState(t){var s,o,r;this.prevState=this.state,(s=this.options)!=null&&s.updateFn?this.state=this.options.updateFn(this.prevState)(t):eT(t)?this.state=t(this.prevState):this.state=t,(r=(o=this.options)==null?void 0:o.onUpdate)==null||r.call(o),T_(this)}};const Li="__TSR_index",rv="popstate",lv="beforeunload";function nT(e){let t=e.getLocation();const s=new Set,o=c=>{t=e.getLocation(),s.forEach(f=>f({location:t,action:c}))},r=c=>{e.notifyOnIndexChange??!0?o(c):t=e.getLocation()},u=async({task:c,navigateOpts:f,...h})=>{if(f?.ignoreBlocker??!1){c();return}const m=e.getBlockers?.()??[],b=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&m.length&&b)for(const y of m){const _=qc(h.path,h.state);if(await y.blockerFn({currentLocation:t,nextLocation:_,action:h.type})){e.onBlocked?.();return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:s,subscribe:c=>(s.add(c),()=>{s.delete(c)}),push:(c,f,h)=>{const g=t.state[Li];f=uv(g+1,f),u({task:()=>{e.pushState(c,f),o({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:c,state:f})},replace:(c,f,h)=>{const g=t.state[Li];f=uv(g,f),u({task:()=>{e.replaceState(c,f),o({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:c,state:f})},go:(c,f)=>{u({task:()=>{e.go(c),r({type:"GO",index:c})},navigateOpts:f,type:"GO"})},back:c=>{u({task:()=>{e.back(c?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{u({task:()=>{e.forward(c?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>t.state[Li]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,c]),()=>{const h=e.getBlockers?.()??[];e.setBlockers?.(h.filter(g=>g!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:o}}function uv(e,t){t||(t={});const s=Xp();return{...t,key:s,__TSR_key:s,[Li]:e}}function sT(e){const t=typeof document<"u"?window:void 0,s=t.history.pushState,o=t.history.replaceState;let r=[];const u=()=>r,c=P=>r=P,f=(P=>P),h=(()=>qc(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const P=Xp();t.history.replaceState({[Li]:0,key:P,__TSR_key:P},"")}let g=h(),m,b=!1,y=!1,_=!1,k=!1;const S=()=>g;let C,R;const T=()=>{C&&(L._ignoreSubscribers=!0,(C.isPush?t.history.pushState:t.history.replaceState)(C.state,"",C.href),L._ignoreSubscribers=!1,C=void 0,R=void 0,m=void 0)},A=(P,V,Z)=>{const z=f(V);R||(m=g),g=qc(V,Z),C={href:z,state:Z,isPush:C?.isPush||P==="push"},R||(R=Promise.resolve().then(()=>T()))},w=P=>{g=h(),L.notify({type:P})},x=async()=>{if(y){y=!1;return}const P=h(),V=P.state[Li]-g.state[Li],Z=V===1,z=V===-1,Q=!Z&&!z||b;b=!1;const B=Q?"GO":z?"BACK":"FORWARD",q=Q?{type:"GO",index:V}:{type:z?"BACK":"FORWARD"};if(_)_=!1;else{const J=u();if(typeof document<"u"&&J.length){for(const D of J)if(await D.blockerFn({currentLocation:g,nextLocation:P,action:B})){y=!0,t.history.go(1),L.notify(q);return}}}g=h(),L.notify(q)},M=P=>{if(k){k=!1;return}let V=!1;const Z=u();if(typeof document<"u"&&Z.length)for(const z of Z){const Q=z.enableBeforeUnload??!0;if(Q===!0){V=!0;break}if(typeof Q=="function"&&Q()===!0){V=!0;break}}if(V)return P.preventDefault(),P.returnValue=""},L=nT({getLocation:S,getLength:()=>t.history.length,pushState:(P,V)=>A("push",P,V),replaceState:(P,V)=>A("replace",P,V),back:P=>(P&&(_=!0),k=!0,t.history.back()),forward:P=>{P&&(_=!0),k=!0,t.history.forward()},go:P=>{b=!0,t.history.go(P)},createHref:P=>f(P),flush:T,destroy:()=>{t.history.pushState=s,t.history.replaceState=o,t.removeEventListener(lv,M,{capture:!0}),t.removeEventListener(rv,x)},onBlocked:()=>{m&&g!==m&&(g=m)},getBlockers:u,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener(lv,M,{capture:!0}),t.addEventListener(rv,x),t.history.pushState=function(...P){const V=s.apply(t.history,P);return L._ignoreSubscribers||w("PUSH"),V},t.history.replaceState=function(...P){const V=o.apply(t.history,P);return L._ignoreSubscribers||w("REPLACE"),V},L}function qc(e,t){const s=e.indexOf("#"),o=e.indexOf("?"),r=Xp();return{href:e,pathname:e.substring(0,s>0?o>0?Math.min(s,o):s:o>0?o:e.length),hash:s>-1?e.substring(s):"",search:o>-1?e.slice(o,s===-1?void 0:s):"",state:t||{[Li]:0,key:r,__TSR_key:r}}}function Xp(){return(Math.random()+1).toString(36).substring(7)}function Hc(e){return e[e.length-1]}function iT(e){return typeof e=="function"}function Ai(e,t){return iT(e)?e(t):e}const oT=Object.prototype.hasOwnProperty;function Gn(e,t){if(e===t)return e;const s=t,o=dv(e)&&dv(s);if(!o&&!(Fc(e)&&Fc(s)))return s;const r=o?e:cv(e);if(!r)return s;const u=o?s:cv(s);if(!u)return s;const c=r.length,f=u.length,h=o?new Array(f):{};let g=0;for(let m=0;m<f;m++){const b=o?m:u[m],y=e[b],_=s[b];if(y===_){h[b]=y,(o?m<c:oT.call(e,b))&&g++;continue}if(y===null||_===null||typeof y!="object"||typeof _!="object"){h[b]=_;continue}const k=Gn(y,_);h[b]=k,k===y&&g++}return c===f&&g===c?e:h}function cv(e){const t=[],s=Object.getOwnPropertyNames(e);for(const r of s){if(!Object.prototype.propertyIsEnumerable.call(e,r))return!1;t.push(r)}const o=Object.getOwnPropertySymbols(e);for(const r of o){if(!Object.prototype.propertyIsEnumerable.call(e,r))return!1;t.push(r)}return t}function Fc(e){if(!fv(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const s=t.prototype;return!(!fv(s)||!s.hasOwnProperty("isPrototypeOf"))}function fv(e){return Object.prototype.toString.call(e)==="[object Object]"}function dv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yo(e,t,s){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let o=0,r=e.length;o<r;o++)if(!yo(e[o],t[o],s))return!1;return!0}if(Fc(e)&&Fc(t)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const c in t)if((!o||t[c]!==void 0)&&!yo(e[c],t[c],s))return!1;return!0}let r=0;if(!o)r=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&r++;let u=0;for(const c in t)if((!o||t[c]!==void 0)&&(u++,u>r||!yo(e[c],t[c],s)))return!1;return r===u}return!1}function Da(e){let t,s;const o=new Promise((r,u)=>{t=r,s=u});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,t(r),e?.(r)},o.reject=r=>{o.status="rejected",s(r)},o}function aT(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Pi(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function hv(e){try{return decodeURI(e)}catch{return e.replaceAll(/%[0-9A-F]{2}/gi,t=>{try{return decodeURI(t)}catch{return t}})}}function gv(e,t){if(!e)return e;const s=/%25|%5C/gi;let o=0,r="",u;for(;(u=s.exec(e))!==null;)r+=hv(e.slice(o,u.index))+u[0],o=s.lastIndex;return r+hv(o?e.slice(o):e)}var rT="Invariant failed";function Gs(e,t){if(!e)throw new Error(rT)}function Kc(e){const t=new Map;let s,o;const r=u=>{u.next&&(u.prev?(u.prev.next=u.next,u.next.prev=u.prev,u.next=void 0,o&&(o.next=u,u.prev=o)):(u.next.prev=void 0,s=u.next,u.next=void 0,o&&(u.prev=o,o.next=u)),o=u)};return{get(u){const c=t.get(u);if(c)return r(c),c.value},set(u,c){if(t.size>=e&&s){const h=s;t.delete(h.key),h.next&&(s=h.next,h.next.prev=void 0),h===o&&(o=void 0)}const f=t.get(u);if(f)f.value=c,r(f);else{const h={key:u,value:c,prev:o};o&&(o.next=h),o=h,s||(s=h),t.set(u,h)}},clear(){t.clear(),s=void 0,o=void 0}}}const La=0,Ro=1,xo=2,ml=3,lT=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,uT=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,cT=/^([^{]*)\{\$\}([^}]*)$/;function Wp(e,t,s=new Uint16Array(6)){const o=e.indexOf("/",t),r=o===-1?e.length:o,u=e.substring(t,r);if(!u||!u.includes("$"))return s[0]=La,s[1]=t,s[2]=t,s[3]=r,s[4]=r,s[5]=r,s;if(u==="$"){const g=e.length;return s[0]=xo,s[1]=t,s[2]=t,s[3]=g,s[4]=g,s[5]=g,s}if(u.charCodeAt(0)===36)return s[0]=Ro,s[1]=t,s[2]=t+1,s[3]=r,s[4]=r,s[5]=r,s;const c=u.match(cT);if(c){const m=c[1].length;return s[0]=xo,s[1]=t+m,s[2]=t+m+1,s[3]=t+m+2,s[4]=t+m+3,s[5]=e.length,s}const f=u.match(uT);if(f){const g=f[1],m=f[2],b=f[3],y=g.length;return s[0]=ml,s[1]=t+y,s[2]=t+y+3,s[3]=t+y+3+m.length,s[4]=r-b.length,s[5]=r,s}const h=u.match(lT);if(h){const g=h[1],m=h[2],b=h[3],y=g.length;return s[0]=Ro,s[1]=t+y,s[2]=t+y+2,s[3]=t+y+2+m.length,s[4]=r-b.length,s[5]=r,s}return s[0]=La,s[1]=t,s[2]=t,s[3]=r,s[4]=r,s[5]=r,s}function kf(e,t,s,o,r,u,c){c?.(s);let f=o;{const h=s.fullPath??s.from,g=h.length,m=s.options?.caseSensitive??e;for(;f<g;){const b=Wp(h,f,t);let y;const _=f,k=b[5];switch(f=k+1,u++,b[0]){case La:{const C=h.substring(b[2],b[3]);if(m){const R=r.static?.get(C);if(R)y=R;else{r.static??=new Map;const T=bl(s.fullPath??s.from);T.parent=r,T.depth=u,y=T,r.static.set(C,T)}}else{const R=C.toLowerCase(),T=r.staticInsensitive?.get(R);if(T)y=T;else{r.staticInsensitive??=new Map;const A=bl(s.fullPath??s.from);A.parent=r,A.depth=u,y=A,r.staticInsensitive.set(R,A)}}break}case Ro:{const C=h.substring(_,b[1]),R=h.substring(b[4],k),T=m&&!!(C||R),A=C?T?C:C.toLowerCase():void 0,w=R?T?R:R.toLowerCase():void 0,x=r.dynamic?.find(M=>M.caseSensitive===T&&M.prefix===A&&M.suffix===w);if(x)y=x;else{const M=tg(Ro,s.fullPath??s.from,T,A,w);y=M,M.depth=u,M.parent=r,r.dynamic??=[],r.dynamic.push(M)}break}case ml:{const C=h.substring(_,b[1]),R=h.substring(b[4],k),T=m&&!!(C||R),A=C?T?C:C.toLowerCase():void 0,w=R?T?R:R.toLowerCase():void 0,x=r.optional?.find(M=>M.caseSensitive===T&&M.prefix===A&&M.suffix===w);if(x)y=x;else{const M=tg(ml,s.fullPath??s.from,T,A,w);y=M,M.parent=r,M.depth=u,r.optional??=[],r.optional.push(M)}break}case xo:{const C=h.substring(_,b[1]),R=h.substring(b[4],k),T=m&&!!(C||R),A=C?T?C:C.toLowerCase():void 0,w=R?T?R:R.toLowerCase():void 0,x=tg(xo,s.fullPath??s.from,T,A,w);y=x,x.parent=r,x.depth=u,r.wildcard??=[],r.wildcard.push(x)}}r=y}if((s.path||!s.children)&&!s.isRoot){const b=h.endsWith("/");b||(r.notFound=s),(!r.route||!r.isIndex&&b)&&(r.route=s,r.fullPath=s.fullPath??s.from),r.isIndex||=b}}if(s.children)for(const h of s.children)kf(e,t,h,f,r,u,c)}function eg(e,t){if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function fo(e){if(e.static)for(const t of e.static.values())fo(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())fo(t);if(e.dynamic?.length){e.dynamic.sort(eg);for(const t of e.dynamic)fo(t)}if(e.optional?.length){e.optional.sort(eg);for(const t of e.optional)fo(t)}if(e.wildcard?.length){e.wildcard.sort(eg);for(const t of e.wildcard)fo(t)}}function bl(e){return{kind:La,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,isIndex:!1,notFound:null}}function tg(e,t,s,o,r){return{kind:e,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,isIndex:!1,notFound:null,caseSensitive:s,prefix:o,suffix:r}}function fT(e,t){const s=bl("/"),o=new Uint16Array(6);for(const r of e)kf(!1,o,r,1,s,0);fo(s),t.masksTree=s,t.flatCache=Kc(1e3)}function dT(e,t){e||="/";const s=t.flatCache.get(e);if(s)return s;const o=Zp(e,t.masksTree);return t.flatCache.set(e,o),o}function hT(e,t,s,o,r){e||="/",o||="/";const u=t?`case\0${e}`:e;let c=r.singleCache.get(u);if(!c){c=bl("/");const f=new Uint16Array(6);kf(t,f,{from:e},1,c,0),r.singleCache.set(u,c)}return Zp(o,c,s)}function gT(e,t,s=!1){const o=s?e:`nofuzz\0${e}`,r=t.matchCache.get(o);if(r!==void 0)return r;e||="/";const u=Zp(e,t.segmentTree,s);return u&&(u.branch=yT(u.route)),t.matchCache.set(o,u),u}function pT(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function mT(e,t=!1,s){const o=bl(e.fullPath),r=new Uint16Array(6),u={},c={};let f=0;return kf(t,r,e,1,o,0,g=>{if(s?.(g,f),Gs(!(g.id in u),`Duplicate routes found with id: ${String(g.id)}`),u[g.id]=g,f!==0&&g.path){const m=pT(g.fullPath);(!c[m]||g.fullPath.endsWith("/"))&&(c[m]=g)}f++}),fo(o),{processedTree:{segmentTree:o,singleCache:Kc(1e3),matchCache:Kc(1e3),flatCache:null,masksTree:null},routesById:u,routesByPath:c}}function Zp(e,t,s=!1){const o=e.split("/"),r=_T(e,o,t,s);if(!r)return null;const u=bT(e,o,r),c="**"in r;return c&&(u["**"]=r["**"]),{route:c?r.node.notFound??r.node.route:r.node.route,params:u}}function bT(e,t,s){const o=vT(s.node);let r=null;const u={};for(let c=0,f=0,h=0;f<o.length;c++,f++,h++){const g=o[f],m=t[c],b=h;if(m&&(h+=m.length),g.kind===Ro){r??=s.node.fullPath.split("/");const y=r[f],_=g.prefix?.length??0;if(y.charCodeAt(_)===123){const S=g.suffix?.length??0,C=y.substring(_+2,y.length-S-1),R=m.substring(_,m.length-S);u[C]=decodeURIComponent(R)}else{const S=y.substring(1);u[S]=decodeURIComponent(m)}}else if(g.kind===ml){if(s.skipped&1<<f){c--;continue}r??=s.node.fullPath.split("/");const y=r[f],_=g.prefix?.length??0,k=g.suffix?.length??0,S=y.substring(_+3,y.length-k-1),C=g.suffix||g.prefix?m.substring(_,m.length-k):m;C&&(u[S]=decodeURIComponent(C))}else if(g.kind===xo){const y=g,_=e.substring(b+(y.prefix?.length??0),e.length-(y.suffix?.length??0)),k=decodeURIComponent(_);u["*"]=k,u._splat=k;break}}return u}function yT(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function vT(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function _T(e,t,s,o){const r=!Hc(t),u=r&&e!=="/",c=t.length-(r?1:0),f=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let h=null,g=null,m=null;for(;f.length;){const b=f.pop();let{node:y,index:_,skipped:k,depth:S,statics:C,dynamics:R,optionals:T}=b;o&&y.notFound&&ic(g,b)&&(g=b);const A=_===c;if(A){if(y.route&&(!u||y.isIndex)&&(ic(m,b)&&(m=b),C===c&&y.isIndex))return m;if(!y.optional&&!y.wildcard)continue}const w=A?void 0:t[_];let x;if(y.wildcard&&ic(h,b))for(const M of y.wildcard){const{prefix:L,suffix:P}=M;if(!(L&&(A||!(M.caseSensitive?w:x??=w.toLowerCase()).startsWith(L)))){if(P){if(A)continue;const V=t.slice(_).join("/").slice(-P.length);if((M.caseSensitive?V:V.toLowerCase())!==P)continue}h={node:M,index:_,skipped:k,depth:S,statics:C,dynamics:R,optionals:T};break}}if(y.optional){const M=k|1<<S,L=S+1;for(let P=y.optional.length-1;P>=0;P--){const V=y.optional[P];f.push({node:V,index:_,skipped:M,depth:L,statics:C,dynamics:R,optionals:T})}if(!A)for(let P=y.optional.length-1;P>=0;P--){const V=y.optional[P],{prefix:Z,suffix:z}=V;if(Z||z){const Q=V.caseSensitive?w:x??=w.toLowerCase();if(Z&&!Q.startsWith(Z)||z&&!Q.endsWith(z))continue}f.push({node:V,index:_+1,skipped:k,depth:L,statics:C,dynamics:R,optionals:T+1})}}if(!A&&y.dynamic&&w)for(let M=y.dynamic.length-1;M>=0;M--){const L=y.dynamic[M],{prefix:P,suffix:V}=L;if(P||V){const Z=L.caseSensitive?w:x??=w.toLowerCase();if(P&&!Z.startsWith(P)||V&&!Z.endsWith(V))continue}f.push({node:L,index:_+1,skipped:k,depth:S+1,statics:C,dynamics:R+1,optionals:T})}if(!A&&y.staticInsensitive){const M=y.staticInsensitive.get(x??=w.toLowerCase());M&&f.push({node:M,index:_+1,skipped:k,depth:S+1,statics:C+1,dynamics:R,optionals:T})}if(!A&&y.static){const M=y.static.get(w);M&&f.push({node:M,index:_+1,skipped:k,depth:S+1,statics:C+1,dynamics:R,optionals:T})}}if(m&&h)return ic(h,m)?m:h;if(m)return m;if(h)return h;if(o&&g){let b=g.index;for(let _=0;_<g.index;_++)b+=t[_].length;const y=b===e.length?"/":e.slice(b);return{node:g.node,skipped:g.skipped,"**":decodeURIComponent(y)}}return null}function ic(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&(t.node.isIndex>e.node.isIndex||t.node.isIndex===e.node.isIndex&&t.depth>e.depth))):!0}function Oc(e){return Jp(e.filter(t=>t!==void 0).join("/"))}function Jp(e){return e.replace(/\/{2,}/g,"/")}function w_(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function vo(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function Ac(e){return vo(w_(e))}function Gc(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function kT(e,t,s){return Gc(e,s)===Gc(t,s)}function ST({base:e,to:t,trailingSlash:s="never",cache:o}){const r=t.startsWith("/"),u=!r&&t===".";let c;if(o){c=r?t:u?e:e+"\0"+t;const b=o.get(c);if(b)return b}let f;if(u)f=e.split("/");else if(r)f=t.split("/");else{for(f=e.split("/");f.length>1&&Hc(f)==="";)f.pop();const b=t.split("/");for(let y=0,_=b.length;y<_;y++){const k=b[y];k===""?y?y===_-1&&f.push(k):f=[k]:k===".."?f.pop():k==="."||f.push(k)}}f.length>1&&(Hc(f)===""?s==="never"&&f.pop():s==="always"&&f.push(""));let h,g="";for(let b=0;b<f.length;b++){b>0&&(g+="/");const y=f[b];if(!y)continue;h=Wp(y,0,h);const _=h[0];if(_===La){g+=y;continue}const k=h[5],S=y.substring(0,h[1]),C=y.substring(h[4],k),R=y.substring(h[2],h[3]);_===Ro?g+=S||C?`${S}{$${R}}${C}`:`$${R}`:_===xo?g+=S||C?`${S}{$}${C}`:"$":g+=`${S}{-$${R}}${C}`}g=Jp(g);const m=g||"/";return c&&o&&o.set(c,m),m}function ng(e,t,s){const o=t[e];return typeof o!="string"?o:e==="_splat"?encodeURI(o):CT(o,s)}function sg({path:e,params:t,decodeCharMap:s}){let o=!1;const r={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:r,isMissingParams:o};if(!e.includes("$"))return{interpolatedPath:e,usedParams:r,isMissingParams:o};const u=e.length;let c=0,f,h="";for(;c<u;){const m=c;f=Wp(e,m,f);const b=f[5];if(c=b+1,m===b)continue;const y=f[0];if(y===La){h+="/"+e.substring(m,b);continue}if(y===xo){const _=t._splat;r._splat=_,r["*"]=_;const k=e.substring(m,f[1]),S=e.substring(f[4],b);if(!_){o=!0,(k||S)&&(h+="/"+k+S);continue}const C=ng("_splat",t,s);h+="/"+k+C+S;continue}if(y===Ro){const _=e.substring(f[2],f[3]);!o&&!(_ in t)&&(o=!0),r[_]=t[_];const k=e.substring(m,f[1]),S=e.substring(f[4],b),C=ng(_,t,s)??"undefined";h+="/"+k+C+S;continue}if(y===ml){const _=e.substring(f[2],f[3]),k=t[_];if(k==null)continue;r[_]=k;const S=e.substring(m,f[1]),C=e.substring(f[4],b),R=ng(_,t,s)??"";h+="/"+S+R+C;continue}}return e.endsWith("/")&&(h+="/"),{usedParams:r,interpolatedPath:h||"/",isMissingParams:o}}function CT(e,t){let s=encodeURIComponent(e);if(t)for(const[o,r]of t)s=s.replaceAll(o,r);return s}function Jn(e){return!!e?.isNotFound}function ET(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Yc="tsr-scroll-restoration-v1_3",RT=(e,t)=>{let s;return(...o)=>{s||(s=setTimeout(()=>{e(...o),s=null},t))}};function xT(){const e=ET();if(!e)return null;const t=e.getItem(Yc);let s=t?JSON.parse(t):{};return{state:s,set:o=>(s=Ai(o,s)||s,e.setItem(Yc,JSON.stringify(s)))}}const oc=xT(),Kg=e=>e.state.__TSR_key||e.href;function TT(e){const t=[];let s;for(;s=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,e)+1})`),e=s;return`${t.reverse().join(" > ")}`.toLowerCase()}let Qc=!1;function O_({storageKey:e,key:t,behavior:s,shouldScrollRestoration:o,scrollToTopSelectors:r,location:u}){let c;try{c=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(g){console.error(g);return}const f=t||window.history.state?.__TSR_key,h=c[f];Qc=!0;e:{if(o&&h&&Object.keys(h).length>0){for(const b in h){const y=h[b];if(b==="window")window.scrollTo({top:y.scrollY,left:y.scrollX,behavior:s});else if(b){const _=document.querySelector(b);_&&(_.scrollLeft=y.scrollX,_.scrollTop=y.scrollY)}}break e}const g=(u??window.location).hash.split("#",2)[1];if(g){const b=window.history.state?.__hashScrollIntoViewOptions??!0;if(b){const y=document.getElementById(g);y&&y.scrollIntoView(b)}break e}const m={top:0,left:0,behavior:s};if(window.scrollTo(m),r)for(const b of r){if(b==="window")continue;const y=typeof b=="function"?b():document.querySelector(b);y&&y.scrollTo(m)}}Qc=!1}function wT(e,t){if(!oc&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!oc))return;e.isScrollRestorationSetup=!0,Qc=!1;const o=e.options.getScrollRestorationKey||Kg;window.history.scrollRestoration="manual";const r=u=>{if(Qc||!e.isScrollRestoring)return;let c="";if(u.target===document||u.target===window)c="window";else{const h=u.target.getAttribute("data-scroll-restoration-id");h?c=`[data-scroll-restoration-id="${h}"]`:c=TT(u.target)}const f=o(e.state.location);oc.set(h=>{const g=h[f]||={},m=g[c]||={};if(c==="window")m.scrollX=window.scrollX||0,m.scrollY=window.scrollY||0;else if(c){const b=document.querySelector(c);b&&(m.scrollX=b.scrollLeft||0,m.scrollY=b.scrollTop||0)}return h})};typeof document<"u"&&document.addEventListener("scroll",RT(r,100),!0),e.subscribe("onRendered",u=>{const c=o(u.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(O_({storageKey:Yc,key:c,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&oc.set(f=>(f[c]||={},f)))})}function OT(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const s=document.getElementById(e.state.location.hash);s&&s.scrollIntoView(t)}}}function AT(e,t=String){const s=new URLSearchParams;for(const o in e){const r=e[o];r!==void 0&&s.set(o,t(r))}return s.toString()}function ig(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function MT(e){const t=new URLSearchParams(e),s={};for(const[o,r]of t.entries()){const u=s[o];u==null?s[o]=ig(r):Array.isArray(u)?u.push(ig(r)):s[o]=[u,ig(r)]}return s}const DT=PT(JSON.parse),LT=NT(JSON.stringify,JSON.parse);function PT(e){return t=>{t[0]==="?"&&(t=t.substring(1));const s=MT(t);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=e(r)}catch{}}return s}}function NT(e,t){const s=typeof t=="function";function o(r){if(typeof r=="object"&&r!==null)try{return e(r)}catch{}else if(s&&typeof r=="string")try{return t(r),e(r)}catch{}return r}return r=>{const u=AT(r,o);return u?`?${u}`:""}}const An="__root__";function zT(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const s=new Response(null,{status:e.statusCode,headers:t});if(s.options=e,e.throw)throw s;return s}function rs(e){return e instanceof Response&&!!e.options}const Mc=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Sf=(e,t)=>!!(e.preload&&!e.router.state.matches.some(s=>s.id===t)),A_=(e,t)=>{const s=e.router.routesById[t.routeId??""]??e.router.routeTree;!s.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(s.options.notFoundComponent=e.router.options.defaultNotFoundComponent),Gs(s.options.notFoundComponent);const o=e.matches.find(r=>r.routeId===s.id);Gs(o,"Could not find match for route: "+s.id),e.updateMatch(o.id,r=>({...r,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&s.parentRoute&&(t.routeId=s.parentRoute.id,A_(e,t))},Mi=(e,t,s)=>{if(!(!rs(s)&&!Jn(s))){if(rs(s)&&s.redirectHandled&&!s.options.reloadDocument)throw s;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const o=rs(s)?"redirected":"notFound";t._nonReactive.error=s,e.updateMatch(t.id,r=>({...r,status:o,isFetching:!1,error:s})),Jn(s)&&!s.routeId&&(s.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw rs(s)?(e.rendered=!0,s.options._fromLocation=e.location,s.redirectHandled=!0,s=e.router.resolveRedirect(s),s):(A_(e,s),s)}},M_=(e,t)=>{const s=e.router.getMatch(t);return!!(!e.router.isServer&&s._nonReactive.dehydrated||e.router.isServer&&s.ssr===!1)},Kr=(e,t,s,o)=>{const{id:r,routeId:u}=e.matches[t],c=e.router.looseRoutesById[u];if(s instanceof Promise)throw s;s.routerCode=o,e.firstBadMatchIndex??=t,Mi(e,e.router.getMatch(r),s);try{c.options.onError?.(s)}catch(f){s=f,Mi(e,e.router.getMatch(r),s)}e.updateMatch(r,f=>(f._nonReactive.beforeLoadPromise?.resolve(),f._nonReactive.beforeLoadPromise=void 0,f._nonReactive.loadPromise?.resolve(),{...f,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},$T=(e,t,s,o)=>{const r=e.router.getMatch(t),u=e.matches[s-1]?.id,c=u?e.router.getMatch(u):void 0;if(e.router.isShell()){r.ssr=o.id===An;return}if(c?.ssr===!1){r.ssr=!1;return}const f=_=>_===!0&&c?.ssr==="data-only"?"data-only":_,h=e.router.options.defaultSsr??!0;if(o.options.ssr===void 0){r.ssr=f(h);return}if(typeof o.options.ssr!="function"){r.ssr=f(o.options.ssr);return}const{search:g,params:m}=r,b={search:ac(g,r.searchError),params:ac(m,r.paramsError),location:e.location,matches:e.matches.map(_=>({index:_.index,pathname:_.pathname,fullPath:_.fullPath,staticData:_.staticData,id:_.id,routeId:_.routeId,search:ac(_.search,_.searchError),params:ac(_.params,_.paramsError),ssr:_.ssr}))},y=o.options.ssr(b);if(Pi(y))return y.then(_=>{r.ssr=f(_??h)});r.ssr=f(y??h)},D_=(e,t,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!Sf(e,t)&&(s.options.loader||s.options.beforeLoad||N_(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??e.router.options?.defaultPendingComponent))){const c=setTimeout(()=>{Mc(e)},r);o._nonReactive.pendingTimeout=c}},jT=(e,t,s)=>{const o=e.router.getMatch(t);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;D_(e,t,s,o);const r=()=>{const u=e.router.getMatch(t);u.preload&&(u.status==="redirected"||u.status==="notFound")&&Mi(e,u,u.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},UT=(e,t,s,o)=>{const r=e.router.getMatch(t),u=r._nonReactive.loadPromise;r._nonReactive.loadPromise=Da(()=>{u?.resolve()});const{paramsError:c,searchError:f}=r;c&&Kr(e,s,c,"PARSE_PARAMS"),f&&Kr(e,s,f,"VALIDATE_SEARCH"),D_(e,t,o,r);const h=new AbortController,g=e.matches[s-1]?.id,y={...(g?e.router.getMatch(g):void 0)?.context??e.router.options.context??void 0,...r.__routeContext};let _=!1;const k=()=>{_||(_=!0,e.updateMatch(t,L=>({...L,isFetching:"beforeLoad",fetchCount:L.fetchCount+1,abortController:h,context:y})))},S=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,L=>({...L,isFetching:!1}))};if(!o.options.beforeLoad){rl(()=>{k(),S()});return}r._nonReactive.beforeLoadPromise=Da();const{search:C,params:R,cause:T}=r,A=Sf(e,t),w={search:C,abortController:h,params:R,preload:A,context:y,location:e.location,navigate:L=>e.router.navigate({...L,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:A?"preload":T,matches:e.matches,...e.router.options.additionalContext},x=L=>{if(L===void 0){rl(()=>{k(),S()});return}(rs(L)||Jn(L))&&(k(),Kr(e,s,L,"BEFORE_LOAD")),rl(()=>{k(),e.updateMatch(t,P=>({...P,__beforeLoadContext:L,context:{...P.context,...L}})),S()})};let M;try{if(M=o.options.beforeLoad(w),Pi(M))return k(),M.catch(L=>{Kr(e,s,L,"BEFORE_LOAD")}).then(x)}catch(L){k(),Kr(e,s,L,"BEFORE_LOAD")}x(M)},IT=(e,t)=>{const{id:s,routeId:o}=e.matches[t],r=e.router.looseRoutesById[o],u=()=>{if(e.router.isServer){const h=$T(e,s,t,r);if(Pi(h))return h.then(f)}return f()},c=()=>UT(e,s,t,r),f=()=>{if(M_(e,s))return;const h=jT(e,s,r);return Pi(h)?h.then(c):c()};return u()},ll=(e,t,s)=>{const o=e.router.getMatch(t);if(!o||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const r={matches:e.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([s.options.head?.(r),s.options.scripts?.(r),s.options.headers?.(r)]).then(([u,c,f])=>{const h=u?.meta,g=u?.links,m=u?.scripts,b=u?.styles;return{meta:h,links:g,headScripts:m,headers:f,scripts:c,styles:b}})},L_=(e,t,s,o)=>{const r=e.matchPromises[s-1],{params:u,loaderDeps:c,abortController:f,cause:h}=e.router.getMatch(t);let g=e.router.options.context??{};for(let b=0;b<=s;b++){const y=e.matches[b];if(!y)continue;const _=e.router.getMatch(y.id);_&&(g={...g,..._.__routeContext??{},..._.__beforeLoadContext??{}})}const m=Sf(e,t);return{params:u,deps:c,preload:!!m,parentMatchPromise:r,abortController:f,context:g,location:e.location,navigate:b=>e.router.navigate({...b,_fromLocation:e.location}),cause:m?"preload":h,route:o,...e.router.options.additionalContext}},pv=async(e,t,s,o)=>{try{const r=e.router.getMatch(t);try{(!e.router.isServer||r.ssr===!0)&&P_(o);const u=o.options.loader?.(L_(e,t,s,o)),c=o.options.loader&&Pi(u);if(!!(c||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||r._nonReactive.minPendingPromise)&&e.updateMatch(t,b=>({...b,isFetching:"loader"})),o.options.loader){const b=c?await u:u;Mi(e,e.router.getMatch(t),b),b!==void 0&&e.updateMatch(t,y=>({...y,loaderData:b}))}o._lazyPromise&&await o._lazyPromise;const h=ll(e,t,o),g=h?await h:void 0,m=r._nonReactive.minPendingPromise;m&&await m,o._componentsPromise&&await o._componentsPromise,e.updateMatch(t,b=>({...b,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...g}))}catch(u){let c=u;const f=r._nonReactive.minPendingPromise;f&&await f,Jn(u)&&await o.options.notFoundComponent?.preload?.(),Mi(e,e.router.getMatch(t),u);try{o.options.onError?.(u)}catch(m){c=m,Mi(e,e.router.getMatch(t),m)}const h=ll(e,t,o),g=h?await h:void 0;e.updateMatch(t,m=>({...m,error:c,status:"error",isFetching:!1,...g}))}}catch(r){const u=e.router.getMatch(t);if(u){const c=ll(e,t,o);if(c){const f=await c;e.updateMatch(t,h=>({...h,...f}))}u._nonReactive.loaderPromise=void 0}Mi(e,u,r)}},VT=async(e,t)=>{const{id:s,routeId:o}=e.matches[t];let r=!1,u=!1;const c=e.router.looseRoutesById[o];if(M_(e,s)){if(e.router.isServer){const g=ll(e,s,c);if(g){const m=await g;e.updateMatch(s,b=>({...b,...m}))}return e.router.getMatch(s)}}else{const g=e.router.getMatch(s);if(g._nonReactive.loaderPromise){if(g.status==="success"&&!e.sync&&!g.preload)return g;await g._nonReactive.loaderPromise;const m=e.router.getMatch(s),b=m._nonReactive.error||m.error;b&&Mi(e,m,b)}else{const m=Date.now()-g.updatedAt,b=Sf(e,s),y=b?c.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.router.options.defaultStaleTime??0,_=c.options.shouldReload,k=typeof _=="function"?_(L_(e,s,t,c)):_,S=!!b&&!e.router.state.matches.some(A=>A.id===s),C=e.router.getMatch(s);C._nonReactive.loaderPromise=Da(),S!==C.preload&&e.updateMatch(s,A=>({...A,preload:S}));const{status:R,invalid:T}=C;if(r=R==="success"&&(T||(k??m>y)),!(b&&c.options.preload===!1))if(r&&!e.sync)u=!0,(async()=>{try{await pv(e,s,t,c);const A=e.router.getMatch(s);A._nonReactive.loaderPromise?.resolve(),A._nonReactive.loadPromise?.resolve(),A._nonReactive.loaderPromise=void 0}catch(A){rs(A)&&await e.router.navigate(A.options)}})();else if(R!=="success"||r&&e.sync)await pv(e,s,t,c);else{const A=ll(e,s,c);if(A){const w=await A;e.updateMatch(s,x=>({...x,...w}))}}}}const f=e.router.getMatch(s);u||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve()),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,u||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;const h=u?f.isFetching:!1;return h!==f.isFetching||f.invalid!==!1?(e.updateMatch(s,g=>({...g,isFetching:h,invalid:!1})),e.router.getMatch(s)):f};async function mv(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(s=>s._forcePending)&&Mc(t);try{for(let r=0;r<t.matches.length;r++){const u=IT(t,r);Pi(u)&&await u}const s=t.firstBadMatchIndex??t.matches.length;for(let r=0;r<s;r++)t.matchPromises.push(VT(t,r));await Promise.all(t.matchPromises);const o=Mc(t);Pi(o)&&await o}catch(s){if(Jn(s)&&!t.preload){const o=Mc(t);throw Pi(o)&&await o,s}if(rs(s))throw s}return t.matches}async function P_(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:s,...o}=t.options;Object.assign(e.options,o),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const s=[];for(const o of z_){const r=e.options[o]?.preload;r&&s.push(r())}if(s.length)return Promise.all(s).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function ac(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function N_(e){for(const t of z_)if(e.options[t]?.preload)return!0;return!1}const z_=["component","errorComponent","pendingComponent","notFoundComponent"];function BT(e){return{input:({url:t})=>{for(const s of e)t=$_(s,t);return t},output:({url:t})=>{for(let s=e.length-1;s>=0;s--)t=j_(e[s],t);return t}}}function qT(e){const t=Ac(e.basepath),s=`/${t}`,o=`${s}/`,r=e.caseSensitive?s:s.toLowerCase(),u=e.caseSensitive?o:o.toLowerCase();return{input:({url:c})=>{const f=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return f===r?c.pathname="/":f.startsWith(u)&&(c.pathname=c.pathname.slice(s.length)),c},output:({url:c})=>(c.pathname=Oc(["/",t,c.pathname]),c)}}function $_(e,t){const s=e?.input?.({url:t});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return t}function j_(e,t){const s=e?.output?.({url:t});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return t}function _o(e){const t=e.resolvedLocation,s=e.location,o=t?.pathname!==s.pathname,r=t?.href!==s.href,u=t?.hash!==s.hash;return{fromLocation:t,toLocation:s,pathChanged:o,hrefChanged:r,hashChanged:u}}class HT{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=s=>s(),this.update=s=>{s.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const o=this.options,r=this.basepath??o?.basepath??"/",u=this.basepath===void 0,c=o?.rewrite;this.options={...o,...s},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(y=>[encodeURIComponent(y),y])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=sT())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new tT(KT(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(y=>!["redirected"].includes(y.status))}}}),wT(this));let f=!1;const h=this.options.basepath??"/",g=this.options.rewrite;if(u||r!==h||c!==g){this.basepath=h;const y=[];Ac(h)!==""&&y.push(qT({basepath:h})),g&&y.push(g),this.rewrite=y.length===0?void 0:y.length===1?y[0]:BT(y),this.history&&this.updateLatestLocation(),f=!0}f&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:s,routesByPath:o,processedTree:r}=mT(this.routeTree,this.options.caseSensitive,(c,f)=>{c.init({originalIndex:f})});this.options.routeMasks&&fT(this.options.routeMasks,r),this.routesById=s,this.routesByPath=o,this.processedTree=r;const u=this.options.notFoundRoute;u&&(u.init({originalIndex:99999999999}),this.routesById[u.id]=u)},this.subscribe=(s,o)=>{const r={eventType:s,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=s=>{this.subscribers.forEach(o=>{o.eventType===s.type&&o.fn(s)})},this.parseLocation=(s,o)=>{const r=({href:h,state:g})=>{const m=new URL(h,this.origin),b=$_(this.rewrite,m),y=this.options.parseSearch(b.search),_=this.options.stringifySearch(y);b.search=_;const k=b.href.replace(b.origin,""),{pathname:S,hash:C}=b;return{href:k,publicHref:h,url:b.href,pathname:gv(S),searchStr:_,search:Gn(o?.search,y),hash:C.split("#").reverse()[0]??"",state:Gn(o?.state,g)}},u=r(s),{__tempLocation:c,__tempKey:f}=u.state;if(c&&(!f||f===this.tempLocationKey)){const h=r(c);return h.state.key=u.state.key,h.state.__TSR_key=u.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:u}}return u},this.resolvePathCache=Kc(1e3),this.resolvePathWithBase=(s,o)=>ST({base:s,to:Jp(o),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,o,r)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:o},r):this.matchRoutesInternal(s,o),this.getMatchedRoutes=s=>GT({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const o=this.getMatch(s);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const s=this.state.matches.filter(u=>u.status==="pending"),o=this.state.matches.filter(u=>u.isFetching==="loader");new Set([...this.state.pendingMatches??[],...s,...o]).forEach(u=>{this.cancelMatch(u.id)})},this.buildLocation=s=>{const o=(u={})=>{const c=u._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutes(c,{_buildLocation:!0}),h=Hc(f);u.from;const g=u.unsafeRelative==="path"?c.pathname:u.from??h.fullPath,m=this.resolvePathWithBase(g,"."),b=h.search,y={...h.params},_=u.to?this.resolvePathWithBase(m,`${u.to}`):this.resolvePathWithBase(m,"."),k=u.params===!1||u.params===null?{}:(u.params??!0)===!0?y:Object.assign(y,Ai(u.params,y)),S=sg({path:_,params:k}).interpolatedPath,C=this.matchRoutes(S,void 0,{_buildLocation:!0}).map(Z=>this.looseRoutesById[Z.routeId]);if(Object.keys(k).length>0)for(const Z of C){const z=Z.options.params?.stringify??Z.options.stringifyParams;z&&Object.assign(k,z(k))}const R=s.leaveParams?_:gv(sg({path:_,params:k,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let T=b;if(s._includeValidateSearch&&this.options.search?.strict){const Z={};C.forEach(z=>{if(z.options.validateSearch)try{Object.assign(Z,Gg(z.options.validateSearch,{...Z,...T}))}catch{}}),T=Z}T=YT({search:T,dest:u,destRoutes:C,_includeValidateSearch:s._includeValidateSearch}),T=Gn(b,T);const A=this.options.stringifySearch(T),w=u.hash===!0?c.hash:u.hash?Ai(u.hash,c.hash):void 0,x=w?`#${w}`:"";let M=u.state===!0?c.state:u.state?Ai(u.state,c.state):{};M=Gn(c.state,M);const L=`${R}${A}${x}`,P=new URL(L,this.origin),V=j_(this.rewrite,P);return{publicHref:V.pathname+V.search+V.hash,href:L,url:V.href,pathname:R,search:T,searchStr:A,state:M,hash:w??"",unmaskOnReload:u.unmaskOnReload}},r=(u={},c)=>{const f=o(u);let h=c?o(c):void 0;if(!h){const g={};if(this.options.routeMasks){const m=dT(f.pathname,this.processedTree);if(m){Object.assign(g,m.params);const{from:b,params:y,..._}=m.route,k=y===!1||y===null?{}:(y??!0)===!0?g:Object.assign(g,Ai(y,g));c={from:s.from,..._,params:k},h=o(c)}}}return h&&(f.maskedLocation=h),f};return s.mask?r(s,{from:s.from,...s.mask}):r(s)},this.commitLocation=({viewTransition:s,ignoreBlocker:o,...r})=>{const u=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(m=>{r.state[m]=this.latestLocation.state[m]});const g=yo(r.state,this.latestLocation.state);return h.forEach(m=>{delete r.state[m]}),g},c=vo(this.latestLocation.href)===vo(r.href),f=this.commitLocationPromise;if(this.commitLocationPromise=Da(()=>{f?.resolve()}),c&&u())this.load();else{let{maskedLocation:h,hashScrollIntoView:g,...m}=r;h&&(m={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...m,search:m.searchStr,state:{...m.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(m.unmaskOnReload??this.options.unmaskOnReload??!1)&&(m.state.__tempKey=this.tempLocationKey)),m.state.__hashScrollIntoViewOptions=g??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[r.replace?"replace":"push"](m.publicHref,m.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:o,hashScrollIntoView:r,viewTransition:u,ignoreBlocker:c,href:f,...h}={})=>{if(f){const b=this.history.location.state.__TSR_index,y=qc(f,{__TSR_index:s?b:b+1});h.to=y.pathname,h.search=this.options.parseSearch(y.search),h.hash=y.hash.slice(1)}const g=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=g;const m=this.commitLocation({...g,viewTransition:u,replace:s,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===g&&(this.pendingBuiltLocation=void 0)}),m},this.navigate=async({to:s,reloadDocument:o,href:r,...u})=>{if(!o&&r)try{new URL(`${r}`),o=!0}catch{}if(o){if(r||(r=this.buildLocation({to:s,...u}).url),!u.ignoreBlocker){const f=this.history.getBlockers?.()??[];for(const h of f)if(h?.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return u.replace?window.location.replace(r):window.location.href=r,Promise.resolve()}return this.buildAndCommitLocation({...u,href:r,to:s,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const o=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),r=u=>{try{return encodeURI(decodeURI(u))}catch{return u}};if(Ac(r(this.latestLocation.href))!==Ac(r(o.href))){let u=o.url;throw this.origin&&u.startsWith(this.origin)&&(u=u.replace(this.origin,"")||"/"),zT({href:u})}}const s=this.matchRoutes(this.latestLocation);this.__store.setState(o=>({...o,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:s,cachedMatches:o.cachedMatches.filter(r=>!s.some(u=>u.id===r.id))}))},this.load=async s=>{let o,r,u;for(u=new Promise(f=>{this.startTransition(async()=>{try{this.beforeLoad();const h=this.latestLocation,g=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",..._o({resolvedLocation:g,location:h})}),this.emit({type:"onBeforeLoad",..._o({resolvedLocation:g,location:h})}),await mv({router:this,sync:s?.sync,matches:this.state.pendingMatches,location:h,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let m=[],b=[],y=[];rl(()=>{this.__store.setState(_=>{const k=_.matches,S=_.pendingMatches||_.matches;return m=k.filter(C=>!S.some(R=>R.id===C.id)),b=S.filter(C=>!k.some(R=>R.id===C.id)),y=S.filter(C=>k.some(R=>R.id===C.id)),{..._,isLoading:!1,loadedAt:Date.now(),matches:S,pendingMatches:void 0,cachedMatches:[..._.cachedMatches,...m.filter(C=>C.status!=="error"&&C.status!=="notFound")]}}),this.clearExpiredCache()}),[[m,"onLeave"],[b,"onEnter"],[y,"onStay"]].forEach(([_,k])=>{_.forEach(S=>{this.looseRoutesById[S.routeId].options[k]?.(S)})})})})}})}catch(h){rs(h)?(o=h,this.isServer||this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):Jn(h)&&(r=h),this.__store.setState(g=>({...g,statusCode:o?o.status:r?404:g.matches.some(m=>m.status==="error")?500:200,redirect:o}))}this.latestLoadPromise===u&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=u,await u;this.latestLoadPromise&&u!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.__store.state.matches.some(f=>f.status==="error")&&(c=500),c!==void 0&&this.__store.setState(f=>({...f,statusCode:c}))},this.startViewTransition=s=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const u=this.latestLocation,c=this.state.resolvedLocation,f=typeof o.types=="function"?o.types(_o({resolvedLocation:c,location:u})):o.types;if(f===!1){s();return}r={update:s,types:f}}else r=s;document.startViewTransition(r)}else s()},this.updateMatch=(s,o)=>{this.startTransition(()=>{const r=this.state.pendingMatches?.some(u=>u.id===s)?"pendingMatches":this.state.matches.some(u=>u.id===s)?"matches":this.state.cachedMatches.some(u=>u.id===s)?"cachedMatches":"";r&&this.__store.setState(u=>({...u,[r]:u[r]?.map(c=>c.id===s?o(c):c)}))})},this.getMatch=s=>{const o=r=>r.id===s;return this.state.cachedMatches.find(o)??this.state.pendingMatches?.find(o)??this.state.matches.find(o)},this.invalidate=s=>{const o=r=>s?.filter?.(r)??!0?{...r,invalid:!0,...s?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.__store.setState(r=>({...r,matches:r.matches.map(o),cachedMatches:r.cachedMatches.map(o),pendingMatches:r.pendingMatches?.map(o)})),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.resolveRedirect=s=>{if(!s.options.href){const o=this.buildLocation(s.options);let r=o.url;this.origin&&r.startsWith(this.origin)&&(r=r.replace(this.origin,"")||"/"),s.options.href=o.href,s.headers.set("Location",r)}return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const o=s?.filter;o!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(u=>!o(u))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const s=o=>{const r=this.looseRoutesById[o.routeId];if(!r.options.loader)return!0;const u=(o.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:Date.now()-o.updatedAt>=u};this.clearCache({filter:s})},this.loadRouteChunk=P_,this.preloadRoute=async s=>{const o=this.buildLocation(s);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:s});const u=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),c=new Set([...u,...this.state.cachedMatches.map(f=>f.id)]);rl(()=>{r.forEach(f=>{c.has(f.id)||this.__store.setState(h=>({...h,cachedMatches:[...h.cachedMatches,f]}))})});try{return r=await mv({router:this,matches:r,location:o,preload:!0,updateMatch:(f,h)=>{u.has(f)?r=r.map(g=>g.id===f?h(g):g):this.updateMatch(f,h)}}),r}catch(f){if(rs(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:o});Jn(f)||console.error(f);return}},this.matchRoute=(s,o)=>{const r={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},u=this.buildLocation(r);if(o?.pending&&this.state.status!=="pending")return!1;const f=(o?.pending===void 0?!this.state.isLoading:o.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,h=hT(u.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,f.pathname,this.processedTree);return!h||s.params&&!yo(h.params,s.params,{partial:!0})?!1:o?.includeSearch??!0?yo(f.search,u.search,{partial:!0})?h.params:!1:h.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(s=>s.status==="notFound"||s.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??LT,parseSearch:t.parseSearch??DT}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,s){const o=this.getMatchedRoutes(t.pathname),{foundRoute:r,routeParams:u}=o;let{matchedRoutes:c}=o,f=!1;(r?r.path!=="/"&&u["**"]:vo(t.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:f=!0);const h=(()=>{if(f){if(this.options.notFoundMode!=="root")for(let b=c.length-1;b>=0;b--){const y=c[b];if(y.children)return y.id}return An}})(),g=[],m=b=>b?.id?b.context??this.options.context??void 0:this.options.context??void 0;return c.forEach((b,y)=>{const _=g[y-1],[k,S,C]=(()=>{const B=_?.search??t.search,q=_?._strictSearch??void 0;try{const J=Gg(b.options.validateSearch,{...B})??void 0;return[{...B,...J},{...q,...J},void 0]}catch(J){let D=J;if(J instanceof Xc||(D=new Xc(J.message,{cause:J})),s?.throwOnError)throw D;return[B,{},D]}})(),R=b.options.loaderDeps?.({search:k})??"",T=R?JSON.stringify(R):"",{interpolatedPath:A,usedParams:w}=sg({path:b.fullPath,params:u,decodeCharMap:this.pathParamsDecodeCharMap}),x=b.id+A+T,M=this.getMatch(x),L=this.state.matches.find(B=>B.routeId===b.id),P=M?._strictParams??w;let V;if(!M){const B=b.options.params?.parse??b.options.parseParams;if(B)try{Object.assign(P,B(P))}catch(q){if(Jn(q)||rs(q)?V=q:V=new FT(q.message,{cause:q}),s?.throwOnError)throw V}}Object.assign(u,P);const Z=L?"stay":"enter";let z;if(M)z={...M,cause:Z,params:L?Gn(L.params,u):u,_strictParams:P,search:Gn(L?L.search:M.search,k),_strictSearch:S};else{const B=b.options.loader||b.options.beforeLoad||b.lazyFn||N_(b)?"pending":"success";z={id:x,ssr:this.isServer?void 0:b.options.ssr,index:y,routeId:b.id,params:L?Gn(L.params,u):u,_strictParams:P,pathname:A,updatedAt:Date.now(),search:L?Gn(L.search,k):k,_strictSearch:S,searchError:void 0,status:B,isFetching:!1,error:void 0,paramsError:V,__routeContext:void 0,_nonReactive:{loadPromise:Da()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:Z,loaderDeps:L?Gn(L.loaderDeps,R):R,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:b.options.staticData||{},fullPath:b.fullPath}}s?.preload||(z.globalNotFound=h===b.id),z.searchError=C;const Q=m(_);z.context={...Q,...z.__routeContext,...z.__beforeLoadContext},g.push(z)}),g.forEach((b,y)=>{const _=this.looseRoutesById[b.routeId];if(!this.getMatch(b.id)&&s?._buildLocation!==!0){const S=g[y-1],C=m(S);if(_.options.context){const R={deps:b.loaderDeps,params:b.params,context:C??{},location:t,navigate:T=>this.navigate({...T,_fromLocation:t}),buildLocation:this.buildLocation,cause:b.cause,abortController:b.abortController,preload:!!b.preload,matches:g};b.__routeContext=_.options.context(R)??void 0}b.context={...C,...b.__routeContext,...b.__beforeLoadContext}}}),g}}class Xc extends Error{}class FT extends Error{}function KT(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Gg(e,t){if(e==null)return{};if("~standard"in e){const s=e["~standard"].validate(t);if(s instanceof Promise)throw new Xc("Async validation not supported");if(s.issues)throw new Xc(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function GT({pathname:e,routesById:t,processedTree:s}){const o={},r=vo(e);let u;const c=gT(r,s,!0);return c&&(u=c.route,Object.assign(o,c.params)),{matchedRoutes:c?.branch||[t[An]],routeParams:o,foundRoute:u}}function YT({search:e,dest:t,destRoutes:s,_includeValidateSearch:o}){const r=s.reduce((f,h)=>{const g=[];if("search"in h.options)h.options.search?.middlewares&&g.push(...h.options.search.middlewares);else if(h.options.preSearchFilters||h.options.postSearchFilters){const m=({search:b,next:y})=>{let _=b;"preSearchFilters"in h.options&&h.options.preSearchFilters&&(_=h.options.preSearchFilters.reduce((S,C)=>C(S),b));const k=y(_);return"postSearchFilters"in h.options&&h.options.postSearchFilters?h.options.postSearchFilters.reduce((S,C)=>C(S),k):k};g.push(m)}if(o&&h.options.validateSearch){const m=({search:b,next:y})=>{const _=y(b);try{return{..._,...Gg(h.options.validateSearch,_)??void 0}}catch{return _}};g.push(m)}return f.concat(g)},[])??[],u=({search:f})=>t.search?t.search===!0?f:Ai(t.search,f):{};r.push(u);const c=(f,h)=>{if(f>=r.length)return h;const g=r[f];return g({search:h,next:b=>c(f+1,b)})};return c(0,e)}const QT="Error preloading route! ☝️";class U_{constructor(t){if(this.init=s=>{this.originalIndex=s.originalIndex;const o=this.options,r=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=An:this.parentRoute||Gs(!1);let u=r?An:o?.path;u&&u!=="/"&&(u=w_(u));const c=o?.id||u;let f=r?An:Oc([this.parentRoute.id===An?"":this.parentRoute.id,c]);u===An&&(u="/"),f!==An&&(f=Oc(["/",f]));const h=f===An?"/":Oc([this.parentRoute.fullPath,u]);this._path=u,this._id=f,this._fullPath=h,this._to=h},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class XT extends U_{constructor(t){super(t)}}var E=Ba();const Ct=Fx(E),em=Hx({__proto__:null,default:Ct},[E]);function tm(e){const t=e.errorComponent??Cf;return Y.jsx(WT,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:s,reset:o})=>s?E.createElement(t,{error:s,reset:o}):e.children})}class WT extends E.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,s){this.props.onCatch&&this.props.onCatch(t,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Cf({error:e}){const[t,s]=E.useState(!1);return Y.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[Y.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),Y.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(o=>!o),children:t?"Hide Error":"Show Error"})]}),Y.jsx("div",{style:{height:".25rem"}}),t?Y.jsx("div",{children:Y.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?Y.jsx("code",{children:e.message}):null})}):null]})}function ZT({children:e,fallback:t=null}){return JT()?Y.jsx(Ct.Fragment,{children:e}):Y.jsx(Ct.Fragment,{children:t})}function JT(){return Ct.useSyncExternalStore(ew,()=>!0,()=>!1)}function ew(){return()=>{}}var og={exports:{}},ag={},rg={exports:{}},lg={};var bv;function tw(){if(bv)return lg;bv=1;var e=Ba();function t(b,y){return b===y&&(b!==0||1/b===1/y)||b!==b&&y!==y}var s=typeof Object.is=="function"?Object.is:t,o=e.useState,r=e.useEffect,u=e.useLayoutEffect,c=e.useDebugValue;function f(b,y){var _=y(),k=o({inst:{value:_,getSnapshot:y}}),S=k[0].inst,C=k[1];return u(function(){S.value=_,S.getSnapshot=y,h(S)&&C({inst:S})},[b,_,y]),r(function(){return h(S)&&C({inst:S}),b(function(){h(S)&&C({inst:S})})},[b]),c(_),_}function h(b){var y=b.getSnapshot;b=b.value;try{var _=y();return!s(b,_)}catch{return!0}}function g(b,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:f;return lg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,lg}var yv;function I_(){return yv||(yv=1,rg.exports=tw()),rg.exports}var vv;function nw(){if(vv)return ag;vv=1;var e=Ba(),t=I_();function s(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}var o=typeof Object.is=="function"?Object.is:s,r=t.useSyncExternalStore,u=e.useRef,c=e.useEffect,f=e.useMemo,h=e.useDebugValue;return ag.useSyncExternalStoreWithSelector=function(g,m,b,y,_){var k=u(null);if(k.current===null){var S={hasValue:!1,value:null};k.current=S}else S=k.current;k=f(function(){function R(M){if(!T){if(T=!0,A=M,M=y(M),_!==void 0&&S.hasValue){var L=S.value;if(_(L,M))return w=L}return w=M}if(L=w,o(A,M))return L;var P=y(M);return _!==void 0&&_(L,P)?(A=M,L):(A=M,w=P)}var T=!1,A,w,x=b===void 0?null:b;return[function(){return R(m())},x===null?void 0:function(){return R(x())}]},[m,b,y,_]);var C=r(g,k[0],k[1]);return c(function(){S.hasValue=!0,S.value=C},[C]),h(C),C},ag}var _v;function sw(){return _v||(_v=1,og.exports=nw()),og.exports}var V_=sw();function iw(e,t=o=>o,s={}){const o=s.equal??ow;return V_.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,o)}function ow(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[o,r]of e)if(!t.has(o)||!Object.is(r,t.get(o)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const o of e)if(!t.has(o))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const s=kv(e);if(s.length!==kv(t).length)return!1;for(let o=0;o<s.length;o++)if(!Object.prototype.hasOwnProperty.call(t,s[o])||!Object.is(e[s[o]],t[s[o]]))return!1;return!0}function kv(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const ug=E.createContext(null);function B_(){return typeof document>"u"?ug:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=ug,ug)}function Sn(e){const t=E.useContext(B_());return e?.warn,t}function Jt(e){const t=Sn({warn:e?.router===void 0}),s=e?.router||t,o=E.useRef(void 0);return iw(s.__store,r=>{if(e?.select){if(e.structuralSharing??s.options.defaultStructuralSharing){const u=Gn(o.current,e.select(r));return o.current=u,u}return e.select(r)}return r})}const Ef=E.createContext(void 0),aw=E.createContext(void 0);function Cs(e){const t=E.useContext(e.from?aw:Ef);return Jt({select:o=>{const r=o.matches.find(u=>e.from?e.from===u.routeId:u.id===t);if(Gs(!((e.shouldThrow??!0)&&!r),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),r!==void 0)return e.select?e.select(r):r},structuralSharing:e.structuralSharing})}function nm(e){return Cs({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function sm(e){const{select:t,...s}=e;return Cs({...s,select:o=>t?t(o.loaderDeps):o.loaderDeps})}function im(e){return Cs({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const s=e.strict===!1?t.params:t._strictParams;return e.select?e.select(s):s}})}function om(e){return Cs({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}const nl=typeof window<"u"?E.useLayoutEffect:E.useEffect;function cg(e){const t=E.useRef({value:e,prev:null}),s=t.current.value;return e!==s&&(t.current={value:e,prev:s}),t.current.prev}function rw(e,t,s={},o={}){E.useEffect(()=>{if(!e.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([u])=>{t(u)},s);return r.observe(e.current),()=>{r.disconnect()}},[t,s,o.disabled,e])}function lw(e){const t=E.useRef(null);return E.useImperativeHandle(e,()=>t.current,[]),t}function Dl(e){const t=Sn();return E.useCallback(s=>t.navigate({...s,from:s.from??e?.from}),[e?.from,t])}function W9(e){const t=Sn(),s=Dl(),o=E.useRef(null);return nl(()=>{o.current!==e&&(s(e),o.current=e)},[t,e,s]),null}var fg={exports:{}},Qt={};var Sv;function uw(){if(Sv)return Qt;Sv=1;var e=Ba();function t(h){var g="https://react.dev/errors/"+h;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)g+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(t(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},r=Symbol.for("react.portal");function u(h,g,m){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:b==null?null:""+b,children:h,containerInfo:g,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,g){if(h==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Qt.createPortal=function(h,g){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return u(h,g,null,m)},Qt.flushSync=function(h){var g=c.T,m=o.p;try{if(c.T=null,o.p=2,h)return h()}finally{c.T=g,o.p=m,o.d.f()}},Qt.preconnect=function(h,g){typeof h=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(h,g))},Qt.prefetchDNS=function(h){typeof h=="string"&&o.d.D(h)},Qt.preinit=function(h,g){if(typeof h=="string"&&g&&typeof g.as=="string"){var m=g.as,b=f(m,g.crossOrigin),y=typeof g.integrity=="string"?g.integrity:void 0,_=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;m==="style"?o.d.S(h,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:y,fetchPriority:_}):m==="script"&&o.d.X(h,{crossOrigin:b,integrity:y,fetchPriority:_,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Qt.preinitModule=function(h,g){if(typeof h=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var m=f(g.as,g.crossOrigin);o.d.M(h,{crossOrigin:m,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(h)},Qt.preload=function(h,g){if(typeof h=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var m=g.as,b=f(m,g.crossOrigin);o.d.L(h,m,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Qt.preloadModule=function(h,g){if(typeof h=="string")if(g){var m=f(g.as,g.crossOrigin);o.d.m(h,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:m,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(h)},Qt.requestFormReset=function(h){o.d.r(h)},Qt.unstable_batchedUpdates=function(h,g){return h(g)},Qt.useFormState=function(h,g,m){return c.H.useFormState(h,g,m)},Qt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Qt.version="19.2.3",Qt}var Cv;function q_(){if(Cv)return fg.exports;Cv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fg.exports=uw(),fg.exports}var Es=q_();function cw(e,t){const s=Sn(),[o,r]=E.useState(!1),u=E.useRef(!1),c=lw(t),{activeProps:f,inactiveProps:h,activeOptions:g,to:m,preload:b,preloadDelay:y,hashScrollIntoView:_,replace:k,startTransition:S,resetScroll:C,viewTransition:R,children:T,target:A,disabled:w,style:x,className:M,onClick:L,onFocus:P,onMouseEnter:V,onMouseLeave:Z,onTouchStart:z,ignoreBlocker:Q,params:B,search:q,hash:J,state:D,mask:I,reloadDocument:U,unsafeRelative:oe,from:ae,_fromLocation:N,...K}=e,X=Jt({select:ce=>ce.location.search,structuralSharing:!0}),re=e.from,fe=E.useMemo(()=>({...e,from:re}),[s,X,re,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),le=E.useMemo(()=>s.buildLocation({...fe}),[s,fe]),ue=E.useMemo(()=>{if(w)return;let ce=le.maskedLocation?le.maskedLocation.url:le.url,he=!1;return s.origin&&(ce.startsWith(s.origin)?ce=s.history.createHref(ce.replace(s.origin,""))||"/":he=!0),{href:ce,external:he}},[w,le.maskedLocation,le.url,s.origin,s.history]),de=E.useMemo(()=>{if(ue?.external)return ue.href;try{return new URL(m),m}catch{}},[m,ue]),ye=e.reloadDocument||de?!1:b??s.options.defaultPreload,xe=y??s.options.defaultPreloadDelay??0,ne=Jt({select:ce=>{if(de)return!1;if(g?.exact){if(!kT(ce.location.pathname,le.pathname,s.basepath))return!1}else{const he=Gc(ce.location.pathname,s.basepath),me=Gc(le.pathname,s.basepath);if(!(he.startsWith(me)&&(he.length===me.length||he[me.length]==="/")))return!1}return(g?.includeSearch??!0)&&!yo(ce.location.search,le.search,{partial:!g?.exact,ignoreUndefined:!g?.explicitUndefined})?!1:g?.includeHash?ce.location.hash===le.hash:!0}}),ke=E.useCallback(()=>{s.preloadRoute({...fe}).catch(ce=>{console.warn(ce),console.warn(QT)})},[s,fe]),ve=E.useCallback(ce=>{ce?.isIntersecting&&ke()},[ke]);rw(c,ve,pw,{disabled:!!w||ye!=="viewport"}),E.useEffect(()=>{u.current||!w&&ye==="render"&&(ke(),u.current=!0)},[w,ke,ye]);const Ie=ce=>{const he=ce.currentTarget.getAttribute("target"),me=A!==void 0?A:he;if(!w&&!mw(ce)&&!ce.defaultPrevented&&(!me||me==="_self")&&ce.button===0){ce.preventDefault(),Es.flushSync(()=>{r(!0)});const je=s.subscribe("onResolved",()=>{je(),r(!1)});s.navigate({...fe,replace:k,resetScroll:C,hashScrollIntoView:_,startTransition:S,viewTransition:R,ignoreBlocker:Q})}};if(de)return{...K,ref:c,href:de,...T&&{children:T},...A&&{target:A},...w&&{disabled:w},...x&&{style:x},...M&&{className:M},...L&&{onClick:L},...P&&{onFocus:P},...V&&{onMouseEnter:V},...Z&&{onMouseLeave:Z},...z&&{onTouchStart:z}};const Ee=ce=>{w||ye&&ke()},pe=Ee,ge=ce=>{if(!(w||!ye))if(!xe)ke();else{const he=ce.target;if(Gr.has(he))return;const me=setTimeout(()=>{Gr.delete(he),ke()},xe);Gr.set(he,me)}},Oe=ce=>{if(w||!ye||!xe)return;const he=ce.target,me=Gr.get(he);me&&(clearTimeout(me),Gr.delete(he))},Ce=ne?Ai(f,{})??fw:dg,De=ne?dg:Ai(h,{})??dg,be=[M,Ce.className,De.className].filter(Boolean).join(" "),Me=(x||Ce.style||De.style)&&{...x,...Ce.style,...De.style};return{...K,...Ce,...De,href:ue?.href,ref:c,onClick:Yr([L,Ie]),onFocus:Yr([P,Ee]),onMouseEnter:Yr([V,ge]),onMouseLeave:Yr([Z,Oe]),onTouchStart:Yr([z,pe]),disabled:!!w,target:A,...Me&&{style:Me},...be&&{className:be},...w&&dw,...ne&&hw,...o&&gw}}const dg={},fw={className:"active"},dw={role:"link","aria-disabled":!0},hw={"data-status":"active","aria-current":"page"},gw={"data-transitioning":"transitioning"},Gr=new WeakMap,pw={rootMargin:"100px"},Yr=e=>t=>{for(const s of e)if(s){if(t.defaultPrevented)return;s(t)}},ho=E.forwardRef((e,t)=>{const{_asChild:s,...o}=e,{type:r,ref:u,...c}=cw(o,t),f=typeof o.children=="function"?o.children({isActive:c["data-status"]==="active"}):o.children;return s===void 0&&delete c.disabled,E.createElement(s||"a",{...c,ref:u},f)});function mw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let bw=class extends U_{constructor(t){super(t),this.useMatch=s=>Cs({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Cs({...s,from:this.id,select:o=>s?.select?s.select(o.context):o.context}),this.useSearch=s=>om({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>im({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>sm({...s,from:this.id}),this.useLoaderData=s=>nm({...s,from:this.id}),this.useNavigate=()=>Dl({from:this.fullPath}),this.Link=Ct.forwardRef((s,o)=>Y.jsx(ho,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}};function yw(e){return new bw(e)}function vw(){return e=>kw(e)}class _w extends XT{constructor(t){super(t),this.useMatch=s=>Cs({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Cs({...s,from:this.id,select:o=>s?.select?s.select(o.context):o.context}),this.useSearch=s=>om({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>im({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>sm({...s,from:this.id}),this.useLoaderData=s=>nm({...s,from:this.id}),this.useNavigate=()=>Dl({from:this.fullPath}),this.Link=Ct.forwardRef((s,o)=>Y.jsx(ho,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function kw(e){return new _w(e)}function Qe(e){return typeof e=="object"?new Ev(e,{silent:!0}).createRoute(e):new Ev(e,{silent:!0}).createRoute}class Ev{constructor(t,s){this.path=t,this.createRoute=o=>{this.silent;const r=yw(o);return r.isRoot=!1,r},this.silent=s?.silent}}class Rv{constructor(t){this.useMatch=s=>Cs({select:s?.select,from:this.options.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Cs({from:this.options.id,select:o=>s?.select?s.select(o.context):o.context}),this.useSearch=s=>om({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useParams=s=>im({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useLoaderDeps=s=>sm({...s,from:this.options.id}),this.useLoaderData=s=>nm({...s,from:this.options.id}),this.useNavigate=()=>{const s=Sn();return Dl({from:s.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function xv(e){return typeof e=="object"?new Rv(e):t=>new Rv({id:e,...t})}function Ze(e,t){let s,o,r,u;const c=()=>(s||(s=e().then(h=>{s=void 0,o=h[t]}).catch(h=>{if(r=h,aT(r)&&r instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const g=`tanstack_router_reload:${r.message}`;sessionStorage.getItem(g)||(sessionStorage.setItem(g,"1"),u=!0)}})),s),f=function(g){if(u)throw window.location.reload(),new Promise(()=>{});if(r)throw r;if(!o)throw c();return E.createElement(o,g)};return f.preload=c,f}function Sw(){const e=Sn(),t=E.useRef({router:e,mounted:!1}),[s,o]=E.useState(!1),{hasPendingMatches:r,isLoading:u}=Jt({select:b=>({isLoading:b.isLoading,hasPendingMatches:b.matches.some(y=>y.status==="pending")}),structuralSharing:!0}),c=cg(u),f=u||s||r,h=cg(f),g=u||r,m=cg(g);return e.startTransition=b=>{o(!0),E.startTransition(()=>{b(),o(!1)})},E.useEffect(()=>{const b=e.history.subscribe(e.load),y=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return vo(e.latestLocation.href)!==vo(y.href)&&e.commitLocation({...y,replace:!0}),()=>{b()}},[e,e.history]),nl(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(y){console.error(y)}})()},[e]),nl(()=>{c&&!u&&e.emit({type:"onLoad",..._o(e.state)})},[c,e,u]),nl(()=>{m&&!g&&e.emit({type:"onBeforeRouteMount",..._o(e.state)})},[g,m,e]),nl(()=>{if(h&&!f){const b=_o(e.state);e.emit({type:"onResolved",...b}),e.__store.setState(y=>({...y,status:"idle",resolvedLocation:y.location})),b.hrefChanged&&OT(e)}},[f,h,e]),null}function Cw(e){const t=Jt({select:s=>`not-found-${s.location.pathname}-${s.status}`});return Y.jsx(tm,{getResetKey:()=>t,onCatch:(s,o)=>{if(Jn(s))e.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(Jn(s))return e.fallback?.(s);throw s},children:e.children})}function Ew(){return Y.jsx("p",{children:"Not Found"})}function Sa(e){return Y.jsx(Y.Fragment,{children:e.children})}function H_(e,t,s){return t.options.notFoundComponent?Y.jsx(t.options.notFoundComponent,{...s}):e.options.defaultNotFoundComponent?Y.jsx(e.options.defaultNotFoundComponent,{...s}):Y.jsx(Ew,{})}function Rw({children:e}){const t=Sn();return t.isServer?Y.jsx("script",{nonce:t.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:e+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function xw(){const e=Sn();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return null;const s=(e.options.getScrollRestorationKey||Kg)(e.latestLocation),o=s!==Kg(e.latestLocation)?s:void 0,r={storageKey:Yc,shouldScrollRestoration:!0};return o&&(r.key=o),Y.jsx(Rw,{children:`(${O_.toString()})(${JSON.stringify(r)})`})}const F_=E.memo(function({matchId:t}){const s=Sn(),o=Jt({select:R=>{const T=R.matches.find(A=>A.id===t);return Gs(T),{routeId:T.routeId,ssr:T.ssr,_displayPending:T._displayPending}},structuralSharing:!0}),r=s.routesById[o.routeId],u=r.options.pendingComponent??s.options.defaultPendingComponent,c=u?Y.jsx(u,{}):null,f=r.options.errorComponent??s.options.defaultErrorComponent,h=r.options.onCatch??s.options.defaultOnCatch,g=r.isRoot?r.options.notFoundComponent??s.options.notFoundRoute?.options.component:r.options.notFoundComponent,m=o.ssr===!1||o.ssr==="data-only",b=(!r.isRoot||r.options.wrapInSuspense||m)&&(r.options.wrapInSuspense??u??(r.options.errorComponent?.preload||m))?E.Suspense:Sa,y=f?tm:Sa,_=g?Cw:Sa,k=Jt({select:R=>R.loadedAt}),S=Jt({select:R=>{const T=R.matches.findIndex(A=>A.id===t);return R.matches[T-1]?.routeId}}),C=r.isRoot?r.options.shellComponent??Sa:Sa;return Y.jsxs(C,{children:[Y.jsx(Ef.Provider,{value:t,children:Y.jsx(b,{fallback:c,children:Y.jsx(y,{getResetKey:()=>k,errorComponent:f||Cf,onCatch:(R,T)=>{if(Jn(R))throw R;h?.(R,T)},children:Y.jsx(_,{fallback:R=>{if(!g||R.routeId&&R.routeId!==o.routeId||!R.routeId&&!r.isRoot)throw R;return E.createElement(g,R)},children:m||o._displayPending?Y.jsx(ZT,{fallback:c,children:Y.jsx(Tv,{matchId:t})}):Y.jsx(Tv,{matchId:t})})})})}),S===An&&s.options.scrollRestoration?Y.jsxs(Y.Fragment,{children:[Y.jsx(Tw,{}),Y.jsx(xw,{})]}):null]})});function Tw(){const e=Sn(),t=E.useRef(void 0);return Y.jsx("script",{suppressHydrationWarning:!0,ref:s=>{s&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",..._o(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const Tv=E.memo(function({matchId:t}){const s=Sn(),{match:o,key:r,routeId:u}=Jt({select:h=>{const g=h.matches.find(k=>k.id===t),m=g.routeId,y=(s.routesById[m].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:m,loaderDeps:g.loaderDeps,params:g._strictParams,search:g._strictSearch});return{key:y?JSON.stringify(y):void 0,routeId:m,match:{id:g.id,status:g.status,error:g.error,_forcePending:g._forcePending,_displayPending:g._displayPending}}},structuralSharing:!0}),c=s.routesById[u],f=E.useMemo(()=>{const h=c.options.component??s.options.defaultComponent;return h?Y.jsx(h,{},r):Y.jsx(Yg,{})},[r,c.options.component,s.options.defaultComponent]);if(o._displayPending)throw s.getMatch(o.id)?._nonReactive.displayPendingPromise;if(o._forcePending)throw s.getMatch(o.id)?._nonReactive.minPendingPromise;if(o.status==="pending"){const h=c.options.pendingMinMs??s.options.defaultPendingMinMs;if(h){const g=s.getMatch(o.id);if(g&&!g._nonReactive.minPendingPromise&&!s.isServer){const m=Da();g._nonReactive.minPendingPromise=m,setTimeout(()=>{m.resolve(),g._nonReactive.minPendingPromise=void 0},h)}}throw s.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return Gs(Jn(o.error)),H_(s,c,o.error);if(o.status==="redirected")throw Gs(rs(o.error)),s.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error"){if(s.isServer){const h=(c.options.errorComponent??s.options.defaultErrorComponent)||Cf;return Y.jsx(h,{error:o.error,reset:void 0,info:{componentStack:""}})}throw o.error}return f}),Yg=E.memo(function(){const t=Sn(),s=E.useContext(Ef),o=Jt({select:g=>g.matches.find(m=>m.id===s)?.routeId}),r=t.routesById[o],u=Jt({select:g=>{const b=g.matches.find(y=>y.id===s);return Gs(b),b.globalNotFound}}),c=Jt({select:g=>{const m=g.matches,b=m.findIndex(y=>y.id===s);return m[b+1]?.id}}),f=t.options.defaultPendingComponent?Y.jsx(t.options.defaultPendingComponent,{}):null;if(u)return H_(t,r,void 0);if(!c)return null;const h=Y.jsx(F_,{matchId:c});return o===An?Y.jsx(E.Suspense,{fallback:f,children:h}):h});function ww(){const e=Sn(),s=e.routesById[An].options.pendingComponent??e.options.defaultPendingComponent,o=s?Y.jsx(s,{}):null,r=e.isServer||typeof document<"u"&&e.ssr?Sa:E.Suspense,u=Y.jsxs(r,{fallback:o,children:[!e.isServer&&Y.jsx(Sw,{}),Y.jsx(Ow,{})]});return e.options.InnerWrap?Y.jsx(e.options.InnerWrap,{children:u}):u}function Ow(){const e=Sn(),t=Jt({select:r=>r.matches[0]?.id}),s=Jt({select:r=>r.loadedAt}),o=t?Y.jsx(F_,{matchId:t}):null;return Y.jsx(Ef.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?o:Y.jsx(tm,{getResetKey:()=>s,errorComponent:Cf,onCatch:r=>{r.message||r.toString()},children:o})})}function J9(e){return Jt({select:t=>t.matches,structuralSharing:e?.structuralSharing})}const Aw=e=>new Mw(e);class Mw extends HT{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=Qe,globalThis.createLazyFileRoute=xv):typeof window<"u"&&(window.createFileRoute=Qe,window.createLazyFileRoute=xv);function Dw({router:e,children:t,...s}){Object.keys(s).length>0&&e.update({...e.options,...s,context:{...e.options.context,...s.context}});const o=B_(),r=Y.jsx(o.Provider,{value:e,children:t});return e.options.Wrap?Y.jsx(e.options.Wrap,{children:r}):r}function Lw({router:e,...t}){return Y.jsx(Dw,{router:e,...t,children:Y.jsx(ww,{})})}function Pw(e){return Jt({select:t=>t.location})}const wv={};function es(e,t){const s=E.useRef(wv);return s.current===wv&&(s.current=e(t)),s}const hg=em[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],Nw=hg&&hg!==E.useLayoutEffect?hg:e=>e();function we(e){const t=es(zw).current;return t.next=e,Nw(t.effect),t.trampoline}function zw(){const e={next:void 0,callback:$w,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function $w(){}const jw=()=>{},Pe=typeof document<"u"?E.useLayoutEffect:jw,K_=E.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Uw(){return E.useContext(K_)}function Iw(e){const{children:t,elementsRef:s,labelsRef:o,onMapChange:r}=e,u=we(r),c=E.useRef(0),f=es(Bw).current,h=es(Vw).current,[g,m]=E.useState(0),b=E.useRef(g),y=we((R,T)=>{h.set(R,T??null),b.current+=1,m(b.current)}),_=we(R=>{h.delete(R),b.current+=1,m(b.current)}),k=E.useMemo(()=>{const R=new Map;return Array.from(h.keys()).filter(A=>A.isConnected).sort(qw).forEach((A,w)=>{const x=h.get(A)??{};R.set(A,{...x,index:w})}),R},[h,g]);Pe(()=>{if(typeof MutationObserver!="function"||k.size===0)return;const R=new MutationObserver(T=>{const A=new Set,w=x=>A.has(x)?A.delete(x):A.add(x);T.forEach(x=>{x.removedNodes.forEach(w),x.addedNodes.forEach(w)}),A.size===0&&(b.current+=1,m(b.current))});return k.forEach((T,A)=>{A.parentElement&&R.observe(A.parentElement,{childList:!0})}),()=>{R.disconnect()}},[k]),Pe(()=>{b.current===g&&(s.current.length!==k.size&&(s.current.length=k.size),o&&o.current.length!==k.size&&(o.current.length=k.size),c.current=k.size),u(k)},[u,k,s,o,g]),Pe(()=>()=>{s.current=[]},[s]),Pe(()=>()=>{o&&(o.current=[])},[o]);const S=we(R=>(f.add(R),()=>{f.delete(R)}));Pe(()=>{f.forEach(R=>R(k))},[f,k]);const C=E.useMemo(()=>({register:y,unregister:_,subscribeMapChange:S,elementsRef:s,labelsRef:o,nextIndexRef:c}),[y,_,S,s,o,c]);return Y.jsx(K_.Provider,{value:C,children:t})}function Vw(){return new Map}function Bw(){return new Set}function qw(e,t){const s=e.compareDocumentPosition(t);return s&Node.DOCUMENT_POSITION_FOLLOWING||s&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:s&Node.DOCUMENT_POSITION_PRECEDING||s&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Hw=E.createContext(void 0);function G_(){return E.useContext(Hw)?.direction??"ltr"}function Ii(e,...t){const s=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(o=>s.searchParams.append("args[]",o)),`Base UI error #${e}; visit ${s} for the full message.`}function Pa(e,t,s,o){const r=es(Y_).current;return Kw(r,e,t,s,o)&&Q_(r,[e,t,s,o]),r.callback}function Fw(e){const t=es(Y_).current;return Gw(t,e)&&Q_(t,e),t.callback}function Y_(){return{callback:null,cleanup:null,refs:[]}}function Kw(e,t,s,o,r){return e.refs[0]!==t||e.refs[1]!==s||e.refs[2]!==o||e.refs[3]!==r}function Gw(e,t){return e.refs.length!==t.length||e.refs.some((s,o)=>s!==t[o])}function Q_(e,t){if(e.refs=t,t.every(s=>s==null)){e.callback=null;return}e.callback=s=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),s!=null){const o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){const u=t[r];if(u!=null)switch(typeof u){case"function":{const c=u(s);typeof c=="function"&&(o[r]=c);break}case"object":{u.current=s;break}}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){const u=t[r];if(u!=null)switch(typeof u){case"function":{const c=o[r];typeof c=="function"?c():u(null);break}case"object":{u.current=null;break}}}}}}}const Yw=parseInt(E.version,10);function am(e){return Yw>=e}function Ov(e){if(!E.isValidElement(e))return null;const t=e,s=t.props;return(am(19)?s?.ref:t.ref)??null}function Qg(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Qw(e,t){const s={};for(const o in e){const r=e[o];if(t?.hasOwnProperty(o)){const u=t[o](r);u!=null&&Object.assign(s,u);continue}r===!0?s[`data-${o.toLowerCase()}`]="":r&&(s[`data-${o.toLowerCase()}`]=r.toString())}return s}function Xw(e,t){return typeof e=="function"?e(t):e}function Ww(e,t){return typeof e=="function"?e(t):e}const ul={};function yl(e,t,s,o,r){let u={...Xg(e,ul)};return t&&(u=Dc(u,t)),s&&(u=Dc(u,s)),o&&(u=Dc(u,o)),u}function Zw(e){if(e.length===0)return ul;if(e.length===1)return Xg(e[0],ul);let t={...Xg(e[0],ul)};for(let s=1;s<e.length;s+=1)t=Dc(t,e[s]);return t}function Dc(e,t){return X_(t)?t(e):Jw(e,t)}function Jw(e,t){if(!t)return e;for(const s in t){const o=t[s];switch(s){case"style":{e[s]=Qg(e.style,o);break}case"className":{e[s]=W_(e.className,o);break}default:eO(s,o)?e[s]=tO(e[s],o):e[s]=o}}return e}function eO(e,t){const s=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return s===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function X_(e){return typeof e=="function"}function Xg(e,t){return X_(e)?e(t):e??ul}function tO(e,t){return t?e?s=>{if(nO(s)){const r=s;Wg(r);const u=t(r);return r.baseUIHandlerPrevented||e?.(r),u}const o=t(s);return e?.(s),o}:t:e}function Wg(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function W_(e,t){return t?e?t+" "+e:t:e}function nO(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Z_(){}const Wc=Object.freeze([]),Lt=Object.freeze({}),sO=500,iO=500,oO={style:{transition:"none"}},aO="data-base-ui-click-trigger",rO={fallbackAxisSide:"none"},lO={fallbackAxisSide:"end"},uO={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function qa(e,t,s={}){const o=t.render,r=cO(t,s);if(s.enabled===!1)return null;const u=s.state??Lt;return fO(e,o,r,u)}function cO(e,t={}){const{className:s,style:o,render:r}=e,{state:u=Lt,ref:c,props:f,stateAttributesMapping:h,enabled:g=!0}=t,m=g?Xw(s,u):void 0,b=g?Ww(o,u):void 0,y=g?Qw(u,h):Lt,_=g?Qg(y,Array.isArray(f)?Zw(f):f)??Lt:Lt;return typeof document<"u"&&(g?Array.isArray(c)?_.ref=Fw([_.ref,Ov(r),...c]):_.ref=Pa(_.ref,Ov(r),c):Pa(null,null)),g?(m!==void 0&&(_.className=W_(_.className,m)),b!==void 0&&(_.style=Qg(_.style,b)),_):Lt}function fO(e,t,s,o){if(t){if(typeof t=="function")return t(s,o);const r=yl(s,t.props);return r.ref=s.ref,E.cloneElement(t,r)}if(e&&typeof e=="string")return dO(e,s);throw new Error(Ii(8))}function dO(e,t){return e==="button"?E.createElement("button",{type:"button",...t,key:t.key}):e==="img"?E.createElement("img",{alt:"",...t,key:t.key}):E.createElement(e,t)}const hO="none",ko="trigger-press",Ln="trigger-hover",Zc="trigger-focus",rm="outside-press",J_="item-press",ej="close-press",tj="clear-press",nj="chip-remove-press",sj="track-press",ij="input-change",oj="input-clear",Na="focus-out",lm="escape-key",Lc="list-navigation",aj="keyboard",rj="drag",gO="cancel-open",sl="sibling-open",lj="disabled",pO="imperative-action";function st(e,t,s,o){let r=!1,u=!1;const c=o??Lt;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){u=!0},get isCanceled(){return r},get isPropagationAllowed(){return u},trigger:s,...c}}function uj(e,t,s){const o=s??Lt;return{reason:e,event:t??new Event("base-ui"),...o}}const mO={...em};let Av=0;function bO(e,t="mui"){const[s,o]=E.useState(e),r=e||s;return E.useEffect(()=>{s==null&&(Av+=1,o(`${t}-${Av}`))},[s,t]),r}const Mv=mO.useId;function Do(e,t){if(Mv!==void 0){const s=Mv();return e??(t?`${t}-${s}`:s)}return bO(e,t)}function ek(e){return Do(e,"base-ui")}const yO=[];function tk(e){E.useEffect(e,yO)}const rc=null;class vO{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const s=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let r=0;r<s.length;r+=1)s[r]?.(t)};request(t){const s=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),s}cancel(t){const s=t-this.startId;s<0||s>=this.callbacks.length||(this.callbacks[s]=null,this.callbacksCount-=1)}}const lc=new vO;class ms{static create(){return new ms}static request(t){return lc.request(t)}static cancel(t){return lc.cancel(t)}currentId=rc;request(t){this.cancel(),this.currentId=lc.request(()=>{this.currentId=rc,t()})}cancel=()=>{this.currentId!==rc&&(lc.cancel(this.currentId),this.currentId=rc)};disposeEffect=()=>this.cancel}function Rf(){const e=es(ms.create).current;return tk(e.disposeEffect),e}function co(e){return e==null?e:"current"in e?e.current:e}function _O(e,t=!1,s=!0){const o=Rf();return we((r,u=null)=>{o.cancel();const c=co(e);c!=null&&(typeof c.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?r():o.request(()=>{function f(){c&&Promise.all(c.getAnimations().map(h=>h.finished)).then(()=>{u!=null&&u.aborted||Es.flushSync(r)}).catch(()=>{if(s){if(u!=null&&u.aborted)return;Es.flushSync(r)}else c.getAnimations().length>0&&c.getAnimations().some(h=>h.pending||h.playState!=="finished")&&f()})}t?o.request(f):f()}))})}function kO(e,t=!1,s=!1){const[o,r]=E.useState(e&&t?"idle":void 0),[u,c]=E.useState(e);return e&&!u&&(c(!0),r("starting")),!e&&u&&o!=="ending"&&!s&&r("ending"),!e&&!u&&o==="ending"&&r(void 0),Pe(()=>{if(!e&&u&&o!=="ending"&&s){const f=ms.request(()=>{r("ending")});return()=>{ms.cancel(f)}}},[e,u,o,s]),Pe(()=>{if(!e||t)return;const f=ms.request(()=>{r(void 0)});return()=>{ms.cancel(f)}},[t,e]),Pe(()=>{if(!e||!t)return;e&&u&&o!=="idle"&&r("starting");const f=ms.request(()=>{r("idle")});return()=>{ms.cancel(f)}},[t,e,u,r,o]),E.useMemo(()=>({mounted:u,setMounted:c,transitionStatus:o}),[u,o])}let SO=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function nk(e={}){const{label:t,metadata:s,textRef:o,indexGuessBehavior:r,index:u}=e,{register:c,unregister:f,subscribeMapChange:h,elementsRef:g,labelsRef:m,nextIndexRef:b}=Uw(),y=E.useRef(-1),[_,k]=E.useState(u??(r===SO.GuessFromOrder?()=>{if(y.current===-1){const R=b.current;b.current+=1,y.current=R}return y.current}:-1)),S=E.useRef(null),C=E.useCallback(R=>{if(S.current=R,_!==-1&&R!==null&&(g.current[_]=R,m)){const T=t!==void 0;m.current[_]=T?t:o?.current?.textContent??R.textContent}},[_,g,m,t,o]);return Pe(()=>{if(u!=null)return;const R=S.current;if(R)return c(R,s),()=>{f(R)}},[u,c,f,s]),Pe(()=>{if(u==null)return h(R=>{const T=S.current?R.get(S.current)?.index:null;T!=null&&k(T)})},[u,h,k]),E.useMemo(()=>({ref:C,index:_}),[_,C])}let Jc=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const CO={[Jc.startingStyle]:""},EO={[Jc.endingStyle]:""},RO={transitionStatus(e){return e==="starting"?CO:e==="ending"?EO:null}};function xf(){return typeof window<"u"}function Vi(e){return um(e)?(e.nodeName||"").toLowerCase():"#document"}function Pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xs(e){var t;return(t=(um(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function um(e){return xf()?e instanceof Node||e instanceof Pt(e).Node:!1}function at(e){return xf()?e instanceof Element||e instanceof Pt(e).Element:!1}function yt(e){return xf()?e instanceof HTMLElement||e instanceof Pt(e).HTMLElement:!1}function Zg(e){return!xf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pt(e).ShadowRoot}const xO=new Set(["inline","contents"]);function Lo(e){const{overflow:t,overflowX:s,overflowY:o,display:r}=Pn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+s)&&!xO.has(r)}const TO=new Set(["table","td","th"]);function wO(e){return TO.has(Vi(e))}const OO=[":popover-open",":modal"];function Tf(e){return OO.some(t=>{try{return e.matches(t)}catch{return!1}})}const AO=["transform","translate","scale","rotate","perspective"],MO=["transform","translate","scale","rotate","perspective","filter"],DO=["paint","layout","strict","content"];function cm(e){const t=wf(),s=at(e)?Pn(e):e;return AO.some(o=>s[o]?s[o]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!t&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!t&&(s.filter?s.filter!=="none":!1)||MO.some(o=>(s.willChange||"").includes(o))||DO.some(o=>(s.contain||"").includes(o))}function LO(e){let t=Rs(e);for(;yt(t)&&!_s(t);){if(cm(t))return t;if(Tf(t))return null;t=Rs(t)}return null}function wf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const PO=new Set(["html","body","#document"]);function _s(e){return PO.has(Vi(e))}function Pn(e){return Pt(e).getComputedStyle(e)}function Of(e){return at(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rs(e){if(Vi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zg(e)&&e.host||xs(e);return Zg(t)?t.host:t}function sk(e){const t=Rs(e);return _s(t)?e.ownerDocument?e.ownerDocument.body:e.body:yt(t)&&Lo(t)?t:sk(t)}function Ni(e,t,s){var o;t===void 0&&(t=[]),s===void 0&&(s=!0);const r=sk(e),u=r===((o=e.ownerDocument)==null?void 0:o.body),c=Pt(r);if(u){const f=Jg(c);return t.concat(c,c.visualViewport||[],Lo(r)?r:[],f&&s?Ni(f):[])}return t.concat(r,Ni(r,[],s))}function Jg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const NO=E.createContext(void 0);function fm(e=!1){const t=E.useContext(NO);if(t===void 0&&!e)throw new Error(Ii(16));return t}function zO(e){const{focusableWhenDisabled:t,disabled:s,composite:o=!1,tabIndex:r=0,isNativeButton:u}=e,c=o&&t!==!1,f=o&&t===!1;return{props:E.useMemo(()=>{const g={onKeyDown(m){s&&t&&m.key!=="Tab"&&m.preventDefault()}};return o||(g.tabIndex=r,!u&&s&&(g.tabIndex=t?r:-1)),(u&&(t||c)||!u&&s)&&(g["aria-disabled"]=s),u&&(!t||f)&&(g.disabled=s),g},[o,s,t,c,f,u,r])}}function ik(e={}){const{disabled:t=!1,focusableWhenDisabled:s,tabIndex:o=0,native:r=!0}=e,u=E.useRef(null),c=fm(!0)!==void 0,f=we(()=>{const y=u.current;return!!(y?.tagName==="A"&&y?.href)}),{props:h}=zO({focusableWhenDisabled:s,disabled:t,composite:c,tabIndex:o,isNativeButton:r}),g=E.useCallback(()=>{const y=u.current;$O(y)&&c&&t&&h.disabled===void 0&&y.disabled&&(y.disabled=!1)},[t,h.disabled,c]);Pe(g,[g]);const m=E.useCallback((y={})=>{const{onClick:_,onMouseDown:k,onKeyUp:S,onKeyDown:C,onPointerDown:R,...T}=y;return yl({type:r?"button":void 0,onClick(w){if(t){w.preventDefault();return}_?.(w)},onMouseDown(w){t||k?.(w)},onKeyDown(w){if(t||(Wg(w),C?.(w)),w.baseUIHandlerPrevented)return;const x=w.target===w.currentTarget&&!r&&!f()&&!t,M=w.key==="Enter",L=w.key===" ";x&&((L||M)&&w.preventDefault(),M&&_?.(w))},onKeyUp(w){t||(Wg(w),S?.(w)),!w.baseUIHandlerPrevented&&w.target===w.currentTarget&&!r&&!t&&w.key===" "&&_?.(w)},onPointerDown(w){if(t){w.preventDefault();return}R?.(w)}},r?void 0:{role:"button"},h,T)},[t,h,r,f]),b=we(y=>{u.current=y,g()});return{getButtonProps:m,buttonRef:b}}function $O(e){return yt(e)&&e.tagName==="BUTTON"}const Po=typeof navigator<"u",gg=VO(),ok=qO(),dm=BO(),jO=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),UO=gg.platform==="MacIntel"&&gg.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(gg.platform),cj=Po&&/firefox/i.test(dm),ak=Po&&/apple/i.test(navigator.vendor),ep=Po&&/android/i.test(ok)||/android/i.test(dm),IO=Po&&ok.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,rk=dm.includes("jsdom/");function VO(){if(!Po)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function BO(){if(!Po)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:s})=>`${t}/${s}`).join(" "):navigator.userAgent}function qO(){if(!Po)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const tp="data-base-ui-focusable",lk="active",uk="selected",ck="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",zi="ArrowLeft",$i="ArrowRight",hm="ArrowUp",Ll="ArrowDown";function bs(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Ye(e,t){if(!e||!t)return!1;const s=t.getRootNode?.();if(e.contains(t))return!0;if(s&&Zg(s)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function _n(e){return"composedPath"in e?e.composedPath()[0]:e.target}function is(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const s=e;return s.target!=null&&t.contains(s.target)}function HO(e){return e.matches("html,body")}function St(e){return e?.ownerDocument||document}function gm(e){return yt(e)&&e.matches(ck)}function np(e){return e?e.getAttribute("role")==="combobox"&&gm(e):!1}function FO(e){if(!e||rk)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function ef(e){return e?e.hasAttribute(tp)?e:e.querySelector(`[${tp}]`)||e:null}function So(e,t,s=!0){return e.filter(r=>r.parentId===t&&(!s||r.context?.open)).flatMap(r=>[r,...So(e,r.id,s)])}function Dv(e,t){let s=[],o=e.find(r=>r.id===t)?.parentId;for(;o;){const r=e.find(u=>u.id===o);o=r?.parentId,r&&(s=s.concat(r))}return s}function Wt(e){e.preventDefault(),e.stopPropagation()}function KO(e){return"nativeEvent"in e}function fk(e){return e.mozInputSource===0&&e.isTrusted?!0:ep&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function dk(e){return rk?!1:!ep&&e.width===0&&e.height===0||ep&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function za(e,t){const s=["mouse","pen"];return t||s.push("",void 0),s.includes(e)}function hk(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const GO=["top","right","bottom","left"],$a=Math.min,Mn=Math.max,tf=Math.round,Ca=Math.floor,ks=e=>({x:e,y:e}),YO={left:"right",right:"left",bottom:"top",top:"bottom"},QO={start:"end",end:"start"};function sp(e,t,s){return Mn(e,$a(t,s))}function Ys(e,t){return typeof e=="function"?e(t):e}function kn(e){return e.split("-")[0]}function Bi(e){return e.split("-")[1]}function pm(e){return e==="x"?"y":"x"}function mm(e){return e==="y"?"height":"width"}const XO=new Set(["top","bottom"]);function Wn(e){return XO.has(kn(e))?"y":"x"}function bm(e){return pm(Wn(e))}function WO(e,t,s){s===void 0&&(s=!1);const o=Bi(e),r=bm(e),u=mm(r);let c=r==="x"?o===(s?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(c=nf(c)),[c,nf(c)]}function ZO(e){const t=nf(e);return[ip(e),t,ip(t)]}function ip(e){return e.replace(/start|end/g,t=>QO[t])}const Lv=["left","right"],Pv=["right","left"],JO=["top","bottom"],eA=["bottom","top"];function tA(e,t,s){switch(e){case"top":case"bottom":return s?t?Pv:Lv:t?Lv:Pv;case"left":case"right":return t?JO:eA;default:return[]}}function nA(e,t,s,o){const r=Bi(e);let u=tA(kn(e),s==="start",o);return r&&(u=u.map(c=>c+"-"+r),t&&(u=u.concat(u.map(ip)))),u}function nf(e){return e.replace(/left|right|bottom|top/g,t=>YO[t])}function sA(e){return{top:0,right:0,bottom:0,left:0,...e}}function gk(e){return typeof e!="number"?sA(e):{top:e,right:e,bottom:e,left:e}}function sf(e){const{x:t,y:s,width:o,height:r}=e;return{width:o,height:r,top:s,left:t,right:t+o,bottom:s+r,x:t,y:s}}function uc(e,t,s){return Math.floor(e/t)!==s}function cl(e,t){return t<0||t>=e.current.length}function pg(e,t){return Xt(e,{disabledIndices:t})}function Nv(e,t){return Xt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Xt(e,{startingIndex:t=-1,decrement:s=!1,disabledIndices:o,amount:r=1}={}){let u=t;do u+=s?-r:r;while(u>=0&&u<=e.current.length-1&&fl(e,u,o));return u}function iA(e,{event:t,orientation:s,loopFocus:o,rtl:r,cols:u,disabledIndices:c,minIndex:f,maxIndex:h,prevIndex:g,stopEvent:m=!1}){let b=g;const y=[],_={};let k=!1;{let R=null,T=-1;e.current.forEach((A,w)=>{if(A==null)return;const x=A.closest('[role="row"]');x&&(k=!0),(x!==R||T===-1)&&(R=x,T+=1,y[T]=[]),y[T].push(w),_[w]=T})}const S=k&&y.length>0&&y.some(R=>R.length!==u);function C(R){if(!S||g===-1)return;const T=_[g];if(T==null)return;const A=y[T].indexOf(g);let w=R==="up"?T-1:T+1;o&&(w<0?w=y.length-1:w>=y.length&&(w=0));const x=new Set;for(;w>=0&&w<y.length&&!x.has(w);){x.add(w);const M=y[w];if(M.length===0){w=R==="up"?w-1:w+1;continue}const L=Math.min(A,M.length-1);for(let P=L;P>=0;P-=1){const V=M[P];if(!fl(e,V,c))return V}w=R==="up"?w-1:w+1,o&&(w<0?w=y.length-1:w>=y.length&&(w=0))}}if(t.key===hm){const R=C("up");if(R!==void 0)m&&Wt(t),b=R;else{if(m&&Wt(t),g===-1)b=h;else if(b=Xt(e,{startingIndex:b,amount:u,decrement:!0,disabledIndices:c}),o&&(g-u<f||b<0)){const T=g%u,A=h%u,w=h-(A-T);A===T?b=h:b=A>T?w:w-u}cl(e,b)&&(b=g)}}if(t.key===Ll){const R=C("down");R!==void 0?(m&&Wt(t),b=R):(m&&Wt(t),g===-1?b=f:(b=Xt(e,{startingIndex:g,amount:u,disabledIndices:c}),o&&g+u>h&&(b=Xt(e,{startingIndex:g%u-u,amount:u,disabledIndices:c}))),cl(e,b)&&(b=g))}if(s==="both"){const R=Ca(g/u);t.key===(r?zi:$i)&&(m&&Wt(t),g%u!==u-1?(b=Xt(e,{startingIndex:g,disabledIndices:c}),o&&uc(b,u,R)&&(b=Xt(e,{startingIndex:g-g%u-1,disabledIndices:c}))):o&&(b=Xt(e,{startingIndex:g-g%u-1,disabledIndices:c})),uc(b,u,R)&&(b=g)),t.key===(r?$i:zi)&&(m&&Wt(t),g%u!==0?(b=Xt(e,{startingIndex:g,decrement:!0,disabledIndices:c}),o&&uc(b,u,R)&&(b=Xt(e,{startingIndex:g+(u-g%u),decrement:!0,disabledIndices:c}))):o&&(b=Xt(e,{startingIndex:g+(u-g%u),decrement:!0,disabledIndices:c})),uc(b,u,R)&&(b=g));const T=Ca(h/u)===R;cl(e,b)&&(o&&T?b=t.key===(r?$i:zi)?h:Xt(e,{startingIndex:g-g%u-1,disabledIndices:c}):b=g)}return b}function oA(e,t,s){const o=[];let r=0;return e.forEach(({width:u,height:c},f)=>{let h=!1;for(s&&(r=0);!h;){const g=[];for(let m=0;m<u;m+=1)for(let b=0;b<c;b+=1)g.push(r+m+b*t);r%t+u<=t&&g.every(m=>o[m]==null)?(g.forEach(m=>{o[m]=f}),h=!0):r+=1}}),[...o]}function aA(e,t,s,o,r){if(e===-1)return-1;const u=s.indexOf(e),c=t[e];switch(r){case"tl":return u;case"tr":return c?u+c.width-1:u;case"bl":return c?u+(c.height-1)*o:u;case"br":return s.lastIndexOf(e);default:return-1}}function rA(e,t){return t.flatMap((s,o)=>e.includes(s)?[o]:[])}function fl(e,t,s){if(typeof s=="function")return s(t);if(s)return s.includes(t);const o=e.current[t];return o?o.hasAttribute("disabled")||o.getAttribute("aria-disabled")==="true":!1}var lA=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],of=lA.join(","),pk=typeof Element>"u",ja=pk?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,af=!pk&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},vl=function(t,s){var o;s===void 0&&(s=!0);var r=t==null||(o=t.getAttribute)===null||o===void 0?void 0:o.call(t,"inert"),u=r===""||r==="true",c=u||s&&t&&vl(t.parentNode);return c},uA=function(t){var s,o=t==null||(s=t.getAttribute)===null||s===void 0?void 0:s.call(t,"contenteditable");return o===""||o==="true"},mk=function(t,s,o){if(vl(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(of));return s&&ja.call(t,of)&&r.unshift(t),r=r.filter(o),r},rf=function(t,s,o){for(var r=[],u=Array.from(t);u.length;){var c=u.shift();if(!vl(c,!1))if(c.tagName==="SLOT"){var f=c.assignedElements(),h=f.length?f:c.children,g=rf(h,!0,o);o.flatten?r.push.apply(r,g):r.push({scopeParent:c,candidates:g})}else{var m=ja.call(c,of);m&&o.filter(c)&&(s||!t.includes(c))&&r.push(c);var b=c.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(c),y=!vl(b,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(b&&y){var _=rf(b===!0?c.children:b.children,!0,o);o.flatten?r.push.apply(r,_):r.push({scopeParent:c,candidates:_})}else u.unshift.apply(u,c.children)}}return r},bk=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},yk=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||uA(t))&&!bk(t)?0:t.tabIndex},cA=function(t,s){var o=yk(t);return o<0&&s&&!bk(t)?0:o},fA=function(t,s){return t.tabIndex===s.tabIndex?t.documentOrder-s.documentOrder:t.tabIndex-s.tabIndex},vk=function(t){return t.tagName==="INPUT"},dA=function(t){return vk(t)&&t.type==="hidden"},hA=function(t){var s=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(o){return o.tagName==="SUMMARY"});return s},gA=function(t,s){for(var o=0;o<t.length;o++)if(t[o].checked&&t[o].form===s)return t[o]},pA=function(t){if(!t.name)return!0;var s=t.form||af(t),o=function(f){return s.querySelectorAll('input[type="radio"][name="'+f+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=o(window.CSS.escape(t.name));else try{r=o(t.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var u=gA(r,t.form);return!u||u===t},mA=function(t){return vk(t)&&t.type==="radio"},bA=function(t){return mA(t)&&!pA(t)},yA=function(t){var s,o=t&&af(t),r=(s=o)===null||s===void 0?void 0:s.host,u=!1;if(o&&o!==t){var c,f,h;for(u=!!((c=r)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(r)||t!=null&&(h=t.ownerDocument)!==null&&h!==void 0&&h.contains(t));!u&&r;){var g,m,b;o=af(r),r=(g=o)===null||g===void 0?void 0:g.host,u=!!((m=r)!==null&&m!==void 0&&(b=m.ownerDocument)!==null&&b!==void 0&&b.contains(r))}}return u},zv=function(t){var s=t.getBoundingClientRect(),o=s.width,r=s.height;return o===0&&r===0},vA=function(t,s){var o=s.displayCheck,r=s.getShadowRoot;if(o==="full-native"&&"checkVisibility"in t){var u=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!u}if(getComputedStyle(t).visibility==="hidden")return!0;var c=ja.call(t,"details>summary:first-of-type"),f=c?t.parentElement:t;if(ja.call(f,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof r=="function"){for(var h=t;t;){var g=t.parentElement,m=af(t);if(g&&!g.shadowRoot&&r(g)===!0)return zv(t);t.assignedSlot?t=t.assignedSlot:!g&&m!==t.ownerDocument?t=m.host:t=g}t=h}if(yA(t))return!t.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return zv(t);return!1},_A=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var s=t.parentElement;s;){if(s.tagName==="FIELDSET"&&s.disabled){for(var o=0;o<s.children.length;o++){var r=s.children.item(o);if(r.tagName==="LEGEND")return ja.call(s,"fieldset[disabled] *")?!0:!r.contains(t)}return!0}s=s.parentElement}return!1},op=function(t,s){return!(s.disabled||vl(s)||dA(s)||vA(s,t)||hA(s)||_A(s))},ap=function(t,s){return!(bA(s)||yk(s)<0||!op(t,s))},kA=function(t){var s=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(s)||s>=0)},_k=function(t){var s=[],o=[];return t.forEach(function(r,u){var c=!!r.scopeParent,f=c?r.scopeParent:r,h=cA(f,c),g=c?_k(r.candidates):f;h===0?c?s.push.apply(s,g):s.push(f):o.push({documentOrder:u,tabIndex:h,item:r,isScope:c,content:g})}),o.sort(fA).reduce(function(r,u){return u.isScope?r.push.apply(r,u.content):r.push(u.content),r},[]).concat(s)},Pl=function(t,s){s=s||{};var o;return s.getShadowRoot?o=rf([t],s.includeContainer,{filter:ap.bind(null,s),flatten:!1,getShadowRoot:s.getShadowRoot,shadowRootFilter:kA}):o=mk(t,s.includeContainer,ap.bind(null,s)),_k(o)},SA=function(t,s){s=s||{};var o;return s.getShadowRoot?o=rf([t],s.includeContainer,{filter:op.bind(null,s),flatten:!0,getShadowRoot:s.getShadowRoot}):o=mk(t,s.includeContainer,op.bind(null,s)),o},kk=function(t,s){if(s=s||{},!t)throw new Error("No node provided");return ja.call(t,of)===!1?!1:ap(s,t)};const Ha=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Sk(e,t){const s=Pl(e,Ha()),o=s.length;if(o===0)return;const r=bs(St(e)),u=s.indexOf(r),c=u===-1?t===1?0:o-1:u+t;return s[c]}function ym(e){return Sk(St(e).body,1)||e}function Ck(e){return Sk(St(e).body,-1)||e}function Ek(e,t){if(!e)return null;const s=Pl(St(e).body,Ha()),o=s.length;if(o===0)return null;const r=s.indexOf(e);if(r===-1)return null;const u=(r+t+o)%o;return s[u]}function CA(e){return Ek(e,1)}function EA(e){return Ek(e,-1)}function xa(e,t){const s=t||e.currentTarget,o=e.relatedTarget;return!o||!Ye(s,o)}function RA(e){Pl(e,Ha()).forEach(s=>{s.dataset.tabindex=s.getAttribute("tabindex")||"",s.setAttribute("tabindex","-1")})}function $v(e){e.querySelectorAll("[data-tabindex]").forEach(s=>{const o=s.dataset.tabindex;delete s.dataset.tabindex,o?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")})}const Rk="ArrowUp",xk="ArrowDown",Tk="ArrowLeft",wk="ArrowRight",Ok="Home",Ak="End",xA=new Set([Tk,wk]),TA=new Set([Rk,xk]),wA=new Set([...xA,...TA]);[...wA];const OA=new Set([Rk,xk,Tk,wk,Ok,Ak]);function Gt(e){const t=es(AA,e).current;return t.next=e,Pe(t.effect),t}function AA(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Mk(e){const{enabled:t=!0,open:s,ref:o,onComplete:r}=e,u=Gt(s),c=we(r),f=_O(o,s);E.useEffect(()=>{t&&f(()=>{s===u.current&&c()})},[t,s,c,f,u])}function Qs(e){return e?.ownerDocument||document}const Qr=0;class To{static create(){return new To}currentId=Qr;start(t,s){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Qr,s()},t)}isStarted(){return this.currentId!==Qr}clear=()=>{this.currentId!==Qr&&(clearTimeout(this.currentId),this.currentId=Qr)};disposeEffect=()=>this.clear}function Nn(){const e=es(To.create).current;return tk(e.disposeEffect),e}let jv={},Uv={},Iv="";function MA(e){if(typeof document>"u")return!1;const t=Qs(e);return Pt(t).innerWidth-t.documentElement.clientWidth>0}function DA(e){const t=Qs(e),s=t.documentElement,o=t.body,r=Lo(s)?s:o,u=r.style.overflow;return r.style.overflow="hidden",()=>{r.style.overflow=u}}function LA(e){const t=Qs(e),s=t.documentElement,o=t.body,r=Pt(s);let u=0,c=0;const f=ms.create(),h=typeof CSS<"u"&&CSS.supports?.("scrollbar-gutter","stable");if(jO&&(r.visualViewport?.scale??1)!==1)return()=>{};function g(){const y=r.getComputedStyle(s),_=r.getComputedStyle(o),C=(y.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";u=s.scrollTop,c=s.scrollLeft,jv={scrollbarGutter:s.style.scrollbarGutter,overflowY:s.style.overflowY,overflowX:s.style.overflowX},Iv=s.style.scrollBehavior,Uv={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};const R=s.scrollHeight>s.clientHeight,T=s.scrollWidth>s.clientWidth,A=y.overflowY==="scroll"||_.overflowY==="scroll",w=y.overflowX==="scroll"||_.overflowX==="scroll",x=Math.max(0,r.innerWidth-s.clientWidth),M=Math.max(0,r.innerHeight-s.clientHeight),L=parseFloat(_.marginTop)+parseFloat(_.marginBottom),P=parseFloat(_.marginLeft)+parseFloat(_.marginRight),V=Lo(s)?s:o;if(h){s.style.scrollbarGutter=C,V.style.overflowY="hidden",V.style.overflowX="hidden";return}Object.assign(s.style,{scrollbarGutter:C,overflowY:"hidden",overflowX:"hidden"}),(R||A)&&(s.style.overflowY="scroll"),(T||w)&&(s.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:L||M?`calc(100dvh - ${L+M}px)`:"100dvh",width:P||x?`calc(100vw - ${P+x}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),o.scrollTop=u,o.scrollLeft=c,s.setAttribute("data-base-ui-scroll-locked",""),s.style.scrollBehavior="unset"}function m(){Object.assign(s.style,jv),Object.assign(o.style,Uv),h||(s.scrollTop=u,s.scrollLeft=c,s.removeAttribute("data-base-ui-scroll-locked"),s.style.scrollBehavior=Iv)}function b(){m(),f.request(g)}return g(),r.addEventListener("resize",b),()=>{f.cancel(),m(),typeof r.removeEventListener=="function"&&r.removeEventListener("resize",b)}}class PA{lockCount=0;restore=null;timeoutLock=To.create();timeoutUnlock=To.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const o=Qs(t).documentElement,r=Pt(o).getComputedStyle(o).overflowY;if(r==="hidden"||r==="clip"){this.restore=Z_;return}const u=UO||!MA(t);this.restore=u?DA(t):LA(t)}}const NA=new PA;function zA(e=!0,t=null){Pe(()=>{if(e)return NA.acquire(t)},[e,t])}function Dk(){const e=new Map;return{emit(t,s){e.get(t)?.forEach(o=>o(s))},on(t,s){e.has(t)||e.set(t,new Set),e.get(t).add(s)},off(t,s){e.get(t)?.delete(s)}}}class vm{nodesRef={current:[]};events=Dk();addNode(t){this.nodesRef.current.push(t)}removeNode(t){const s=this.nodesRef.current.findIndex(o=>o===t);s!==-1&&this.nodesRef.current.splice(s,1)}}const Lk=E.createContext(null),Pk=E.createContext(null),Zs=()=>E.useContext(Lk)?.id||null,qi=e=>{const t=E.useContext(Pk);return e??t};function Nk(e){const t=Do(),s=qi(e),o=Zs();return Pe(()=>{if(!t)return;const r={id:t,parentId:o};return s?.addNode(r),()=>{s?.removeNode(r)}},[s,t,o]),t}function $A(e){const{children:t,id:s}=e,o=Zs();return Y.jsx(Lk.Provider,{value:E.useMemo(()=>({id:s,parentId:o}),[s,o]),children:t})}function jA(e){const{children:t,externalTree:s}=e,o=es(()=>s??new vm).current;return Y.jsx(Pk.Provider,{value:o,children:t})}function Ua(e){return`data-base-ui-${e}`}function mg(e,t,s){if(s&&!za(s))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o?.[t]}return e?.[t]}const zk={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1},Ia=E.forwardRef(function(t,s){const[o,r]=E.useState();Pe(()=>{ak&&r("button")},[]);const u={tabIndex:0,role:o};return Y.jsx("span",{...t,ref:s,style:zk,"aria-hidden":o?void 0:!0,...u,"data-base-ui-focus-guard":""})});let Vv=0;function Pc(e,t={}){const{preventScroll:s=!1,cancelPrevious:o=!0,sync:r=!1}=t;o&&cancelAnimationFrame(Vv);const u=()=>e?.focus({preventScroll:s});r?u():Vv=requestAnimationFrame(u)}const Ta={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Bv(e){return e==="inert"?Ta.inert:e==="aria-hidden"?Ta["aria-hidden"]:Ta.none}let cc=new WeakSet,fc={},bg=0;const $k=e=>e&&(e.host||$k(e.parentNode)),UA=(e,t)=>t.map(s=>{if(e.contains(s))return s;const o=$k(s);return e.contains(o)?o:null}).filter(s=>s!=null);function IA(e,t,s,o){const r="data-base-ui-inert",u=o?"inert":s?"aria-hidden":null,c=UA(t,e),f=new Set,h=new Set(c),g=[];fc[r]||(fc[r]=new WeakMap);const m=fc[r];c.forEach(b),y(t),f.clear();function b(_){!_||f.has(_)||(f.add(_),_.parentNode&&b(_.parentNode))}function y(_){!_||h.has(_)||[].forEach.call(_.children,k=>{if(Vi(k)!=="script")if(f.has(k))y(k);else{const S=u?k.getAttribute(u):null,C=S!==null&&S!=="false",R=Bv(u),T=(R.get(k)||0)+1,A=(m.get(k)||0)+1;R.set(k,T),m.set(k,A),g.push(k),T===1&&C&&cc.add(k),A===1&&k.setAttribute(r,""),!C&&u&&k.setAttribute(u,u==="inert"?"":"true")}})}return bg+=1,()=>{g.forEach(_=>{const k=Bv(u),C=(k.get(_)||0)-1,R=(m.get(_)||0)-1;k.set(_,C),m.set(_,R),C||(!cc.has(_)&&u&&_.removeAttribute(u),cc.delete(_)),R||_.removeAttribute(r)}),bg-=1,bg||(Ta.inert=new WeakMap,Ta["aria-hidden"]=new WeakMap,Ta.none=new WeakMap,cc=new WeakSet,fc={})}}function VA(e,t=!1,s=!1){const o=St(e[0]).body;return IA(e.concat(Array.from(o.querySelectorAll("[aria-live]"))),o,t,s)}const jk=E.createContext(null),Uk=()=>E.useContext(jk),BA=Ua("portal");function qA(e={}){const{ref:t,container:s,componentProps:o=Lt,elementProps:r,elementState:u}=e,c=Do(),h=Uk()?.portalNode,[g,m]=E.useState(null),[b,y]=E.useState(null),_=E.useRef(null);Pe(()=>{if(s===null){_.current&&(_.current=null,y(null),m(null));return}if(c==null)return;const C=(s&&(um(s)?s:s.current))??h??document.body;if(C==null){_.current&&(_.current=null,y(null),m(null));return}_.current!==C&&(_.current=C,y(null),m(C))},[s,h,c]);const k=qa("div",o,{ref:[t,y],state:u,props:[{id:c,[BA]:""},r]});return{portalNode:b,portalSubtree:g&&k?Es.createPortal(k,g):null}}const HA=E.forwardRef(function(t,s){const{children:o,container:r,className:u,render:c,renderGuards:f,...h}=t,{portalNode:g,portalSubtree:m}=qA({container:r,ref:s,componentProps:t,elementProps:h}),b=E.useRef(null),y=E.useRef(null),_=E.useRef(null),k=E.useRef(null),[S,C]=E.useState(null),R=S?.modal,T=S?.open,A=typeof f=="boolean"?f:!!S&&!S.modal&&S.open&&!!g;E.useEffect(()=>{if(!g||R)return;function x(M){g&&xa(M)&&(M.type==="focusin"?$v:RA)(g)}return g.addEventListener("focusin",x,!0),g.addEventListener("focusout",x,!0),()=>{g.removeEventListener("focusin",x,!0),g.removeEventListener("focusout",x,!0)}},[g,R]),E.useEffect(()=>{!g||T||$v(g)},[T,g]);const w=E.useMemo(()=>({beforeOutsideRef:b,afterOutsideRef:y,beforeInsideRef:_,afterInsideRef:k,portalNode:g,setFocusManagerState:C}),[g]);return Y.jsxs(E.Fragment,{children:[m,Y.jsxs(jk.Provider,{value:w,children:[A&&g&&Y.jsx(Ia,{"data-type":"outside",ref:b,onFocus:x=>{if(xa(x,g))_.current?.focus();else{const M=S?S.domReference:null;Ck(M)?.focus()}}}),A&&g&&Y.jsx("span",{"aria-owns":g.id,style:uO}),g&&Es.createPortal(o,g),A&&g&&Y.jsx(Ia,{"data-type":"outside",ref:y,onFocus:x=>{if(xa(x,g))k.current?.focus();else{const M=S?S.domReference:null;ym(M)?.focus(),S?.closeOnFocusOut&&S?.onOpenChange(!1,st(Na,x.nativeEvent))}}})]})]})});function FA(e,t){const s=Pt(e.target);return e instanceof s.KeyboardEvent?"keyboard":e instanceof s.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof s.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const qv=20;let Di=[];function _m(){Di=Di.filter(e=>e.isConnected)}function KA(e){_m(),e&&Vi(e)!=="body"&&(Di.push(e),Di.length>qv&&(Di=Di.slice(-qv)))}function yg(){return _m(),Di[Di.length-1]}function GA(e){if(!e)return null;const t=Ha();return kk(e,t)?e:Pl(e,t)[0]||e}function YA(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():Pn(e).display!=="none"}function Hv(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const s=Ha(),r=SA(e,s).filter(c=>{const f=c.getAttribute("data-tabindex")||"";return kk(c,s)||c.hasAttribute("data-tabindex")&&!f.startsWith("-")}),u=e.getAttribute("tabindex");t.current.includes("floating")||r.length===0?u!=="0"&&e.setAttribute("tabindex","0"):(u!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function QA(e){const{context:t,children:s,disabled:o=!1,order:r=["content"],initialFocus:u=!0,returnFocus:c=!0,restoreFocus:f=!1,modal:h=!0,closeOnFocusOut:g=!0,openInteractionType:m="",getInsideElements:b=()=>[],nextFocusableElement:y,previousFocusableElement:_,beforeContentFocusGuardRef:k,externalTree:S}=e,C="rootStore"in t?t.rootStore:t,R=C.useState("open"),T=C.useState("domReferenceElement"),A=C.useState("floatingElement"),{events:w,dataRef:x}=C.context,M=we(()=>x.current.floatingContext?.nodeId),L=we(b),P=u===!1,V=np(T)&&P,Z=Gt(r),z=Gt(u),Q=Gt(c),B=Gt(m),q=qi(S),J=Uk(),D=E.useRef(null),I=E.useRef(null),U=E.useRef(!1),oe=E.useRef(!1),ae=E.useRef(!1),N=E.useRef(-1),K=E.useRef(""),X=E.useRef(""),re=Nn(),fe=Nn(),le=Rf(),ue=J!=null,de=ef(A),ye=we((pe=de)=>pe?Pl(pe,Ha()):[]),xe=we(pe=>{const ge=ye(pe);return Z.current.map(()=>ge).filter(Boolean).flat()});E.useEffect(()=>{if(o||!h)return;function pe(Oe){Oe.key==="Tab"&&Ye(de,bs(St(de)))&&ye().length===0&&!V&&Wt(Oe)}const ge=St(de);return ge.addEventListener("keydown",pe),()=>{ge.removeEventListener("keydown",pe)}},[o,T,de,h,Z,V,ye,xe]),E.useEffect(()=>{if(o||!A)return;function pe(ge){const Oe=_n(ge),De=ye().indexOf(Oe);De!==-1&&(N.current=De)}return A.addEventListener("focusin",pe),()=>{A.removeEventListener("focusin",pe)}},[o,A,ye]),E.useEffect(()=>{if(o||!R)return;const pe=St(de);function ge(){ae.current=!1}function Oe(De){const be=_n(De),Me=Ye(A,be)||Ye(T,be)||Ye(J?.portalNode,be);ae.current=!Me,X.current=De.pointerType||"keyboard"}function Ce(){X.current="keyboard"}return pe.addEventListener("pointerdown",Oe,!0),pe.addEventListener("pointerup",ge,!0),pe.addEventListener("pointercancel",ge,!0),pe.addEventListener("keydown",Ce,!0),()=>{pe.removeEventListener("pointerdown",Oe,!0),pe.removeEventListener("pointerup",ge,!0),pe.removeEventListener("pointercancel",ge,!0),pe.removeEventListener("keydown",Ce,!0)}},[o,A,T,de,R,J]),E.useEffect(()=>{if(o||!g)return;function pe(){oe.current=!0,fe.start(0,()=>{oe.current=!1})}function ge(be){const Me=be.relatedTarget,ce=be.currentTarget,he=_n(be);queueMicrotask(()=>{const me=M(),je=C.context.triggerElements,nt=!(Ye(T,Me)||Ye(A,Me)||Ye(Me,A)||Ye(J?.portalNode,Me)||Me!=null&&je.hasElement(Me)||je.hasMatchingElement(Ve=>Ye(Ve,Me))||Me?.hasAttribute(Ua("focus-guard"))||q&&(So(q.nodesRef.current,me).find(Ve=>Ye(Ve.context?.elements.floating,Me)||Ye(Ve.context?.elements.domReference,Me))||Dv(q.nodesRef.current,me).find(Ve=>[Ve.context?.elements.floating,ef(Ve.context?.elements.floating)].includes(Me)||Ve.context?.elements.domReference===Me)));if(ce===T&&de&&Hv(de,Z),f&&ce!==T&&!YA(he)&&bs(St(de))===St(de).body){if(yt(de)&&(de.focus(),f==="popup")){le.request(()=>{de.focus()});return}const Ve=N.current,At=ye(),Nt=At[Ve]||At[At.length-1]||de;yt(Nt)&&Nt.focus()}if(x.current.insideReactTree){x.current.insideReactTree=!1;return}(V||!h)&&Me&&nt&&!oe.current&&(V||Me!==yg())&&(U.current=!0,C.setOpen(!1,st(Na,be)))})}function Oe(){ae.current||(x.current.insideReactTree=!0,re.start(0,()=>{x.current.insideReactTree=!1}))}const Ce=yt(T)?T:null,De=[];if(!(!A&&!Ce))return Ce&&(Ce.addEventListener("focusout",ge),Ce.addEventListener("pointerdown",pe),De.push(()=>{Ce.removeEventListener("focusout",ge),Ce.removeEventListener("pointerdown",pe)})),A&&(A.addEventListener("focusout",ge),J&&(A.addEventListener("focusout",Oe,!0),De.push(()=>{A.removeEventListener("focusout",Oe,!0)})),De.push(()=>{A.removeEventListener("focusout",ge)})),()=>{De.forEach(be=>{be()})}},[o,T,A,de,h,q,J,C,g,f,ye,V,M,Z,x,re,fe,le]);const ne=E.useRef(null),ke=E.useRef(null),ve=Pa(ne,k,J?.beforeInsideRef),Ie=Pa(ke,J?.afterInsideRef);E.useEffect(()=>{if(o||!A||!R)return;const pe=Array.from(J?.portalNode?.querySelectorAll(`[${Ua("portal")}]`)||[]),Oe=(q?Dv(q.nodesRef.current,M()):[]).find(be=>np(be.context?.elements.domReference||null))?.context?.elements.domReference,Ce=[A,Oe,...pe,...L(),D.current,I.current,ne.current,ke.current,J?.beforeOutsideRef.current,J?.afterOutsideRef.current,co(_),co(y),V?T:null].filter(be=>be!=null),De=VA(Ce,h||V);return()=>{De()}},[R,o,T,A,h,Z,J,V,q,M,L,y,_]),Pe(()=>{if(!R||o||!yt(de))return;const pe=St(de),ge=bs(pe);queueMicrotask(()=>{const Oe=xe(de),Ce=z.current,De=typeof Ce=="function"?Ce(B.current||""):Ce;if(De===void 0||De===!1)return;let be;De===!0||De===null?be=Oe[0]||de:be=co(De),be=be||Oe[0]||de,!Ye(de,ge)&&Pc(be,{preventScroll:be===de})})},[o,R,de,P,xe,z,B]),Pe(()=>{if(o||!de)return;const pe=St(de),ge=bs(pe);KA(ge);function Oe(be){if(be.open||(K.current=FA(be.nativeEvent,X.current)),be.reason===Ln&&be.nativeEvent.type==="mouseleave"&&(U.current=!0),be.reason===rm)if(be.nested)U.current=!1;else if(fk(be.nativeEvent)||dk(be.nativeEvent))U.current=!1;else{let Me=!1;document.createElement("div").focus({get preventScroll(){return Me=!0,!1}}),Me?U.current=!1:U.current=!0}}w.on("openchange",Oe);const Ce=pe.createElement("span");Ce.setAttribute("tabindex","-1"),Ce.setAttribute("aria-hidden","true"),Object.assign(Ce.style,zk),ue&&T&&T.insertAdjacentElement("afterend",Ce);function De(){const be=Q.current;let Me=typeof be=="function"?be(K.current):be;if(Me===void 0||Me===!1)return null;if(Me===null&&(Me=!0),typeof Me=="boolean"){const he=T||yg();return he&&he.isConnected?he:Ce}const ce=T||yg()||Ce;return co(Me)||ce}return()=>{w.off("openchange",Oe);const be=bs(pe),Me=Ye(A,be)||q&&So(q.nodesRef.current,M(),!1).some(he=>Ye(he.context?.elements.floating,be)),ce=De();queueMicrotask(()=>{const he=GA(ce),me=typeof Q.current!="boolean";Q.current&&!U.current&&yt(he)&&(!(!me&&he!==be&&be!==pe.body)||Me)&&he.focus({preventScroll:!0}),Ce.remove()})}},[o,A,de,Q,x,w,q,ue,T,M]),E.useEffect(()=>{queueMicrotask(()=>{U.current=!1})},[o]),E.useEffect(()=>{if(o||!R)return;function pe(Oe){_n(Oe)?.closest(`[${aO}]`)&&(oe.current=!0)}const ge=St(de);return ge.addEventListener("pointerdown",pe,!0),()=>{ge.removeEventListener("pointerdown",pe,!0)}},[o,R,de]),Pe(()=>{if(!o&&J)return J.setFocusManagerState({modal:h,closeOnFocusOut:g,open:R,onOpenChange:C.setOpen,domReference:T}),()=>{J.setFocusManagerState(null)}},[o,J,h,R,C,g,T]),Pe(()=>{if(!(o||!de))return Hv(de,Z),()=>{queueMicrotask(_m)}},[o,de,Z]);const Ee=!o&&(h?!V:!0)&&(ue||h);return Y.jsxs(E.Fragment,{children:[Ee&&Y.jsx(Ia,{"data-type":"inside",ref:ve,onFocus:pe=>{if(h){const ge=xe();Pc(ge[ge.length-1])}else J?.portalNode&&(U.current=!1,xa(pe,J.portalNode)?ym(T)?.focus():co(_??J.beforeOutsideRef)?.focus())}}),s,Ee&&Y.jsx(Ia,{"data-type":"inside",ref:Ie,onFocus:pe=>{h?Pc(xe()[0]):J?.portalNode&&(g&&(U.current=!0),xa(pe,J.portalNode)?Ck(T)?.focus():co(y??J.afterOutsideRef)?.focus())}})]})}function XA(e,t={}){const s="rootStore"in e?e.rootStore:e,o=s.context.dataRef,{enabled:r=!0,event:u="click",toggle:c=!0,ignoreMouse:f=!1,stickIfOpen:h=!0,touchOpenDelay:g=0}=t,m=E.useRef(void 0),b=Rf(),y=Nn(),_=E.useMemo(()=>({onPointerDown(k){m.current=k.pointerType},onMouseDown(k){const S=m.current,C=k.nativeEvent,R=s.select("open");if(k.button!==0||u==="click"||za(S,!0)&&f)return;const T=o.current.openEvent,A=T?.type,w=s.select("domReferenceElement")!==k.currentTarget,x=R&&w||!(R&&c&&(!(T&&h)||A==="click"||A==="mousedown"));if(gm(C.target)){const L=st(ko,C,C.target);x&&S==="touch"&&g>0?y.start(g,()=>{s.setOpen(!0,L)}):s.setOpen(x,L);return}const M=k.currentTarget;b.request(()=>{const L=st(ko,C,M);x&&S==="touch"&&g>0?y.start(g,()=>{s.setOpen(!0,L)}):s.setOpen(x,L)})},onClick(k){if(u==="mousedown-only")return;const S=m.current;if(u==="mousedown"&&S){m.current=void 0;return}if(za(S,!0)&&f)return;const C=s.select("open"),R=o.current.openEvent,T=s.select("domReferenceElement")!==k.currentTarget,A=C&&T||!(C&&c&&(!(R&&h)||hk(R))),w=st(ko,k.nativeEvent,k.currentTarget);A&&S==="touch"&&g>0?y.start(g,()=>{s.setOpen(!0,w)}):s.setOpen(A,w)},onKeyDown(){m.current=void 0}}),[o,u,f,s,h,c,b,y,g]);return E.useMemo(()=>r?{reference:_}:Lt,[r,_])}function Fv(e,t,s){let{reference:o,floating:r}=e;const u=Wn(t),c=bm(t),f=mm(c),h=kn(t),g=u==="y",m=o.x+o.width/2-r.width/2,b=o.y+o.height/2-r.height/2,y=o[f]/2-r[f]/2;let _;switch(h){case"top":_={x:m,y:o.y-r.height};break;case"bottom":_={x:m,y:o.y+o.height};break;case"right":_={x:o.x+o.width,y:b};break;case"left":_={x:o.x-r.width,y:b};break;default:_={x:o.x,y:o.y}}switch(Bi(t)){case"start":_[c]-=y*(s&&g?-1:1);break;case"end":_[c]+=y*(s&&g?-1:1);break}return _}const WA=async(e,t,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:u=[],platform:c}=s,f=u.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(t));let g=await c.getElementRects({reference:e,floating:t,strategy:r}),{x:m,y:b}=Fv(g,o,h),y=o,_={},k=0;for(let S=0;S<f.length;S++){const{name:C,fn:R}=f[S],{x:T,y:A,data:w,reset:x}=await R({x:m,y:b,initialPlacement:o,placement:y,strategy:r,middlewareData:_,rects:g,platform:c,elements:{reference:e,floating:t}});m=T??m,b=A??b,_={..._,[C]:{..._[C],...w}},x&&k<=50&&(k++,typeof x=="object"&&(x.placement&&(y=x.placement),x.rects&&(g=x.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:r}):x.rects),{x:m,y:b}=Fv(g,y,h)),S=-1)}return{x:m,y:b,placement:y,strategy:r,middlewareData:_}};async function _l(e,t){var s;t===void 0&&(t={});const{x:o,y:r,platform:u,rects:c,elements:f,strategy:h}=e,{boundary:g="clippingAncestors",rootBoundary:m="viewport",elementContext:b="floating",altBoundary:y=!1,padding:_=0}=Ys(t,e),k=gk(_),C=f[y?b==="floating"?"reference":"floating":b],R=sf(await u.getClippingRect({element:(s=await(u.isElement==null?void 0:u.isElement(C)))==null||s?C:C.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:g,rootBoundary:m,strategy:h})),T=b==="floating"?{x:o,y:r,width:c.floating.width,height:c.floating.height}:c.reference,A=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),w=await(u.isElement==null?void 0:u.isElement(A))?await(u.getScale==null?void 0:u.getScale(A))||{x:1,y:1}:{x:1,y:1},x=sf(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:T,offsetParent:A,strategy:h}):T);return{top:(R.top-x.top+k.top)/w.y,bottom:(x.bottom-R.bottom+k.bottom)/w.y,left:(R.left-x.left+k.left)/w.x,right:(x.right-R.right+k.right)/w.x}}const ZA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var s,o;const{placement:r,middlewareData:u,rects:c,initialPlacement:f,platform:h,elements:g}=t,{mainAxis:m=!0,crossAxis:b=!0,fallbackPlacements:y,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,...C}=Ys(e,t);if((s=u.arrow)!=null&&s.alignmentOffset)return{};const R=kn(r),T=Wn(f),A=kn(f)===f,w=await(h.isRTL==null?void 0:h.isRTL(g.floating)),x=y||(A||!S?[nf(f)]:ZO(f)),M=k!=="none";!y&&M&&x.push(...nA(f,S,k,w));const L=[f,...x],P=await _l(t,C),V=[];let Z=((o=u.flip)==null?void 0:o.overflows)||[];if(m&&V.push(P[R]),b){const q=WO(r,c,w);V.push(P[q[0]],P[q[1]])}if(Z=[...Z,{placement:r,overflows:V}],!V.every(q=>q<=0)){var z,Q;const q=(((z=u.flip)==null?void 0:z.index)||0)+1,J=L[q];if(J&&(!(b==="alignment"?T!==Wn(J):!1)||Z.every(U=>Wn(U.placement)===T?U.overflows[0]>0:!0)))return{data:{index:q,overflows:Z},reset:{placement:J}};let D=(Q=Z.filter(I=>I.overflows[0]<=0).sort((I,U)=>I.overflows[1]-U.overflows[1])[0])==null?void 0:Q.placement;if(!D)switch(_){case"bestFit":{var B;const I=(B=Z.filter(U=>{if(M){const oe=Wn(U.placement);return oe===T||oe==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(oe=>oe>0).reduce((oe,ae)=>oe+ae,0)]).sort((U,oe)=>U[1]-oe[1])[0])==null?void 0:B[0];I&&(D=I);break}case"initialPlacement":D=f;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function Kv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gv(e){return GO.some(t=>e[t]>=0)}const JA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:s}=t,{strategy:o="referenceHidden",...r}=Ys(e,t);switch(o){case"referenceHidden":{const u=await _l(t,{...r,elementContext:"reference"}),c=Kv(u,s.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Gv(c)}}}case"escaped":{const u=await _l(t,{...r,altBoundary:!0}),c=Kv(u,s.floating);return{data:{escapedOffsets:c,escaped:Gv(c)}}}default:return{}}}}},Ik=new Set(["left","top"]);async function eM(e,t){const{placement:s,platform:o,elements:r}=e,u=await(o.isRTL==null?void 0:o.isRTL(r.floating)),c=kn(s),f=Bi(s),h=Wn(s)==="y",g=Ik.has(c)?-1:1,m=u&&h?-1:1,b=Ys(t,e);let{mainAxis:y,crossAxis:_,alignmentAxis:k}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return f&&typeof k=="number"&&(_=f==="end"?k*-1:k),h?{x:_*m,y:y*g}:{x:y*g,y:_*m}}const tM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var s,o;const{x:r,y:u,placement:c,middlewareData:f}=t,h=await eM(t,e);return c===((s=f.offset)==null?void 0:s.placement)&&(o=f.arrow)!=null&&o.alignmentOffset?{}:{x:r+h.x,y:u+h.y,data:{...h,placement:c}}}}},nM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:s,y:o,placement:r}=t,{mainAxis:u=!0,crossAxis:c=!1,limiter:f={fn:C=>{let{x:R,y:T}=C;return{x:R,y:T}}},...h}=Ys(e,t),g={x:s,y:o},m=await _l(t,h),b=Wn(kn(r)),y=pm(b);let _=g[y],k=g[b];if(u){const C=y==="y"?"top":"left",R=y==="y"?"bottom":"right",T=_+m[C],A=_-m[R];_=sp(T,_,A)}if(c){const C=b==="y"?"top":"left",R=b==="y"?"bottom":"right",T=k+m[C],A=k-m[R];k=sp(T,k,A)}const S=f.fn({...t,[y]:_,[b]:k});return{...S,data:{x:S.x-s,y:S.y-o,enabled:{[y]:u,[b]:c}}}}}},sM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:s,y:o,placement:r,rects:u,middlewareData:c}=t,{offset:f=0,mainAxis:h=!0,crossAxis:g=!0}=Ys(e,t),m={x:s,y:o},b=Wn(r),y=pm(b);let _=m[y],k=m[b];const S=Ys(f,t),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const A=y==="y"?"height":"width",w=u.reference[y]-u.floating[A]+C.mainAxis,x=u.reference[y]+u.reference[A]-C.mainAxis;_<w?_=w:_>x&&(_=x)}if(g){var R,T;const A=y==="y"?"width":"height",w=Ik.has(kn(r)),x=u.reference[b]-u.floating[A]+(w&&((R=c.offset)==null?void 0:R[b])||0)+(w?0:C.crossAxis),M=u.reference[b]+u.reference[A]+(w?0:((T=c.offset)==null?void 0:T[b])||0)-(w?C.crossAxis:0);k<x?k=x:k>M&&(k=M)}return{[y]:_,[b]:k}}}},iM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var s,o;const{placement:r,rects:u,platform:c,elements:f}=t,{apply:h=()=>{},...g}=Ys(e,t),m=await _l(t,g),b=kn(r),y=Bi(r),_=Wn(r)==="y",{width:k,height:S}=u.floating;let C,R;b==="top"||b==="bottom"?(C=b,R=y===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(R=b,C=y==="end"?"top":"bottom");const T=S-m.top-m.bottom,A=k-m.left-m.right,w=$a(S-m[C],T),x=$a(k-m[R],A),M=!t.middlewareData.shift;let L=w,P=x;if((s=t.middlewareData.shift)!=null&&s.enabled.x&&(P=A),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(L=T),M&&!y){const Z=Mn(m.left,0),z=Mn(m.right,0),Q=Mn(m.top,0),B=Mn(m.bottom,0);_?P=k-2*(Z!==0||z!==0?Z+z:Mn(m.left,m.right)):L=S-2*(Q!==0||B!==0?Q+B:Mn(m.top,m.bottom))}await h({...t,availableWidth:P,availableHeight:L});const V=await c.getDimensions(f.floating);return k!==V.width||S!==V.height?{reset:{rects:!0}}:{}}}};function Vk(e){const t=Pn(e);let s=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=yt(e),u=r?e.offsetWidth:s,c=r?e.offsetHeight:o,f=tf(s)!==u||tf(o)!==c;return f&&(s=u,o=c),{width:s,height:o,$:f}}function km(e){return at(e)?e:e.contextElement}function wa(e){const t=km(e);if(!yt(t))return ks(1);const s=t.getBoundingClientRect(),{width:o,height:r,$:u}=Vk(t);let c=(u?tf(s.width):s.width)/o,f=(u?tf(s.height):s.height)/r;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const oM=ks(0);function Bk(e){const t=Pt(e);return!wf()||!t.visualViewport?oM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aM(e,t,s){return t===void 0&&(t=!1),!s||t&&s!==Pt(e)?!1:t}function wo(e,t,s,o){t===void 0&&(t=!1),s===void 0&&(s=!1);const r=e.getBoundingClientRect(),u=km(e);let c=ks(1);t&&(o?at(o)&&(c=wa(o)):c=wa(e));const f=aM(u,s,o)?Bk(u):ks(0);let h=(r.left+f.x)/c.x,g=(r.top+f.y)/c.y,m=r.width/c.x,b=r.height/c.y;if(u){const y=Pt(u),_=o&&at(o)?Pt(o):o;let k=y,S=Jg(k);for(;S&&o&&_!==k;){const C=wa(S),R=S.getBoundingClientRect(),T=Pn(S),A=R.left+(S.clientLeft+parseFloat(T.paddingLeft))*C.x,w=R.top+(S.clientTop+parseFloat(T.paddingTop))*C.y;h*=C.x,g*=C.y,m*=C.x,b*=C.y,h+=A,g+=w,k=Pt(S),S=Jg(k)}}return sf({width:m,height:b,x:h,y:g})}function Af(e,t){const s=Of(e).scrollLeft;return t?t.left+s:wo(xs(e)).left+s}function qk(e,t){const s=e.getBoundingClientRect(),o=s.left+t.scrollLeft-Af(e,s),r=s.top+t.scrollTop;return{x:o,y:r}}function rM(e){let{elements:t,rect:s,offsetParent:o,strategy:r}=e;const u=r==="fixed",c=xs(o),f=t?Tf(t.floating):!1;if(o===c||f&&u)return s;let h={scrollLeft:0,scrollTop:0},g=ks(1);const m=ks(0),b=yt(o);if((b||!b&&!u)&&((Vi(o)!=="body"||Lo(c))&&(h=Of(o)),yt(o))){const _=wo(o);g=wa(o),m.x=_.x+o.clientLeft,m.y=_.y+o.clientTop}const y=c&&!b&&!u?qk(c,h):ks(0);return{width:s.width*g.x,height:s.height*g.y,x:s.x*g.x-h.scrollLeft*g.x+m.x+y.x,y:s.y*g.y-h.scrollTop*g.y+m.y+y.y}}function lM(e){return Array.from(e.getClientRects())}function uM(e){const t=xs(e),s=Of(e),o=e.ownerDocument.body,r=Mn(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),u=Mn(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-s.scrollLeft+Af(e);const f=-s.scrollTop;return Pn(o).direction==="rtl"&&(c+=Mn(t.clientWidth,o.clientWidth)-r),{width:r,height:u,x:c,y:f}}const Yv=25;function cM(e,t){const s=Pt(e),o=xs(e),r=s.visualViewport;let u=o.clientWidth,c=o.clientHeight,f=0,h=0;if(r){u=r.width,c=r.height;const m=wf();(!m||m&&t==="fixed")&&(f=r.offsetLeft,h=r.offsetTop)}const g=Af(o);if(g<=0){const m=o.ownerDocument,b=m.body,y=getComputedStyle(b),_=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,k=Math.abs(o.clientWidth-b.clientWidth-_);k<=Yv&&(u-=k)}else g<=Yv&&(u+=g);return{width:u,height:c,x:f,y:h}}const fM=new Set(["absolute","fixed"]);function dM(e,t){const s=wo(e,!0,t==="fixed"),o=s.top+e.clientTop,r=s.left+e.clientLeft,u=yt(e)?wa(e):ks(1),c=e.clientWidth*u.x,f=e.clientHeight*u.y,h=r*u.x,g=o*u.y;return{width:c,height:f,x:h,y:g}}function Qv(e,t,s){let o;if(t==="viewport")o=cM(e,s);else if(t==="document")o=uM(xs(e));else if(at(t))o=dM(t,s);else{const r=Bk(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return sf(o)}function Hk(e,t){const s=Rs(e);return s===t||!at(s)||_s(s)?!1:Pn(s).position==="fixed"||Hk(s,t)}function hM(e,t){const s=t.get(e);if(s)return s;let o=Ni(e,[],!1).filter(f=>at(f)&&Vi(f)!=="body"),r=null;const u=Pn(e).position==="fixed";let c=u?Rs(e):e;for(;at(c)&&!_s(c);){const f=Pn(c),h=cm(c);!h&&f.position==="fixed"&&(r=null),(u?!h&&!r:!h&&f.position==="static"&&!!r&&fM.has(r.position)||Lo(c)&&!h&&Hk(e,c))?o=o.filter(m=>m!==c):r=f,c=Rs(c)}return t.set(e,o),o}function gM(e){let{element:t,boundary:s,rootBoundary:o,strategy:r}=e;const c=[...s==="clippingAncestors"?Tf(t)?[]:hM(t,this._c):[].concat(s),o],f=c[0],h=c.reduce((g,m)=>{const b=Qv(t,m,r);return g.top=Mn(b.top,g.top),g.right=$a(b.right,g.right),g.bottom=$a(b.bottom,g.bottom),g.left=Mn(b.left,g.left),g},Qv(t,f,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function pM(e){const{width:t,height:s}=Vk(e);return{width:t,height:s}}function mM(e,t,s){const o=yt(t),r=xs(t),u=s==="fixed",c=wo(e,!0,u,t);let f={scrollLeft:0,scrollTop:0};const h=ks(0);function g(){h.x=Af(r)}if(o||!o&&!u)if((Vi(t)!=="body"||Lo(r))&&(f=Of(t)),o){const _=wo(t,!0,u,t);h.x=_.x+t.clientLeft,h.y=_.y+t.clientTop}else r&&g();u&&!o&&r&&g();const m=r&&!o&&!u?qk(r,f):ks(0),b=c.left+f.scrollLeft-h.x-m.x,y=c.top+f.scrollTop-h.y-m.y;return{x:b,y,width:c.width,height:c.height}}function vg(e){return Pn(e).position==="static"}function Xv(e,t){if(!yt(e)||Pn(e).position==="fixed")return null;if(t)return t(e);let s=e.offsetParent;return xs(e)===s&&(s=s.ownerDocument.body),s}function Fk(e,t){const s=Pt(e);if(Tf(e))return s;if(!yt(e)){let r=Rs(e);for(;r&&!_s(r);){if(at(r)&&!vg(r))return r;r=Rs(r)}return s}let o=Xv(e,t);for(;o&&wO(o)&&vg(o);)o=Xv(o,t);return o&&_s(o)&&vg(o)&&!cm(o)?s:o||LO(e)||s}const bM=async function(e){const t=this.getOffsetParent||Fk,s=this.getDimensions,o=await s(e.floating);return{reference:mM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function yM(e){return Pn(e).direction==="rtl"}const vM={convertOffsetParentRelativeRectToViewportRelativeRect:rM,getDocumentElement:xs,getClippingRect:gM,getOffsetParent:Fk,getElementRects:bM,getClientRects:lM,getDimensions:pM,getScale:wa,isElement:at,isRTL:yM};function Kk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _M(e,t){let s=null,o;const r=xs(e);function u(){var f;clearTimeout(o),(f=s)==null||f.disconnect(),s=null}function c(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),u();const g=e.getBoundingClientRect(),{left:m,top:b,width:y,height:_}=g;if(f||t(),!y||!_)return;const k=Ca(b),S=Ca(r.clientWidth-(m+y)),C=Ca(r.clientHeight-(b+_)),R=Ca(m),A={rootMargin:-k+"px "+-S+"px "+-C+"px "+-R+"px",threshold:Mn(0,$a(1,h))||1};let w=!0;function x(M){const L=M[0].intersectionRatio;if(L!==h){if(!w)return c();L?c(!1,L):o=setTimeout(()=>{c(!1,1e-7)},1e3)}L===1&&!Kk(g,e.getBoundingClientRect())&&c(),w=!1}try{s=new IntersectionObserver(x,{...A,root:r.ownerDocument})}catch{s=new IntersectionObserver(x,A)}s.observe(e)}return c(!0),u}function Wv(e,t,s,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=o,g=km(e),m=r||u?[...g?Ni(g):[],...Ni(t)]:[];m.forEach(R=>{r&&R.addEventListener("scroll",s,{passive:!0}),u&&R.addEventListener("resize",s)});const b=g&&f?_M(g,s):null;let y=-1,_=null;c&&(_=new ResizeObserver(R=>{let[T]=R;T&&T.target===g&&_&&(_.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var A;(A=_)==null||A.observe(t)})),s()}),g&&!h&&_.observe(g),_.observe(t));let k,S=h?wo(e):null;h&&C();function C(){const R=wo(e);S&&!Kk(S,R)&&s(),S=R,k=requestAnimationFrame(C)}return s(),()=>{var R;m.forEach(T=>{r&&T.removeEventListener("scroll",s),u&&T.removeEventListener("resize",s)}),b?.(),(R=_)==null||R.disconnect(),_=null,h&&cancelAnimationFrame(k)}}const kM=tM,SM=nM,CM=ZA,EM=iM,RM=JA,xM=sM,TM=(e,t,s)=>{const o=new Map,r={platform:vM,...s},u={...r.platform,_c:o};return WA(e,t,{...r,platform:u})};var wM=typeof document<"u",OM=function(){},Nc=wM?E.useLayoutEffect:OM;function lf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let s,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(s=e.length,s!==t.length)return!1;for(o=s;o--!==0;)if(!lf(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),s=r.length,s!==Object.keys(t).length)return!1;for(o=s;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=s;o--!==0;){const u=r[o];if(!(u==="_owner"&&e.$$typeof)&&!lf(e[u],t[u]))return!1}return!0}return e!==e&&t!==t}function Gk(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zv(e,t){const s=Gk(e);return Math.round(t*s)/s}function _g(e){const t=E.useRef(e);return Nc(()=>{t.current=e}),t}function AM(e){e===void 0&&(e={});const{placement:t="bottom",strategy:s="absolute",middleware:o=[],platform:r,elements:{reference:u,floating:c}={},transform:f=!0,whileElementsMounted:h,open:g}=e,[m,b]=E.useState({x:0,y:0,strategy:s,placement:t,middlewareData:{},isPositioned:!1}),[y,_]=E.useState(o);lf(y,o)||_(o);const[k,S]=E.useState(null),[C,R]=E.useState(null),T=E.useCallback(U=>{U!==M.current&&(M.current=U,S(U))},[]),A=E.useCallback(U=>{U!==L.current&&(L.current=U,R(U))},[]),w=u||k,x=c||C,M=E.useRef(null),L=E.useRef(null),P=E.useRef(m),V=h!=null,Z=_g(h),z=_g(r),Q=_g(g),B=E.useCallback(()=>{if(!M.current||!L.current)return;const U={placement:t,strategy:s,middleware:y};z.current&&(U.platform=z.current),TM(M.current,L.current,U).then(oe=>{const ae={...oe,isPositioned:Q.current!==!1};q.current&&!lf(P.current,ae)&&(P.current=ae,Es.flushSync(()=>{b(ae)}))})},[y,t,s,z,Q]);Nc(()=>{g===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,b(U=>({...U,isPositioned:!1})))},[g]);const q=E.useRef(!1);Nc(()=>(q.current=!0,()=>{q.current=!1}),[]),Nc(()=>{if(w&&(M.current=w),x&&(L.current=x),w&&x){if(Z.current)return Z.current(w,x,B);B()}},[w,x,B,Z,V]);const J=E.useMemo(()=>({reference:M,floating:L,setReference:T,setFloating:A}),[T,A]),D=E.useMemo(()=>({reference:w,floating:x}),[w,x]),I=E.useMemo(()=>{const U={position:s,left:0,top:0};if(!D.floating)return U;const oe=Zv(D.floating,m.x),ae=Zv(D.floating,m.y);return f?{...U,transform:"translate("+oe+"px, "+ae+"px)",...Gk(D.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:oe,top:ae}},[s,f,D.floating,m.x,m.y]);return E.useMemo(()=>({...m,update:B,refs:J,elements:D,floatingStyles:I}),[m,B,J,D,I])}const MM=(e,t)=>({...kM(e),options:[e,t]}),DM=(e,t)=>({...SM(e),options:[e,t]}),LM=(e,t)=>({...xM(e),options:[e,t]}),PM=(e,t)=>({...CM(e),options:[e,t]}),NM=(e,t)=>({...EM(e),options:[e,t]}),zM=(e,t)=>({...RM(e),options:[e,t]}),$M={intentional:"onClick",sloppy:"onPointerDown"};function jM(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function UM(e,t={}){const s="rootStore"in e?e.rootStore:e,o=s.useState("open"),r=s.useState("floatingElement"),u=s.useState("referenceElement"),c=s.useState("domReferenceElement"),{onOpenChange:f,dataRef:h}=s.context,{enabled:g=!0,escapeKey:m=!0,outsidePress:b=!0,outsidePressEvent:y="sloppy",referencePress:_=!1,referencePressEvent:k="sloppy",ancestorScroll:S=!1,bubbles:C,externalTree:R}=t,T=qi(R),A=we(typeof b=="function"?b:()=>!1),w=typeof b=="function"?A:b,x=E.useRef(!1),{escapeKey:M,outsidePress:L}=jM(C),P=E.useRef(null),V=Nn(),Z=Nn(),z=we(()=>{Z.clear(),h.current.insideReactTree=!1}),Q=E.useRef(!1),B=E.useRef(""),q=we(ne=>{B.current=ne.pointerType}),J=we(()=>{const ne=B.current,ke=ne==="pen"||!ne?"mouse":ne,ve=typeof y=="function"?y():y;return typeof ve=="string"?ve:ve[ke]}),D=we(ne=>{if(!o||!g||!m||ne.key!=="Escape"||Q.current)return;const ke=h.current.floatingContext?.nodeId,ve=T?So(T.nodesRef.current,ke):[];if(!M&&ve.length>0){let pe=!0;if(ve.forEach(ge=>{ge.context?.open&&!ge.context.dataRef.current.__escapeKeyBubbles&&(pe=!1)}),!pe)return}const Ie=KO(ne)?ne.nativeEvent:ne,Ee=st(lm,Ie);s.setOpen(!1,Ee),!M&&!Ee.isPropagationAllowed&&ne.stopPropagation()}),I=we(ne=>{const ke=J();return ke==="intentional"&&ne.type!=="click"||ke==="sloppy"&&ne.type==="click"}),U=we(()=>{h.current.insideReactTree=!0,Z.start(0,z)}),oe=we((ne,ke=!1)=>{if(I(ne)){z();return}if(h.current.insideReactTree){z();return}if(J()==="intentional"&&ke||typeof w=="function"&&!w(ne))return;const ve=_n(ne),Ie=`[${Ua("inert")}]`,Ee=St(s.select("floatingElement")).querySelectorAll(Ie),pe=s.context.triggerElements;if(ve&&(pe.hasElement(ve)||pe.hasMatchingElement(be=>Ye(be,ve))))return;let ge=at(ve)?ve:null;for(;ge&&!_s(ge);){const be=Rs(ge);if(_s(be)||!at(be))break;ge=be}if(Ee.length&&at(ve)&&!HO(ve)&&!Ye(ve,s.select("floatingElement"))&&Array.from(Ee).every(be=>!Ye(ge,be)))return;if(yt(ve)&&!("touches"in ne)){const be=_s(ve),Me=Pn(ve),ce=/auto|scroll/,he=be||ce.test(Me.overflowX),me=be||ce.test(Me.overflowY),je=he&&ve.clientWidth>0&&ve.scrollWidth>ve.clientWidth,nt=me&&ve.clientHeight>0&&ve.scrollHeight>ve.clientHeight,Ve=Me.direction==="rtl",At=nt&&(Ve?ne.offsetX<=ve.offsetWidth-ve.clientWidth:ne.offsetX>ve.clientWidth),Nt=je&&ne.offsetY>ve.clientHeight;if(At||Nt)return}const Oe=h.current.floatingContext?.nodeId,Ce=T&&So(T.nodesRef.current,Oe).some(be=>is(ne,be.context?.elements.floating));if(is(ne,s.select("floatingElement"))||is(ne,s.select("domReferenceElement"))||Ce)return;const De=T?So(T.nodesRef.current,Oe):[];if(De.length>0){let be=!0;if(De.forEach(Me=>{Me.context?.open&&!Me.context.dataRef.current.__outsidePressBubbles&&(be=!1)}),!be)return}s.setOpen(!1,st(rm,ne)),z()}),ae=we(ne=>{J()!=="sloppy"||ne.pointerType==="touch"||!s.select("open")||!g||is(ne,s.select("floatingElement"))||is(ne,s.select("domReferenceElement"))||oe(ne)}),N=we(ne=>{if(J()!=="sloppy"||!s.select("open")||!g||is(ne,s.select("floatingElement"))||is(ne,s.select("domReferenceElement")))return;const ke=ne.touches[0];ke&&(P.current={startTime:Date.now(),startX:ke.clientX,startY:ke.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},V.start(1e3,()=>{P.current&&(P.current.dismissOnTouchEnd=!1,P.current.dismissOnMouseDown=!1)}))}),K=we(ne=>{const ke=_n(ne);function ve(){N(ne),ke?.removeEventListener(ne.type,ve)}ke?.addEventListener(ne.type,ve)}),X=we(ne=>{const ke=x.current;if(x.current=!1,V.clear(),ne.type==="mousedown"&&P.current&&!P.current.dismissOnMouseDown)return;const ve=_n(ne);function Ie(){ne.type==="pointerdown"?ae(ne):oe(ne,ke),ve?.removeEventListener(ne.type,Ie)}ve?.addEventListener(ne.type,Ie)}),re=we(ne=>{if(J()!=="sloppy"||!P.current||is(ne,s.select("floatingElement"))||is(ne,s.select("domReferenceElement")))return;const ke=ne.touches[0];if(!ke)return;const ve=Math.abs(ke.clientX-P.current.startX),Ie=Math.abs(ke.clientY-P.current.startY),Ee=Math.sqrt(ve*ve+Ie*Ie);Ee>5&&(P.current.dismissOnTouchEnd=!0),Ee>10&&(oe(ne),V.clear(),P.current=null)}),fe=we(ne=>{const ke=_n(ne);function ve(){re(ne),ke?.removeEventListener(ne.type,ve)}ke?.addEventListener(ne.type,ve)}),le=we(ne=>{J()!=="sloppy"||!P.current||is(ne,s.select("floatingElement"))||is(ne,s.select("domReferenceElement"))||(P.current.dismissOnTouchEnd&&oe(ne),V.clear(),P.current=null)}),ue=we(ne=>{const ke=_n(ne);function ve(){le(ne),ke?.removeEventListener(ne.type,ve)}ke?.addEventListener(ne.type,ve)});E.useEffect(()=>{if(!o||!g)return;h.current.__escapeKeyBubbles=M,h.current.__outsidePressBubbles=L;const ne=new To;function ke(ge){s.setOpen(!1,st(hO,ge))}function ve(){ne.clear(),Q.current=!0}function Ie(){ne.start(wf()?5:0,()=>{Q.current=!1})}const Ee=St(r);Ee.addEventListener("pointerdown",q,!0),m&&(Ee.addEventListener("keydown",D),Ee.addEventListener("compositionstart",ve),Ee.addEventListener("compositionend",Ie)),w&&(Ee.addEventListener("click",X,!0),Ee.addEventListener("pointerdown",X,!0),Ee.addEventListener("touchstart",K,!0),Ee.addEventListener("touchmove",fe,!0),Ee.addEventListener("touchend",ue,!0),Ee.addEventListener("mousedown",X,!0));let pe=[];return S&&(at(c)&&(pe=Ni(c)),at(r)&&(pe=pe.concat(Ni(r))),!at(u)&&u&&u.contextElement&&(pe=pe.concat(Ni(u.contextElement)))),pe=pe.filter(ge=>ge!==Ee.defaultView?.visualViewport),pe.forEach(ge=>{ge.addEventListener("scroll",ke,{passive:!0})}),()=>{Ee.removeEventListener("pointerdown",q,!0),m&&(Ee.removeEventListener("keydown",D),Ee.removeEventListener("compositionstart",ve),Ee.removeEventListener("compositionend",Ie)),w&&(Ee.removeEventListener("click",X,!0),Ee.removeEventListener("pointerdown",X,!0),Ee.removeEventListener("touchstart",K,!0),Ee.removeEventListener("touchmove",fe,!0),Ee.removeEventListener("touchend",ue,!0),Ee.removeEventListener("mousedown",X,!0)),pe.forEach(ge=>{ge.removeEventListener("scroll",ke)}),ne.clear()}},[h,r,u,c,m,w,o,f,S,g,M,L,D,oe,X,ae,K,fe,ue,q,s]),E.useEffect(z,[w,z]);const de=E.useMemo(()=>({onKeyDown:D,..._&&{[$M[k]]:ne=>{s.setOpen(!1,st(ko,ne.nativeEvent))},...k!=="intentional"&&{onClick(ne){s.setOpen(!1,st(ko,ne.nativeEvent))}}}}),[D,s,_,k]),ye=we(ne=>{const ke=_n(ne.nativeEvent);!Ye(s.select("floatingElement"),ke)||ne.button!==0||(x.current=!0)}),xe=E.useMemo(()=>({onKeyDown:D,onPointerDown:ye,onMouseDown:ye,onMouseUp:ye,onClickCapture:U,onMouseDownCapture:U,onPointerDownCapture:U,onMouseUpCapture:U,onTouchEndCapture:U,onTouchMoveCapture:U}),[D,ye,U]);return E.useMemo(()=>g?{reference:de,floating:xe,trigger:de}:{},[g,de,xe])}var uf=Symbol("NOT_FOUND");function IM(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function VM(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function BM(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(s=>typeof s=="function")){const s=e.map(o=>typeof o=="function"?`function ${o.name||"unnamed"}()`:typeof o).join(", ");throw new TypeError(`${t}[${s}]`)}}var Jv=e=>Array.isArray(e)?e:[e];function qM(e){const t=Array.isArray(e[0])?e[0]:e;return BM(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function HM(e,t){const s=[],{length:o}=e;for(let r=0;r<o;r++)s.push(e[r].apply(null,t));return s}function FM(e){let t;return{get(s){return t&&e(t.key,s)?t.value:uf},put(s,o){t={key:s,value:o}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function KM(e,t){let s=[];function o(f){const h=s.findIndex(g=>t(f,g.key));if(h>-1){const g=s[h];return h>0&&(s.splice(h,1),s.unshift(g)),g.value}return uf}function r(f,h){o(f)===uf&&(s.unshift({key:f,value:h}),s.length>e&&s.pop())}function u(){return s}function c(){s=[]}return{get:o,put:r,getEntries:u,clear:c}}var GM=(e,t)=>e===t;function YM(e){return function(s,o){if(s===null||o===null||s.length!==o.length)return!1;const{length:r}=s;for(let u=0;u<r;u++)if(!e(s[u],o[u]))return!1;return!0}}function QM(e,t){const s=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:o=GM,maxSize:r=1,resultEqualityCheck:u}=s,c=YM(o);let f=0;const h=r<=1?FM(c):KM(r,c);function g(){let m=h.get(arguments);if(m===uf){if(m=e.apply(null,arguments),f++,u){const y=h.getEntries().find(_=>u(_.value,m));y&&(m=y.value,f!==0&&f--)}h.put(arguments,m)}return m}return g.clearCache=()=>{h.clear(),g.resetResultsCount()},g.resultsCount=()=>f,g.resetResultsCount=()=>{f=0},g}var XM=class{constructor(e){this.value=e}deref(){return this.value}},WM=typeof WeakRef<"u"?WeakRef:XM,ZM=0,e0=1;function dc(){return{s:ZM,v:void 0,o:null,p:null}}function Yk(e,t={}){let s=dc();const{resultEqualityCheck:o}=t;let r,u=0;function c(){let f=s;const{length:h}=arguments;for(let b=0,y=h;b<y;b++){const _=arguments[b];if(typeof _=="function"||typeof _=="object"&&_!==null){let k=f.o;k===null&&(f.o=k=new WeakMap);const S=k.get(_);S===void 0?(f=dc(),k.set(_,f)):f=S}else{let k=f.p;k===null&&(f.p=k=new Map);const S=k.get(_);S===void 0?(f=dc(),k.set(_,f)):f=S}}const g=f;let m;if(f.s===e0)m=f.v;else if(m=e.apply(null,arguments),u++,o){const b=r?.deref?.()??r;b!=null&&o(b,m)&&(m=b,u!==0&&u--),r=typeof m=="object"&&m!==null||typeof m=="function"?new WM(m):m}return g.s=e0,g.v=m,m}return c.clearCache=()=>{s=dc(),c.resetResultsCount()},c.resultsCount=()=>u,c.resetResultsCount=()=>{u=0},c}function Qk(e,...t){const s=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,o=(...r)=>{let u=0,c=0,f,h={},g=r.pop();typeof g=="object"&&(h=g,g=r.pop()),IM(g,`createSelector expects an output function after the inputs, but received: [${typeof g}]`);const m={...s,...h},{memoize:b,memoizeOptions:y=[],argsMemoize:_=Yk,argsMemoizeOptions:k=[]}=m,S=Jv(y),C=Jv(k),R=qM(r),T=b(function(){return u++,g.apply(null,arguments)},...S),A=_(function(){c++;const x=HM(R,arguments);return f=T.apply(null,x),f},...C);return Object.assign(A,{resultFunc:g,memoizedResultFunc:T,dependencies:R,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>f,recomputations:()=>u,resetRecomputations:()=>{u=0},memoize:b,argsMemoize:_})};return Object.assign(o,{withTypes:()=>o}),o}var JM=Qk(Yk),e3=Object.assign((e,t=JM)=>{VM(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const s=Object.keys(e),o=s.map(u=>e[u]);return t(o,(...u)=>u.reduce((c,f,h)=>(c[s[h]]=f,c),{}))},{withTypes:()=>e3});Qk({memoize:QM,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Ue=(e,t,s,o,r,u,...c)=>{if(c.length>0)throw new Error(Ii(1));let f;if(e)f=e;else throw new Error("Missing arguments");return f};var t3=I_();const n3=am(19),s3=n3?o3:a3;function i3(e,t,s,o,r){return s3(e,t,s,o,r)}function o3(e,t,s,o,r){const u=E.useCallback(()=>t(e.getSnapshot(),s,o,r),[e,t,s,o,r]);return t3.useSyncExternalStore(e.subscribe,u,u)}function a3(e,t,s,o,r){return V_.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,u=>t(u,s,o,r))}class dl{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const s=this.updateTick;for(const o of this.listeners){if(s!==this.updateTick)return;o(t)}}update(t){for(const s in t)if(!Object.is(this.state[s],t[s])){dl.prototype.setState.call(this,{...this.state,...t});return}}set(t,s){Object.is(this.state[t],s)||dl.prototype.setState.call(this,{...this.state,[t]:s})}notifyAll(){const t={...this.state};dl.prototype.setState.call(this,t)}}class Xk extends dl{constructor(t,s={},o){super(t),this.context=s,this.selectors=o}controlledValues=new Map;useSyncedValue(t,s){E.useDebugValue(t),Pe(()=>{this.state[t]!==s&&this.set(t,s)},[t,s])}useSyncedValueWithCleanup(t,s){Pe(()=>(this.state[t]!==s&&this.set(t,s),()=>{this.set(t,void 0)}),[t,s])}useSyncedValues(t){const s=Object.values(t);Pe(()=>{this.update(t)},s)}useControlledProp(t,s,o){E.useDebugValue(t);const r=s!==void 0;this.controlledValues.has(t)||(this.controlledValues.set(t,r),!r&&!Object.is(this.state[t],o)&&super.setState({...this.state,[t]:o})),Pe(()=>{r&&!Object.is(this.state[t],s)&&super.setState({...this.state,[t]:s})},[t,s,o,r])}set(t,s){this.controlledValues.get(t)!==!0&&super.set(t,s)}update(t){const s={...t};for(const o in s)if(Object.hasOwn(s,o)&&this.controlledValues.get(o)===!0){delete s[o];continue}super.update(s)}setState(t){const s={...t};for(const o in s)if(Object.hasOwn(s,o)&&this.controlledValues.get(o)===!0){delete s[o];continue}super.setState({...this.state,...s})}select=(t,s,o,r)=>{const u=this.selectors[t];return u(this.state,s,o,r)};useState=(t,s,o,r)=>{E.useDebugValue(t);const u=this.selectors[t];return i3(this,u,s,o,r)};useContextCallback(t,s){E.useDebugValue(t);const o=we(s??Z_);this.context[t]=o}useStateSetter(t){const s=E.useRef(void 0);return s.current===void 0&&(s.current=o=>{this.set(t,o)}),s.current}observe(t,s){let o;typeof t=="function"?o=t:o=this.selectors[t];let r=o(this.state);return s(r,r,this),this.subscribe(u=>{const c=o(u);if(!Object.is(r,c)){const f=r;r=c,s(c,f,this)}})}}const r3={open:Ue(e=>e.open),domReferenceElement:Ue(e=>e.domReferenceElement),referenceElement:Ue(e=>e.positionReference??e.referenceElement),floatingElement:Ue(e=>e.floatingElement),floatingId:Ue(e=>e.floatingId)};class Sm extends Xk{constructor(t){const{nested:s,noEmit:o,onOpenChange:r,triggerElements:u,...c}=t;super({...c,positionReference:c.referenceElement,domReferenceElement:c.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Dk(),nested:s,noEmit:o,triggerElements:u},r3)}setOpen=(t,s)=>{if((!t||!this.state.open||hk(s.event))&&(this.context.dataRef.current.openEvent=t?s.event:void 0),!this.context.noEmit){const o={open:t,reason:s.reason,nativeEvent:s.event,nested:this.context.nested,triggerElement:s.trigger};this.context.events.emit("openchange",o)}this.context.onOpenChange?.(t,s)}}function l3(e,t){const s=E.useRef(null);return E.useCallback(o=>{e!==void 0&&(s.current!==null&&(t.context.triggerElements.delete(s.current),s.current=null),o!==null&&(s.current=e,t.context.triggerElements.add(e,o)))},[t,e])}function u3(e,t,s,o){const r=s.useState("isMountedByTrigger",e),u=l3(e,s),c=we(f=>{u(f),f!==null&&s.select("open")&&s.select("activeTriggerId")==null&&s.update({activeTriggerId:e,activeTriggerElement:f,...o})});return Pe(()=>{r&&s.update({activeTriggerElement:t.current,...o})},[r,s,t,...Object.values(o)]),{registerTrigger:c,isMountedByThisTrigger:r}}function c3(e){const t=e.useState("open");Pe(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const s=e.context.triggerElements.entries().next();if(!s.done){const[o,r]=s.value;e.update({activeTriggerId:o,activeTriggerElement:r})}}},[t,e])}function f3(e,t,s){const{mounted:o,setMounted:r,transitionStatus:u}=kO(e);t.useSyncedValues({mounted:o,transitionStatus:u});const c=we(()=>{r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),s?.(),t.context.onOpenChangeComplete?.(!1)}),f=t.useState("preventUnmountingOnClose");return Mk({enabled:!f,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:u}}class Cm{constructor(){this.elements=new Set,this.idMap=new Map}add(t,s){const o=this.idMap.get(t);o!==s&&(o!==void 0&&this.elements.delete(o),this.elements.add(s),this.idMap.set(t,s))}delete(t){const s=this.idMap.get(t);s&&(this.elements.delete(s),this.idMap.delete(t))}hasElement(t){return this.elements.has(t)}hasMatchingElement(t){for(const s of this.elements)if(t(s))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function d3(){return new Sm({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Cm,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function h3(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:d3(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:Lt,inactiveTriggerProps:Lt,popupProps:Lt}}const g3={open:Ue(e=>e.open),mounted:Ue(e=>e.mounted),transitionStatus:Ue(e=>e.transitionStatus),floatingRootContext:Ue(e=>e.floatingRootContext),preventUnmountingOnClose:Ue(e=>e.preventUnmountingOnClose),payload:Ue(e=>e.payload),activeTriggerId:Ue(e=>e.activeTriggerId),activeTriggerElement:Ue(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Ue((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:Ue((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:Ue((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:Ue((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Ue(e=>e.popupProps),popupElement:Ue(e=>e.popupElement),positionerElement:Ue(e=>e.positionerElement)};function p3(e){const{open:t=!1,onOpenChange:s,elements:o={}}=e,r=Do(),u=Zs()!=null,c=es(()=>new Sm({open:t,onOpenChange:s,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:o.triggers??new Cm,floatingId:r,nested:u,noEmit:e.noEmit||!1})).current;return Pe(()=>{const f={open:t,floatingId:r};o.reference!==void 0&&(f.referenceElement=o.reference,f.domReferenceElement=at(o.reference)?o.reference:null),o.floating!==void 0&&(f.floatingElement=o.floating),c.update(f)},[t,r,o.reference,o.floating,c]),c.context.onOpenChange=s,c.context.nested=u,c.context.noEmit=e.noEmit||!1,c}function m3(e={}){const{nodeId:t,externalTree:s}=e,o=p3(e),r=e.rootContext||o,u={reference:r.useState("referenceElement"),floating:r.useState("floatingElement"),domReference:r.useState("domReferenceElement")},[c,f]=E.useState(null),h=E.useRef(null),g=qi(s);Pe(()=>{u.domReference&&(h.current=u.domReference)},[u.domReference]);const m=AM({...e,elements:{...u,...c&&{reference:c}}}),b=E.useCallback(L=>{const P=at(L)?{getBoundingClientRect:()=>L.getBoundingClientRect(),getClientRects:()=>L.getClientRects(),contextElement:L}:L;f(P),m.refs.setReference(P)},[m.refs]),[y,_]=E.useState(null),[k,S]=E.useState(null);r.useSyncedValue("referenceElement",y),r.useSyncedValue("domReferenceElement",at(y)?y:null),r.useSyncedValue("floatingElement",k);const C=E.useCallback(L=>{(at(L)||L===null)&&(h.current=L,_(L)),(at(m.refs.reference.current)||m.refs.reference.current===null||L!==null&&!at(L))&&m.refs.setReference(L)},[m.refs,_]),R=E.useCallback(L=>{S(L),m.refs.setFloating(L)},[m.refs]),T=E.useMemo(()=>({...m.refs,setReference:C,setFloating:R,setPositionReference:b,domReference:h}),[m.refs,C,R,b]),A=E.useMemo(()=>({...m.elements,domReference:u.domReference}),[m.elements,u.domReference]),w=r.useState("open"),x=r.useState("floatingId"),M=E.useMemo(()=>({...m,dataRef:r.context.dataRef,open:w,onOpenChange:r.setOpen,events:r.context.events,floatingId:x,refs:T,elements:A,nodeId:t,rootStore:r}),[m,T,A,t,r,w,x]);return Pe(()=>{r.context.dataRef.current.floatingContext=M;const L=g?.nodesRef.current.find(P=>P.id===t);L&&(L.context=M)}),E.useMemo(()=>({...m,context:M,refs:T,elements:A,rootStore:r}),[m,T,A,M,r])}function b3(e){const{popupStore:t,noEmit:s=!1,treatPopupAsFloatingElement:o=!1,onOpenChange:r}=e,u=Do(),c=Zs()!=null,f=t.useState("open"),h=t.useState("activeTriggerElement"),g=t.useState(o?"popupElement":"positionerElement"),m=t.context.triggerElements,b=es(()=>new Sm({open:f,referenceElement:h,floatingElement:g,triggerElements:m,onOpenChange:r,floatingId:u,nested:c,noEmit:s})).current;return Pe(()=>{const y={open:f,floatingId:u,referenceElement:h,floatingElement:g};at(h)&&(y.domReferenceElement=h),b.update(y)},[f,u,h,g,b]),b.context.onOpenChange=r,b.context.nested=c,b.context.noEmit=s,b}const kg=IO&&ak;function y3(e,t={}){const s="rootStore"in e?e.rootStore:e,{events:o,dataRef:r}=s.context,{enabled:u=!0,visibleOnly:c=!0}=t,f=E.useRef(!1),h=Nn(),g=E.useRef(!0);E.useEffect(()=>{const b=s.select("domReferenceElement");if(!u)return;const y=Pt(b);function _(){!s.select("open")&&yt(b)&&b===bs(St(b))&&(f.current=!0)}function k(){g.current=!0}function S(){g.current=!1}return y.addEventListener("blur",_),kg&&(y.addEventListener("keydown",k,!0),y.addEventListener("pointerdown",S,!0)),()=>{y.removeEventListener("blur",_),kg&&(y.removeEventListener("keydown",k,!0),y.removeEventListener("pointerdown",S,!0))}},[s,u]),E.useEffect(()=>{if(!u)return;function b(y){(y.reason===ko||y.reason===lm)&&(f.current=!0)}return o.on("openchange",b),()=>{o.off("openchange",b)}},[o,u]);const m=E.useMemo(()=>({onMouseLeave(){f.current=!1},onFocus(b){if(f.current)return;const y=_n(b.nativeEvent);if(c&&at(y)){if(kg&&!b.relatedTarget){if(!g.current&&!gm(y))return}else if(!FO(y))return}s.setOpen(!0,st(Zc,b.nativeEvent,b.currentTarget))},onBlur(b){f.current=!1;const y=b.relatedTarget,_=b.nativeEvent,k=at(y)&&y.hasAttribute(Ua("focus-guard"))&&y.getAttribute("data-type")==="outside";h.start(0,()=>{const S=s.select("domReferenceElement"),C=bs(S?S.ownerDocument:document);!y&&C===S||Ye(r.current.floatingContext?.refs.floating.current,C)||Ye(S,C)||k||s.context.triggerElements.hasElement(b.relatedTarget)||s.setOpen(!1,st(Zc,_))})}}),[r,s,c,h]);return E.useMemo(()=>u?{reference:m,trigger:m}:{},[u,m])}const rp=Ua("safe-polygon"),v3=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${ck}`;function _3(e){return e?!!e.closest(v3):!1}function Wk(e){const t=E.useRef(void 0),s=E.useRef(!1),o=E.useRef(void 0),r=E.useRef(!0),u=E.useRef(!1),c=E.useRef(()=>{}),f=E.useRef(!1),h=Nn(),g=Nn(),m=E.useRef(void 0);return E.useMemo(()=>{const b=e.context.dataRef.current;return b.hoverInteractionState||(b.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:s,handlerRef:o,blockMouseMoveRef:r,performedPointerEventsMutationRef:u,unbindMouseMoveRef:c,restTimeoutPendingRef:f,openChangeTimeout:h,restTimeout:g,handleCloseOptionsRef:m}),b.hoverInteractionState},[e,t,s,o,r,u,c,f,h,g,m])}const k3=new Set(["click","mousedown"]);function S3(e,t={}){const s="rootStore"in e?e.rootStore:e,o=s.useState("open"),r=s.useState("floatingElement"),u=s.useState("domReferenceElement"),{dataRef:c}=s.context,{enabled:f=!0,closeDelay:h=0,externalTree:g}=t,{pointerTypeRef:m,interactedInsideRef:b,handlerRef:y,performedPointerEventsMutationRef:_,unbindMouseMoveRef:k,restTimeoutPendingRef:S,openChangeTimeout:C,handleCloseOptionsRef:R}=Wk(s),T=qi(g),A=Zs(),w=we(()=>b.current?!0:c.current.openEvent?k3.has(c.current.openEvent.type):!1),x=we(()=>{const Z=c.current.openEvent?.type;return Z?.includes("mouse")&&Z!=="mousedown"}),M=E.useCallback((Z,z=!0)=>{const Q=C3(h,m.current);Q&&!y.current?C.start(Q,()=>s.setOpen(!1,st(Ln,Z))):z&&(C.clear(),s.setOpen(!1,st(Ln,Z)))},[h,y,s,m,C]),L=we(()=>{k.current(),y.current=void 0}),P=we(()=>{if(_.current){const Z=St(r).body;Z.style.pointerEvents="",Z.removeAttribute(rp),_.current=!1}}),V=we(Z=>{const z=_n(Z);if(!_3(z)){b.current=!1;return}b.current=!0});Pe(()=>{o||(m.current=void 0,S.current=!1,b.current=!1,L(),P())},[o,m,S,b,L,P]),E.useEffect(()=>()=>{L()},[L]),E.useEffect(()=>P,[P]),Pe(()=>{if(f&&o&&R.current?.blockPointerEvents&&x()&&at(u)&&r){_.current=!0;const Z=St(r).body;Z.setAttribute(rp,"");const z=u,Q=r,B=T?.nodesRef.current.find(q=>q.id===A)?.context?.elements.floating;return B&&(B.style.pointerEvents=""),Z.style.pointerEvents="none",z.style.pointerEvents="auto",Q.style.pointerEvents="auto",()=>{Z.style.pointerEvents="",z.style.pointerEvents="",Q.style.pointerEvents=""}}},[f,o,u,r,R,x,T,A,_]),E.useEffect(()=>{if(!f)return;function Z(q){if(w()||!c.current.floatingContext||!s.select("open"))return;const J=s.context.triggerElements;q.relatedTarget&&J.hasElement(q.relatedTarget)||(P(),L(),w()||M(q))}function z(q){C.clear(),P(),y.current?.(q),L()}function Q(q){w()||M(q,!1)}const B=r;return B&&(B.addEventListener("mouseleave",Z),B.addEventListener("mouseenter",z),B.addEventListener("mouseleave",Q),B.addEventListener("pointerdown",V,!0)),()=>{B&&(B.removeEventListener("mouseleave",Z),B.removeEventListener("mouseenter",z),B.removeEventListener("mouseleave",Q),B.removeEventListener("pointerdown",V,!0))}})}function C3(e,t){return t&&!za(t)?0:typeof e=="function"?e():e}function Sg(e){return typeof e=="function"?e():e}const E3={current:null};function R3(e,t={}){const s="rootStore"in e?e.rootStore:e,{dataRef:o,events:r}=s.context,{enabled:u=!0,delay:c=0,handleClose:f=null,mouseOnly:h=!1,restMs:g=0,move:m=!0,triggerElementRef:b=E3,externalTree:y,isActiveTrigger:_=!0}=t,k=qi(y),{pointerTypeRef:S,interactedInsideRef:C,handlerRef:R,blockMouseMoveRef:T,performedPointerEventsMutationRef:A,unbindMouseMoveRef:w,restTimeoutPendingRef:x,openChangeTimeout:M,restTimeout:L,handleCloseOptionsRef:P}=Wk(s),V=Gt(f),Z=Gt(c),z=Gt(g);_&&(P.current=V.current?.__options);const Q=we(()=>C.current?!0:o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1),B=E.useCallback((I,U=!0)=>{const oe=mg(Z.current,"close",S.current);oe&&!R.current?M.start(oe,()=>s.setOpen(!1,st(Ln,I))):U&&(M.clear(),s.setOpen(!1,st(Ln,I)))},[Z,R,s,S,M]),q=we(()=>{w.current(),R.current=void 0}),J=we(()=>{if(A.current){const I=St(s.select("domReferenceElement")).body;I.style.pointerEvents="",I.removeAttribute(rp),A.current=!1}});E.useEffect(()=>{if(!u)return;function I(U){U.open||(M.clear(),L.clear(),T.current=!0,x.current=!1)}return r.on("openchange",I),()=>{r.off("openchange",I)}},[u,r,M,L,T,x]);const D=we(I=>{if(Q()||!o.current.floatingContext)return;const U=s.context.triggerElements;if(I.relatedTarget&&U.hasElement(I.relatedTarget))return;const oe=b.current;V.current?.({...o.current.floatingContext,tree:k,x:I.clientX,y:I.clientY,onClose(){J(),q(),!Q()&&oe===s.select("domReferenceElement")&&B(I)}})(I)});return E.useEffect(()=>{if(!u)return;const I=b.current??(_?s.select("domReferenceElement"):null);if(!at(I))return;function U(N){if(M.clear(),T.current=!1,h&&!za(S.current)||Sg(z.current)>0&&!mg(Z.current,"open"))return;const K=mg(Z.current,"open",S.current),X=s.select("domReferenceElement"),re=s.context.triggerElements,fe=(re.hasElement(N.target)||re.hasMatchingElement(de=>Ye(de,N.target)))&&(!X||!Ye(X,N.target)),le=N.currentTarget??null,ue=!s.select("open")||fe;K?M.start(K,()=>{ue&&s.setOpen(!0,st(Ln,N,le))}):ue&&s.setOpen(!0,st(Ln,N,le))}function oe(N){if(Q()){J();return}w.current();const K=s.select("domReferenceElement"),X=St(K);L.clear(),x.current=!1;const re=s.context.triggerElements;if(N.relatedTarget&&re.hasElement(N.relatedTarget))return;if(V.current&&o.current.floatingContext){s.select("open")||M.clear();const le=b.current;R.current=V.current({...o.current.floatingContext,tree:k,x:N.clientX,y:N.clientY,onClose(){J(),q(),!Q()&&le===s.select("domReferenceElement")&&B(N,!0)}});const ue=R.current;ue(N),X.addEventListener("mousemove",ue),w.current=()=>{X.removeEventListener("mousemove",ue)};return}(S.current==="touch"?!Ye(s.select("floatingElement"),N.relatedTarget):!0)&&B(N)}function ae(N){D(N)}return s.select("open")&&I.addEventListener("mouseleave",ae),m&&I.addEventListener("mousemove",U,{once:!0}),I.addEventListener("mouseenter",U),I.addEventListener("mouseleave",oe),()=>{I.removeEventListener("mouseleave",ae),m&&I.removeEventListener("mousemove",U),I.removeEventListener("mouseenter",U),I.removeEventListener("mouseleave",oe)}},[q,J,T,o,Z,B,s,u,V,D,_,Q,h,m,S,z,L,x,M,b,k,w,R]),E.useMemo(()=>{function I(U){S.current=U.pointerType}return{onPointerDown:I,onPointerEnter:I,onMouseMove(U){const{nativeEvent:oe}=U,ae=U.currentTarget,N=s.select("domReferenceElement"),K=s.context.triggerElements,X=s.select("open"),re=(K.hasElement(U.target)||K.hasMatchingElement(le=>Ye(le,U.target)))&&(!N||!Ye(N,U.target));if(h&&!za(S.current)||X&&!re||Sg(z.current)===0||!re&&x.current&&U.movementX**2+U.movementY**2<2)return;L.clear();function fe(){!T.current&&(!X||re)&&s.setOpen(!0,st(Ln,oe,ae))}S.current==="touch"?Es.flushSync(()=>{fe()}):re&&X?fe():(x.current=!0,L.start(Sg(z.current),fe))}}},[T,h,s,S,z,L,x])}function Zk(e=[]){const t=e.map(g=>g?.reference),s=e.map(g=>g?.floating),o=e.map(g=>g?.item),r=e.map(g=>g?.trigger),u=E.useCallback(g=>hc(g,e,"reference"),t),c=E.useCallback(g=>hc(g,e,"floating"),s),f=E.useCallback(g=>hc(g,e,"item"),o),h=E.useCallback(g=>hc(g,e,"trigger"),r);return E.useMemo(()=>({getReferenceProps:u,getFloatingProps:c,getItemProps:f,getTriggerProps:h}),[u,c,f,h])}function hc(e,t,s){const o=new Map,r=s==="item",u={};s==="floating"&&(u.tabIndex=-1,u[tp]="");for(const c in e)r&&e&&(c===lk||c===uk)||(u[c]=e[c]);for(let c=0;c<t.length;c+=1){let f;const h=t[c]?.[s];typeof h=="function"?f=e?h(e):null:f=h,f&&t0(u,f,r,o)}return t0(u,e,r,o),u}function t0(e,t,s,o){for(const r in t){const u=t[r];s&&(r===lk||r===uk)||(r.startsWith("on")?(o.has(r)||o.set(r,[]),typeof u=="function"&&(o.get(r)?.push(u),e[r]=(...c)=>o.get(r)?.map(f=>f(...c)).find(f=>f!==void 0))):e[r]=u)}}const x3="Escape";function Mf(e,t,s){switch(e){case"vertical":return t;case"horizontal":return s;default:return t||s}}function gc(e,t){return Mf(t,e===hm||e===Ll,e===zi||e===$i)}function Cg(e,t,s){return Mf(t,e===Ll,s?e===zi:e===$i)||e==="Enter"||e===" "||e===""}function T3(e,t,s){return Mf(t,s?e===zi:e===$i,e===Ll)}function w3(e,t,s,o){const r=s?e===$i:e===zi,u=e===hm;return t==="both"||t==="horizontal"&&o&&o>1?e===x3:Mf(t,r,u)}function O3(e,t){const s="rootStore"in e?e.rootStore:e,o=s.useState("open"),r=s.useState("floatingElement"),u=s.useState("domReferenceElement"),c=s.context.dataRef,{listRef:f,activeIndex:h,onNavigate:g=()=>{},enabled:m=!0,selectedIndex:b=null,allowEscape:y=!1,loopFocus:_=!1,nested:k=!1,rtl:S=!1,virtual:C=!1,focusItemOnOpen:R="auto",focusItemOnHover:T=!0,openOnArrowKeyDown:A=!0,disabledIndices:w=void 0,orientation:x="vertical",parentOrientation:M,cols:L=1,scrollItemIntoView:P=!0,itemSizes:V,dense:Z=!1,id:z,resetOnPointerLeave:Q=!0,externalTree:B}=t,q=ef(r),J=Gt(q),D=Zs(),I=qi(B);Pe(()=>{c.current.orientation=x},[c,x]);const U=np(u),oe=E.useRef(R),ae=E.useRef(b??-1),N=E.useRef(null),K=E.useRef(!0),X=we(ce=>{g(ae.current===-1?null:ae.current,ce)}),re=E.useRef(X),fe=E.useRef(!!r),le=E.useRef(o),ue=E.useRef(!1),de=E.useRef(!1),ye=Gt(w),xe=Gt(o),ne=Gt(P),ke=Gt(b),ve=Gt(Q),Ie=we(()=>{function ce(nt){C?I?.events.emit("virtualfocus",nt):Pc(nt,{sync:ue.current,preventScroll:!0})}const he=f.current[ae.current],me=de.current;he&&ce(he),(ue.current?nt=>nt():requestAnimationFrame)(()=>{const nt=f.current[ae.current]||he;if(!nt)return;he||ce(nt);const Ve=ne.current;Ve&&pe&&(me||!K.current)&&nt.scrollIntoView?.(typeof Ve=="boolean"?{block:"nearest",inline:"nearest"}:Ve)})});Pe(()=>{m&&(o&&r?(ae.current=b??-1,oe.current&&b!=null&&(de.current=!0,X())):fe.current&&(ae.current=-1,re.current()))},[m,o,r,b,X]),Pe(()=>{if(m){if(!o){ue.current=!1;return}if(r)if(h==null){if(ue.current=!1,ke.current!=null)return;if(fe.current&&(ae.current=-1,Ie()),(!le.current||!fe.current)&&oe.current&&(N.current!=null||oe.current===!0&&N.current==null)){let ce=0;const he=()=>{f.current[0]==null?(ce<2&&(ce?requestAnimationFrame:queueMicrotask)(he),ce+=1):(ae.current=N.current==null||Cg(N.current,x,S)||k?pg(f):Nv(f),N.current=null,X())};he()}}else cl(f,h)||(ae.current=h,Ie(),de.current=!1)}},[m,o,r,h,ke,k,f,x,S,X,Ie,ye]),Pe(()=>{if(!m||r||!I||C||!fe.current)return;const ce=I.nodesRef.current,he=ce.find(nt=>nt.id===D)?.context?.elements.floating,me=bs(St(r)),je=ce.some(nt=>nt.context&&Ye(nt.context.elements.floating,me));he&&!je&&K.current&&he.focus({preventScroll:!0})},[m,r,I,D,C]),Pe(()=>{re.current=X,le.current=o,fe.current=!!r}),Pe(()=>{o||(N.current=null,oe.current=R)},[o,R]);const Ee=h!=null,pe=E.useMemo(()=>{function ce(me){if(!xe.current)return;const je=f.current.indexOf(me.currentTarget);je!==-1&&ae.current!==je&&(ae.current=je,X(me))}return{onFocus(me){ue.current=!0,ce(me)},onClick:({currentTarget:me})=>me.focus({preventScroll:!0}),onMouseMove(me){ue.current=!0,de.current=!1,T&&ce(me)},onPointerLeave(me){if(!xe.current||!K.current||me.pointerType==="touch")return;ue.current=!0;const je=me.relatedTarget;!T||f.current.includes(je)||ve.current&&(ae.current=-1,X(me),C||J.current?.focus({preventScroll:!0}))}}},[xe,J,T,f,X,ve,C]),ge=E.useCallback(()=>M??I?.nodesRef.current.find(ce=>ce.id===D)?.context?.dataRef?.current.orientation,[D,I,M]),Oe=we(ce=>{if(K.current=!1,ue.current=!0,ce.which===229||!xe.current&&ce.currentTarget===J.current)return;if(k&&w3(ce.key,x,S,L)){gc(ce.key,ge())||Wt(ce),s.setOpen(!1,st(Lc,ce.nativeEvent)),yt(u)&&(C?I?.events.emit("virtualfocus",u):u.focus());return}const he=ae.current,me=pg(f,w),je=Nv(f,w);if(U||(ce.key==="Home"&&(Wt(ce),ae.current=me,X(ce)),ce.key==="End"&&(Wt(ce),ae.current=je,X(ce))),L>1){const nt=V||Array.from({length:f.current.length},()=>({width:1,height:1})),Ve=oA(nt,L,Z),At=Ve.findIndex(nn=>nn!=null&&!fl(f,nn,w)),Nt=Ve.reduce((nn,It,Te)=>It!=null&&!fl(f,It,w)?Te:nn,-1),cn=Ve[iA({current:Ve.map(nn=>nn!=null?f.current[nn]:null)},{event:ce,orientation:x,loopFocus:_,rtl:S,cols:L,disabledIndices:rA([...(typeof w!="function"?w:null)||f.current.map((nn,It)=>fl(f,It,w)?It:void 0),void 0],Ve),minIndex:At,maxIndex:Nt,prevIndex:aA(ae.current>je?me:ae.current,nt,Ve,L,ce.key===Ll?"bl":ce.key===(S?zi:$i)?"tr":"tl"),stopEvent:!0})];if(cn!=null&&(ae.current=cn,X(ce)),x==="both")return}if(gc(ce.key,x)){if(Wt(ce),o&&!C&&bs(ce.currentTarget.ownerDocument)===ce.currentTarget){ae.current=Cg(ce.key,x,S)?me:je,X(ce);return}Cg(ce.key,x,S)?_?he>=je?y&&he!==f.current.length?ae.current=-1:(ue.current=!1,ae.current=me):ae.current=Xt(f,{startingIndex:he,disabledIndices:w}):ae.current=Math.min(je,Xt(f,{startingIndex:he,disabledIndices:w})):_?he<=me?y&&he!==-1?ae.current=f.current.length:(ue.current=!1,ae.current=je):ae.current=Xt(f,{startingIndex:he,decrement:!0,disabledIndices:w}):ae.current=Math.max(me,Xt(f,{startingIndex:he,decrement:!0,disabledIndices:w})),cl(f,ae.current)&&(ae.current=-1),X(ce)}}),Ce=E.useMemo(()=>C&&o&&Ee&&{"aria-activedescendant":`${z}-${h}`},[C,o,Ee,z,h]),De=E.useMemo(()=>({"aria-orientation":x==="both"?void 0:x,...U?{}:Ce,onKeyDown(ce){if(ce.key==="Tab"&&ce.shiftKey&&o&&!C){const he=_n(ce.nativeEvent);if(he&&!Ye(J.current,he))return;Wt(ce),s.setOpen(!1,st(Na,ce.nativeEvent)),yt(u)&&u.focus();return}Oe(ce)},onPointerMove(){K.current=!0}}),[Ce,Oe,J,x,U,s,o,C,u]),be=E.useMemo(()=>{function ce(me){R==="auto"&&fk(me.nativeEvent)&&(oe.current=!C)}function he(me){oe.current=R,R==="auto"&&dk(me.nativeEvent)&&(oe.current=!0)}return{onKeyDown(me){const je=s.select("open");K.current=!1;const nt=me.key.startsWith("Arrow"),Ve=T3(me.key,ge(),S),At=gc(me.key,x),Nt=(k?Ve:At)||me.key==="Enter"||me.key.trim()==="";if(C&&je)return Oe(me);if(!(!je&&!A&&nt)){if(Nt){const cn=gc(me.key,ge());N.current=k&&cn?null:me.key}if(k){Ve&&(Wt(me),je?(ae.current=pg(f,ye.current),X(me)):s.setOpen(!0,st(Lc,me.nativeEvent,me.currentTarget)));return}At&&(ke.current!=null&&(ae.current=ke.current),Wt(me),!je&&A?s.setOpen(!0,st(Lc,me.nativeEvent,me.currentTarget)):Oe(me),je&&X(me))}},onFocus(me){s.select("open")&&!C&&(ae.current=-1,X(me))},onPointerDown:he,onPointerEnter:he,onMouseDown:ce,onClick:ce}},[Oe,ye,R,f,k,X,s,A,x,ge,S,ke,C]),Me=E.useMemo(()=>({...Ce,...be}),[Ce,be]);return E.useMemo(()=>m?{reference:Me,floating:De,item:pe,trigger:be}:{},[m,Me,De,be,pe])}const A3=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function M3(e,t={}){const s="rootStore"in e?e.rootStore:e,o=s.useState("open"),r=s.useState("floatingId"),u=s.useState("domReferenceElement"),c=s.useState("floatingElement"),{enabled:f=!0,role:h="dialog"}=t,g=Do(),m=u?.id||g,b=E.useMemo(()=>ef(c)?.id||r,[c,r]),y=A3.get(h)??h,k=Zs()!=null,S=E.useMemo(()=>y==="tooltip"||h==="label"?Lt:{"aria-haspopup":y==="alertdialog"?"dialog":y,"aria-expanded":"false",...y==="listbox"&&{role:"combobox"},...y==="menu"&&k&&{role:"menuitem"},...h==="select"&&{"aria-autocomplete":"none"},...h==="combobox"&&{"aria-autocomplete":"list"}},[y,k,h]),C=E.useMemo(()=>y==="tooltip"||h==="label"?{[`aria-${h==="label"?"labelledby":"describedby"}`]:o?b:void 0}:{...S,"aria-expanded":o?"true":"false","aria-controls":o?b:void 0,...y==="menu"&&{id:m}},[y,b,o,m,h,S]),R=E.useMemo(()=>{const A={id:b,...y&&{role:y}};return y==="tooltip"||h==="label"?A:{...A,...y==="menu"&&{"aria-labelledby":m}}},[y,b,m,h]),T=E.useCallback(({active:A,selected:w})=>{const x={role:"option",...A&&{id:`${b}-fui-option`}};switch(h){case"select":case"combobox":return{...x,"aria-selected":w}}return{}},[b,h]);return E.useMemo(()=>f?{reference:C,floating:R,item:T,trigger:S}:{},[f,C,R,S,T])}function D3(e,t){const s="rootStore"in e?e.rootStore:e,o=s.useState("open"),r=s.context.dataRef,{listRef:u,activeIndex:c,onMatch:f,onTypingChange:h,enabled:g=!0,findMatch:m=null,resetMs:b=750,ignoreKeys:y=Wc,selectedIndex:_=null}=t,k=Nn(),S=E.useRef(""),C=E.useRef(_??c??-1),R=E.useRef(null);Pe(()=>{o&&(k.clear(),R.current=null,S.current="")},[o,k]),Pe(()=>{o&&S.current===""&&(C.current=_??c??-1)},[o,_,c]);const T=we(M=>{M?r.current.typing||(r.current.typing=M,h?.(M)):r.current.typing&&(r.current.typing=M,h?.(M))}),A=we(M=>{function L(Q,B,q){const J=m?m(B,q):B.find(D=>D?.toLocaleLowerCase().indexOf(q.toLocaleLowerCase())===0);return J?Q.indexOf(J):-1}const P=u.current;if(S.current.length>0&&S.current[0]!==" "&&(L(P,P,S.current)===-1?T(!1):M.key===" "&&Wt(M)),P==null||y.includes(M.key)||M.key.length!==1||M.ctrlKey||M.metaKey||M.altKey)return;o&&M.key!==" "&&(Wt(M),T(!0)),P.every(Q=>Q?Q[0]?.toLocaleLowerCase()!==Q[1]?.toLocaleLowerCase():!0)&&S.current===M.key&&(S.current="",C.current=R.current),S.current+=M.key,k.start(b,()=>{S.current="",C.current=R.current,T(!1)});const Z=C.current,z=L(P,[...P.slice((Z||0)+1),...P.slice(0,(Z||0)+1)],S.current);z!==-1?(f?.(z),R.current=z):M.key!==" "&&(S.current="",T(!1))}),w=E.useMemo(()=>({onKeyDown:A}),[A]),x=E.useMemo(()=>({onKeyDown:A,onKeyUp(M){M.key===" "&&T(!1)}}),[A,T]);return E.useMemo(()=>g?{reference:w,floating:x}:{},[g,w,x])}function n0(e,t){const[s,o]=e;let r=!1;const u=t.length;for(let c=0,f=u-1;c<u;f=c++){const[h,g]=t[c]||[0,0],[m,b]=t[f]||[0,0];g>=o!=b>=o&&s<=(m-h)*(o-g)/(b-g)+h&&(r=!r)}return r}function L3(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function P3(e={}){const{buffer:t=.5,blockPointerEvents:s=!1,requireIntent:o=!0}=e,r=new To;let u=!1,c=null,f=null,h=typeof performance<"u"?performance.now():0;function g(b,y){const _=performance.now(),k=_-h;if(c===null||f===null||k===0)return c=b,f=y,h=_,null;const S=b-c,C=y-f,T=Math.sqrt(S*S+C*C)/k;return c=b,f=y,h=_,T}const m=({x:b,y,placement:_,elements:k,onClose:S,nodeId:C,tree:R})=>function(A){function w(){r.clear(),S()}if(r.clear(),!k.domReference||!k.floating||_==null||b==null||y==null)return;const{clientX:x,clientY:M}=A,L=[x,M],P=_n(A),V=A.type==="mouseleave",Z=Ye(k.floating,P),z=Ye(k.domReference,P),Q=k.domReference.getBoundingClientRect(),B=k.floating.getBoundingClientRect(),q=_.split("-")[0],J=b>B.right-B.width/2,D=y>B.bottom-B.height/2,I=L3(L,Q),U=B.width>Q.width,oe=B.height>Q.height,ae=(U?Q:B).left,N=(U?Q:B).right,K=(oe?Q:B).top,X=(oe?Q:B).bottom;if(Z&&(u=!0,!V))return;if(z&&(u=!1),z&&!V){u=!0;return}if(V&&at(A.relatedTarget)&&Ye(k.floating,A.relatedTarget)||R&&So(R.nodesRef.current,C).some(({context:le})=>le?.open))return;if(q==="top"&&y>=Q.bottom-1||q==="bottom"&&y<=Q.top+1||q==="left"&&b>=Q.right-1||q==="right"&&b<=Q.left+1)return w();let re=[];switch(q){case"top":re=[[ae,Q.top+1],[ae,B.bottom-1],[N,B.bottom-1],[N,Q.top+1]];break;case"bottom":re=[[ae,B.top+1],[ae,Q.bottom-1],[N,Q.bottom-1],[N,B.top+1]];break;case"left":re=[[B.right-1,X],[B.right-1,K],[Q.left+1,K],[Q.left+1,X]];break;case"right":re=[[Q.right-1,X],[Q.right-1,K],[B.left+1,K],[B.left+1,X]];break}function fe([le,ue]){switch(q){case"top":{const de=[U?le+t/2:J?le+t*4:le-t*4,ue+t+1],ye=[U?le-t/2:J?le+t*4:le-t*4,ue+t+1],xe=[[B.left,J||U?B.bottom-t:B.top],[B.right,J?U?B.bottom-t:B.top:B.bottom-t]];return[de,ye,...xe]}case"bottom":{const de=[U?le+t/2:J?le+t*4:le-t*4,ue-t],ye=[U?le-t/2:J?le+t*4:le-t*4,ue-t],xe=[[B.left,J||U?B.top+t:B.bottom],[B.right,J?U?B.top+t:B.bottom:B.top+t]];return[de,ye,...xe]}case"left":{const de=[le+t+1,oe?ue+t/2:D?ue+t*4:ue-t*4],ye=[le+t+1,oe?ue-t/2:D?ue+t*4:ue-t*4];return[...[[D||oe?B.right-t:B.left,B.top],[D?oe?B.right-t:B.left:B.right-t,B.bottom]],de,ye]}case"right":{const de=[le-t,oe?ue+t/2:D?ue+t*4:ue-t*4],ye=[le-t,oe?ue-t/2:D?ue+t*4:ue-t*4],xe=[[D||oe?B.left+t:B.right,B.top],[D?oe?B.left+t:B.right:B.left+t,B.bottom]];return[de,ye,...xe]}default:return[]}}if(!n0([x,M],re)){if(u&&!I)return w();if(!V&&o){const le=g(A.clientX,A.clientY);if(le!==null&&le<.1)return w()}n0([x,M],fe([b,y]))?!u&&o&&r.start(40,w):w()}};return m.__options={blockPointerEvents:s},m}function N3(e){const t=E.useRef(""),s=E.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:E.useCallback(r=>{if(r.detail===0){e(r,"keyboard");return}"pointerType"in r&&e(r,r.pointerType),e(r,t.current),t.current=""},[e]),onPointerDown:s}}function z3(e){const[t,s]=E.useState(null),o=we((f,h)=>{e||s(h)}),r=E.useCallback(()=>{s(null)},[]),{onClick:u,onPointerDown:c}=N3(o);return E.useMemo(()=>({openMethod:t,reset:r,triggerProps:{onClick:u,onPointerDown:c}}),[t,r,u,c])}let Em=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Jc.startingStyle]="startingStyle",e[e.endingStyle=Jc.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e})({}),lp=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const $3={[lp.popupOpen]:""},j3={[lp.popupOpen]:"",[lp.pressed]:""},U3={[Em.open]:""},I3={[Em.closed]:""},V3={[Em.anchorHidden]:""},fj={open(e){return e?$3:null}},s0={open(e){return e?j3:null}},Jk={open(e){return e?U3:I3},anchorHidden(e){return e?V3:null}};function B3(e){return am(19)?e:e?"true":void 0}const q3=E.forwardRef(function(t,s){const{cutout:o,...r}=t;let u;if(o){const c=o?.getBoundingClientRect();u=`polygon(
|
|
3
3
|
0% 0%,
|
|
4
4
|
100% 0%,
|
|
@@ -16,7 +16,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./route-Dsk5qQsg.js","
|
|
|
16
16
|
touch-action: pan-x pan-y pinch-zoom;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`.trim(),z.head.prepend(Q)},[y]),E.useEffect(()=>{let z=C.current;return()=>{var Q;b||g0((Q=z.target)!==null&&Q!==void 0?Q:void 0);for(let B of z.disposables)B();z.disposables=[]}},[b]),{isPressed:h||k,pressProps:Ui(_,Z,{[y0]:!0})}}function Am(e){return e.tagName==="A"&&e.hasAttribute("href")}function xg(e,t){const{key:s,code:o}=e,r=t,u=r.getAttribute("role");return(s==="Enter"||s===" "||s==="Spacebar"||o==="Space")&&!(r instanceof ls(r).HTMLInputElement&&!RS(r,s)||r instanceof ls(r).HTMLTextAreaElement||r.isContentEditable)&&!((u==="link"||!u&&Am(r))&&s!=="Enter")}function uo(e,t){let s=t.clientX,o=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:s,clientY:o}}function CD(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Am(e)}function v0(e,t){return e instanceof HTMLInputElement?!RS(e,t):CD(e)}const ED=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function RS(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":ED.has(e.type)}let Fa=null,fp=new Set,hl=new Map,Oo=!1,dp=!1;const RD={Tab:!0,Escape:!0};function Mm(e,t){for(let s of fp)s(e,t)}function xD(e){return!(e.metaKey||!Sl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ff(e){Oo=!0,xD(e)&&(Fa="keyboard",Mm("keyboard",e))}function Aa(e){Fa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Oo=!0,Mm("pointer",e))}function xS(e){bS(e)&&(Oo=!0,Fa="virtual")}function TS(e){e.target===window||e.target===document||cf||!e.isTrusted||(!Oo&&!dp&&(Fa="virtual",Mm("virtual",e)),Oo=!1,dp=!1)}function wS(){cf||(Oo=!1,dp=!0)}function hp(e){if(typeof window>"u"||typeof document>"u"||hl.get(ls(e)))return;const t=ls(e),s=ln(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Oo=!0,o.apply(this,arguments)},s.addEventListener("keydown",ff,!0),s.addEventListener("keyup",ff,!0),s.addEventListener("click",xS,!0),t.addEventListener("focus",TS,!0),t.addEventListener("blur",wS,!1),typeof PointerEvent<"u"&&(s.addEventListener("pointerdown",Aa,!0),s.addEventListener("pointermove",Aa,!0),s.addEventListener("pointerup",Aa,!0)),t.addEventListener("beforeunload",()=>{OS(e)},{once:!0}),hl.set(t,{focus:o})}const OS=(e,t)=>{const s=ls(e),o=ln(e);t&&o.removeEventListener("DOMContentLoaded",t),hl.has(s)&&(s.HTMLElement.prototype.focus=hl.get(s).focus,o.removeEventListener("keydown",ff,!0),o.removeEventListener("keyup",ff,!0),o.removeEventListener("click",xS,!0),s.removeEventListener("focus",TS,!0),s.removeEventListener("blur",wS,!1),typeof PointerEvent<"u"&&(o.removeEventListener("pointerdown",Aa,!0),o.removeEventListener("pointermove",Aa,!0),o.removeEventListener("pointerup",Aa,!0)),hl.delete(s))};function TD(e){const t=ln(e);let s;return t.readyState!=="loading"?hp(e):(s=()=>{hp(e)},t.addEventListener("DOMContentLoaded",s)),()=>OS(e,s)}typeof document<"u"&&TD();function AS(){return Fa!=="pointer"}function wD(){return Fa}const OD=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function AD(e,t,s){let o=ln(s?.target);const r=typeof window<"u"?ls(s?.target).HTMLInputElement:HTMLInputElement,u=typeof window<"u"?ls(s?.target).HTMLTextAreaElement:HTMLTextAreaElement,c=typeof window<"u"?ls(s?.target).HTMLElement:HTMLElement,f=typeof window<"u"?ls(s?.target).KeyboardEvent:KeyboardEvent;return e=e||o.activeElement instanceof r&&!OD.has(o.activeElement.type)||o.activeElement instanceof u||o.activeElement instanceof c&&o.activeElement.isContentEditable,!(e&&t==="keyboard"&&s instanceof f&&!RD[s.key])}function MD(e,t,s){hp(),E.useEffect(()=>{let o=(r,u)=>{AD(!!s?.isTextInput,r,u)&&e(AS())};return fp.add(o),()=>{fp.delete(o)}},t)}function DD(e){const t=ln(e),s=kl(t);if(wD()==="virtual"){let o=s;pS(()=>{kl(t)===o&&e.isConnected&&Va(e)})}else Va(e)}function MS(e){let{isDisabled:t,onFocus:s,onBlur:o,onFocusChange:r}=e;const u=E.useCallback(h=>{if(h.target===h.currentTarget)return o&&o(h),r&&r(!1),!0},[o,r]),c=SS(u),f=E.useCallback(h=>{const g=ln(h.target),m=g?kl(g):kl();h.target===h.currentTarget&&m===rn(h.nativeEvent)&&(s&&s(h),r&&r(!0),c(h))},[r,s,c]);return{focusProps:{onFocus:!t&&(s||r||o)?f:void 0,onBlur:!t&&(o||r)?u:void 0}}}function _0(e){if(!e)return;let t=!0;return s=>{let o={...s,preventDefault(){s.preventDefault()},isDefaultPrevented(){return s.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&s.stopPropagation()}}function LD(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:_0(e.onKeyDown),onKeyUp:_0(e.onKeyUp)}}}let PD=Ct.createContext(null);function ND(e){let t=E.useContext(PD)||{};mS(t,e);let{ref:s,...o}=t;return o}function zD(e,t){let{focusProps:s}=MS(e),{keyboardProps:o}=LD(e),r=Ui(s,o),u=ND(t),c=e.isDisabled?{}:u,f=E.useRef(e.autoFocus);E.useEffect(()=>{f.current&&t.current&&DD(t.current),f.current=!1},[t]);let h=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(h=void 0),{focusableProps:Ui({...r,tabIndex:h},c)}}function $D(e){let{isDisabled:t,onBlurWithin:s,onFocusWithin:o,onFocusWithinChange:r}=e,u=E.useRef({isFocusWithin:!1}),{addGlobalListener:c,removeAllGlobalListeners:f}=wm(),h=E.useCallback(b=>{b.currentTarget.contains(b.target)&&u.current.isFocusWithin&&!b.currentTarget.contains(b.relatedTarget)&&(u.current.isFocusWithin=!1,f(),s&&s(b),r&&r(!1))},[s,r,u,f]),g=SS(h),m=E.useCallback(b=>{if(!b.currentTarget.contains(b.target))return;const y=ln(b.target),_=kl(y);if(!u.current.isFocusWithin&&_===rn(b.nativeEvent)){o&&o(b),r&&r(!0),u.current.isFocusWithin=!0,g(b);let k=b.currentTarget;c(y,"focus",S=>{if(u.current.isFocusWithin&&!Yn(k,S.target)){let C=new y.defaultView.FocusEvent("blur",{relatedTarget:S.target});kS(C,k);let R=Om(C);h(R)}},{capture:!0})}},[o,r,g,c,h]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:h}}}let gp=!1,vc=0;function jD(){gp=!0,setTimeout(()=>{gp=!1},50)}function k0(e){e.pointerType==="touch"&&jD()}function UD(){if(!(typeof document>"u"))return vc===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",k0),vc++,()=>{vc--,!(vc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",k0)}}function ID(e){let{onHoverStart:t,onHoverChange:s,onHoverEnd:o,isDisabled:r}=e,[u,c]=E.useState(!1),f=E.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;E.useEffect(UD,[]);let{addGlobalListener:h,removeAllGlobalListeners:g}=wm(),{hoverProps:m,triggerHoverEnd:b}=E.useMemo(()=>{let y=(S,C)=>{if(f.pointerType=C,r||C==="touch"||f.isHovered||!S.currentTarget.contains(S.target))return;f.isHovered=!0;let R=S.currentTarget;f.target=R,h(ln(S.target),"pointerover",T=>{f.isHovered&&f.target&&!Yn(f.target,T.target)&&_(T,T.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:R,pointerType:C}),s&&s(!0),c(!0)},_=(S,C)=>{let R=f.target;f.pointerType="",f.target=null,!(C==="touch"||!f.isHovered||!R)&&(f.isHovered=!1,g(),o&&o({type:"hoverend",target:R,pointerType:C}),s&&s(!1),c(!1))},k={};return typeof PointerEvent<"u"&&(k.onPointerEnter=S=>{gp&&S.pointerType==="mouse"||y(S,S.pointerType)},k.onPointerLeave=S=>{!r&&S.currentTarget.contains(S.target)&&_(S,S.pointerType)}),{hoverProps:k,triggerHoverEnd:_}},[t,s,o,r,f,h,g]);return E.useEffect(()=>{r&&b({currentTarget:f.target},f.pointerType)},[r]),{hoverProps:m,isHovered:u}}function VD(e={}){let{autoFocus:t=!1,isTextInput:s,within:o}=e,r=E.useRef({isFocused:!1,isFocusVisible:t||AS()}),[u,c]=E.useState(!1),[f,h]=E.useState(()=>r.current.isFocused&&r.current.isFocusVisible),g=E.useCallback(()=>h(r.current.isFocused&&r.current.isFocusVisible),[]),m=E.useCallback(_=>{r.current.isFocused=_,c(_),g()},[g]);MD(_=>{r.current.isFocusVisible=_,g()},[],{isTextInput:s});let{focusProps:b}=MS({isDisabled:o,onFocusChange:m}),{focusWithinProps:y}=$D({isDisabled:!o,onFocusWithinChange:m});return{isFocused:u,isFocusVisible:f,focusProps:o?y:b}}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 BD=E.createContext(!1);function qD(e){let t=(s,o)=>E.useContext(BD)?null:e(s,o);return t.displayName=e.displayName||e.name,E.forwardRef(t)}function HD(e,t){let{elementType:s="button",isDisabled:o,onPress:r,onPressStart:u,onPressEnd:c,onPressUp:f,onPressChange:h,preventFocusOnPress:g,allowFocusWhenDisabled:m,onClick:b,href:y,target:_,rel:k,type:S="button"}=e,C;s==="button"?C={type:S,disabled:o,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:C={role:"button",href:s==="a"&&!o?y:void 0,target:s==="a"?_:void 0,type:s==="input"?S:void 0,disabled:s==="input"?o:void 0,"aria-disabled":!o||s==="input"?void 0:o,rel:s==="a"?k:void 0};let{pressProps:R,isPressed:T}=SD({onPressStart:u,onPressEnd:c,onPressChange:h,onPress:r,onPressUp:f,onClick:b,isDisabled:o,preventFocusOnPress:g,ref:t}),{focusableProps:A}=zD(e,t);m&&(A.tabIndex=o?-1:A.tabIndex);let w=Ui(A,R,fS(e,{labelable:!0}));return{isPressed:T,buttonProps:Ui(C,w,{"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"]})}}const FD=E.createContext(null),KD=E.createContext({}),GD=qD(function(t,s){[t,s]=dD(t,s,KD);let o=t,{isPending:r}=o,{buttonProps:u,isPressed:c}=HD(t,s);u=YD(u,r);let{focusProps:f,isFocused:h,isFocusVisible:g}=VD(t),{hoverProps:m,isHovered:b}=ID({...t,isDisabled:t.isDisabled||r}),y={isHovered:b,isPressed:(o.isPressed||c)&&!r,isFocused:h,isFocusVisible:g,isDisabled:t.isDisabled||!1,isPending:r??!1},_=cD({...t,values:y,defaultClassName:"react-aria-Button"}),k=u0(u.id),S=u0(),C=u["aria-labelledby"];r&&(C?C=`${C} ${S}`:u["aria-label"]&&(C=`${k} ${S}`));let R=E.useRef(r);E.useEffect(()=>{let A={"aria-labelledby":C||k};(!R.current&&h&&r||R.current&&h&&!r)&&h0(A,"assertive"),R.current=r},[r,h,C,k]);let T=fS(t,{global:!0});return delete T.onClick,Ct.createElement("button",{...Ui(T,_,u,f,m),type:u.type==="submit"&&r?"button":u.type,id:k,ref:s,"aria-labelledby":C,slot:t.slot||void 0,"aria-disabled":r?"true":u["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":y.isPressed||void 0,"data-hovered":b||void 0,"data-focused":h||void 0,"data-pending":r||void 0,"data-focus-visible":g||void 0},Ct.createElement(FD.Provider,{value:{id:S}},_.children))});function YD(e,t){if(t){for(const s in e)s.startsWith("on")&&!(s.includes("Focus")||s.includes("Blur"))&&(e[s]=void 0);e.href=void 0,e.target=void 0}return e}function S0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function QD(...e){return t=>{let s=!1;const o=e.map(r=>{const u=S0(r,t);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let r=0;r<o.length;r++){const u=o[r];typeof u=="function"?u():S0(e[r],null)}}}}var XD=Symbol.for("react.lazy"),df=em[" use ".trim().toString()];function WD(e){return typeof e=="object"&&e!==null&&"then"in e}function DS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===XD&&"_payload"in e&&WD(e._payload)}function ZD(e){const t=e4(e),s=E.forwardRef((o,r)=>{let{children:u,...c}=o;DS(u)&&typeof df=="function"&&(u=df(u._payload));const f=E.Children.toArray(u),h=f.find(n4);if(h){const g=h.props.children,m=f.map(b=>b===h?E.Children.count(g)>1?E.Children.only(null):E.isValidElement(g)?g.props.children:null:b);return Y.jsx(t,{...c,ref:r,children:E.isValidElement(g)?E.cloneElement(g,void 0,m):null})}return Y.jsx(t,{...c,ref:r,children:u})});return s.displayName=`${e}.Slot`,s}var JD=ZD("Slot");function e4(e){const t=E.forwardRef((s,o)=>{let{children:r,...u}=s;if(DS(r)&&typeof df=="function"&&(r=df(r._payload)),E.isValidElement(r)){const c=i4(r),f=s4(u,r.props);return r.type!==E.Fragment&&(f.ref=o?QD(o,c):c),E.cloneElement(r,f)}return E.Children.count(r)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var t4=Symbol("radix.slottable");function n4(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===t4}function s4(e,t){const s={...t};for(const o in t){const r=e[o],u=t[o];/^on[A-Z]/.test(o)?r&&u?s[o]=(...f)=>{const h=u(...f);return r(...f),h}:r&&(s[o]=r):o==="style"?s[o]={...r,...u}:o==="className"&&(s[o]=[r,u].filter(Boolean).join(" "))}return{...e,...s}}function i4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var o4=zn({defaultClassName:"_11bsk7z1 _11bsk7z0 _1lg22bks0 _1lg22bksi _1lg22bkbf _1lg22bk116",variantClassNames:{collapsed:{true:"_11bsk7z2",false:"_11bsk7z3"},position:{fixed:"_11bsk7z4",relative:"_11bsk7z5"},theme:{light:"_11bsk7z6",dark:"_11bsk7z7"}},defaultVariants:{collapsed:!1,position:"relative",theme:"light"},compoundVariants:[]}),a4=zn({defaultClassName:"_11bsk7zb _11bsk7z8 _1lg22bkpx _1lg22bk6",variantClassNames:{centered:{true:"_11bsk7zc _11bsk7z9 _1lg22bks0 _1lg22bktf _1lg22bksx",false:"_11bsk7zd _11bsk7za _1lg22bks0 _1lg22bktf _1lg22bksl"}},defaultVariants:{centered:!1},compoundVariants:[]}),r4=zn({defaultClassName:"_11bsk7zh _11bsk7ze _1lg22bkpx _1lg22bk6",variantClassNames:{centered:{true:"_11bsk7zi _11bsk7zf _1lg22bks0 _1lg22bktf _1lg22bksx",false:"_11bsk7zj _11bsk7zg _1lg22bks0 _1lg22bktf _1lg22bksl"}},defaultVariants:{centered:!1},compoundVariants:[]}),l4=zn({defaultClassName:"_11bsk7zl _11bsk7zk _1lg22bk6 _1lg22bkto _1lg22bks0 _1lg22bksi",variantClassNames:{},defaultVariants:{},compoundVariants:[]}),u4=zn({defaultClassName:"_11bsk7zn _11bsk7zm _1lg22bks0 _1lg22bk3 _1lg22bkv0 _1lg22bkj9 _1lg22bkw0",variantClassNames:{},defaultVariants:{},compoundVariants:[]});const c4=e=>{const t=Ut.c(10);let s,o,r;t[0]!==e?({centered:s,className:o,...r}=e,t[0]=e,t[1]=s,t[2]=o,t[3]=r):(s=t[1],o=t[2],r=t[3]);let u;t[4]!==s||t[5]!==o?(u=Js(a4({centered:s}),o),t[4]=s,t[5]=o,t[6]=u):u=t[6];let c;return t[7]!==r||t[8]!==u?(c=Y.jsx("div",{slot:"sidebar-header",...r,className:u}),t[7]=r,t[8]=u,t[9]=c):c=t[9],c},f4=e=>{const t=Ut.c(10);let s,o,r;t[0]!==e?({centered:s,className:o,...r}=e,t[0]=e,t[1]=s,t[2]=o,t[3]=r):(s=t[1],o=t[2],r=t[3]);let u;t[4]!==s||t[5]!==o?(u=Js(r4({centered:s}),o),t[4]=s,t[5]=o,t[6]=u):u=t[6];let c;return t[7]!==r||t[8]!==u?(c=Y.jsx("div",{slot:"sidebar-footer",...r,className:u}),t[7]=r,t[8]=u,t[9]=c):c=t[9],c},d4=e=>{const t=Ut.c(8);let s,o;t[0]!==e?({className:s,...o}=e,t[0]=e,t[1]=s,t[2]=o):(s=t[1],o=t[2]);let r;t[3]!==s?(r=Js(l4(),s),t[3]=s,t[4]=r):r=t[4];let u;return t[5]!==o||t[6]!==r?(u=Y.jsx("div",{...o,className:r}),t[5]=o,t[6]=r,t[7]=u):u=t[7],u},h4=e=>{const t=Ut.c(14);let s,o,r,u,c;t[0]!==e?({collapsed:o,position:r,theme:c,className:s,...u}=e,t[0]=e,t[1]=s,t[2]=o,t[3]=r,t[4]=u,t[5]=c):(s=t[1],o=t[2],r=t[3],u=t[4],c=t[5]);let f;t[6]!==s||t[7]!==o||t[8]!==r||t[9]!==c?(f=Js(o4({collapsed:o,position:r,theme:c}),s),t[6]=s,t[7]=o,t[8]=r,t[9]=c,t[10]=f):f=t[10];let h;return t[11]!==u||t[12]!==f?(h=Y.jsx("aside",{...u,className:f}),t[11]=u,t[12]=f,t[13]=h):h=t[13],h},Xr=e=>{const t=Ut.c(12);let s,o,r,u;t[0]!==e?({className:o,asChild:u,children:s,...r}=e,t[0]=e,t[1]=s,t[2]=o,t[3]=r,t[4]=u):(s=t[1],o=t[2],r=t[3],u=t[4]);const c=u===void 0?!1:u;let f;t[5]!==o?(f=Js(u4(),o),t[5]=o,t[6]=f):f=t[6];const h=f,g=c?JD:GD;let m;return t[7]!==g||t[8]!==s||t[9]!==h||t[10]!==r?(m=Y.jsx(g,{className:h,...r,children:s}),t[7]=g,t[8]=s,t[9]=h,t[10]=r,t[11]=m):m=t[11],m};const g4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),p4=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,s,o)=>o?o.toUpperCase():s.toLowerCase()),C0=e=>{const t=p4(e);return t.charAt(0).toUpperCase()+t.slice(1)},LS=(...e)=>e.filter((t,s,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===s).join(" ").trim(),m4=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var b4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const y4=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:r="",children:u,iconNode:c,...f},h)=>E.createElement("svg",{ref:h,...b4,width:t,height:t,stroke:e,strokeWidth:o?Number(s)*24/Number(t):s,className:LS("lucide",r),...!u&&!m4(f)&&{"aria-hidden":"true"},...f},[...c.map(([g,m])=>E.createElement(g,m)),...Array.isArray(u)?u:[u]]));const tn=(e,t)=>{const s=E.forwardRef(({className:o,...r},u)=>E.createElement(y4,{ref:u,iconNode:t,className:LS(`lucide-${g4(C0(e))}`,`lucide-${e}`,o),...r}));return s.displayName=C0(e),s};const v4=[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]],PS=tn("blocks",v4);const _4=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],k4=tn("building-2",_4);const S4=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],C4=tn("chart-column",S4);const E4=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],R4=tn("chevron-down",E4);const x4=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],T4=tn("dollar-sign",x4);const w4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],NS=tn("globe",w4);const O4=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],A4=tn("list",O4);const M4=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],D4=tn("log-out",M4);const L4=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],P4=tn("monitor",L4);const N4=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],z4=tn("moon",N4);const $4=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],j4=tn("plug",$4);const U4=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],zS=tn("settings",U4);const I4=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],$S=tn("sliders-vertical",I4);const V4=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],B4=tn("sun",V4);const q4=[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]],jS=tn("telescope",q4);const H4=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],F4=tn("user",H4);var gj="fs2a330",pj="fs2a331",mj="fs2a332",bj="fs2a333",yj="fs2a334",vj=zn({defaultClassName:"fs2a335",variantClassNames:{interactive:{true:"fs2a336",false:"fs2a337"},selected:{true:"fs2a338",false:"fs2a339"}},defaultVariants:{interactive:!1,selected:!1},compoundVariants:[]}),_j="fs2a33a",kj="fs2a33b",Sj="_1mfazoe0",Cj="_1mfazoe1",Ej="_1mfazoe2",Rj="_1mfazoe4 _1mfazoe3 _1lg22bkv0 _1lg22bkuc _1lg22bk26 _1lg22bk2u _1lg22bkj9",xj="_1mfazoe5",Tj="_1mfazoe6",wj="_1mfazoe7",Oj="_1mfazoe8",Aj="_1mfazoe9",Mj="_1mfazoea",Dj="_1mfazoeb",Lj="_1mfazoec",Pj=zn({defaultClassName:"_1mfazoed",variantClassNames:{withIcon:{true:"_1mfazoee",false:"_1mfazoef"}},defaultVariants:{withIcon:!1},compoundVariants:[]}),Nj=zn({defaultClassName:"_1mfazoeg",variantClassNames:{withIcon:{true:"_1mfazoeh",false:"_1mfazoei"}},defaultVariants:{withIcon:!1},compoundVariants:[]}),zj=zn({defaultClassName:"_1mfazoej",variantClassNames:{withIcon:{true:"_1mfazoek",false:"_1mfazoel"}},defaultVariants:{withIcon:!1},compoundVariants:[]}),$j=zn({defaultClassName:"_1mfazoem",variantClassNames:{withIcon:{true:"_1mfazoen",false:"_1mfazoeo"}},defaultVariants:{withIcon:!1},compoundVariants:[]}),jj="_1mfazoep",Uj="_1mfazoeq",Ij="_1mfazoer",Vj="_1mfazoes",Bj="_1mfazoet",qj="_1mfazoeu",Hj="_1mfazoev",Fj="_1mfazoey",Kj="_1mfazoez",Gj="_1mfazoe10",Yj="_1mfazoe12 _1mfazoe11 _1lg22bkv0 _1lg22bkuc _1lg22bk23 _1lg22bkjc",Qj="_1mfazoe13",Xj="_1mfazoe14",K4=zn({defaultClassName:"_1g4ahca0",variantClassNames:{size:{default:"_1g4ahca1",lg:"_1g4ahca2"},variant:{default:"_1g4ahca3",filled:"_1g4ahca4"}},defaultVariants:{size:"default",variant:"default"},compoundVariants:[]});const G4=E.forwardRef((e,t)=>{const s=Ut.c(13);let o,r,u,c;s[0]!==e?({variant:c,size:u,className:o,...r}=e,s[0]=e,s[1]=o,s[2]=r,s[3]=u,s[4]=c):(o=s[1],r=s[2],u=s[3],c=s[4]);let f;s[5]!==o||s[6]!==u||s[7]!==c?(f=Js(K4({variant:c,size:u}),o),s[5]=o,s[6]=u,s[7]=c,s[8]=f):f=s[8];let h;return s[9]!==r||s[10]!==t||s[11]!==f?(h=Y.jsx("input",{ref:t,className:f,...r}),s[9]=r,s[10]=t,s[11]=f,s[12]=h):h=s[12],h});G4.displayName="Input";function Y4(e,t){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var o=s.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q4(e){var t=Y4(e,"string");return typeof t=="symbol"?t:String(t)}function X4(e,t,s){return t=Q4(t),t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function E0(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),s.push.apply(s,o)}return s}function Tg(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?E0(Object(s),!0).forEach(function(o){X4(e,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):E0(Object(s)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(s,o))})}return e}var W4=e=>function(){for(var t=arguments.length,s=new Array(t),o=0;o<t;o++)s[o]=arguments[o];var r=Object.assign({},...s.map(h=>h.styles)),u=Object.keys(r),c=u.filter(h=>"mappings"in r[h]),f=h=>{var g=[],m={},b=Tg({},h),y=!1;for(var _ of c){var k=h[_];if(k!=null){var S=r[_];y=!0;for(var C of S.mappings)m[C]=k,b[C]==null&&delete b[C]}}var R=y?Tg(Tg({},m),b):h,T=function(){var x=R[A],M=r[A];try{if(M.mappings)return 1;if(typeof x=="string"||typeof x=="number")g.push(M.values[x].defaultClass);else if(Array.isArray(x))for(var L=0;L<x.length;L++){var P=x[L];if(P!=null){var V=M.responsiveArray[L];g.push(M.values[P].conditions[V])}}else for(var Z in x){var z=x[Z];z!=null&&g.push(M.values[z].conditions[Z])}}catch(Q){throw Q}};for(var A in R)T();return e(g.join(" "))};return Object.assign(f,{properties:new Set(u)})},Z4=e=>e,J4=function(){return W4(Z4)(...arguments)};J4({conditions:{defaultCondition:"mobile",conditionNames:["mobile","tablet","desktop"],responsiveArray:void 0},styles:{p:{mappings:["padding"]},px:{mappings:["paddingLeft","paddingRight"]},py:{mappings:["paddingTop","paddingBottom"]},m:{mappings:["margin"]},mx:{mappings:["marginLeft","marginRight"]},my:{mappings:["marginTop","marginBottom"]},padding:{values:{none:{conditions:{mobile:"_1lg22bk0",tablet:"_1lg22bk1",desktop:"_1lg22bk2"},defaultClass:"_1lg22bk0"},xs:{conditions:{mobile:"_1lg22bk3",tablet:"_1lg22bk4",desktop:"_1lg22bk5"},defaultClass:"_1lg22bk3"},sm:{conditions:{mobile:"_1lg22bk6",tablet:"_1lg22bk7",desktop:"_1lg22bk8"},defaultClass:"_1lg22bk6"},md:{conditions:{mobile:"_1lg22bk9",tablet:"_1lg22bka",desktop:"_1lg22bkb"},defaultClass:"_1lg22bk9"},lg:{conditions:{mobile:"_1lg22bkc",tablet:"_1lg22bkd",desktop:"_1lg22bke"},defaultClass:"_1lg22bkc"},xl:{conditions:{mobile:"_1lg22bkf",tablet:"_1lg22bkg",desktop:"_1lg22bkh"},defaultClass:"_1lg22bkf"},"2xl":{conditions:{mobile:"_1lg22bki",tablet:"_1lg22bkj",desktop:"_1lg22bkk"},defaultClass:"_1lg22bki"},"3xl":{conditions:{mobile:"_1lg22bkl",tablet:"_1lg22bkm",desktop:"_1lg22bkn"},defaultClass:"_1lg22bkl"}}},paddingTop:{values:{none:{conditions:{mobile:"_1lg22bko",tablet:"_1lg22bkp",desktop:"_1lg22bkq"},defaultClass:"_1lg22bko"},xs:{conditions:{mobile:"_1lg22bkr",tablet:"_1lg22bks",desktop:"_1lg22bkt"},defaultClass:"_1lg22bkr"},sm:{conditions:{mobile:"_1lg22bku",tablet:"_1lg22bkv",desktop:"_1lg22bkw"},defaultClass:"_1lg22bku"},md:{conditions:{mobile:"_1lg22bkx",tablet:"_1lg22bky",desktop:"_1lg22bkz"},defaultClass:"_1lg22bkx"},lg:{conditions:{mobile:"_1lg22bk10",tablet:"_1lg22bk11",desktop:"_1lg22bk12"},defaultClass:"_1lg22bk10"},xl:{conditions:{mobile:"_1lg22bk13",tablet:"_1lg22bk14",desktop:"_1lg22bk15"},defaultClass:"_1lg22bk13"},"2xl":{conditions:{mobile:"_1lg22bk16",tablet:"_1lg22bk17",desktop:"_1lg22bk18"},defaultClass:"_1lg22bk16"},"3xl":{conditions:{mobile:"_1lg22bk19",tablet:"_1lg22bk1a",desktop:"_1lg22bk1b"},defaultClass:"_1lg22bk19"}}},paddingBottom:{values:{none:{conditions:{mobile:"_1lg22bk1c",tablet:"_1lg22bk1d",desktop:"_1lg22bk1e"},defaultClass:"_1lg22bk1c"},xs:{conditions:{mobile:"_1lg22bk1f",tablet:"_1lg22bk1g",desktop:"_1lg22bk1h"},defaultClass:"_1lg22bk1f"},sm:{conditions:{mobile:"_1lg22bk1i",tablet:"_1lg22bk1j",desktop:"_1lg22bk1k"},defaultClass:"_1lg22bk1i"},md:{conditions:{mobile:"_1lg22bk1l",tablet:"_1lg22bk1m",desktop:"_1lg22bk1n"},defaultClass:"_1lg22bk1l"},lg:{conditions:{mobile:"_1lg22bk1o",tablet:"_1lg22bk1p",desktop:"_1lg22bk1q"},defaultClass:"_1lg22bk1o"},xl:{conditions:{mobile:"_1lg22bk1r",tablet:"_1lg22bk1s",desktop:"_1lg22bk1t"},defaultClass:"_1lg22bk1r"},"2xl":{conditions:{mobile:"_1lg22bk1u",tablet:"_1lg22bk1v",desktop:"_1lg22bk1w"},defaultClass:"_1lg22bk1u"},"3xl":{conditions:{mobile:"_1lg22bk1x",tablet:"_1lg22bk1y",desktop:"_1lg22bk1z"},defaultClass:"_1lg22bk1x"}}},paddingLeft:{values:{none:{conditions:{mobile:"_1lg22bk20",tablet:"_1lg22bk21",desktop:"_1lg22bk22"},defaultClass:"_1lg22bk20"},xs:{conditions:{mobile:"_1lg22bk23",tablet:"_1lg22bk24",desktop:"_1lg22bk25"},defaultClass:"_1lg22bk23"},sm:{conditions:{mobile:"_1lg22bk26",tablet:"_1lg22bk27",desktop:"_1lg22bk28"},defaultClass:"_1lg22bk26"},md:{conditions:{mobile:"_1lg22bk29",tablet:"_1lg22bk2a",desktop:"_1lg22bk2b"},defaultClass:"_1lg22bk29"},lg:{conditions:{mobile:"_1lg22bk2c",tablet:"_1lg22bk2d",desktop:"_1lg22bk2e"},defaultClass:"_1lg22bk2c"},xl:{conditions:{mobile:"_1lg22bk2f",tablet:"_1lg22bk2g",desktop:"_1lg22bk2h"},defaultClass:"_1lg22bk2f"},"2xl":{conditions:{mobile:"_1lg22bk2i",tablet:"_1lg22bk2j",desktop:"_1lg22bk2k"},defaultClass:"_1lg22bk2i"},"3xl":{conditions:{mobile:"_1lg22bk2l",tablet:"_1lg22bk2m",desktop:"_1lg22bk2n"},defaultClass:"_1lg22bk2l"}}},paddingRight:{values:{none:{conditions:{mobile:"_1lg22bk2o",tablet:"_1lg22bk2p",desktop:"_1lg22bk2q"},defaultClass:"_1lg22bk2o"},xs:{conditions:{mobile:"_1lg22bk2r",tablet:"_1lg22bk2s",desktop:"_1lg22bk2t"},defaultClass:"_1lg22bk2r"},sm:{conditions:{mobile:"_1lg22bk2u",tablet:"_1lg22bk2v",desktop:"_1lg22bk2w"},defaultClass:"_1lg22bk2u"},md:{conditions:{mobile:"_1lg22bk2x",tablet:"_1lg22bk2y",desktop:"_1lg22bk2z"},defaultClass:"_1lg22bk2x"},lg:{conditions:{mobile:"_1lg22bk30",tablet:"_1lg22bk31",desktop:"_1lg22bk32"},defaultClass:"_1lg22bk30"},xl:{conditions:{mobile:"_1lg22bk33",tablet:"_1lg22bk34",desktop:"_1lg22bk35"},defaultClass:"_1lg22bk33"},"2xl":{conditions:{mobile:"_1lg22bk36",tablet:"_1lg22bk37",desktop:"_1lg22bk38"},defaultClass:"_1lg22bk36"},"3xl":{conditions:{mobile:"_1lg22bk39",tablet:"_1lg22bk3a",desktop:"_1lg22bk3b"},defaultClass:"_1lg22bk39"}}},margin:{values:{none:{conditions:{mobile:"_1lg22bk3c",tablet:"_1lg22bk3d",desktop:"_1lg22bk3e"},defaultClass:"_1lg22bk3c"},xs:{conditions:{mobile:"_1lg22bk3f",tablet:"_1lg22bk3g",desktop:"_1lg22bk3h"},defaultClass:"_1lg22bk3f"},sm:{conditions:{mobile:"_1lg22bk3i",tablet:"_1lg22bk3j",desktop:"_1lg22bk3k"},defaultClass:"_1lg22bk3i"},md:{conditions:{mobile:"_1lg22bk3l",tablet:"_1lg22bk3m",desktop:"_1lg22bk3n"},defaultClass:"_1lg22bk3l"},lg:{conditions:{mobile:"_1lg22bk3o",tablet:"_1lg22bk3p",desktop:"_1lg22bk3q"},defaultClass:"_1lg22bk3o"},xl:{conditions:{mobile:"_1lg22bk3r",tablet:"_1lg22bk3s",desktop:"_1lg22bk3t"},defaultClass:"_1lg22bk3r"},"2xl":{conditions:{mobile:"_1lg22bk3u",tablet:"_1lg22bk3v",desktop:"_1lg22bk3w"},defaultClass:"_1lg22bk3u"},"3xl":{conditions:{mobile:"_1lg22bk3x",tablet:"_1lg22bk3y",desktop:"_1lg22bk3z"},defaultClass:"_1lg22bk3x"}}},marginTop:{values:{none:{conditions:{mobile:"_1lg22bk40",tablet:"_1lg22bk41",desktop:"_1lg22bk42"},defaultClass:"_1lg22bk40"},xs:{conditions:{mobile:"_1lg22bk43",tablet:"_1lg22bk44",desktop:"_1lg22bk45"},defaultClass:"_1lg22bk43"},sm:{conditions:{mobile:"_1lg22bk46",tablet:"_1lg22bk47",desktop:"_1lg22bk48"},defaultClass:"_1lg22bk46"},md:{conditions:{mobile:"_1lg22bk49",tablet:"_1lg22bk4a",desktop:"_1lg22bk4b"},defaultClass:"_1lg22bk49"},lg:{conditions:{mobile:"_1lg22bk4c",tablet:"_1lg22bk4d",desktop:"_1lg22bk4e"},defaultClass:"_1lg22bk4c"},xl:{conditions:{mobile:"_1lg22bk4f",tablet:"_1lg22bk4g",desktop:"_1lg22bk4h"},defaultClass:"_1lg22bk4f"},"2xl":{conditions:{mobile:"_1lg22bk4i",tablet:"_1lg22bk4j",desktop:"_1lg22bk4k"},defaultClass:"_1lg22bk4i"},"3xl":{conditions:{mobile:"_1lg22bk4l",tablet:"_1lg22bk4m",desktop:"_1lg22bk4n"},defaultClass:"_1lg22bk4l"}}},marginBottom:{values:{none:{conditions:{mobile:"_1lg22bk4o",tablet:"_1lg22bk4p",desktop:"_1lg22bk4q"},defaultClass:"_1lg22bk4o"},xs:{conditions:{mobile:"_1lg22bk4r",tablet:"_1lg22bk4s",desktop:"_1lg22bk4t"},defaultClass:"_1lg22bk4r"},sm:{conditions:{mobile:"_1lg22bk4u",tablet:"_1lg22bk4v",desktop:"_1lg22bk4w"},defaultClass:"_1lg22bk4u"},md:{conditions:{mobile:"_1lg22bk4x",tablet:"_1lg22bk4y",desktop:"_1lg22bk4z"},defaultClass:"_1lg22bk4x"},lg:{conditions:{mobile:"_1lg22bk50",tablet:"_1lg22bk51",desktop:"_1lg22bk52"},defaultClass:"_1lg22bk50"},xl:{conditions:{mobile:"_1lg22bk53",tablet:"_1lg22bk54",desktop:"_1lg22bk55"},defaultClass:"_1lg22bk53"},"2xl":{conditions:{mobile:"_1lg22bk56",tablet:"_1lg22bk57",desktop:"_1lg22bk58"},defaultClass:"_1lg22bk56"},"3xl":{conditions:{mobile:"_1lg22bk59",tablet:"_1lg22bk5a",desktop:"_1lg22bk5b"},defaultClass:"_1lg22bk59"}}},marginLeft:{values:{none:{conditions:{mobile:"_1lg22bk5c",tablet:"_1lg22bk5d",desktop:"_1lg22bk5e"},defaultClass:"_1lg22bk5c"},xs:{conditions:{mobile:"_1lg22bk5f",tablet:"_1lg22bk5g",desktop:"_1lg22bk5h"},defaultClass:"_1lg22bk5f"},sm:{conditions:{mobile:"_1lg22bk5i",tablet:"_1lg22bk5j",desktop:"_1lg22bk5k"},defaultClass:"_1lg22bk5i"},md:{conditions:{mobile:"_1lg22bk5l",tablet:"_1lg22bk5m",desktop:"_1lg22bk5n"},defaultClass:"_1lg22bk5l"},lg:{conditions:{mobile:"_1lg22bk5o",tablet:"_1lg22bk5p",desktop:"_1lg22bk5q"},defaultClass:"_1lg22bk5o"},xl:{conditions:{mobile:"_1lg22bk5r",tablet:"_1lg22bk5s",desktop:"_1lg22bk5t"},defaultClass:"_1lg22bk5r"},"2xl":{conditions:{mobile:"_1lg22bk5u",tablet:"_1lg22bk5v",desktop:"_1lg22bk5w"},defaultClass:"_1lg22bk5u"},"3xl":{conditions:{mobile:"_1lg22bk5x",tablet:"_1lg22bk5y",desktop:"_1lg22bk5z"},defaultClass:"_1lg22bk5x"}}},marginRight:{values:{none:{conditions:{mobile:"_1lg22bk60",tablet:"_1lg22bk61",desktop:"_1lg22bk62"},defaultClass:"_1lg22bk60"},xs:{conditions:{mobile:"_1lg22bk63",tablet:"_1lg22bk64",desktop:"_1lg22bk65"},defaultClass:"_1lg22bk63"},sm:{conditions:{mobile:"_1lg22bk66",tablet:"_1lg22bk67",desktop:"_1lg22bk68"},defaultClass:"_1lg22bk66"},md:{conditions:{mobile:"_1lg22bk69",tablet:"_1lg22bk6a",desktop:"_1lg22bk6b"},defaultClass:"_1lg22bk69"},lg:{conditions:{mobile:"_1lg22bk6c",tablet:"_1lg22bk6d",desktop:"_1lg22bk6e"},defaultClass:"_1lg22bk6c"},xl:{conditions:{mobile:"_1lg22bk6f",tablet:"_1lg22bk6g",desktop:"_1lg22bk6h"},defaultClass:"_1lg22bk6f"},"2xl":{conditions:{mobile:"_1lg22bk6i",tablet:"_1lg22bk6j",desktop:"_1lg22bk6k"},defaultClass:"_1lg22bk6i"},"3xl":{conditions:{mobile:"_1lg22bk6l",tablet:"_1lg22bk6m",desktop:"_1lg22bk6n"},defaultClass:"_1lg22bk6l"}}},backgroundColor:{values:{accent1:{conditions:{mobile:"_1lg22bk6o",tablet:"_1lg22bk6p",desktop:"_1lg22bk6q"},defaultClass:"_1lg22bk6o"},accent2:{conditions:{mobile:"_1lg22bk6r",tablet:"_1lg22bk6s",desktop:"_1lg22bk6t"},defaultClass:"_1lg22bk6r"},accent3:{conditions:{mobile:"_1lg22bk6u",tablet:"_1lg22bk6v",desktop:"_1lg22bk6w"},defaultClass:"_1lg22bk6u"},accent4:{conditions:{mobile:"_1lg22bk6x",tablet:"_1lg22bk6y",desktop:"_1lg22bk6z"},defaultClass:"_1lg22bk6x"},accent5:{conditions:{mobile:"_1lg22bk70",tablet:"_1lg22bk71",desktop:"_1lg22bk72"},defaultClass:"_1lg22bk70"},accent6:{conditions:{mobile:"_1lg22bk73",tablet:"_1lg22bk74",desktop:"_1lg22bk75"},defaultClass:"_1lg22bk73"},accent7:{conditions:{mobile:"_1lg22bk76",tablet:"_1lg22bk77",desktop:"_1lg22bk78"},defaultClass:"_1lg22bk76"},accent8:{conditions:{mobile:"_1lg22bk79",tablet:"_1lg22bk7a",desktop:"_1lg22bk7b"},defaultClass:"_1lg22bk79"},accent9:{conditions:{mobile:"_1lg22bk7c",tablet:"_1lg22bk7d",desktop:"_1lg22bk7e"},defaultClass:"_1lg22bk7c"},accent10:{conditions:{mobile:"_1lg22bk7f",tablet:"_1lg22bk7g",desktop:"_1lg22bk7h"},defaultClass:"_1lg22bk7f"},accent11:{conditions:{mobile:"_1lg22bk7i",tablet:"_1lg22bk7j",desktop:"_1lg22bk7k"},defaultClass:"_1lg22bk7i"},accent12:{conditions:{mobile:"_1lg22bk7l",tablet:"_1lg22bk7m",desktop:"_1lg22bk7n"},defaultClass:"_1lg22bk7l"},accentA1:{conditions:{mobile:"_1lg22bk7o",tablet:"_1lg22bk7p",desktop:"_1lg22bk7q"},defaultClass:"_1lg22bk7o"},accentA2:{conditions:{mobile:"_1lg22bk7r",tablet:"_1lg22bk7s",desktop:"_1lg22bk7t"},defaultClass:"_1lg22bk7r"},accentA3:{conditions:{mobile:"_1lg22bk7u",tablet:"_1lg22bk7v",desktop:"_1lg22bk7w"},defaultClass:"_1lg22bk7u"},accentA4:{conditions:{mobile:"_1lg22bk7x",tablet:"_1lg22bk7y",desktop:"_1lg22bk7z"},defaultClass:"_1lg22bk7x"},accentA5:{conditions:{mobile:"_1lg22bk80",tablet:"_1lg22bk81",desktop:"_1lg22bk82"},defaultClass:"_1lg22bk80"},accentA6:{conditions:{mobile:"_1lg22bk83",tablet:"_1lg22bk84",desktop:"_1lg22bk85"},defaultClass:"_1lg22bk83"},accentA7:{conditions:{mobile:"_1lg22bk86",tablet:"_1lg22bk87",desktop:"_1lg22bk88"},defaultClass:"_1lg22bk86"},accentA8:{conditions:{mobile:"_1lg22bk89",tablet:"_1lg22bk8a",desktop:"_1lg22bk8b"},defaultClass:"_1lg22bk89"},accentA9:{conditions:{mobile:"_1lg22bk8c",tablet:"_1lg22bk8d",desktop:"_1lg22bk8e"},defaultClass:"_1lg22bk8c"},accentA10:{conditions:{mobile:"_1lg22bk8f",tablet:"_1lg22bk8g",desktop:"_1lg22bk8h"},defaultClass:"_1lg22bk8f"},accentA11:{conditions:{mobile:"_1lg22bk8i",tablet:"_1lg22bk8j",desktop:"_1lg22bk8k"},defaultClass:"_1lg22bk8i"},accentA12:{conditions:{mobile:"_1lg22bk8l",tablet:"_1lg22bk8m",desktop:"_1lg22bk8n"},defaultClass:"_1lg22bk8l"},accentContrast:{conditions:{mobile:"_1lg22bk8o",tablet:"_1lg22bk8p",desktop:"_1lg22bk8q"},defaultClass:"_1lg22bk8o"},accentSurface:{conditions:{mobile:"_1lg22bk8r",tablet:"_1lg22bk8s",desktop:"_1lg22bk8t"},defaultClass:"_1lg22bk8r"},accentIndicator:{conditions:{mobile:"_1lg22bk8u",tablet:"_1lg22bk8v",desktop:"_1lg22bk8w"},defaultClass:"_1lg22bk8u"},accentTrack:{conditions:{mobile:"_1lg22bk8x",tablet:"_1lg22bk8y",desktop:"_1lg22bk8z"},defaultClass:"_1lg22bk8x"},error1:{conditions:{mobile:"_1lg22bk90",tablet:"_1lg22bk91",desktop:"_1lg22bk92"},defaultClass:"_1lg22bk90"},error2:{conditions:{mobile:"_1lg22bk93",tablet:"_1lg22bk94",desktop:"_1lg22bk95"},defaultClass:"_1lg22bk93"},error3:{conditions:{mobile:"_1lg22bk96",tablet:"_1lg22bk97",desktop:"_1lg22bk98"},defaultClass:"_1lg22bk96"},error4:{conditions:{mobile:"_1lg22bk99",tablet:"_1lg22bk9a",desktop:"_1lg22bk9b"},defaultClass:"_1lg22bk99"},error5:{conditions:{mobile:"_1lg22bk9c",tablet:"_1lg22bk9d",desktop:"_1lg22bk9e"},defaultClass:"_1lg22bk9c"},error6:{conditions:{mobile:"_1lg22bk9f",tablet:"_1lg22bk9g",desktop:"_1lg22bk9h"},defaultClass:"_1lg22bk9f"},error7:{conditions:{mobile:"_1lg22bk9i",tablet:"_1lg22bk9j",desktop:"_1lg22bk9k"},defaultClass:"_1lg22bk9i"},error8:{conditions:{mobile:"_1lg22bk9l",tablet:"_1lg22bk9m",desktop:"_1lg22bk9n"},defaultClass:"_1lg22bk9l"},error9:{conditions:{mobile:"_1lg22bk9o",tablet:"_1lg22bk9p",desktop:"_1lg22bk9q"},defaultClass:"_1lg22bk9o"},error10:{conditions:{mobile:"_1lg22bk9r",tablet:"_1lg22bk9s",desktop:"_1lg22bk9t"},defaultClass:"_1lg22bk9r"},error11:{conditions:{mobile:"_1lg22bk9u",tablet:"_1lg22bk9v",desktop:"_1lg22bk9w"},defaultClass:"_1lg22bk9u"},error12:{conditions:{mobile:"_1lg22bk9x",tablet:"_1lg22bk9y",desktop:"_1lg22bk9z"},defaultClass:"_1lg22bk9x"},errorA1:{conditions:{mobile:"_1lg22bka0",tablet:"_1lg22bka1",desktop:"_1lg22bka2"},defaultClass:"_1lg22bka0"},errorA2:{conditions:{mobile:"_1lg22bka3",tablet:"_1lg22bka4",desktop:"_1lg22bka5"},defaultClass:"_1lg22bka3"},errorA3:{conditions:{mobile:"_1lg22bka6",tablet:"_1lg22bka7",desktop:"_1lg22bka8"},defaultClass:"_1lg22bka6"},errorA4:{conditions:{mobile:"_1lg22bka9",tablet:"_1lg22bkaa",desktop:"_1lg22bkab"},defaultClass:"_1lg22bka9"},errorA5:{conditions:{mobile:"_1lg22bkac",tablet:"_1lg22bkad",desktop:"_1lg22bkae"},defaultClass:"_1lg22bkac"},errorA6:{conditions:{mobile:"_1lg22bkaf",tablet:"_1lg22bkag",desktop:"_1lg22bkah"},defaultClass:"_1lg22bkaf"},errorA7:{conditions:{mobile:"_1lg22bkai",tablet:"_1lg22bkaj",desktop:"_1lg22bkak"},defaultClass:"_1lg22bkai"},errorA8:{conditions:{mobile:"_1lg22bkal",tablet:"_1lg22bkam",desktop:"_1lg22bkan"},defaultClass:"_1lg22bkal"},errorA9:{conditions:{mobile:"_1lg22bkao",tablet:"_1lg22bkap",desktop:"_1lg22bkaq"},defaultClass:"_1lg22bkao"},errorA10:{conditions:{mobile:"_1lg22bkar",tablet:"_1lg22bkas",desktop:"_1lg22bkat"},defaultClass:"_1lg22bkar"},errorA11:{conditions:{mobile:"_1lg22bkau",tablet:"_1lg22bkav",desktop:"_1lg22bkaw"},defaultClass:"_1lg22bkau"},errorA12:{conditions:{mobile:"_1lg22bkax",tablet:"_1lg22bkay",desktop:"_1lg22bkaz"},defaultClass:"_1lg22bkax"},errorContrast:{conditions:{mobile:"_1lg22bkb0",tablet:"_1lg22bkb1",desktop:"_1lg22bkb2"},defaultClass:"_1lg22bkb0"},errorSurface:{conditions:{mobile:"_1lg22bkb3",tablet:"_1lg22bkb4",desktop:"_1lg22bkb5"},defaultClass:"_1lg22bkb3"},errorIndicator:{conditions:{mobile:"_1lg22bkb6",tablet:"_1lg22bkb7",desktop:"_1lg22bkb8"},defaultClass:"_1lg22bkb6"},errorTrack:{conditions:{mobile:"_1lg22bkb9",tablet:"_1lg22bkba",desktop:"_1lg22bkbb"},defaultClass:"_1lg22bkb9"},gray1:{conditions:{mobile:"_1lg22bkbc",tablet:"_1lg22bkbd",desktop:"_1lg22bkbe"},defaultClass:"_1lg22bkbc"},gray2:{conditions:{mobile:"_1lg22bkbf",tablet:"_1lg22bkbg",desktop:"_1lg22bkbh"},defaultClass:"_1lg22bkbf"},gray3:{conditions:{mobile:"_1lg22bkbi",tablet:"_1lg22bkbj",desktop:"_1lg22bkbk"},defaultClass:"_1lg22bkbi"},gray4:{conditions:{mobile:"_1lg22bkbl",tablet:"_1lg22bkbm",desktop:"_1lg22bkbn"},defaultClass:"_1lg22bkbl"},gray5:{conditions:{mobile:"_1lg22bkbo",tablet:"_1lg22bkbp",desktop:"_1lg22bkbq"},defaultClass:"_1lg22bkbo"},gray6:{conditions:{mobile:"_1lg22bkbr",tablet:"_1lg22bkbs",desktop:"_1lg22bkbt"},defaultClass:"_1lg22bkbr"},gray7:{conditions:{mobile:"_1lg22bkbu",tablet:"_1lg22bkbv",desktop:"_1lg22bkbw"},defaultClass:"_1lg22bkbu"},gray8:{conditions:{mobile:"_1lg22bkbx",tablet:"_1lg22bkby",desktop:"_1lg22bkbz"},defaultClass:"_1lg22bkbx"},gray9:{conditions:{mobile:"_1lg22bkc0",tablet:"_1lg22bkc1",desktop:"_1lg22bkc2"},defaultClass:"_1lg22bkc0"},gray10:{conditions:{mobile:"_1lg22bkc3",tablet:"_1lg22bkc4",desktop:"_1lg22bkc5"},defaultClass:"_1lg22bkc3"},gray11:{conditions:{mobile:"_1lg22bkc6",tablet:"_1lg22bkc7",desktop:"_1lg22bkc8"},defaultClass:"_1lg22bkc6"},gray12:{conditions:{mobile:"_1lg22bkc9",tablet:"_1lg22bkca",desktop:"_1lg22bkcb"},defaultClass:"_1lg22bkc9"},grayA1:{conditions:{mobile:"_1lg22bkcc",tablet:"_1lg22bkcd",desktop:"_1lg22bkce"},defaultClass:"_1lg22bkcc"},grayA2:{conditions:{mobile:"_1lg22bkcf",tablet:"_1lg22bkcg",desktop:"_1lg22bkch"},defaultClass:"_1lg22bkcf"},grayA3:{conditions:{mobile:"_1lg22bkci",tablet:"_1lg22bkcj",desktop:"_1lg22bkck"},defaultClass:"_1lg22bkci"},grayA4:{conditions:{mobile:"_1lg22bkcl",tablet:"_1lg22bkcm",desktop:"_1lg22bkcn"},defaultClass:"_1lg22bkcl"},grayA5:{conditions:{mobile:"_1lg22bkco",tablet:"_1lg22bkcp",desktop:"_1lg22bkcq"},defaultClass:"_1lg22bkco"},grayA6:{conditions:{mobile:"_1lg22bkcr",tablet:"_1lg22bkcs",desktop:"_1lg22bkct"},defaultClass:"_1lg22bkcr"},grayA7:{conditions:{mobile:"_1lg22bkcu",tablet:"_1lg22bkcv",desktop:"_1lg22bkcw"},defaultClass:"_1lg22bkcu"},grayA8:{conditions:{mobile:"_1lg22bkcx",tablet:"_1lg22bkcy",desktop:"_1lg22bkcz"},defaultClass:"_1lg22bkcx"},grayA9:{conditions:{mobile:"_1lg22bkd0",tablet:"_1lg22bkd1",desktop:"_1lg22bkd2"},defaultClass:"_1lg22bkd0"},grayA10:{conditions:{mobile:"_1lg22bkd3",tablet:"_1lg22bkd4",desktop:"_1lg22bkd5"},defaultClass:"_1lg22bkd3"},grayA11:{conditions:{mobile:"_1lg22bkd6",tablet:"_1lg22bkd7",desktop:"_1lg22bkd8"},defaultClass:"_1lg22bkd6"},grayA12:{conditions:{mobile:"_1lg22bkd9",tablet:"_1lg22bkda",desktop:"_1lg22bkdb"},defaultClass:"_1lg22bkd9"},grayContrast:{conditions:{mobile:"_1lg22bkdc",tablet:"_1lg22bkdd",desktop:"_1lg22bkde"},defaultClass:"_1lg22bkdc"},graySurface:{conditions:{mobile:"_1lg22bkdf",tablet:"_1lg22bkdg",desktop:"_1lg22bkdh"},defaultClass:"_1lg22bkdf"},grayIndicator:{conditions:{mobile:"_1lg22bkdi",tablet:"_1lg22bkdj",desktop:"_1lg22bkdk"},defaultClass:"_1lg22bkdi"},grayTrack:{conditions:{mobile:"_1lg22bkdl",tablet:"_1lg22bkdm",desktop:"_1lg22bkdn"},defaultClass:"_1lg22bkdl"},background:{conditions:{mobile:"_1lg22bkdo",tablet:"_1lg22bkdp",desktop:"_1lg22bkdq"},defaultClass:"_1lg22bkdo"}}},color:{values:{accent1:{conditions:{mobile:"_1lg22bkdr",tablet:"_1lg22bkds",desktop:"_1lg22bkdt"},defaultClass:"_1lg22bkdr"},accent2:{conditions:{mobile:"_1lg22bkdu",tablet:"_1lg22bkdv",desktop:"_1lg22bkdw"},defaultClass:"_1lg22bkdu"},accent3:{conditions:{mobile:"_1lg22bkdx",tablet:"_1lg22bkdy",desktop:"_1lg22bkdz"},defaultClass:"_1lg22bkdx"},accent4:{conditions:{mobile:"_1lg22bke0",tablet:"_1lg22bke1",desktop:"_1lg22bke2"},defaultClass:"_1lg22bke0"},accent5:{conditions:{mobile:"_1lg22bke3",tablet:"_1lg22bke4",desktop:"_1lg22bke5"},defaultClass:"_1lg22bke3"},accent6:{conditions:{mobile:"_1lg22bke6",tablet:"_1lg22bke7",desktop:"_1lg22bke8"},defaultClass:"_1lg22bke6"},accent7:{conditions:{mobile:"_1lg22bke9",tablet:"_1lg22bkea",desktop:"_1lg22bkeb"},defaultClass:"_1lg22bke9"},accent8:{conditions:{mobile:"_1lg22bkec",tablet:"_1lg22bked",desktop:"_1lg22bkee"},defaultClass:"_1lg22bkec"},accent9:{conditions:{mobile:"_1lg22bkef",tablet:"_1lg22bkeg",desktop:"_1lg22bkeh"},defaultClass:"_1lg22bkef"},accent10:{conditions:{mobile:"_1lg22bkei",tablet:"_1lg22bkej",desktop:"_1lg22bkek"},defaultClass:"_1lg22bkei"},accent11:{conditions:{mobile:"_1lg22bkel",tablet:"_1lg22bkem",desktop:"_1lg22bken"},defaultClass:"_1lg22bkel"},accent12:{conditions:{mobile:"_1lg22bkeo",tablet:"_1lg22bkep",desktop:"_1lg22bkeq"},defaultClass:"_1lg22bkeo"},accentA1:{conditions:{mobile:"_1lg22bker",tablet:"_1lg22bkes",desktop:"_1lg22bket"},defaultClass:"_1lg22bker"},accentA2:{conditions:{mobile:"_1lg22bkeu",tablet:"_1lg22bkev",desktop:"_1lg22bkew"},defaultClass:"_1lg22bkeu"},accentA3:{conditions:{mobile:"_1lg22bkex",tablet:"_1lg22bkey",desktop:"_1lg22bkez"},defaultClass:"_1lg22bkex"},accentA4:{conditions:{mobile:"_1lg22bkf0",tablet:"_1lg22bkf1",desktop:"_1lg22bkf2"},defaultClass:"_1lg22bkf0"},accentA5:{conditions:{mobile:"_1lg22bkf3",tablet:"_1lg22bkf4",desktop:"_1lg22bkf5"},defaultClass:"_1lg22bkf3"},accentA6:{conditions:{mobile:"_1lg22bkf6",tablet:"_1lg22bkf7",desktop:"_1lg22bkf8"},defaultClass:"_1lg22bkf6"},accentA7:{conditions:{mobile:"_1lg22bkf9",tablet:"_1lg22bkfa",desktop:"_1lg22bkfb"},defaultClass:"_1lg22bkf9"},accentA8:{conditions:{mobile:"_1lg22bkfc",tablet:"_1lg22bkfd",desktop:"_1lg22bkfe"},defaultClass:"_1lg22bkfc"},accentA9:{conditions:{mobile:"_1lg22bkff",tablet:"_1lg22bkfg",desktop:"_1lg22bkfh"},defaultClass:"_1lg22bkff"},accentA10:{conditions:{mobile:"_1lg22bkfi",tablet:"_1lg22bkfj",desktop:"_1lg22bkfk"},defaultClass:"_1lg22bkfi"},accentA11:{conditions:{mobile:"_1lg22bkfl",tablet:"_1lg22bkfm",desktop:"_1lg22bkfn"},defaultClass:"_1lg22bkfl"},accentA12:{conditions:{mobile:"_1lg22bkfo",tablet:"_1lg22bkfp",desktop:"_1lg22bkfq"},defaultClass:"_1lg22bkfo"},accentContrast:{conditions:{mobile:"_1lg22bkfr",tablet:"_1lg22bkfs",desktop:"_1lg22bkft"},defaultClass:"_1lg22bkfr"},accentSurface:{conditions:{mobile:"_1lg22bkfu",tablet:"_1lg22bkfv",desktop:"_1lg22bkfw"},defaultClass:"_1lg22bkfu"},accentIndicator:{conditions:{mobile:"_1lg22bkfx",tablet:"_1lg22bkfy",desktop:"_1lg22bkfz"},defaultClass:"_1lg22bkfx"},accentTrack:{conditions:{mobile:"_1lg22bkg0",tablet:"_1lg22bkg1",desktop:"_1lg22bkg2"},defaultClass:"_1lg22bkg0"},error1:{conditions:{mobile:"_1lg22bkg3",tablet:"_1lg22bkg4",desktop:"_1lg22bkg5"},defaultClass:"_1lg22bkg3"},error2:{conditions:{mobile:"_1lg22bkg6",tablet:"_1lg22bkg7",desktop:"_1lg22bkg8"},defaultClass:"_1lg22bkg6"},error3:{conditions:{mobile:"_1lg22bkg9",tablet:"_1lg22bkga",desktop:"_1lg22bkgb"},defaultClass:"_1lg22bkg9"},error4:{conditions:{mobile:"_1lg22bkgc",tablet:"_1lg22bkgd",desktop:"_1lg22bkge"},defaultClass:"_1lg22bkgc"},error5:{conditions:{mobile:"_1lg22bkgf",tablet:"_1lg22bkgg",desktop:"_1lg22bkgh"},defaultClass:"_1lg22bkgf"},error6:{conditions:{mobile:"_1lg22bkgi",tablet:"_1lg22bkgj",desktop:"_1lg22bkgk"},defaultClass:"_1lg22bkgi"},error7:{conditions:{mobile:"_1lg22bkgl",tablet:"_1lg22bkgm",desktop:"_1lg22bkgn"},defaultClass:"_1lg22bkgl"},error8:{conditions:{mobile:"_1lg22bkgo",tablet:"_1lg22bkgp",desktop:"_1lg22bkgq"},defaultClass:"_1lg22bkgo"},error9:{conditions:{mobile:"_1lg22bkgr",tablet:"_1lg22bkgs",desktop:"_1lg22bkgt"},defaultClass:"_1lg22bkgr"},error10:{conditions:{mobile:"_1lg22bkgu",tablet:"_1lg22bkgv",desktop:"_1lg22bkgw"},defaultClass:"_1lg22bkgu"},error11:{conditions:{mobile:"_1lg22bkgx",tablet:"_1lg22bkgy",desktop:"_1lg22bkgz"},defaultClass:"_1lg22bkgx"},error12:{conditions:{mobile:"_1lg22bkh0",tablet:"_1lg22bkh1",desktop:"_1lg22bkh2"},defaultClass:"_1lg22bkh0"},errorA1:{conditions:{mobile:"_1lg22bkh3",tablet:"_1lg22bkh4",desktop:"_1lg22bkh5"},defaultClass:"_1lg22bkh3"},errorA2:{conditions:{mobile:"_1lg22bkh6",tablet:"_1lg22bkh7",desktop:"_1lg22bkh8"},defaultClass:"_1lg22bkh6"},errorA3:{conditions:{mobile:"_1lg22bkh9",tablet:"_1lg22bkha",desktop:"_1lg22bkhb"},defaultClass:"_1lg22bkh9"},errorA4:{conditions:{mobile:"_1lg22bkhc",tablet:"_1lg22bkhd",desktop:"_1lg22bkhe"},defaultClass:"_1lg22bkhc"},errorA5:{conditions:{mobile:"_1lg22bkhf",tablet:"_1lg22bkhg",desktop:"_1lg22bkhh"},defaultClass:"_1lg22bkhf"},errorA6:{conditions:{mobile:"_1lg22bkhi",tablet:"_1lg22bkhj",desktop:"_1lg22bkhk"},defaultClass:"_1lg22bkhi"},errorA7:{conditions:{mobile:"_1lg22bkhl",tablet:"_1lg22bkhm",desktop:"_1lg22bkhn"},defaultClass:"_1lg22bkhl"},errorA8:{conditions:{mobile:"_1lg22bkho",tablet:"_1lg22bkhp",desktop:"_1lg22bkhq"},defaultClass:"_1lg22bkho"},errorA9:{conditions:{mobile:"_1lg22bkhr",tablet:"_1lg22bkhs",desktop:"_1lg22bkht"},defaultClass:"_1lg22bkhr"},errorA10:{conditions:{mobile:"_1lg22bkhu",tablet:"_1lg22bkhv",desktop:"_1lg22bkhw"},defaultClass:"_1lg22bkhu"},errorA11:{conditions:{mobile:"_1lg22bkhx",tablet:"_1lg22bkhy",desktop:"_1lg22bkhz"},defaultClass:"_1lg22bkhx"},errorA12:{conditions:{mobile:"_1lg22bki0",tablet:"_1lg22bki1",desktop:"_1lg22bki2"},defaultClass:"_1lg22bki0"},errorContrast:{conditions:{mobile:"_1lg22bki3",tablet:"_1lg22bki4",desktop:"_1lg22bki5"},defaultClass:"_1lg22bki3"},errorSurface:{conditions:{mobile:"_1lg22bki6",tablet:"_1lg22bki7",desktop:"_1lg22bki8"},defaultClass:"_1lg22bki6"},errorIndicator:{conditions:{mobile:"_1lg22bki9",tablet:"_1lg22bkia",desktop:"_1lg22bkib"},defaultClass:"_1lg22bki9"},errorTrack:{conditions:{mobile:"_1lg22bkic",tablet:"_1lg22bkid",desktop:"_1lg22bkie"},defaultClass:"_1lg22bkic"},gray1:{conditions:{mobile:"_1lg22bkif",tablet:"_1lg22bkig",desktop:"_1lg22bkih"},defaultClass:"_1lg22bkif"},gray2:{conditions:{mobile:"_1lg22bkii",tablet:"_1lg22bkij",desktop:"_1lg22bkik"},defaultClass:"_1lg22bkii"},gray3:{conditions:{mobile:"_1lg22bkil",tablet:"_1lg22bkim",desktop:"_1lg22bkin"},defaultClass:"_1lg22bkil"},gray4:{conditions:{mobile:"_1lg22bkio",tablet:"_1lg22bkip",desktop:"_1lg22bkiq"},defaultClass:"_1lg22bkio"},gray5:{conditions:{mobile:"_1lg22bkir",tablet:"_1lg22bkis",desktop:"_1lg22bkit"},defaultClass:"_1lg22bkir"},gray6:{conditions:{mobile:"_1lg22bkiu",tablet:"_1lg22bkiv",desktop:"_1lg22bkiw"},defaultClass:"_1lg22bkiu"},gray7:{conditions:{mobile:"_1lg22bkix",tablet:"_1lg22bkiy",desktop:"_1lg22bkiz"},defaultClass:"_1lg22bkix"},gray8:{conditions:{mobile:"_1lg22bkj0",tablet:"_1lg22bkj1",desktop:"_1lg22bkj2"},defaultClass:"_1lg22bkj0"},gray9:{conditions:{mobile:"_1lg22bkj3",tablet:"_1lg22bkj4",desktop:"_1lg22bkj5"},defaultClass:"_1lg22bkj3"},gray10:{conditions:{mobile:"_1lg22bkj6",tablet:"_1lg22bkj7",desktop:"_1lg22bkj8"},defaultClass:"_1lg22bkj6"},gray11:{conditions:{mobile:"_1lg22bkj9",tablet:"_1lg22bkja",desktop:"_1lg22bkjb"},defaultClass:"_1lg22bkj9"},gray12:{conditions:{mobile:"_1lg22bkjc",tablet:"_1lg22bkjd",desktop:"_1lg22bkje"},defaultClass:"_1lg22bkjc"},grayA1:{conditions:{mobile:"_1lg22bkjf",tablet:"_1lg22bkjg",desktop:"_1lg22bkjh"},defaultClass:"_1lg22bkjf"},grayA2:{conditions:{mobile:"_1lg22bkji",tablet:"_1lg22bkjj",desktop:"_1lg22bkjk"},defaultClass:"_1lg22bkji"},grayA3:{conditions:{mobile:"_1lg22bkjl",tablet:"_1lg22bkjm",desktop:"_1lg22bkjn"},defaultClass:"_1lg22bkjl"},grayA4:{conditions:{mobile:"_1lg22bkjo",tablet:"_1lg22bkjp",desktop:"_1lg22bkjq"},defaultClass:"_1lg22bkjo"},grayA5:{conditions:{mobile:"_1lg22bkjr",tablet:"_1lg22bkjs",desktop:"_1lg22bkjt"},defaultClass:"_1lg22bkjr"},grayA6:{conditions:{mobile:"_1lg22bkju",tablet:"_1lg22bkjv",desktop:"_1lg22bkjw"},defaultClass:"_1lg22bkju"},grayA7:{conditions:{mobile:"_1lg22bkjx",tablet:"_1lg22bkjy",desktop:"_1lg22bkjz"},defaultClass:"_1lg22bkjx"},grayA8:{conditions:{mobile:"_1lg22bkk0",tablet:"_1lg22bkk1",desktop:"_1lg22bkk2"},defaultClass:"_1lg22bkk0"},grayA9:{conditions:{mobile:"_1lg22bkk3",tablet:"_1lg22bkk4",desktop:"_1lg22bkk5"},defaultClass:"_1lg22bkk3"},grayA10:{conditions:{mobile:"_1lg22bkk6",tablet:"_1lg22bkk7",desktop:"_1lg22bkk8"},defaultClass:"_1lg22bkk6"},grayA11:{conditions:{mobile:"_1lg22bkk9",tablet:"_1lg22bkka",desktop:"_1lg22bkkb"},defaultClass:"_1lg22bkk9"},grayA12:{conditions:{mobile:"_1lg22bkkc",tablet:"_1lg22bkkd",desktop:"_1lg22bkke"},defaultClass:"_1lg22bkkc"},grayContrast:{conditions:{mobile:"_1lg22bkkf",tablet:"_1lg22bkkg",desktop:"_1lg22bkkh"},defaultClass:"_1lg22bkkf"},graySurface:{conditions:{mobile:"_1lg22bkki",tablet:"_1lg22bkkj",desktop:"_1lg22bkkk"},defaultClass:"_1lg22bkki"},grayIndicator:{conditions:{mobile:"_1lg22bkkl",tablet:"_1lg22bkkm",desktop:"_1lg22bkkn"},defaultClass:"_1lg22bkkl"},grayTrack:{conditions:{mobile:"_1lg22bkko",tablet:"_1lg22bkkp",desktop:"_1lg22bkkq"},defaultClass:"_1lg22bkko"},background:{conditions:{mobile:"_1lg22bkkr",tablet:"_1lg22bkks",desktop:"_1lg22bkkt"},defaultClass:"_1lg22bkkr"}}},borderColor:{values:{accent1:{conditions:{mobile:"_1lg22bkku",tablet:"_1lg22bkkv",desktop:"_1lg22bkkw"},defaultClass:"_1lg22bkku"},accent2:{conditions:{mobile:"_1lg22bkkx",tablet:"_1lg22bkky",desktop:"_1lg22bkkz"},defaultClass:"_1lg22bkkx"},accent3:{conditions:{mobile:"_1lg22bkl0",tablet:"_1lg22bkl1",desktop:"_1lg22bkl2"},defaultClass:"_1lg22bkl0"},accent4:{conditions:{mobile:"_1lg22bkl3",tablet:"_1lg22bkl4",desktop:"_1lg22bkl5"},defaultClass:"_1lg22bkl3"},accent5:{conditions:{mobile:"_1lg22bkl6",tablet:"_1lg22bkl7",desktop:"_1lg22bkl8"},defaultClass:"_1lg22bkl6"},accent6:{conditions:{mobile:"_1lg22bkl9",tablet:"_1lg22bkla",desktop:"_1lg22bklb"},defaultClass:"_1lg22bkl9"},accent7:{conditions:{mobile:"_1lg22bklc",tablet:"_1lg22bkld",desktop:"_1lg22bkle"},defaultClass:"_1lg22bklc"},accent8:{conditions:{mobile:"_1lg22bklf",tablet:"_1lg22bklg",desktop:"_1lg22bklh"},defaultClass:"_1lg22bklf"},accent9:{conditions:{mobile:"_1lg22bkli",tablet:"_1lg22bklj",desktop:"_1lg22bklk"},defaultClass:"_1lg22bkli"},accent10:{conditions:{mobile:"_1lg22bkll",tablet:"_1lg22bklm",desktop:"_1lg22bkln"},defaultClass:"_1lg22bkll"},accent11:{conditions:{mobile:"_1lg22bklo",tablet:"_1lg22bklp",desktop:"_1lg22bklq"},defaultClass:"_1lg22bklo"},accent12:{conditions:{mobile:"_1lg22bklr",tablet:"_1lg22bkls",desktop:"_1lg22bklt"},defaultClass:"_1lg22bklr"},accentA1:{conditions:{mobile:"_1lg22bklu",tablet:"_1lg22bklv",desktop:"_1lg22bklw"},defaultClass:"_1lg22bklu"},accentA2:{conditions:{mobile:"_1lg22bklx",tablet:"_1lg22bkly",desktop:"_1lg22bklz"},defaultClass:"_1lg22bklx"},accentA3:{conditions:{mobile:"_1lg22bkm0",tablet:"_1lg22bkm1",desktop:"_1lg22bkm2"},defaultClass:"_1lg22bkm0"},accentA4:{conditions:{mobile:"_1lg22bkm3",tablet:"_1lg22bkm4",desktop:"_1lg22bkm5"},defaultClass:"_1lg22bkm3"},accentA5:{conditions:{mobile:"_1lg22bkm6",tablet:"_1lg22bkm7",desktop:"_1lg22bkm8"},defaultClass:"_1lg22bkm6"},accentA6:{conditions:{mobile:"_1lg22bkm9",tablet:"_1lg22bkma",desktop:"_1lg22bkmb"},defaultClass:"_1lg22bkm9"},accentA7:{conditions:{mobile:"_1lg22bkmc",tablet:"_1lg22bkmd",desktop:"_1lg22bkme"},defaultClass:"_1lg22bkmc"},accentA8:{conditions:{mobile:"_1lg22bkmf",tablet:"_1lg22bkmg",desktop:"_1lg22bkmh"},defaultClass:"_1lg22bkmf"},accentA9:{conditions:{mobile:"_1lg22bkmi",tablet:"_1lg22bkmj",desktop:"_1lg22bkmk"},defaultClass:"_1lg22bkmi"},accentA10:{conditions:{mobile:"_1lg22bkml",tablet:"_1lg22bkmm",desktop:"_1lg22bkmn"},defaultClass:"_1lg22bkml"},accentA11:{conditions:{mobile:"_1lg22bkmo",tablet:"_1lg22bkmp",desktop:"_1lg22bkmq"},defaultClass:"_1lg22bkmo"},accentA12:{conditions:{mobile:"_1lg22bkmr",tablet:"_1lg22bkms",desktop:"_1lg22bkmt"},defaultClass:"_1lg22bkmr"},accentContrast:{conditions:{mobile:"_1lg22bkmu",tablet:"_1lg22bkmv",desktop:"_1lg22bkmw"},defaultClass:"_1lg22bkmu"},accentSurface:{conditions:{mobile:"_1lg22bkmx",tablet:"_1lg22bkmy",desktop:"_1lg22bkmz"},defaultClass:"_1lg22bkmx"},accentIndicator:{conditions:{mobile:"_1lg22bkn0",tablet:"_1lg22bkn1",desktop:"_1lg22bkn2"},defaultClass:"_1lg22bkn0"},accentTrack:{conditions:{mobile:"_1lg22bkn3",tablet:"_1lg22bkn4",desktop:"_1lg22bkn5"},defaultClass:"_1lg22bkn3"},error1:{conditions:{mobile:"_1lg22bkn6",tablet:"_1lg22bkn7",desktop:"_1lg22bkn8"},defaultClass:"_1lg22bkn6"},error2:{conditions:{mobile:"_1lg22bkn9",tablet:"_1lg22bkna",desktop:"_1lg22bknb"},defaultClass:"_1lg22bkn9"},error3:{conditions:{mobile:"_1lg22bknc",tablet:"_1lg22bknd",desktop:"_1lg22bkne"},defaultClass:"_1lg22bknc"},error4:{conditions:{mobile:"_1lg22bknf",tablet:"_1lg22bkng",desktop:"_1lg22bknh"},defaultClass:"_1lg22bknf"},error5:{conditions:{mobile:"_1lg22bkni",tablet:"_1lg22bknj",desktop:"_1lg22bknk"},defaultClass:"_1lg22bkni"},error6:{conditions:{mobile:"_1lg22bknl",tablet:"_1lg22bknm",desktop:"_1lg22bknn"},defaultClass:"_1lg22bknl"},error7:{conditions:{mobile:"_1lg22bkno",tablet:"_1lg22bknp",desktop:"_1lg22bknq"},defaultClass:"_1lg22bkno"},error8:{conditions:{mobile:"_1lg22bknr",tablet:"_1lg22bkns",desktop:"_1lg22bknt"},defaultClass:"_1lg22bknr"},error9:{conditions:{mobile:"_1lg22bknu",tablet:"_1lg22bknv",desktop:"_1lg22bknw"},defaultClass:"_1lg22bknu"},error10:{conditions:{mobile:"_1lg22bknx",tablet:"_1lg22bkny",desktop:"_1lg22bknz"},defaultClass:"_1lg22bknx"},error11:{conditions:{mobile:"_1lg22bko0",tablet:"_1lg22bko1",desktop:"_1lg22bko2"},defaultClass:"_1lg22bko0"},error12:{conditions:{mobile:"_1lg22bko3",tablet:"_1lg22bko4",desktop:"_1lg22bko5"},defaultClass:"_1lg22bko3"},errorA1:{conditions:{mobile:"_1lg22bko6",tablet:"_1lg22bko7",desktop:"_1lg22bko8"},defaultClass:"_1lg22bko6"},errorA2:{conditions:{mobile:"_1lg22bko9",tablet:"_1lg22bkoa",desktop:"_1lg22bkob"},defaultClass:"_1lg22bko9"},errorA3:{conditions:{mobile:"_1lg22bkoc",tablet:"_1lg22bkod",desktop:"_1lg22bkoe"},defaultClass:"_1lg22bkoc"},errorA4:{conditions:{mobile:"_1lg22bkof",tablet:"_1lg22bkog",desktop:"_1lg22bkoh"},defaultClass:"_1lg22bkof"},errorA5:{conditions:{mobile:"_1lg22bkoi",tablet:"_1lg22bkoj",desktop:"_1lg22bkok"},defaultClass:"_1lg22bkoi"},errorA6:{conditions:{mobile:"_1lg22bkol",tablet:"_1lg22bkom",desktop:"_1lg22bkon"},defaultClass:"_1lg22bkol"},errorA7:{conditions:{mobile:"_1lg22bkoo",tablet:"_1lg22bkop",desktop:"_1lg22bkoq"},defaultClass:"_1lg22bkoo"},errorA8:{conditions:{mobile:"_1lg22bkor",tablet:"_1lg22bkos",desktop:"_1lg22bkot"},defaultClass:"_1lg22bkor"},errorA9:{conditions:{mobile:"_1lg22bkou",tablet:"_1lg22bkov",desktop:"_1lg22bkow"},defaultClass:"_1lg22bkou"},errorA10:{conditions:{mobile:"_1lg22bkox",tablet:"_1lg22bkoy",desktop:"_1lg22bkoz"},defaultClass:"_1lg22bkox"},errorA11:{conditions:{mobile:"_1lg22bkp0",tablet:"_1lg22bkp1",desktop:"_1lg22bkp2"},defaultClass:"_1lg22bkp0"},errorA12:{conditions:{mobile:"_1lg22bkp3",tablet:"_1lg22bkp4",desktop:"_1lg22bkp5"},defaultClass:"_1lg22bkp3"},errorContrast:{conditions:{mobile:"_1lg22bkp6",tablet:"_1lg22bkp7",desktop:"_1lg22bkp8"},defaultClass:"_1lg22bkp6"},errorSurface:{conditions:{mobile:"_1lg22bkp9",tablet:"_1lg22bkpa",desktop:"_1lg22bkpb"},defaultClass:"_1lg22bkp9"},errorIndicator:{conditions:{mobile:"_1lg22bkpc",tablet:"_1lg22bkpd",desktop:"_1lg22bkpe"},defaultClass:"_1lg22bkpc"},errorTrack:{conditions:{mobile:"_1lg22bkpf",tablet:"_1lg22bkpg",desktop:"_1lg22bkph"},defaultClass:"_1lg22bkpf"},gray1:{conditions:{mobile:"_1lg22bkpi",tablet:"_1lg22bkpj",desktop:"_1lg22bkpk"},defaultClass:"_1lg22bkpi"},gray2:{conditions:{mobile:"_1lg22bkpl",tablet:"_1lg22bkpm",desktop:"_1lg22bkpn"},defaultClass:"_1lg22bkpl"},gray3:{conditions:{mobile:"_1lg22bkpo",tablet:"_1lg22bkpp",desktop:"_1lg22bkpq"},defaultClass:"_1lg22bkpo"},gray4:{conditions:{mobile:"_1lg22bkpr",tablet:"_1lg22bkps",desktop:"_1lg22bkpt"},defaultClass:"_1lg22bkpr"},gray5:{conditions:{mobile:"_1lg22bkpu",tablet:"_1lg22bkpv",desktop:"_1lg22bkpw"},defaultClass:"_1lg22bkpu"},gray6:{conditions:{mobile:"_1lg22bkpx",tablet:"_1lg22bkpy",desktop:"_1lg22bkpz"},defaultClass:"_1lg22bkpx"},gray7:{conditions:{mobile:"_1lg22bkq0",tablet:"_1lg22bkq1",desktop:"_1lg22bkq2"},defaultClass:"_1lg22bkq0"},gray8:{conditions:{mobile:"_1lg22bkq3",tablet:"_1lg22bkq4",desktop:"_1lg22bkq5"},defaultClass:"_1lg22bkq3"},gray9:{conditions:{mobile:"_1lg22bkq6",tablet:"_1lg22bkq7",desktop:"_1lg22bkq8"},defaultClass:"_1lg22bkq6"},gray10:{conditions:{mobile:"_1lg22bkq9",tablet:"_1lg22bkqa",desktop:"_1lg22bkqb"},defaultClass:"_1lg22bkq9"},gray11:{conditions:{mobile:"_1lg22bkqc",tablet:"_1lg22bkqd",desktop:"_1lg22bkqe"},defaultClass:"_1lg22bkqc"},gray12:{conditions:{mobile:"_1lg22bkqf",tablet:"_1lg22bkqg",desktop:"_1lg22bkqh"},defaultClass:"_1lg22bkqf"},grayA1:{conditions:{mobile:"_1lg22bkqi",tablet:"_1lg22bkqj",desktop:"_1lg22bkqk"},defaultClass:"_1lg22bkqi"},grayA2:{conditions:{mobile:"_1lg22bkql",tablet:"_1lg22bkqm",desktop:"_1lg22bkqn"},defaultClass:"_1lg22bkql"},grayA3:{conditions:{mobile:"_1lg22bkqo",tablet:"_1lg22bkqp",desktop:"_1lg22bkqq"},defaultClass:"_1lg22bkqo"},grayA4:{conditions:{mobile:"_1lg22bkqr",tablet:"_1lg22bkqs",desktop:"_1lg22bkqt"},defaultClass:"_1lg22bkqr"},grayA5:{conditions:{mobile:"_1lg22bkqu",tablet:"_1lg22bkqv",desktop:"_1lg22bkqw"},defaultClass:"_1lg22bkqu"},grayA6:{conditions:{mobile:"_1lg22bkqx",tablet:"_1lg22bkqy",desktop:"_1lg22bkqz"},defaultClass:"_1lg22bkqx"},grayA7:{conditions:{mobile:"_1lg22bkr0",tablet:"_1lg22bkr1",desktop:"_1lg22bkr2"},defaultClass:"_1lg22bkr0"},grayA8:{conditions:{mobile:"_1lg22bkr3",tablet:"_1lg22bkr4",desktop:"_1lg22bkr5"},defaultClass:"_1lg22bkr3"},grayA9:{conditions:{mobile:"_1lg22bkr6",tablet:"_1lg22bkr7",desktop:"_1lg22bkr8"},defaultClass:"_1lg22bkr6"},grayA10:{conditions:{mobile:"_1lg22bkr9",tablet:"_1lg22bkra",desktop:"_1lg22bkrb"},defaultClass:"_1lg22bkr9"},grayA11:{conditions:{mobile:"_1lg22bkrc",tablet:"_1lg22bkrd",desktop:"_1lg22bkre"},defaultClass:"_1lg22bkrc"},grayA12:{conditions:{mobile:"_1lg22bkrf",tablet:"_1lg22bkrg",desktop:"_1lg22bkrh"},defaultClass:"_1lg22bkrf"},grayContrast:{conditions:{mobile:"_1lg22bkri",tablet:"_1lg22bkrj",desktop:"_1lg22bkrk"},defaultClass:"_1lg22bkri"},graySurface:{conditions:{mobile:"_1lg22bkrl",tablet:"_1lg22bkrm",desktop:"_1lg22bkrn"},defaultClass:"_1lg22bkrl"},grayIndicator:{conditions:{mobile:"_1lg22bkro",tablet:"_1lg22bkrp",desktop:"_1lg22bkrq"},defaultClass:"_1lg22bkro"},grayTrack:{conditions:{mobile:"_1lg22bkrr",tablet:"_1lg22bkrs",desktop:"_1lg22bkrt"},defaultClass:"_1lg22bkrr"},background:{conditions:{mobile:"_1lg22bkru",tablet:"_1lg22bkrv",desktop:"_1lg22bkrw"},defaultClass:"_1lg22bkru"}}},display:{values:{none:{conditions:{mobile:"_1lg22bkrx",tablet:"_1lg22bkry",desktop:"_1lg22bkrz"},defaultClass:"_1lg22bkrx"},flex:{conditions:{mobile:"_1lg22bks0",tablet:"_1lg22bks1",desktop:"_1lg22bks2"},defaultClass:"_1lg22bks0"},block:{conditions:{mobile:"_1lg22bks3",tablet:"_1lg22bks4",desktop:"_1lg22bks5"},defaultClass:"_1lg22bks3"},inline:{conditions:{mobile:"_1lg22bks6",tablet:"_1lg22bks7",desktop:"_1lg22bks8"},defaultClass:"_1lg22bks6"},"inline-block":{conditions:{mobile:"_1lg22bks9",tablet:"_1lg22bksa",desktop:"_1lg22bksb"},defaultClass:"_1lg22bks9"},grid:{conditions:{mobile:"_1lg22bksc",tablet:"_1lg22bksd",desktop:"_1lg22bkse"},defaultClass:"_1lg22bksc"}}},flexDirection:{values:{row:{conditions:{mobile:"_1lg22bksf",tablet:"_1lg22bksg",desktop:"_1lg22bksh"},defaultClass:"_1lg22bksf"},column:{conditions:{mobile:"_1lg22bksi",tablet:"_1lg22bksj",desktop:"_1lg22bksk"},defaultClass:"_1lg22bksi"},"row-reverse":{conditions:{mobile:"_1lg22bksl",tablet:"_1lg22bksm",desktop:"_1lg22bksn"},defaultClass:"_1lg22bksl"},"column-reverse":{conditions:{mobile:"_1lg22bkso",tablet:"_1lg22bksp",desktop:"_1lg22bksq"},defaultClass:"_1lg22bkso"}}},justifyContent:{values:{stretch:{conditions:{mobile:"_1lg22bksr",tablet:"_1lg22bkss",desktop:"_1lg22bkst"},defaultClass:"_1lg22bksr"},"flex-start":{conditions:{mobile:"_1lg22bksu",tablet:"_1lg22bksv",desktop:"_1lg22bksw"},defaultClass:"_1lg22bksu"},center:{conditions:{mobile:"_1lg22bksx",tablet:"_1lg22bksy",desktop:"_1lg22bksz"},defaultClass:"_1lg22bksx"},"flex-end":{conditions:{mobile:"_1lg22bkt0",tablet:"_1lg22bkt1",desktop:"_1lg22bkt2"},defaultClass:"_1lg22bkt0"},"space-around":{conditions:{mobile:"_1lg22bkt3",tablet:"_1lg22bkt4",desktop:"_1lg22bkt5"},defaultClass:"_1lg22bkt3"},"space-between":{conditions:{mobile:"_1lg22bkt6",tablet:"_1lg22bkt7",desktop:"_1lg22bkt8"},defaultClass:"_1lg22bkt6"}}},alignItems:{values:{stretch:{conditions:{mobile:"_1lg22bkt9",tablet:"_1lg22bkta",desktop:"_1lg22bktb"},defaultClass:"_1lg22bkt9"},"flex-start":{conditions:{mobile:"_1lg22bktc",tablet:"_1lg22bktd",desktop:"_1lg22bkte"},defaultClass:"_1lg22bktc"},center:{conditions:{mobile:"_1lg22bktf",tablet:"_1lg22bktg",desktop:"_1lg22bkth"},defaultClass:"_1lg22bktf"},"flex-end":{conditions:{mobile:"_1lg22bkti",tablet:"_1lg22bktj",desktop:"_1lg22bktk"},defaultClass:"_1lg22bkti"}}},gap:{values:{none:{conditions:{mobile:"_1lg22bktl",tablet:"_1lg22bktm",desktop:"_1lg22bktn"},defaultClass:"_1lg22bktl"},xs:{conditions:{mobile:"_1lg22bkto",tablet:"_1lg22bktp",desktop:"_1lg22bktq"},defaultClass:"_1lg22bkto"},sm:{conditions:{mobile:"_1lg22bktr",tablet:"_1lg22bkts",desktop:"_1lg22bktt"},defaultClass:"_1lg22bktr"},md:{conditions:{mobile:"_1lg22bktu",tablet:"_1lg22bktv",desktop:"_1lg22bktw"},defaultClass:"_1lg22bktu"},lg:{conditions:{mobile:"_1lg22bktx",tablet:"_1lg22bkty",desktop:"_1lg22bktz"},defaultClass:"_1lg22bktx"},xl:{conditions:{mobile:"_1lg22bku0",tablet:"_1lg22bku1",desktop:"_1lg22bku2"},defaultClass:"_1lg22bku0"},"2xl":{conditions:{mobile:"_1lg22bku3",tablet:"_1lg22bku4",desktop:"_1lg22bku5"},defaultClass:"_1lg22bku3"},"3xl":{conditions:{mobile:"_1lg22bku6",tablet:"_1lg22bku7",desktop:"_1lg22bku8"},defaultClass:"_1lg22bku6"}}},borderRadius:{values:{none:{conditions:{mobile:"_1lg22bku9",tablet:"_1lg22bkua",desktop:"_1lg22bkub"},defaultClass:"_1lg22bku9"},xs:{conditions:{mobile:"_1lg22bkuc",tablet:"_1lg22bkud",desktop:"_1lg22bkue"},defaultClass:"_1lg22bkuc"},sm:{conditions:{mobile:"_1lg22bkuf",tablet:"_1lg22bkug",desktop:"_1lg22bkuh"},defaultClass:"_1lg22bkuf"},md:{conditions:{mobile:"_1lg22bkui",tablet:"_1lg22bkuj",desktop:"_1lg22bkuk"},defaultClass:"_1lg22bkui"},lg:{conditions:{mobile:"_1lg22bkul",tablet:"_1lg22bkum",desktop:"_1lg22bkun"},defaultClass:"_1lg22bkul"},xl:{conditions:{mobile:"_1lg22bkuo",tablet:"_1lg22bkup",desktop:"_1lg22bkuq"},defaultClass:"_1lg22bkuo"},"2xl":{conditions:{mobile:"_1lg22bkur",tablet:"_1lg22bkus",desktop:"_1lg22bkut"},defaultClass:"_1lg22bkur"},"3xl":{conditions:{mobile:"_1lg22bkuu",tablet:"_1lg22bkuv",desktop:"_1lg22bkuw"},defaultClass:"_1lg22bkuu"}}},fontSize:{values:{xs:{conditions:{mobile:"_1lg22bkux",tablet:"_1lg22bkuy",desktop:"_1lg22bkuz"},defaultClass:"_1lg22bkux"},sm:{conditions:{mobile:"_1lg22bkv0",tablet:"_1lg22bkv1",desktop:"_1lg22bkv2"},defaultClass:"_1lg22bkv0"},base:{conditions:{mobile:"_1lg22bkv3",tablet:"_1lg22bkv4",desktop:"_1lg22bkv5"},defaultClass:"_1lg22bkv3"},lg:{conditions:{mobile:"_1lg22bkv6",tablet:"_1lg22bkv7",desktop:"_1lg22bkv8"},defaultClass:"_1lg22bkv6"},xl:{conditions:{mobile:"_1lg22bkv9",tablet:"_1lg22bkva",desktop:"_1lg22bkvb"},defaultClass:"_1lg22bkv9"},"2xl":{conditions:{mobile:"_1lg22bkvc",tablet:"_1lg22bkvd",desktop:"_1lg22bkve"},defaultClass:"_1lg22bkvc"},"3xl":{conditions:{mobile:"_1lg22bkvf",tablet:"_1lg22bkvg",desktop:"_1lg22bkvh"},defaultClass:"_1lg22bkvf"},"4xl":{conditions:{mobile:"_1lg22bkvi",tablet:"_1lg22bkvj",desktop:"_1lg22bkvk"},defaultClass:"_1lg22bkvi"}}},fontWeight:{values:{normal:{conditions:{mobile:"_1lg22bkvl",tablet:"_1lg22bkvm",desktop:"_1lg22bkvn"},defaultClass:"_1lg22bkvl"},medium:{conditions:{mobile:"_1lg22bkvo",tablet:"_1lg22bkvp",desktop:"_1lg22bkvq"},defaultClass:"_1lg22bkvo"},semibold:{conditions:{mobile:"_1lg22bkvr",tablet:"_1lg22bkvs",desktop:"_1lg22bkvt"},defaultClass:"_1lg22bkvr"},bold:{conditions:{mobile:"_1lg22bkvu",tablet:"_1lg22bkvv",desktop:"_1lg22bkvw"},defaultClass:"_1lg22bkvu"}}},fontFamily:{values:{sans:{conditions:{mobile:"_1lg22bkvx",tablet:"_1lg22bkvy",desktop:"_1lg22bkvz"},defaultClass:"_1lg22bkvx"},mono:{conditions:{mobile:"_1lg22bkw0",tablet:"_1lg22bkw1",desktop:"_1lg22bkw2"},defaultClass:"_1lg22bkw0"}}},textAlign:{values:{left:{conditions:{mobile:"_1lg22bkw3",tablet:"_1lg22bkw4",desktop:"_1lg22bkw5"},defaultClass:"_1lg22bkw3"},center:{conditions:{mobile:"_1lg22bkw6",tablet:"_1lg22bkw7",desktop:"_1lg22bkw8"},defaultClass:"_1lg22bkw6"},right:{conditions:{mobile:"_1lg22bkw9",tablet:"_1lg22bkwa",desktop:"_1lg22bkwb"},defaultClass:"_1lg22bkw9"}}},position:{values:{static:{conditions:{mobile:"_1lg22bkwc",tablet:"_1lg22bkwd",desktop:"_1lg22bkwe"},defaultClass:"_1lg22bkwc"},relative:{conditions:{mobile:"_1lg22bkwf",tablet:"_1lg22bkwg",desktop:"_1lg22bkwh"},defaultClass:"_1lg22bkwf"},absolute:{conditions:{mobile:"_1lg22bkwi",tablet:"_1lg22bkwj",desktop:"_1lg22bkwk"},defaultClass:"_1lg22bkwi"},fixed:{conditions:{mobile:"_1lg22bkwl",tablet:"_1lg22bkwm",desktop:"_1lg22bkwn"},defaultClass:"_1lg22bkwl"},sticky:{conditions:{mobile:"_1lg22bkwo",tablet:"_1lg22bkwp",desktop:"_1lg22bkwq"},defaultClass:"_1lg22bkwo"}}},top:{values:{none:{conditions:{mobile:"_1lg22bkwr",tablet:"_1lg22bkws",desktop:"_1lg22bkwt"},defaultClass:"_1lg22bkwr"},xs:{conditions:{mobile:"_1lg22bkwu",tablet:"_1lg22bkwv",desktop:"_1lg22bkww"},defaultClass:"_1lg22bkwu"},sm:{conditions:{mobile:"_1lg22bkwx",tablet:"_1lg22bkwy",desktop:"_1lg22bkwz"},defaultClass:"_1lg22bkwx"},md:{conditions:{mobile:"_1lg22bkx0",tablet:"_1lg22bkx1",desktop:"_1lg22bkx2"},defaultClass:"_1lg22bkx0"},lg:{conditions:{mobile:"_1lg22bkx3",tablet:"_1lg22bkx4",desktop:"_1lg22bkx5"},defaultClass:"_1lg22bkx3"},xl:{conditions:{mobile:"_1lg22bkx6",tablet:"_1lg22bkx7",desktop:"_1lg22bkx8"},defaultClass:"_1lg22bkx6"},"2xl":{conditions:{mobile:"_1lg22bkx9",tablet:"_1lg22bkxa",desktop:"_1lg22bkxb"},defaultClass:"_1lg22bkx9"},"3xl":{conditions:{mobile:"_1lg22bkxc",tablet:"_1lg22bkxd",desktop:"_1lg22bkxe"},defaultClass:"_1lg22bkxc"}}},bottom:{values:{none:{conditions:{mobile:"_1lg22bkxf",tablet:"_1lg22bkxg",desktop:"_1lg22bkxh"},defaultClass:"_1lg22bkxf"},xs:{conditions:{mobile:"_1lg22bkxi",tablet:"_1lg22bkxj",desktop:"_1lg22bkxk"},defaultClass:"_1lg22bkxi"},sm:{conditions:{mobile:"_1lg22bkxl",tablet:"_1lg22bkxm",desktop:"_1lg22bkxn"},defaultClass:"_1lg22bkxl"},md:{conditions:{mobile:"_1lg22bkxo",tablet:"_1lg22bkxp",desktop:"_1lg22bkxq"},defaultClass:"_1lg22bkxo"},lg:{conditions:{mobile:"_1lg22bkxr",tablet:"_1lg22bkxs",desktop:"_1lg22bkxt"},defaultClass:"_1lg22bkxr"},xl:{conditions:{mobile:"_1lg22bkxu",tablet:"_1lg22bkxv",desktop:"_1lg22bkxw"},defaultClass:"_1lg22bkxu"},"2xl":{conditions:{mobile:"_1lg22bkxx",tablet:"_1lg22bkxy",desktop:"_1lg22bkxz"},defaultClass:"_1lg22bkxx"},"3xl":{conditions:{mobile:"_1lg22bky0",tablet:"_1lg22bky1",desktop:"_1lg22bky2"},defaultClass:"_1lg22bky0"}}},left:{values:{none:{conditions:{mobile:"_1lg22bky3",tablet:"_1lg22bky4",desktop:"_1lg22bky5"},defaultClass:"_1lg22bky3"},xs:{conditions:{mobile:"_1lg22bky6",tablet:"_1lg22bky7",desktop:"_1lg22bky8"},defaultClass:"_1lg22bky6"},sm:{conditions:{mobile:"_1lg22bky9",tablet:"_1lg22bkya",desktop:"_1lg22bkyb"},defaultClass:"_1lg22bky9"},md:{conditions:{mobile:"_1lg22bkyc",tablet:"_1lg22bkyd",desktop:"_1lg22bkye"},defaultClass:"_1lg22bkyc"},lg:{conditions:{mobile:"_1lg22bkyf",tablet:"_1lg22bkyg",desktop:"_1lg22bkyh"},defaultClass:"_1lg22bkyf"},xl:{conditions:{mobile:"_1lg22bkyi",tablet:"_1lg22bkyj",desktop:"_1lg22bkyk"},defaultClass:"_1lg22bkyi"},"2xl":{conditions:{mobile:"_1lg22bkyl",tablet:"_1lg22bkym",desktop:"_1lg22bkyn"},defaultClass:"_1lg22bkyl"},"3xl":{conditions:{mobile:"_1lg22bkyo",tablet:"_1lg22bkyp",desktop:"_1lg22bkyq"},defaultClass:"_1lg22bkyo"}}},right:{values:{none:{conditions:{mobile:"_1lg22bkyr",tablet:"_1lg22bkys",desktop:"_1lg22bkyt"},defaultClass:"_1lg22bkyr"},xs:{conditions:{mobile:"_1lg22bkyu",tablet:"_1lg22bkyv",desktop:"_1lg22bkyw"},defaultClass:"_1lg22bkyu"},sm:{conditions:{mobile:"_1lg22bkyx",tablet:"_1lg22bkyy",desktop:"_1lg22bkyz"},defaultClass:"_1lg22bkyx"},md:{conditions:{mobile:"_1lg22bkz0",tablet:"_1lg22bkz1",desktop:"_1lg22bkz2"},defaultClass:"_1lg22bkz0"},lg:{conditions:{mobile:"_1lg22bkz3",tablet:"_1lg22bkz4",desktop:"_1lg22bkz5"},defaultClass:"_1lg22bkz3"},xl:{conditions:{mobile:"_1lg22bkz6",tablet:"_1lg22bkz7",desktop:"_1lg22bkz8"},defaultClass:"_1lg22bkz6"},"2xl":{conditions:{mobile:"_1lg22bkz9",tablet:"_1lg22bkza",desktop:"_1lg22bkzb"},defaultClass:"_1lg22bkz9"},"3xl":{conditions:{mobile:"_1lg22bkzc",tablet:"_1lg22bkzd",desktop:"_1lg22bkze"},defaultClass:"_1lg22bkzc"}}},zIndex:{values:{0:{conditions:{mobile:"_1lg22bkzf",tablet:"_1lg22bkzg",desktop:"_1lg22bkzh"},defaultClass:"_1lg22bkzf"},10:{conditions:{mobile:"_1lg22bkzi",tablet:"_1lg22bkzj",desktop:"_1lg22bkzk"},defaultClass:"_1lg22bkzi"},20:{conditions:{mobile:"_1lg22bkzl",tablet:"_1lg22bkzm",desktop:"_1lg22bkzn"},defaultClass:"_1lg22bkzl"},30:{conditions:{mobile:"_1lg22bkzo",tablet:"_1lg22bkzp",desktop:"_1lg22bkzq"},defaultClass:"_1lg22bkzo"},40:{conditions:{mobile:"_1lg22bkzr",tablet:"_1lg22bkzs",desktop:"_1lg22bkzt"},defaultClass:"_1lg22bkzr"},50:{conditions:{mobile:"_1lg22bkzu",tablet:"_1lg22bkzv",desktop:"_1lg22bkzw"},defaultClass:"_1lg22bkzu"}}}}},{conditions:void 0,styles:{cursor:{values:{default:{defaultClass:"_1lg22bkzx"},pointer:{defaultClass:"_1lg22bkzy"},"not-allowed":{defaultClass:"_1lg22bkzz"}}},userSelect:{values:{none:{defaultClass:"_1lg22bk100"},text:{defaultClass:"_1lg22bk101"},all:{defaultClass:"_1lg22bk102"}}},pointerEvents:{values:{none:{defaultClass:"_1lg22bk103"},auto:{defaultClass:"_1lg22bk104"}}},outline:{values:{none:{defaultClass:"_1lg22bk105"}}},borderWidth:{values:{0:{defaultClass:"_1lg22bk106"},1:{defaultClass:"_1lg22bk107"},2:{defaultClass:"_1lg22bk108"}}},borderStyle:{values:{none:{defaultClass:"_1lg22bk109"},solid:{defaultClass:"_1lg22bk10a"},dashed:{defaultClass:"_1lg22bk10b"},dotted:{defaultClass:"_1lg22bk10c"}}},boxSizing:{values:{"border-box":{defaultClass:"_1lg22bk10d"},"content-box":{defaultClass:"_1lg22bk10e"}}},width:{values:{auto:{defaultClass:"_1lg22bk10f"},"100%":{defaultClass:"_1lg22bk10g"},"50%":{defaultClass:"_1lg22bk10h"},"25%":{defaultClass:"_1lg22bk10i"}}},height:{values:{auto:{defaultClass:"_1lg22bk10j"},"100%":{defaultClass:"_1lg22bk10k"},"50%":{defaultClass:"_1lg22bk10l"},"25%":{defaultClass:"_1lg22bk10m"}}},minWidth:{values:{0:{defaultClass:"_1lg22bk10n"},"100%":{defaultClass:"_1lg22bk10o"}}},minHeight:{values:{0:{defaultClass:"_1lg22bk10p"},"100%":{defaultClass:"_1lg22bk10q"}}},maxWidth:{values:{none:{defaultClass:"_1lg22bk10r"},"100%":{defaultClass:"_1lg22bk10s"}}},maxHeight:{values:{none:{defaultClass:"_1lg22bk10t"},"100%":{defaultClass:"_1lg22bk10u"}}},overflow:{values:{visible:{defaultClass:"_1lg22bk10v"},hidden:{defaultClass:"_1lg22bk10w"},scroll:{defaultClass:"_1lg22bk10x"},auto:{defaultClass:"_1lg22bk10y"}}},whiteSpace:{values:{normal:{defaultClass:"_1lg22bk10z"},nowrap:{defaultClass:"_1lg22bk110"},pre:{defaultClass:"_1lg22bk111"},"pre-wrap":{defaultClass:"_1lg22bk112"}}},textOverflow:{values:{clip:{defaultClass:"_1lg22bk113"},ellipsis:{defaultClass:"_1lg22bk114"}}},transitionTimingFunction:{values:{easeInOutBack:{defaultClass:"_1lg22bk115"},easeInOutCubic:{defaultClass:"_1lg22bk116"}}}}});var eL=zn({defaultClassName:"_19asz6d0",variantClassNames:{size:{xs:"_19asz6d1",sm:"_19asz6d2",md:"_19asz6d3",lg:"_19asz6d4",xl:"_19asz6d5"}},defaultVariants:{size:"sm"},compoundVariants:[]});const Zt=e=>{const t=Ut.c(14);let s,o,r,u;t[0]!==e?({icon:s,size:u,className:o,...r}=e,t[0]=e,t[1]=s,t[2]=o,t[3]=r,t[4]=u):(s=t[1],o=t[2],r=t[3],u=t[4]);const c=u===void 0?"sm":u;let f;t[5]!==o||t[6]!==c?(f=Js(eL({size:c}),o),t[5]=o,t[6]=c,t[7]=f):f=t[7];let h;t[8]!==s?(h=Y.jsx(s,{}),t[8]=s,t[9]=h):h=t[9];let g;return t[10]!==r||t[11]!==f||t[12]!==h?(g=Y.jsx("span",{className:f,...r,children:h}),t[10]=r,t[11]=f,t[12]=h,t[13]=g):g=t[13],g};var tL="xbvkwf0",nL="xbvkwf1",sL="xbvkwf2",iL="xbvkwf3",oL="xbvkwf4",aL="xbvkwf5",rL="xbvkwf6",lL="xbvkwf8 xbvkwf7 _1lg22bkw0",uL="xbvkwf9",cL="xbvkwfa",fL="xbvkwfb",dL="xbvkwfc",hL="xbvkwfd",gL="xbvkwfe",pL="xbvkwff",mL="xbvkwfi xbvkwfh _1lg22bkux _1lg22bkw0 _1lg22bkj3 _1lg22bk23 _1lg22bk2r",bL="xbvkwfj",yL="xbvkwfk";const Ks={BASE_URL:"./",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function US(e){return"init"in e}function pp(e){return!!e.write}function R0(e){return"v"in e||"e"in e}function hf(e){if("e"in e)throw e.e;if((Ks?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const gf=new WeakMap;function IS(e){var t;return pf(e)&&!!((t=gf.get(e))!=null&&t[0])}function vL(e){const t=gf.get(e);t?.[0]&&(t[0]=!1,t[1].forEach(s=>s()))}function mp(e,t){let s=gf.get(e);if(!s){s=[!0,new Set],gf.set(e,s);const o=()=>{s[0]=!1};e.then(o,o)}s[1].add(t)}function pf(e){return typeof e?.then=="function"}function VS(e,t,s){if(!s.p.has(e)){s.p.add(e);const o=()=>s.p.delete(e);t.then(o,o)}}function BS(e,t,s){var o;const r=new Set;for(const u of((o=s.get(e))==null?void 0:o.t)||[])s.has(u)&&r.add(u);for(const u of t.p)r.add(u);return r}const _L=(e,t,...s)=>t.read(...s),kL=(e,t,...s)=>t.write(...s),SL=(e,t)=>{var s;return(s=t.unstable_onInit)==null?void 0:s.call(t,e)},CL=(e,t,s)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,s)},EL=(e,t)=>{var s;const o=en(e),r=o[0],u=o[6],c=o[9];if((Ks?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let f=r.get(t);return f||(f={d:new Map,p:new Set,n:0},r.set(t,f),(s=u.i)==null||s.call(u,t),c?.(e,t)),f},RL=e=>{const t=en(e),s=t[1],o=t[3],r=t[4],u=t[5],c=t[6],f=t[13],h=[],g=m=>{try{m()}catch(b){h.push(b)}};do{c.f&&g(c.f);const m=new Set,b=m.add.bind(m);o.forEach(y=>{var _;return(_=s.get(y))==null?void 0:_.l.forEach(b)}),o.clear(),u.forEach(b),u.clear(),r.forEach(b),r.clear(),m.forEach(g),o.size&&f(e)}while(o.size||u.size||r.size);if(h.length)throw new AggregateError(h)},xL=e=>{const t=en(e),s=t[1],o=t[2],r=t[3],u=t[11],c=t[14],f=t[17],h=[],g=new WeakSet,m=new WeakSet,b=Array.from(r);for(;b.length;){const y=b[b.length-1],_=u(e,y);if(m.has(y)){b.pop();continue}if(g.has(y)){if(o.get(y)===_.n)h.push([y,_]);else if((Ks?"production":void 0)!=="production"&&o.has(y))throw new Error("[Bug] invalidated atom exists");m.add(y),b.pop();continue}g.add(y);for(const k of BS(y,_,s))g.has(k)||b.push(k)}for(let y=h.length-1;y>=0;--y){const[_,k]=h[y];let S=!1;for(const C of k.d.keys())if(C!==_&&r.has(C)){S=!0;break}S&&(c(e,_),f(e,_)),o.delete(_)}},bp=new WeakSet,TL=(e,t)=>{var s,o;const r=en(e),u=r[1],c=r[2],f=r[3],h=r[6],g=r[7],m=r[11],b=r[12],y=r[13],_=r[14],k=r[16],S=r[17],C=m(e,t);if(R0(C)&&(u.has(t)&&c.get(t)!==C.n||Array.from(C.d).every(([P,V])=>_(e,P).n===V)))return C;C.d.clear();let R=!0;function T(){u.has(t)&&(S(e,t),y(e),b(e))}function A(P){var V;if(P===t){const z=m(e,P);if(!R0(z))if(US(P))mf(e,P,P.init);else throw new Error("no atom init");return hf(z)}const Z=_(e,P);try{return hf(Z)}finally{C.d.set(P,Z.n),IS(C.v)&&VS(t,C.v,Z),(V=u.get(P))==null||V.t.add(t),R||T()}}let w,x;const M={get signal(){return w||(w=new AbortController),w.signal},get setSelf(){return(Ks?"production":void 0)!=="production"&&!pp(t)&&console.warn("setSelf function cannot be used with read-only atom"),!x&&pp(t)&&(x=(...P)=>{if((Ks?"production":void 0)!=="production"&&R&&console.warn("setSelf function cannot be called in sync"),!R)try{return k(e,t,...P)}finally{y(e),b(e)}}),x}},L=C.n;try{(Ks?"production":void 0)!=="production"&&bp.delete(e);const P=g(e,t,A,M);return(Ks?"production":void 0)!=="production"&&bp.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),mf(e,t,P),pf(P)&&(mp(P,()=>w?.abort()),P.then(T,T)),(s=h.r)==null||s.call(h,t),C}catch(P){return delete C.v,C.e=P,++C.n,C}finally{R=!1,L!==C.n&&c.get(t)===L&&(c.set(t,C.n),f.add(t),(o=h.c)==null||o.call(h,t))}},wL=(e,t)=>{const s=en(e),o=s[1],r=s[2],u=s[11],c=[t];for(;c.length;){const f=c.pop(),h=u(e,f);for(const g of BS(f,h,o)){const m=u(e,g);r.set(g,m.n),c.push(g)}}},qS=(e,t,...s)=>{const o=en(e),r=o[3],u=o[6],c=o[8],f=o[11],h=o[12],g=o[13],m=o[14],b=o[15],y=o[17];let _=!0;const k=C=>hf(m(e,C)),S=(C,...R)=>{var T;const A=f(e,C);try{if(C===t){if(!US(C))throw new Error("atom not writable");(Ks?"production":void 0)!=="production"&&bp.add(e);const w=A.n,x=R[0];mf(e,C,x),y(e,C),w!==A.n&&(r.add(C),(T=u.c)==null||T.call(u,C),b(e,C));return}else return qS(e,C,...R)}finally{_||(g(e),h(e))}};try{return c(e,t,k,S,...s)}finally{_=!1}},OL=(e,t)=>{var s;const o=en(e),r=o[1],u=o[3],c=o[6],f=o[11],h=o[15],g=o[18],m=o[19],b=f(e,t),y=r.get(t);if(y&&!IS(b.v)){for(const[_,k]of b.d)if(!y.d.has(_)){const S=f(e,_);g(e,_).t.add(t),y.d.add(_),k!==S.n&&(u.add(_),(s=c.c)==null||s.call(c,_),h(e,_))}for(const _ of y.d||[])if(!b.d.has(_)){y.d.delete(_);const k=m(e,_);k?.t.delete(t)}}},HS=(e,t)=>{var s;const o=en(e),r=o[1],u=o[4],c=o[6],f=o[10],h=o[11],g=o[12],m=o[13],b=o[14],y=o[16],_=h(e,t);let k=r.get(t);if(!k){b(e,t);for(const S of _.d.keys())HS(e,S).t.add(t);if(k={l:new Set,d:new Set(_.d.keys()),t:new Set},r.set(t,k),(s=c.m)==null||s.call(c,t),pp(t)){const S=()=>{let C=!0;const R=(...T)=>{try{return y(e,t,...T)}finally{C||(m(e),g(e))}};try{const T=f(e,t,R);T&&(k.u=()=>{C=!0;try{T()}finally{C=!1}})}finally{C=!1}};u.add(S)}}return k},AL=(e,t)=>{var s;const o=en(e),r=o[1],u=o[5],c=o[6],f=o[11],h=o[19],g=f(e,t);let m=r.get(t);if(m&&!m.l.size&&!Array.from(m.t).some(b=>{var y;return(y=r.get(b))==null?void 0:y.d.has(t)})){m.u&&u.add(m.u),m=void 0,r.delete(t),(s=c.u)==null||s.call(c,t);for(const b of g.d.keys()){const y=h(e,b);y?.t.delete(t)}return}return m},mf=(e,t,s)=>{const o=en(e)[11],r=o(e,t),u="v"in r,c=r.v;if(pf(s))for(const f of r.d.keys())VS(t,s,o(e,f));r.v=s,delete r.e,(!u||!Object.is(c,r.v))&&(++r.n,pf(c)&&vL(c))},ML=(e,t)=>{const s=en(e)[14];return hf(s(e,t))},DL=(e,t,...s)=>{const o=en(e),r=o[12],u=o[13],c=o[16];try{return c(e,t,...s)}finally{u(e),r(e)}},LL=(e,t,s)=>{const o=en(e),r=o[12],u=o[18],c=o[19],h=u(e,t).l;return h.add(s),r(e),()=>{h.delete(s),c(e,t),r(e)}},FS=new WeakMap,en=e=>{const t=FS.get(e);if((Ks?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function PL(...e){const t={get(o){const r=en(t)[21];return r(t,o)},set(o,...r){const u=en(t)[22];return u(t,o,...r)},sub(o,r){const u=en(t)[23];return u(t,o,r)}},s=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},_L,kL,SL,CL,EL,RL,xL,TL,wL,qS,OL,HS,AL,mf,ML,DL,LL,void 0].map((o,r)=>e[r]||o);return FS.set(t,Object.freeze(s)),t}const KS={};let NL=0;function GS(e,t){const s=`atom${++NL}`,o={toString(){return(KS?"production":void 0)!=="production"&&this.debugLabel?s+":"+this.debugLabel:s}};return typeof e=="function"?o.read=e:(o.init=e,o.read=zL,o.write=$L),o}function zL(e){return e(this)}function $L(e,t,s){return t(this,typeof s=="function"?s(e(this)):s)}function jL(){return PL()}let Wr;function UL(){return Wr||(Wr=jL(),(KS?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Wr),globalThis.__JOTAI_DEFAULT_STORE__!==Wr&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Wr}const IL={},VL=E.createContext(void 0);function YS(e){return E.useContext(VL)||UL()}const yp=e=>typeof e?.then=="function",vp=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},BL=Ct.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(vp(e),e)}),wg=new WeakMap,x0=(e,t)=>{let s=wg.get(e);return s||(s=new Promise((o,r)=>{let u=e;const c=g=>m=>{u===g&&o(m)},f=g=>m=>{u===g&&r(m)},h=()=>{try{const g=t();yp(g)?(wg.set(g,s),u=g,g.then(c(g),f(g)),mp(g,h)):o(g)}catch(g){r(g)}};e.then(c(e),f(e)),mp(e,h)}),wg.set(e,s)),s};function qL(e,t){const{delay:s,unstable_promiseStatus:o=!Ct.use}={},r=YS(),[[u,c,f],h]=E.useReducer(m=>{const b=r.get(e);return Object.is(m[0],b)&&m[1]===r&&m[2]===e?m:[b,r,e]},void 0,()=>[r.get(e),r,e]);let g=u;if((c!==r||f!==e)&&(h(),g=r.get(e)),E.useEffect(()=>{const m=r.sub(e,()=>{if(o)try{const b=r.get(e);yp(b)&&vp(x0(b,()=>r.get(e)))}catch{}if(typeof s=="number"){setTimeout(h,s);return}h()});return h(),m},[r,e,s,o]),E.useDebugValue(g),yp(g)){const m=x0(g,()=>r.get(e));return o&&vp(m),BL(m)}return g}function HL(e,t){const s=YS();return E.useCallback((...r)=>{if((IL?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return s.set(e,...r)},[s,e])}function FL(e,t){return[qL(e),HL(e)]}function KL(e,t){e.indexOf(t)===-1&&e.push(t)}function QS(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}const Ao=(e,t,s)=>s>t?t:s<e?e:s;let Dm=()=>{};const Xs={},XS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function GL(e){return typeof e=="object"&&e!==null}const WS=e=>/^0[^.\s]+$/u.test(e);function Lm(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ka=e=>e,YL=(e,t)=>s=>t(e(s)),Pm=(...e)=>e.reduce(YL),Nm=(e,t,s)=>{const o=t-e;return o===0?1:(s-e)/o};class ZS{constructor(){this.subscriptions=[]}add(t){return KL(this.subscriptions,t),()=>QS(this.subscriptions,t)}notify(t,s,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,s,o);else for(let u=0;u<r;u++){const c=this.subscriptions[u];c&&c(t,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ss=e=>e*1e3,us=e=>e/1e3;function JS(e,t){return t?e*(1e3/t):0}const QL=(e,t,s)=>{const o=t-e;return((s-e)%o+o)%o+e},eC=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,XL=1e-7,WL=12;function ZL(e,t,s,o,r){let u,c,f=0;do c=t+(s-t)/2,u=eC(c,o,r)-e,u>0?s=c:t=c;while(Math.abs(u)>XL&&++f<WL);return c}function Nl(e,t,s,o){if(e===t&&s===o)return Ka;const r=u=>ZL(u,0,1,e,s);return u=>u===0||u===1?u:eC(r(u),t,o)}const tC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nC=e=>t=>1-e(1-t),sC=Nl(.33,1.53,.69,.99),zm=nC(sC),iC=tC(zm),oC=e=>(e*=2)<1?.5*zm(e):.5*(2-Math.pow(2,-10*(e-1))),$m=e=>1-Math.sin(Math.acos(e)),JL=nC($m),aC=tC($m),e5=Nl(.42,0,1,1),t5=Nl(0,0,.58,1),rC=Nl(.42,0,.58,1),lC=e=>Array.isArray(e)&&typeof e[0]!="number";function uC(e,t){return lC(e)?e[QL(0,e.length,t)]:e}const cC=e=>Array.isArray(e)&&typeof e[0]=="number",n5={linear:Ka,easeIn:e5,easeInOut:rC,easeOut:t5,circIn:$m,circInOut:aC,circOut:JL,backIn:zm,backInOut:iC,backOut:sC,anticipate:oC},s5=e=>typeof e=="string",T0=e=>{if(cC(e)){Dm(e.length===4);const[t,s,o,r]=e;return Nl(t,s,o,r)}else if(s5(e))return n5[e];return e},_c=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function i5(e,t){let s=new Set,o=new Set,r=!1,u=!1;const c=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function h(m){c.has(m)&&(g.schedule(m),e()),m(f)}const g={schedule:(m,b=!1,y=!1)=>{const k=y&&r?s:o;return b&&c.add(m),k.has(m)||k.add(m),m},cancel:m=>{o.delete(m),c.delete(m)},process:m=>{if(f=m,r){u=!0;return}r=!0,[s,o]=[o,s],s.forEach(h),s.clear(),r=!1,u&&(u=!1,g.process(m))}};return g}const o5=40;function fC(e,t){let s=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},u=()=>s=!0,c=_c.reduce((A,w)=>(A[w]=i5(u),A),{}),{setup:f,read:h,resolveKeyframes:g,preUpdate:m,update:b,preRender:y,render:_,postRender:k}=c,S=()=>{const A=Xs.useManualTiming?r.timestamp:performance.now();s=!1,Xs.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(A-r.timestamp,o5),1)),r.timestamp=A,r.isProcessing=!0,f.process(r),h.process(r),g.process(r),m.process(r),b.process(r),y.process(r),_.process(r),k.process(r),r.isProcessing=!1,s&&t&&(o=!1,e(S))},C=()=>{s=!0,o=!0,r.isProcessing||e(S)};return{schedule:_c.reduce((A,w)=>{const x=c[w];return A[w]=(M,L=!1,P=!1)=>(s||C(),x.schedule(M,L,P)),A},{}),cancel:A=>{for(let w=0;w<_c.length;w++)c[_c[w]].cancel(A)},state:r,steps:c}}const{schedule:Ws,cancel:_p,state:bf}=fC(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ka,!0);let jc;function a5(){jc=void 0}const Zn={now:()=>(jc===void 0&&Zn.set(bf.isProcessing||Xs.useManualTiming?bf.timestamp:performance.now()),jc),set:e=>{jc=e,queueMicrotask(a5)}},dC=e=>t=>typeof t=="string"&&t.startsWith(e),hC=dC("--"),r5=dC("var(--"),jm=e=>r5(e)?l5.test(e.split("/*")[0].trim()):!1,l5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ga={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},El={...Ga,transform:e=>Ao(0,1,e)},kc={...Ga,default:1},gl=e=>Math.round(e*1e5)/1e5,Um=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function u5(e){return e==null}const c5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Im=(e,t)=>s=>!!(typeof s=="string"&&c5.test(s)&&s.startsWith(e)||t&&!u5(s)&&Object.prototype.hasOwnProperty.call(s,t)),gC=(e,t,s)=>o=>{if(typeof o!="string")return o;const[r,u,c,f]=o.match(Um);return{[e]:parseFloat(r),[t]:parseFloat(u),[s]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},f5=e=>Ao(0,255,e),Og={...Ga,transform:e=>Math.round(f5(e))},po={test:Im("rgb","red"),parse:gC("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:o=1})=>"rgba("+Og.transform(e)+", "+Og.transform(t)+", "+Og.transform(s)+", "+gl(El.transform(o))+")"};function d5(e){let t="",s="",o="",r="";return e.length>5?(t=e.substring(1,3),s=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),s=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,s+=s,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const kp={test:Im("#"),parse:d5,transform:po.transform},zl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wi=zl("deg"),Ma=zl("%"),Le=zl("px"),h5=zl("vh"),g5=zl("vw"),w0={...Ma,parse:e=>Ma.parse(e)/100,transform:e=>Ma.transform(e*100)},Ra={test:Im("hsl","hue"),parse:gC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:o=1})=>"hsla("+Math.round(e)+", "+Ma.transform(gl(t))+", "+Ma.transform(gl(s))+", "+gl(El.transform(o))+")"},Ot={test:e=>po.test(e)||kp.test(e)||Ra.test(e),parse:e=>po.test(e)?po.parse(e):Ra.test(e)?Ra.parse(e):kp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?po.transform(e):Ra.transform(e),getAnimatableNone:e=>{const t=Ot.parse(e);return t.alpha=0,Ot.transform(t)}},p5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function m5(e){return isNaN(e)&&typeof e=="string"&&(e.match(Um)?.length||0)+(e.match(p5)?.length||0)>0}const pC="number",mC="color",b5="var",y5="var(",O0="${}",v5=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Rl(e){const t=e.toString(),s=[],o={color:[],number:[],var:[]},r=[];let u=0;const f=t.replace(v5,h=>(Ot.test(h)?(o.color.push(u),r.push(mC),s.push(Ot.parse(h))):h.startsWith(y5)?(o.var.push(u),r.push(b5),s.push(h)):(o.number.push(u),r.push(pC),s.push(parseFloat(h))),++u,O0)).split(O0);return{values:s,split:f,indexes:o,types:r}}function bC(e){return Rl(e).values}function yC(e){const{split:t,types:s}=Rl(e),o=t.length;return r=>{let u="";for(let c=0;c<o;c++)if(u+=t[c],r[c]!==void 0){const f=s[c];f===pC?u+=gl(r[c]):f===mC?u+=Ot.transform(r[c]):u+=r[c]}return u}}const _5=e=>typeof e=="number"?0:Ot.test(e)?Ot.getAnimatableNone(e):e;function k5(e){const t=bC(e);return yC(e)(t.map(_5))}const Ya={test:m5,parse:bC,createTransformer:yC,getAnimatableNone:k5};function Ag(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function S5({hue:e,saturation:t,lightness:s,alpha:o}){e/=360,t/=100,s/=100;let r=0,u=0,c=0;if(!t)r=u=c=s;else{const f=s<.5?s*(1+t):s+t-s*t,h=2*s-f;r=Ag(h,f,e+1/3),u=Ag(h,f,e),c=Ag(h,f,e-1/3)}return{red:Math.round(r*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:o}}function yf(e,t){return s=>s>0?t:e}const $l=(e,t,s)=>e+(t-e)*s,Mg=(e,t,s)=>{const o=e*e,r=s*(t*t-o)+o;return r<0?0:Math.sqrt(r)},C5=[kp,po,Ra],E5=e=>C5.find(t=>t.test(e));function A0(e){const t=E5(e);if(!t)return!1;let s=t.parse(e);return t===Ra&&(s=S5(s)),s}const M0=(e,t)=>{const s=A0(e),o=A0(t);if(!s||!o)return yf(e,t);const r={...s};return u=>(r.red=Mg(s.red,o.red,u),r.green=Mg(s.green,o.green,u),r.blue=Mg(s.blue,o.blue,u),r.alpha=$l(s.alpha,o.alpha,u),po.transform(r))},Sp=new Set(["none","hidden"]);function R5(e,t){return Sp.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function x5(e,t){return s=>$l(e,t,s)}function Vm(e){return typeof e=="number"?x5:typeof e=="string"?jm(e)?yf:Ot.test(e)?M0:O5:Array.isArray(e)?vC:typeof e=="object"?Ot.test(e)?M0:T5:yf}function vC(e,t){const s=[...e],o=s.length,r=e.map((u,c)=>Vm(u)(u,t[c]));return u=>{for(let c=0;c<o;c++)s[c]=r[c](u);return s}}function T5(e,t){const s={...e,...t},o={};for(const r in s)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Vm(e[r])(e[r],t[r]));return r=>{for(const u in o)s[u]=o[u](r);return s}}function w5(e,t){const s=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const u=t.types[r],c=e.indexes[u][o[u]],f=e.values[c]??0;s[r]=f,o[u]++}return s}const O5=(e,t)=>{const s=Ya.createTransformer(t),o=Rl(e),r=Rl(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Sp.has(e)&&!r.values.length||Sp.has(t)&&!o.values.length?R5(e,t):Pm(vC(w5(o,r),r.values),s):yf(e,t)};function _C(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?$l(e,t,s):Vm(e)(e,t)}const A5=e=>{const t=({timestamp:s})=>e(s);return{start:(s=!0)=>Ws.update(t,s),stop:()=>_p(t),now:()=>bf.isProcessing?bf.timestamp:Zn.now()}},kC=(e,t,s=10)=>{let o="";const r=Math.max(Math.round(t/s),2);for(let u=0;u<r;u++)o+=Math.round(e(u/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},vf=2e4;function Bm(e){let t=0;const s=50;let o=e.next(t);for(;!o.done&&t<vf;)t+=s,o=e.next(t);return t>=vf?1/0:t}function SC(e,t=100,s){const o=s({...e,keyframes:[0,t]}),r=Math.min(Bm(o),vf);return{type:"keyframes",ease:u=>o.next(r*u).value/t,duration:us(r)}}const M5=5;function CC(e,t,s){const o=Math.max(t-M5,0);return JS(s-e(o),t-o)}const bt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Dg=.001;function D5({duration:e=bt.duration,bounce:t=bt.bounce,velocity:s=bt.velocity,mass:o=bt.mass}){let r,u,c=1-t;c=Ao(bt.minDamping,bt.maxDamping,c),e=Ao(bt.minDuration,bt.maxDuration,us(e)),c<1?(r=g=>{const m=g*c,b=m*e,y=m-s,_=Cp(g,c),k=Math.exp(-b);return Dg-y/_*k},u=g=>{const b=g*c*e,y=b*s+s,_=Math.pow(c,2)*Math.pow(g,2)*e,k=Math.exp(-b),S=Cp(Math.pow(g,2),c);return(-r(g)+Dg>0?-1:1)*((y-_)*k)/S}):(r=g=>{const m=Math.exp(-g*e),b=(g-s)*e+1;return-Dg+m*b},u=g=>{const m=Math.exp(-g*e),b=(s-g)*(e*e);return m*b});const f=5/e,h=P5(r,u,f);if(e=Ss(e),isNaN(h))return{stiffness:bt.stiffness,damping:bt.damping,duration:e};{const g=Math.pow(h,2)*o;return{stiffness:g,damping:c*2*Math.sqrt(o*g),duration:e}}}const L5=12;function P5(e,t,s){let o=s;for(let r=1;r<L5;r++)o=o-e(o)/t(o);return o}function Cp(e,t){return e*Math.sqrt(1-t*t)}const N5=["duration","bounce"],z5=["stiffness","damping","mass"];function D0(e,t){return t.some(s=>e[s]!==void 0)}function $5(e){let t={velocity:bt.velocity,stiffness:bt.stiffness,damping:bt.damping,mass:bt.mass,isResolvedFromDuration:!1,...e};if(!D0(e,z5)&&D0(e,N5))if(e.visualDuration){const s=e.visualDuration,o=2*Math.PI/(s*1.2),r=o*o,u=2*Ao(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:bt.mass,stiffness:r,damping:u}}else{const s=D5(e);t={...t,...s,mass:bt.mass},t.isResolvedFromDuration=!0}return t}function xl(e=bt.visualDuration,t=bt.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=s;const u=s.keyframes[0],c=s.keyframes[s.keyframes.length-1],f={done:!1,value:u},{stiffness:h,damping:g,mass:m,duration:b,velocity:y,isResolvedFromDuration:_}=$5({...s,velocity:-us(s.velocity||0)}),k=y||0,S=g/(2*Math.sqrt(h*m)),C=c-u,R=us(Math.sqrt(h/m)),T=Math.abs(C)<5;o||(o=T?bt.restSpeed.granular:bt.restSpeed.default),r||(r=T?bt.restDelta.granular:bt.restDelta.default);let A;if(S<1){const x=Cp(R,S);A=M=>{const L=Math.exp(-S*R*M);return c-L*((k+S*R*C)/x*Math.sin(x*M)+C*Math.cos(x*M))}}else if(S===1)A=x=>c-Math.exp(-R*x)*(C+(k+R*C)*x);else{const x=R*Math.sqrt(S*S-1);A=M=>{const L=Math.exp(-S*R*M),P=Math.min(x*M,300);return c-L*((k+S*R*C)*Math.sinh(P)+x*C*Math.cosh(P))/x}}const w={calculatedDuration:_&&b||null,next:x=>{const M=A(x);if(_)f.done=x>=b;else{let L=x===0?k:0;S<1&&(L=x===0?Ss(k):CC(A,x,M));const P=Math.abs(L)<=o,V=Math.abs(c-M)<=r;f.done=P&&V}return f.value=f.done?c:M,f},toString:()=>{const x=Math.min(Bm(w),vf),M=kC(L=>w.next(x*L).value,x,30);return x+"ms "+M},toTransition:()=>{}};return w}xl.applyToOptions=e=>{const t=SC(e,100,xl);return e.ease=t.ease,e.duration=Ss(t.duration),e.type="keyframes",e};function Ep({keyframes:e,velocity:t=0,power:s=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:u=500,modifyTarget:c,min:f,max:h,restDelta:g=.5,restSpeed:m}){const b=e[0],y={done:!1,value:b},_=P=>f!==void 0&&P<f||h!==void 0&&P>h,k=P=>f===void 0?h:h===void 0||Math.abs(f-P)<Math.abs(h-P)?f:h;let S=s*t;const C=b+S,R=c===void 0?C:c(C);R!==C&&(S=R-b);const T=P=>-S*Math.exp(-P/o),A=P=>R+T(P),w=P=>{const V=T(P),Z=A(P);y.done=Math.abs(V)<=g,y.value=y.done?R:Z};let x,M;const L=P=>{_(y.value)&&(x=P,M=xl({keyframes:[y.value,k(y.value)],velocity:CC(A,P,y.value),damping:r,stiffness:u,restDelta:g,restSpeed:m}))};return L(0),{calculatedDuration:null,next:P=>{let V=!1;return!M&&x===void 0&&(V=!0,w(P),L(P)),x!==void 0&&P>=x?M.next(P-x):(!V&&w(P),y)}}}function j5(e,t,s){const o=[],r=s||Xs.mix||_C,u=e.length-1;for(let c=0;c<u;c++){let f=r(e[c],e[c+1]);if(t){const h=Array.isArray(t)?t[c]||Ka:t;f=Pm(h,f)}o.push(f)}return o}function U5(e,t,{clamp:s=!0,ease:o,mixer:r}={}){const u=e.length;if(Dm(u===t.length),u===1)return()=>t[0];if(u===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=j5(t,o,r),h=f.length,g=m=>{if(c&&m<e[0])return t[0];let b=0;if(h>1)for(;b<e.length-2&&!(m<e[b+1]);b++);const y=Nm(e[b],e[b+1],m);return f[b](y)};return s?m=>g(Ao(e[0],e[u-1],m)):g}function EC(e,t){const s=e[e.length-1];for(let o=1;o<=t;o++){const r=Nm(0,t,o);e.push($l(s,1,r))}}function RC(e){const t=[0];return EC(t,e.length-1),t}function I5(e,t){return e.map(s=>s*t)}function V5(e,t){return e.map(()=>t||rC).splice(0,e.length-1)}function pl({duration:e=300,keyframes:t,times:s,ease:o="easeInOut"}){const r=lC(o)?o.map(T0):T0(o),u={done:!1,value:t[0]},c=I5(s&&s.length===t.length?s:RC(t),e),f=U5(c,t,{ease:Array.isArray(r)?r:V5(t,r)});return{calculatedDuration:e,next:h=>(u.value=f(h),u.done=h>=e,u)}}const B5=e=>e!==null;function qm(e,{repeat:t,repeatType:s="loop"},o,r=1){const u=e.filter(B5),f=r<0||t&&s!=="loop"&&t%2===1?0:u.length-1;return!f||o===void 0?u[f]:o}const q5={decay:Ep,inertia:Ep,tween:pl,keyframes:pl,spring:xl};function xC(e){typeof e.type=="string"&&(e.type=q5[e.type])}class Hm{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,s){return this.finished.then(t,s)}}const H5=e=>e/100;class Fm extends Hm{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==Zn.now()&&this.tick(Zn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;xC(t);const{type:s=pl,repeat:o=0,repeatDelay:r=0,repeatType:u,velocity:c=0}=t;let{keyframes:f}=t;const h=s||pl;h!==pl&&typeof f[0]!="number"&&(this.mixKeyframes=Pm(H5,_C(f[0],f[1])),f=[0,100]);const g=h({...t,keyframes:f});u==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...f].reverse(),velocity:-c})),g.calculatedDuration===null&&(g.calculatedDuration=Bm(g));const{calculatedDuration:m}=g;this.calculatedDuration=m,this.resolvedDuration=m+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=g}updateTime(t){const s=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(t,s=!1){const{generator:o,totalDuration:r,mixKeyframes:u,mirroredGenerator:c,resolvedDuration:f,calculatedDuration:h}=this;if(this.startTime===null)return o.next(0);const{delay:g=0,keyframes:m,repeat:b,repeatType:y,repeatDelay:_,type:k,onUpdate:S,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),s?this.currentTime=t:this.updateTime(t);const R=this.currentTime-g*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?R<0:R>r;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let A=this.currentTime,w=o;if(b){const P=Math.min(this.currentTime,r)/f;let V=Math.floor(P),Z=P%1;!Z&&P>=1&&(Z=1),Z===1&&V--,V=Math.min(V,b+1),!!(V%2)&&(y==="reverse"?(Z=1-Z,_&&(Z-=_/f)):y==="mirror"&&(w=c)),A=Ao(0,1,Z)*f}const x=T?{done:!1,value:m[0]}:w.next(A);u&&(x.value=u(x.value));let{done:M}=x;!T&&h!==null&&(M=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return L&&k!==Ep&&(x.value=qm(m,this.options,C,this.speed)),S&&S(x.value),L&&this.finish(),x}then(t,s){return this.finished.then(t,s)}get duration(){return us(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+us(t)}get time(){return us(this.currentTime)}set time(t){t=Ss(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Zn.now());const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=us(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=A5,startTime:s}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=s??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Zn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function F5(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const mo=e=>e*180/Math.PI,Rp=e=>{const t=mo(Math.atan2(e[1],e[0]));return xp(t)},K5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Rp,rotateZ:Rp,skewX:e=>mo(Math.atan(e[1])),skewY:e=>mo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xp=e=>(e=e%360,e<0&&(e+=360),e),L0=Rp,P0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),N0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),G5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:P0,scaleY:N0,scale:e=>(P0(e)+N0(e))/2,rotateX:e=>xp(mo(Math.atan2(e[6],e[5]))),rotateY:e=>xp(mo(Math.atan2(-e[2],e[0]))),rotateZ:L0,rotate:L0,skewX:e=>mo(Math.atan(e[4])),skewY:e=>mo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Tp(e){return e.includes("scale")?1:0}function wp(e,t){if(!e||e==="none")return Tp(t);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(s)o=G5,r=s;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=K5,r=f}if(!r)return Tp(t);const u=o[t],c=r[1].split(",").map(Q5);return typeof u=="function"?u(c):c[u]}const Y5=(e,t)=>{const{transform:s="none"}=getComputedStyle(e);return wp(s,t)};function Q5(e){return parseFloat(e.trim())}const Qa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xa=new Set(Qa),z0=e=>e===Ga||e===Le,X5=new Set(["x","y","z"]),W5=Qa.filter(e=>!X5.has(e));function Z5(e){const t=[];return W5.forEach(s=>{const o=e.getValue(s);o!==void 0&&(t.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),t}const Co={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>wp(t,"x"),y:(e,{transform:t})=>wp(t,"y")};Co.translateX=Co.x;Co.translateY=Co.y;const Eo=new Set;let Op=!1,Ap=!1,Mp=!1;function TC(){if(Ap){const e=Array.from(Eo).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),s=new Map;t.forEach(o=>{const r=Z5(o);r.length&&(s.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=s.get(o);r&&r.forEach(([u,c])=>{o.getValue(u)?.set(c)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Ap=!1,Op=!1,Eo.forEach(e=>e.complete(Mp)),Eo.clear()}function wC(){Eo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ap=!0)})}function J5(){Mp=!0,wC(),TC(),Mp=!1}class Km{constructor(t,s,o,r,u,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=o,this.motionValue=r,this.element=u,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Eo.add(this),Op||(Op=!0,Ws.read(wC),Ws.resolveKeyframes(TC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:o,motionValue:r}=this;if(t[0]===null){const u=r?.get(),c=t[t.length-1];if(u!==void 0)t[0]=u;else if(o&&s){const f=o.readValue(s,c);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=c),r&&u===void 0&&r.set(t[0])}F5(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Eo.delete(this)}cancel(){this.state==="scheduled"&&(Eo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const eP=e=>e.startsWith("--");function tP(e,t,s){eP(t)?e.style.setProperty(t,s):e.style[t]=s}const nP=Lm(()=>window.ScrollTimeline!==void 0),sP={};function iP(e,t){const s=Lm(e);return()=>sP[t]??s()}const OC=iP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ol=([e,t,s,o])=>`cubic-bezier(${e}, ${t}, ${s}, ${o})`,$0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ol([0,.65,.55,1]),circOut:ol([.55,0,1,.45]),backIn:ol([.31,.01,.66,-.59]),backOut:ol([.33,1.53,.69,.99])};function AC(e,t){if(e)return typeof e=="function"?OC()?kC(e,t):"ease-out":cC(e)?ol(e):Array.isArray(e)?e.map(s=>AC(s,t)||$0.easeOut):$0[e]}function oP(e,t,s,{delay:o=0,duration:r=300,repeat:u=0,repeatType:c="loop",ease:f="easeOut",times:h}={},g=void 0){const m={[t]:s};h&&(m.offset=h);const b=AC(f,r);Array.isArray(b)&&(m.easing=b);const y={delay:o,duration:r,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return g&&(y.pseudoElement=g),e.animate(m,y)}function Gm(e){return typeof e=="function"&&"applyToOptions"in e}function aP({type:e,...t}){return Gm(e)&&OC()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class rP extends Hm{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:s,name:o,keyframes:r,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:f,onComplete:h}=t;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=t,Dm(typeof t.type!="string");const g=aP(t);this.animation=oP(s,o,r,g,u),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const m=qm(r,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(m):tP(s,o,m),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return us(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+us(t)}get time(){return us(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ss(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&nP()?(this.animation.timeline=t,Ka):s(this)}}const MC={anticipate:oC,backInOut:iC,circInOut:aC};function lP(e){return e in MC}function uP(e){typeof e.ease=="string"&&lP(e.ease)&&(e.ease=MC[e.ease])}const j0=10;class cP extends rP{constructor(t){uP(t),xC(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:s,onUpdate:o,onComplete:r,element:u,...c}=this.options;if(!s)return;if(t!==void 0){s.set(t);return}const f=new Fm({...c,autoplay:!1}),h=Ss(this.finishedTime??this.time);s.setWithVelocity(f.sample(h-j0).value,f.sample(h).value,j0),f.stop()}}const U0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ya.test(e)||e==="0")&&!e.startsWith("url("));function fP(e){const t=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==t)return!0}function dP(e,t,s,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const u=e[e.length-1],c=U0(r,t),f=U0(u,t);return!c||!f?!1:fP(e)||(s==="spring"||Gm(s))&&o}function Dp(e){e.duration=0,e.type="keyframes"}const hP=new Set(["opacity","clipPath","filter","transform"]),gP=Lm(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function pP(e){const{motionValue:t,name:s,repeatDelay:o,repeatType:r,damping:u,type:c}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:g}=t.owner.getProps();return gP()&&s&&hP.has(s)&&(s!=="transform"||!g)&&!h&&!o&&r!=="mirror"&&u!==0&&c!=="inertia"}const mP=40;class bP extends Hm{constructor({autoplay:t=!0,delay:s=0,type:o="keyframes",repeat:r=0,repeatDelay:u=0,repeatType:c="loop",keyframes:f,name:h,motionValue:g,element:m,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Zn.now();const y={autoplay:t,delay:s,type:o,repeat:r,repeatDelay:u,repeatType:c,name:h,motionValue:g,element:m,...b},_=m?.KeyframeResolver||Km;this.keyframeResolver=new _(f,(k,S,C)=>this.onKeyframesResolved(k,S,y,!C),h,g,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,s,o,r){this.keyframeResolver=void 0;const{name:u,type:c,velocity:f,delay:h,isHandoff:g,onUpdate:m}=o;this.resolvedAt=Zn.now(),dP(t,u,c,f)||((Xs.instantAnimations||!h)&&m?.(qm(t,o,s)),t[0]=t[t.length-1],Dp(o),o.repeat=0);const y={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>mP?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:t},_=!g&&pP(y)?new cP({...y,element:y.motionValue.owner.current}):new Fm(y);_.finished.then(()=>this.notifyFinished()).catch(Ka),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(t,s){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),J5()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class yP{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,s){for(let o=0;o<this.animations.length;o++)this.animations[o][t]=s}attachTimeline(t){const s=this.animations.map(o=>o.attachTimeline(t));return()=>{s.forEach((o,r)=>{o&&o(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return I0(this.animations,"duration")}get iterationDuration(){return I0(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(s=>s[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function I0(e,t){let s=0;for(let o=0;o<e.length;o++){const r=e[o][t];r!==null&&r>s&&(s=r)}return s}class vP extends yP{then(t,s){return this.finished.finally(t).then(()=>{})}}const _P=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kP(e){const t=_P.exec(e);if(!t)return[,];const[,s,o,r]=t;return[`--${s??o}`,r]}function DC(e,t,s=1){const[o,r]=kP(e);if(!o)return;const u=window.getComputedStyle(t).getPropertyValue(o);if(u){const c=u.trim();return XS(c)?parseFloat(c):c}return jm(r)?DC(r,t,s+1):r}function LC(e,t){return e?.[t]??e?.default??e}const PC=new Set(["width","height","top","left","right","bottom",...Qa]),SP={test:e=>e==="auto",parse:e=>e},NC=e=>t=>t.test(e),zC=[Ga,Le,Ma,wi,g5,h5,SP],V0=e=>zC.find(NC(e));function CP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WS(e):!0}const EP=new Set(["brightness","contrast","saturate","opacity"]);function RP(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=s.match(Um)||[];if(!o)return e;const r=s.replace(o,"");let u=EP.has(t)?1:0;return o!==s&&(u*=100),t+"("+u+r+")"}const xP=/\b([a-z-]*)\(.*?\)/gu,Lp={...Ya,getAnimatableNone:e=>{const t=e.match(xP);return t?t.map(RP).join(" "):e}},B0={...Ga,transform:Math.round},TP={rotate:wi,rotateX:wi,rotateY:wi,rotateZ:wi,scale:kc,scaleX:kc,scaleY:kc,scaleZ:kc,skew:wi,skewX:wi,skewY:wi,distance:Le,translateX:Le,translateY:Le,translateZ:Le,x:Le,y:Le,z:Le,perspective:Le,transformPerspective:Le,opacity:El,originX:w0,originY:w0,originZ:Le},Ym={borderWidth:Le,borderTopWidth:Le,borderRightWidth:Le,borderBottomWidth:Le,borderLeftWidth:Le,borderRadius:Le,radius:Le,borderTopLeftRadius:Le,borderTopRightRadius:Le,borderBottomRightRadius:Le,borderBottomLeftRadius:Le,width:Le,maxWidth:Le,height:Le,maxHeight:Le,top:Le,right:Le,bottom:Le,left:Le,padding:Le,paddingTop:Le,paddingRight:Le,paddingBottom:Le,paddingLeft:Le,margin:Le,marginTop:Le,marginRight:Le,marginBottom:Le,marginLeft:Le,backgroundPositionX:Le,backgroundPositionY:Le,...TP,zIndex:B0,fillOpacity:El,strokeOpacity:El,numOctaves:B0},wP={...Ym,color:Ot,backgroundColor:Ot,outlineColor:Ot,fill:Ot,stroke:Ot,borderColor:Ot,borderTopColor:Ot,borderRightColor:Ot,borderBottomColor:Ot,borderLeftColor:Ot,filter:Lp,WebkitFilter:Lp},$C=e=>wP[e];function jC(e,t){let s=$C(e);return s!==Lp&&(s=Ya),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const OP=new Set(["auto","none","0"]);function AP(e,t,s){let o=0,r;for(;o<e.length&&!r;){const u=e[o];typeof u=="string"&&!OP.has(u)&&Rl(u).values.length&&(r=e[o]),o++}if(r&&s)for(const u of t)e[u]=jC(s,r)}class MP extends Km{constructor(t,s,o,r,u){super(t,s,o,r,u,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let g=t[h];if(typeof g=="string"&&(g=g.trim(),jm(g))){const m=DC(g,s.current);m!==void 0&&(t[h]=m),h===t.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!PC.has(o)||t.length!==2)return;const[r,u]=t,c=V0(r),f=V0(u);if(c!==f)if(z0(c)&&z0(f))for(let h=0;h<t.length;h++){const g=t[h];typeof g=="string"&&(t[h]=parseFloat(g))}else Co[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||CP(t[r]))&&o.push(r);o.length&&AP(t,o,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Co[o](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const r=s[s.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){const{element:t,name:s,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(s);r&&r.jump(this.measuredOrigin,!1);const u=o.length-1,c=o[u];o[u]=Co[s](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function DP(e,t,s){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const r=s?.[e]??o.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const UC=(e,t)=>t&&typeof e=="number"?t.transform(e):e,q0=30,LP=e=>!isNaN(parseFloat(e));class PP{constructor(t,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const r=Zn.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=Zn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=LP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new ZS);const o=this.events[t].add(s);return t==="change"?()=>{o(),Ws.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Zn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>q0)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,q0);return JS(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tl(e,t){return new PP(e,t)}const{schedule:NP}=fC(queueMicrotask,!1);function IC(e){return GL(e)&&"ownerSVGElement"in e}function zP(e){return IC(e)&&e.tagName==="svg"}const un=e=>!!(e&&e.getVelocity),$P=[...zC,Ot,Ya],jP=e=>$P.find(NC(e));function Qm(e){return typeof e=="object"&&!Array.isArray(e)}function VC(e,t,s,o){return typeof e=="string"&&Qm(t)?DP(e,s,o):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function UP(e,t,s){return e*(t+1)}function H0(e,t,s,o){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?s:t.startsWith("<")?Math.max(0,s+parseFloat(t.slice(1))):o.get(t)??e}function IP(e,t,s){for(let o=0;o<e.length;o++){const r=e[o];r.at>t&&r.at<s&&(QS(e,r),o--)}}function VP(e,t,s,o,r,u){IP(e,r,u);for(let c=0;c<t.length;c++)e.push({value:t[c],at:$l(r,u,o[c]),easing:uC(s,c)})}function BP(e,t){for(let s=0;s<e.length;s++)e[s]=e[s]/(t+1)}function qP(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const HP="easeInOut";function FP(e,{defaultTransition:t={},...s}={},o,r){const u=t.duration||.3,c=new Map,f=new Map,h={},g=new Map;let m=0,b=0,y=0;for(let _=0;_<e.length;_++){const k=e[_];if(typeof k=="string"){g.set(k,b);continue}else if(!Array.isArray(k)){g.set(k.name,H0(b,k.at,m,g));continue}let[S,C,R={}]=k;R.at!==void 0&&(b=H0(b,R.at,m,g));let T=0;const A=(w,x,M,L=0,P=0)=>{const V=KP(w),{delay:Z=0,times:z=RC(V),type:Q="keyframes",repeat:B,repeatType:q,repeatDelay:J=0,...D}=x;let{ease:I=t.ease||"easeOut",duration:U}=x;const oe=typeof Z=="function"?Z(L,P):Z,ae=V.length,N=Gm(Q)?Q:r?.[Q||"keyframes"];if(ae<=2&&N){let fe=100;if(ae===2&&QP(V)){const de=V[1]-V[0];fe=Math.abs(de)}const le={...D};U!==void 0&&(le.duration=Ss(U));const ue=SC(le,fe,N);I=ue.ease,U=ue.duration}U??(U=u);const K=b+oe;z.length===1&&z[0]===0&&(z[1]=1);const X=z.length-V.length;if(X>0&&EC(z,X),V.length===1&&V.unshift(null),B){U=UP(U,B);const fe=[...V],le=[...z];I=Array.isArray(I)?[...I]:[I];const ue=[...I];for(let de=0;de<B;de++){V.push(...fe);for(let ye=0;ye<fe.length;ye++)z.push(le[ye]+(de+1)),I.push(ye===0?"linear":uC(ue,ye-1))}BP(z,B)}const re=K+U;VP(M,V,I,z,K,re),T=Math.max(oe+U,T),y=Math.max(re,y)};if(un(S)){const w=F0(S,f);A(C,R,K0("default",w))}else{const w=VC(S,C,o,h),x=w.length;for(let M=0;M<x;M++){C=C,R=R;const L=w[M],P=F0(L,f);for(const V in C)A(C[V],GP(R,V),K0(V,P),M,x)}}m=b,b+=T}return f.forEach((_,k)=>{for(const S in _){const C=_[S];C.sort(qP);const R=[],T=[],A=[];for(let x=0;x<C.length;x++){const{at:M,value:L,easing:P}=C[x];R.push(L),T.push(Nm(0,y,M)),A.push(P||"easeOut")}T[0]!==0&&(T.unshift(0),R.unshift(R[0]),A.unshift(HP)),T[T.length-1]!==1&&(T.push(1),R.push(null)),c.has(k)||c.set(k,{keyframes:{},transition:{}});const w=c.get(k);w.keyframes[S]=R,w.transition[S]={...t,duration:y,ease:A,times:T,...s}}}),c}function F0(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function K0(e,t){return t[e]||(t[e]=[]),t[e]}function KP(e){return Array.isArray(e)?e:[e]}function GP(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const YP=e=>typeof e=="number",QP=e=>e.every(YP),wl=new WeakMap,XP=e=>Array.isArray(e);function G0(e){const t=[{},{}];return e?.values.forEach((s,o)=>{t[0][o]=s.get(),t[1][o]=s.getVelocity()}),t}function BC(e,t,s,o){if(typeof t=="function"){const[r,u]=G0(o);t=t(s!==void 0?s:e.custom,r,u)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,u]=G0(o);t=t(s!==void 0?s:e.custom,r,u)}return t}function WP(e,t,s){const o=e.getProps();return BC(o,t,o.custom,e)}function ZP(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,Tl(s))}function JP(e){return XP(e)?e[e.length-1]||0:e}function eN(e,t){const s=WP(e,t);let{transitionEnd:o={},transition:r={},...u}=s||{};u={...u,...o};for(const c in u){const f=JP(u[c]);ZP(e,c,f)}}function tN(e){return!!(un(e)&&e.add)}function nN(e,t){const s=e.getValue("willChange");if(tN(s))return s.add(t);if(!s&&Xs.WillChange){const o=new Xs.WillChange("auto");e.addValue("willChange",o),o.add(t)}}const Xm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sN="framerAppearId",iN="data-"+Xm(sN);function oN(e){return e.props[iN]}const aN=e=>e!==null;function rN(e,{repeat:t,repeatType:s="loop"},o){const r=e.filter(aN),u=t&&s!=="loop"&&t%2===1?0:r.length-1;return r[u]}const lN={type:"spring",stiffness:500,damping:25,restSpeed:10},uN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cN={type:"keyframes",duration:.8},fN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dN=(e,{keyframes:t})=>t.length>2?cN:Xa.has(e)?e.startsWith("scale")?uN(t[1]):lN:fN;function hN({when:e,delay:t,delayChildren:s,staggerChildren:o,staggerDirection:r,repeat:u,repeatType:c,repeatDelay:f,from:h,elapsed:g,...m}){return!!Object.keys(m).length}const qC=(e,t,s,o={},r,u)=>c=>{const f=LC(o,e)||{},h=f.delay||o.delay||0;let{elapsed:g=0}=o;g=g-Ss(h);const m={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-g,onUpdate:y=>{t.set(y),f.onUpdate&&f.onUpdate(y)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:u?void 0:r};hN(f)||Object.assign(m,dN(e,m)),m.duration&&(m.duration=Ss(m.duration)),m.repeatDelay&&(m.repeatDelay=Ss(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let b=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Dp(m),m.delay===0&&(b=!0)),(Xs.instantAnimations||Xs.skipAnimations)&&(b=!0,Dp(m),m.delay=0),m.allowFlatten=!f.type&&!f.ease,b&&!u&&t.get()!==void 0){const y=rN(m.keyframes,f);if(y!==void 0){Ws.update(()=>{m.onUpdate(y),m.onComplete()});return}}return f.isSync?new Fm(m):new bP(m)};function gN({protectedKeys:e,needsAnimating:t},s){const o=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,o}function pN(e,t,{delay:s=0,transitionOverride:o,type:r}={}){let{transition:u=e.getDefaultTransition(),transitionEnd:c,...f}=t;o&&(u=o);const h=[],g=r&&e.animationState&&e.animationState.getState()[r];for(const m in f){const b=e.getValue(m,e.latestValues[m]??null),y=f[m];if(y===void 0||g&&gN(g,m))continue;const _={delay:s,...LC(u||{},m)},k=b.get();if(k!==void 0&&!b.isAnimating&&!Array.isArray(y)&&y===k&&!_.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const R=oN(e);if(R){const T=window.MotionHandoffAnimation(R,m,Ws);T!==null&&(_.startTime=T,S=!0)}}nN(e,m),b.start(qC(m,b,y,e.shouldReduceMotion&&PC.has(m)?{type:!1}:_,e,S));const C=b.animation;C&&h.push(C)}return c&&Promise.all(h).then(()=>{Ws.update(()=>{c&&eN(e,c)})}),h}function mN({top:e,left:t,right:s,bottom:o}){return{x:{min:t,max:s},y:{min:e,max:o}}}function bN(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function yN(e,t){return mN(bN(e.getBoundingClientRect(),t))}const Y0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Pp={};for(const e in Y0)Pp[e]={isEnabled:t=>Y0[e].some(s=>!!t[s])};const Q0=()=>({min:0,max:0}),Wm=()=>({x:Q0(),y:Q0()}),vN=typeof window<"u",Np={current:null},HC={current:!1};function _N(){if(HC.current=!0,!!vN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Np.current=e.matches;e.addEventListener("change",t),t()}else Np.current=!1}function kN(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function SN(e){return typeof e=="string"||Array.isArray(e)}const CN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],EN=["initial",...CN];function FC(e){return kN(e.animate)||EN.some(t=>SN(e[t]))}function RN(e){return!!(FC(e)||e.variants)}function xN(e,t,s){for(const o in t){const r=t[o],u=s[o];if(un(r))e.addValue(o,r);else if(un(u))e.addValue(o,Tl(r,{owner:e}));else if(u!==r)if(e.hasValue(o)){const c=e.getValue(o);c.liveStyle===!0?c.jump(r):c.hasAnimated||c.set(r)}else{const c=e.getStaticValue(o);e.addValue(o,Tl(c!==void 0?c:r,{owner:e}))}}for(const o in s)t[o]===void 0&&e.removeValue(o);return t}const X0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class KC{scrapeMotionValuesFromProps(t,s,o){return{}}constructor({parent:t,props:s,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:u,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Km,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Zn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ws.render(this.render,!1,!0))};const{latestValues:h,renderState:g}=c;this.latestValues=h,this.baseTarget={...h},this.initialValues=s.initial?{...h}:{},this.renderState=g,this.parent=t,this.props=s,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=f,this.blockInitialAnimation=!!u,this.isControllingVariants=FC(s),this.isVariantNode=RN(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const y in b){const _=b[y];h[y]!==void 0&&un(_)&&_.set(h[y])}}mount(t){this.current=t,wl.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,o)=>this.bindToMotionValue(o,s)),HC.current||_N(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Np.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),_p(this.notifyUpdate),_p(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,s){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=Xa.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=s.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ws.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{r(),u&&u(),s.owner&&s.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Pp){const s=Pp[t];if(!s)continue;const{isEnabled:o,Feature:r}=s;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const u=this.features[t];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wm()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<X0.length;o++){const r=X0[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const u="on"+r,c=t[u];c&&(this.propEventSubscriptions[r]=this.on(r,c))}this.prevMotionValues=xN(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const o=this.values.get(t);s!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&s!==void 0&&(o=Tl(s===null?void 0:s,{owner:this}),this.addValue(t,o)),o}readValue(t,s){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(XS(o)||WS(o))?o=parseFloat(o):!jP(o)&&Ya.test(s)&&(o=jC(t,s)),this.setBaseTarget(t,un(o)?o.get():o)),un(o)?o.get():o}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const u=BC(this.props,s,this.presenceContext?.custom);u&&(o=u[t])}if(s&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!un(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new ZS),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}scheduleRenderMicrotask(){NP.render(this.render)}}class GC extends KC{constructor(){super(...arguments),this.KeyframeResolver=MP}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){return t.style?t.style[s]:void 0}removeValueFromRenderState(t,{vars:s,style:o}){delete s[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;un(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}const TN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wN=Qa.length;function ON(e,t,s){let o="",r=!0;for(let u=0;u<wN;u++){const c=Qa[u],f=e[c];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(c.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||s){const g=UC(f,Ym[c]);if(!h){r=!1;const m=TN[c]||c;o+=`${m}(${g}) `}s&&(t[c]=g)}}return o=o.trim(),s?o=s(t,r?"":o):r&&(o="none"),o}function YC(e,t,s){const{style:o,vars:r,transformOrigin:u}=e;let c=!1,f=!1;for(const h in t){const g=t[h];if(Xa.has(h)){c=!0;continue}else if(hC(h)){r[h]=g;continue}else{const m=UC(g,Ym[h]);h.startsWith("origin")?(f=!0,u[h]=m):o[h]=m}}if(t.transform||(c||s?o.transform=ON(t,e.transform,s):o.transform&&(o.transform="none")),f){const{originX:h="50%",originY:g="50%",originZ:m=0}=u;o.transformOrigin=`${h} ${g} ${m}`}}function QC(e,{style:t,vars:s},o,r){const u=e.style;let c;for(c in t)u[c]=t[c];r?.applyProjectionStyles(u,o);for(c in s)u.setProperty(c,s[c])}const AN={};function MN(e,{layout:t,layoutId:s}){return Xa.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!AN[e]||e==="opacity")}function XC(e,t,s){const{style:o}=e,r={};for(const u in o)(un(o[u])||t.style&&un(t.style[u])||MN(u,e)||s?.getValue(u)?.liveStyle!==void 0)&&(r[u]=o[u]);return r}function DN(e){return window.getComputedStyle(e)}class LN extends GC{constructor(){super(...arguments),this.type="html",this.renderInstance=QC}readValueFromInstance(t,s){if(Xa.has(s))return this.projection?.isProjecting?Tp(s):Y5(t,s);{const o=DN(t),r=(hC(s)?o.getPropertyValue(s):o[s])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:s}){return yN(t,s)}build(t,s,o){YC(t,s,o.transformTemplate)}scrapeMotionValuesFromProps(t,s,o){return XC(t,s,o)}}function PN(e,t){return e in t}class NN extends KC{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,s){if(PN(s,t)){const o=t[s];if(typeof o=="string"||typeof o=="number")return o}}getBaseTargetFromProps(){}removeValueFromRenderState(t,s){delete s.output[t]}measureInstanceViewportBox(){return Wm()}build(t,s){Object.assign(t.output,s)}renderInstance(t,{output:s}){Object.assign(t,s)}sortInstanceNodePosition(){return 0}}const zN={offset:"stroke-dashoffset",array:"stroke-dasharray"},$N={offset:"strokeDashoffset",array:"strokeDasharray"};function jN(e,t,s=1,o=0,r=!0){e.pathLength=1;const u=r?zN:$N;e[u.offset]=Le.transform(-o);const c=Le.transform(t),f=Le.transform(s);e[u.array]=`${c} ${f}`}function UN(e,{attrX:t,attrY:s,attrScale:o,pathLength:r,pathSpacing:u=1,pathOffset:c=0,...f},h,g,m){if(YC(e,f,g),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:y}=e;b.transform&&(y.transform=b.transform,delete b.transform),(y.transform||b.transformOrigin)&&(y.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),y.transform&&(y.transformBox=m?.transformBox??"fill-box",delete b.transformBox),t!==void 0&&(b.x=t),s!==void 0&&(b.y=s),o!==void 0&&(b.scale=o),r!==void 0&&jN(b,r,u,c,!1)}const WC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),IN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function VN(e,t,s,o){QC(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(WC.has(r)?r:Xm(r),t.attrs[r])}function BN(e,t,s){const o=XC(e,t,s);for(const r in e)if(un(e[r])||un(t[r])){const u=Qa.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[u]=e[r]}return o}class qN extends GC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wm}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(Xa.has(s)){const o=$C(s);return o&&o.default||0}return s=WC.has(s)?s:Xm(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,o){return BN(t,s,o)}build(t,s,o){UN(t,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,s,o,r){VN(t,s,o,r)}mount(t){this.isSVGTag=IN(t.tagName),super.mount(t)}}function HN(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},s=IC(e)&&!zP(e)?new qN(t):new LN(t);s.mount(e),wl.set(e,s)}function FN(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},s=new NN(t);s.mount(e),wl.set(e,s)}function KN(e,t,s){const o=un(e)?e:Tl(e);return o.start(qC("",o,t,s)),o.animation}function GN(e,t){return un(e)||typeof e=="number"||typeof e=="string"&&!Qm(t)}function ZC(e,t,s,o){const r=[];if(GN(e,t))r.push(KN(e,Qm(t)&&t.default||t,s&&(s.default||s)));else{const u=VC(e,t,o),c=u.length;for(let f=0;f<c;f++){const h=u[f],g=h instanceof Element?HN:FN;wl.has(h)||g(h);const m=wl.get(h),b={...s};"delay"in b&&typeof b.delay=="function"&&(b.delay=b.delay(f,c)),r.push(...pN(m,{...t,transition:b},{}))}}return r}function YN(e,t,s){const o=[];return FP(e,t,s,{spring:xl}).forEach(({keyframes:u,transition:c},f)=>{o.push(...ZC(f,u,c))}),o}function QN(e){return Array.isArray(e)&&e.some(Array.isArray)}function XN(e){function t(s,o,r){let u=[],c;if(QN(s))u=YN(s,o,e);else{const{onComplete:h,...g}=r||{};typeof h=="function"&&(c=h),u=ZC(s,o,g,e)}const f=new vP(u);return c&&f.finished.then(c),f}return t}const WN=XN(),ZN="--sidebar-width",JC=()=>typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue(ZN).trim()||"192px";GS(JC());const JN=()=>JC()==="40px",ez=GS(JN()),_a="--sidebar-width";function eE(){const e=Ut.c(19),[t,s]=FL(ez),o=E.useRef(null);let r;e[0]!==t||e[1]!==s?(r=S=>{if(typeof document<"u"&&S!==t){const C=S?"40px":"192px";o.current&&(o.current.cancel(),o.current=null);const R=getComputedStyle(document.documentElement).getPropertyValue(_a).trim()||"192px",T=parseFloat(R.replace(/[^\d.]/g,"")),A=parseFloat(C.replace(/[^\d.]/g,""));if(Math.abs(T-A)>1){const w=C.replace(/[\d.]/g,"");o.current=WN(T,A,{duration:.3,ease:"circInOut",onUpdate:x=>{document.documentElement.style.setProperty(_a,`${x}${w}`)},onComplete:()=>{o.current=null,document.documentElement.style.setProperty(_a,C)}}),s(S)}else s(S),document.documentElement.style.setProperty(_a,C)}},e[0]=t,e[1]=s,e[2]=r):r=e[2];const u=r;let c;e[3]!==t||e[4]!==u?(c=()=>{u(!t)},e[3]=t,e[4]=u,e[5]=c):c=e[5];const f=c;let h;e[6]!==u?(h=()=>{u(!0)},e[6]=u,e[7]=h):h=e[7];const g=h;let m;e[8]!==u?(m=()=>{u(!1)},e[8]=u,e[9]=m):m=e[9];const b=m;let y;e[10]!==t?(y=()=>{if(typeof document<"u"){const S=getComputedStyle(document.documentElement).getPropertyValue(_a).trim(),C=t?"40px":"192px";(!S||S!==C)&&document.documentElement.style.setProperty(_a,C)}return()=>{o.current&&(o.current.cancel(),o.current=null)}},e[10]=t,e[11]=y):y=e[11];let _;e[12]===Symbol.for("react.memo_cache_sentinel")?(_=[],e[12]=_):_=e[12],E.useEffect(y,_);let k;return e[13]!==g||e[14]!==b||e[15]!==t||e[16]!==u||e[17]!==f?(k={isCollapsed:t,setSidebarCollapsed:u,toggleSidebar:f,collapseSidebar:g,expandSidebar:b},e[13]=g,e[14]=b,e[15]=t,e[16]=u,e[17]=f,e[18]=k):k=e[18],k}const tE="llmops-theme";function tz(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function nz(){if(typeof window>"u")return"system";const e=localStorage.getItem(tE);return e==="light"||e==="dark"||e==="system"?e:"system"}function Lg(e){(e==="system"?tz():e)==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}function sz(){const e=Ut.c(6),[t,s]=E.useState(iz);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=h=>{s(h),localStorage.setItem(tE,h),Lg(h)},e[0]=o):o=e[0];const r=o;let u,c;e[1]!==t?(u=()=>{Lg(t);const h=window.matchMedia("(prefers-color-scheme: dark)"),g=()=>{t==="system"&&Lg("system")};return h.addEventListener("change",g),()=>h.removeEventListener("change",g)},c=[t],e[1]=t,e[2]=u,e[3]=c):(u=e[2],c=e[3]),E.useEffect(u,c);let f;return e[4]!==t?(f={theme:t,setTheme:r},e[4]=t,e[5]=f):f=e[5],f}function iz(){return nz()}var oz={},W0={};const Uc=Object.create(null),Zr=e=>oz||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Uc:globalThis),Qn=new Proxy(Uc,{get(e,t){return Zr()[t]??Uc[t]},has(e,t){return t in Zr()||t in Uc},set(e,t,s){const o=Zr(!0);return o[t]=s,!0},deleteProperty(e,t){if(!t)return!1;const s=Zr(!0);return delete s[t],!0},ownKeys(){const e=Zr(!0);return Object.keys(e)}});function wt(e,t){return typeof process<"u"&&W0?W0[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const Jr=1,jt=4,ys=8,Dn=24,Z0={eterm:jt,cons25:jt,console:jt,cygwin:jt,dtterm:jt,gnome:jt,hurd:jt,jfbterm:jt,konsole:jt,kterm:jt,mlterm:jt,mosh:Dn,putty:jt,st:jt,"rxvt-unicode-24bit":Dn,terminator:Dn,"xterm-kitty":Dn},az=new Map(Object.entries({APPVEYOR:ys,BUILDKITE:ys,CIRCLECI:Dn,DRONE:ys,GITEA_ACTIONS:Dn,GITHUB_ACTIONS:Dn,GITLAB_CI:ys,TRAVIS:ys})),rz=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function lz(){if(wt("FORCE_COLOR")!==void 0)switch(wt("FORCE_COLOR")){case"":case"1":case"true":return jt;case"2":return ys;case"3":return Dn;default:return Jr}if(wt("NODE_DISABLE_COLORS")!==void 0&&wt("NODE_DISABLE_COLORS")!==""||wt("NO_COLOR")!==void 0&&wt("NO_COLOR")!==""||wt("TERM")==="dumb")return Jr;if(wt("TMUX"))return Dn;if("TF_BUILD"in Qn&&"AGENT_NAME"in Qn)return jt;if("CI"in Qn){for(const{0:e,1:t}of az)if(e in Qn)return t;return wt("CI_NAME")==="codeship"?ys:Jr}if("TEAMCITY_VERSION"in Qn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(wt("TEAMCITY_VERSION"))!==null?jt:Jr;switch(wt("TERM_PROGRAM")){case"iTerm.app":return!wt("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(wt("TERM_PROGRAM_VERSION"))!==null?ys:Dn;case"HyperTerm":case"MacTerm":return Dn;case"Apple_Terminal":return ys}if(wt("COLORTERM")==="truecolor"||wt("COLORTERM")==="24bit")return Dn;if(wt("TERM")){if(/truecolor/.exec(wt("TERM"))!==null)return Dn;if(/^xterm-256/.exec(wt("TERM"))!==null)return ys;const e=wt("TERM").toLowerCase();if(Z0[e])return Z0[e];if(rz.some(t=>t.exec(e)!==null))return jt}return wt("COLORTERM")?jt:Jr}const vs={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},zp=["debug","info","success","warn","error"];function uz(e,t){return zp.indexOf(t)>=zp.indexOf(e)}const cz={info:vs.fg.blue,success:vs.fg.green,warn:vs.fg.yellow,error:vs.fg.red,debug:vs.fg.magenta},fz=(e,t,s)=>{const o=new Date().toISOString();return s?`${vs.dim}${o}${vs.reset} ${cz[e]}${e.toUpperCase()}${vs.reset} ${vs.bright}[Better Auth]:${vs.reset} ${t}`:`${o} ${e.toUpperCase()} [Better Auth]: ${t}`},dz=e=>{const t="error",s=lz()!==1,o=(r,u,c=[])=>{if(!uz(t,r))return;const f=fz(r,u,s);{r==="error"?console.error(f,...c):r==="warn"?console.warn(f,...c):console.log(f,...c);return}};return{...Object.fromEntries(zp.map(r=>[r,(...[u,...c])=>o(r,u,c)])),get level(){return t}}};dz();function hz(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ic=class extends Error{constructor(e,t){super(e),this.name="BetterAuthError",this.message=e,this.cause=t,this.stack=""}};function gz(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Ic(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function pz(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Ic(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Ic?t:new Ic(`Invalid base URL: ${e}. Please provide a valid base URL.`,String(t))}}function Pg(e,t="/api/auth"){if(pz(e),gz(e))return e;const s=e.replace(/\/+$/,"");return!t||t==="/"?s:(t=t.startsWith("/")?t:`/${t}`,`${s}${t}`)}function mz(e,t,s,o,r){if(e)return Pg(e,t);{const u=Qn.BETTER_AUTH_URL||Qn.NEXT_PUBLIC_BETTER_AUTH_URL||Qn.PUBLIC_BETTER_AUTH_URL||Qn.NUXT_PUBLIC_BETTER_AUTH_URL||Qn.NUXT_PUBLIC_AUTH_URL||(Qn.BASE_URL!=="/"?Qn.BASE_URL:void 0);if(u)return Pg(u,t)}if(typeof window<"u"&&window.location)return Pg(window.location.origin,t)}const bz={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},yz={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},vz=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,J0={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},_z=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function kz(e){return e instanceof Date&&!isNaN(e.getTime())}function Sz(e){const t=_z.exec(e);if(!t)return null;const[,s,o,r,u,c,f,h,g,m,b]=t;let y=new Date(Date.UTC(parseInt(s,10),parseInt(o,10)-1,parseInt(r,10),parseInt(u,10),parseInt(c,10),parseInt(f,10),h?parseInt(h.padEnd(3,"0"),10):0));if(g){const _=(parseInt(m,10)*60+parseInt(b,10))*(g==="+"?-1:1);y.setUTCMinutes(y.getUTCMinutes()+_)}return kz(y)?y:null}function Cz(e,t={}){const{strict:s=!1,warnings:o=!1,reviver:r,parseDates:u=!0}=t;if(typeof e!="string")return e;const c=e.trim();if(c.length>0&&c[0]==='"'&&c.endsWith('"')&&!c.slice(1,-1).includes('"'))return c.slice(1,-1);const f=c.toLowerCase();if(f.length<=9&&f in J0)return J0[f];if(!vz.test(c)){if(s)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(yz).some(([h,g])=>{const m=g.test(c);return m&&o&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${h} pattern`),m})&&s)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(c,(g,m)=>{if(g==="__proto__"||g==="constructor"&&m&&typeof m=="object"&&"prototype"in m){o&&console.warn(`[better-json] Dropping "${g}" key to prevent prototype pollution`);return}if(u&&typeof m=="string"){const b=Sz(m);if(b)return b}return r?r(g,m):m})}catch(h){if(s)throw h;return e}}function Ez(e,t={strict:!0}){return Cz(e,t)}let os=[],xi=0;const Sc=4,nE=e=>{let t=[],s={get(){return s.lc||s.listen(()=>{})(),s.value},lc:0,listen(o){return s.lc=t.push(o),()=>{for(let u=xi+Sc;u<os.length;)os[u]===o?os.splice(u,Sc):u+=Sc;let r=t.indexOf(o);~r&&(t.splice(r,1),--s.lc||s.off())}},notify(o,r){let u=!os.length;for(let c of t)os.push(c,s.value,o,r);if(u){for(xi=0;xi<os.length;xi+=Sc)os[xi](os[xi+1],os[xi+2],os[xi+3]);os.length=0}},off(){},set(o){let r=s.value;r!==o&&(s.value=o,s.notify(r))},subscribe(o){let r=s.listen(o);return o(s.value),r},value:e};return s},Rz=5,Cc=6,Ec=10;let xz=(e,t,s,o)=>(e.events=e.events||{},e.events[s+Ec]||(e.events[s+Ec]=o(r=>{e.events[s].reduceRight((u,c)=>(c(u),u),{shared:{},...r})})),e.events[s]=e.events[s]||[],e.events[s].push(t),()=>{let r=e.events[s],u=r.indexOf(t);r.splice(u,1),r.length||(delete e.events[s],e.events[s+Ec](),delete e.events[s+Ec])}),Tz=1e3,sE=(e,t)=>xz(e,o=>{let r=t(o);r&&e.events[Cc].push(r)},Rz,o=>{let r=e.listen;e.listen=(...c)=>(!e.lc&&!e.active&&(e.active=!0,o()),r(...c));let u=e.off;return e.events[Cc]=[],e.off=()=>{u(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let c of e.events[Cc])c();e.events[Cc]=[]}},Tz)},()=>{e.listen=r,e.off=u}});function wz(e,t,s){let o=new Set(t).add(void 0);return e.listen((r,u,c)=>{o.has(c)&&s(r,u,c)})}const Oz=()=>typeof window>"u",Az=(e,t,s,o)=>{const r=nE({data:null,error:null,isPending:!0,isRefetching:!1,refetch:f=>u(f)}),u=async f=>new Promise(h=>{const g=typeof o=="function"?o({data:r.get().data,error:r.get().error,isPending:r.get().isPending}):o;s(t,{...g,query:{...g?.query,...f?.query},async onSuccess(m){r.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch}),await g?.onSuccess?.(m)},async onError(m){const{request:b}=m,y=typeof b.retry=="number"?b.retry:b.retry?.attempts,_=b.retryAttempt||0;y&&_<y||(r.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch}),await g?.onError?.(m))},async onRequest(m){const b=r.get();r.set({isPending:b.data===null,data:b.data,error:null,isRefetching:!0,refetch:r.value.refetch}),await g?.onRequest?.(m)}}).catch(m=>{r.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch})}).finally(()=>{h(void 0)})});e=Array.isArray(e)?e:[e];let c=!1;for(const f of e)f.subscribe(async()=>{Oz()||(c?await u():sE(r,()=>{const h=setTimeout(async()=>{c||(await u(),c=!0)},0);return()=>{r.off(),f.off(),clearTimeout(h)}}))});return r},Ng=Symbol.for("better-auth:broadcast-channel"),Mz=()=>Math.floor(Date.now()/1e3);var Dz=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:Mz()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const s=JSON.parse(t.newValue??"{}");s?.event!=="session"||!s?.data||this.listeners.forEach(o=>o(s))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function zg(e="better-auth.message"){return globalThis[Ng]||(globalThis[Ng]=new Dz(e)),globalThis[Ng]}const $g=Symbol.for("better-auth:focus-manager");var Lz=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function e_(){return globalThis[$g]||(globalThis[$g]=new Lz),globalThis[$g]}const jg=Symbol.for("better-auth:online-manager");var Pz=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function Ug(){return globalThis[jg]||(globalThis[jg]=new Pz),globalThis[jg]}const ka=()=>Math.floor(Date.now()/1e3),Nz=5;function zz(e){const{sessionAtom:t,sessionSignal:s,$fetch:o,options:r={}}=e,u=r.sessionOptions?.refetchInterval??0,c=r.sessionOptions?.refetchOnWindowFocus??!0,f=r.sessionOptions?.refetchWhenOffline??!1,h={lastSync:0,lastSessionRequest:0,cachedSession:void 0},g=()=>f||Ug().isOnline,m=T=>{if(!g())return;if(T?.event==="storage"){h.lastSync=ka(),s.set(!s.get());return}const A=t.get();if(T?.event==="poll"){h.lastSessionRequest=ka(),o("/get-session").then(w=>{w.error?t.set({...A,data:null,error:w.error}):t.set({...A,data:w.data,error:null}),h.lastSync=ka(),s.set(!s.get())}).catch(()=>{});return}if(T?.event==="visibilitychange"){if(ka()-h.lastSessionRequest<Nz)return;h.lastSessionRequest=ka()}(A?.data===null||A?.data===void 0||T?.event==="visibilitychange")&&(h.lastSync=ka(),s.set(!s.get()))},b=T=>{zg().post({event:"session",data:{trigger:T},clientId:Math.random().toString(36).substring(7)})},y=()=>{u&&u>0&&(h.pollInterval=setInterval(()=>{t.get()?.data&&m({event:"poll"})},u*1e3))},_=()=>{h.unsubscribeBroadcast=zg().subscribe(()=>{m({event:"storage"})})},k=()=>{c&&(h.unsubscribeFocus=e_().subscribe(()=>{m({event:"visibilitychange"})}))},S=()=>{h.unsubscribeOnline=Ug().subscribe(T=>{T&&m({event:"visibilitychange"})})};return{init:()=>{y(),_(),k(),S(),zg().setup(),e_().setup(),Ug().setup()},cleanup:()=>{h.pollInterval&&(clearInterval(h.pollInterval),h.pollInterval=void 0),h.unsubscribeBroadcast&&(h.unsubscribeBroadcast(),h.unsubscribeBroadcast=void 0),h.unsubscribeFocus&&(h.unsubscribeFocus(),h.unsubscribeFocus=void 0),h.unsubscribeOnline&&(h.unsubscribeOnline(),h.unsubscribeOnline=void 0),h.lastSync=0,h.lastSessionRequest=0,h.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:b}}function $z(e,t){const s=nE(!1),o=Az(s,"/get-session",e,{method:"GET"});return sE(o,()=>{const r=zz({sessionAtom:o,sessionSignal:s,$fetch:e,options:t});return r.init(),()=>{r.cleanup()}}),{session:o,$sessionSignal:s}}var jz=Object.defineProperty,Uz=Object.defineProperties,Iz=Object.getOwnPropertyDescriptors,t_=Object.getOwnPropertySymbols,Vz=Object.prototype.hasOwnProperty,Bz=Object.prototype.propertyIsEnumerable,n_=(e,t,s)=>t in e?jz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,as=(e,t)=>{for(var s in t||(t={}))Vz.call(t,s)&&n_(e,s,t[s]);if(t_)for(var s of t_(t))Bz.call(t,s)&&n_(e,s,t[s]);return e},ps=(e,t)=>Uz(e,Iz(t)),qz=class extends Error{constructor(e,t,s){super(t||e.toString(),{cause:s}),this.status=e,this.statusText=t,this.error=s,Error.captureStackTrace(this,this.constructor)}},Hz=async(e,t)=>{var s,o,r,u,c,f;let h=t||{};const g={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:h,hooks:g};for(const m of t?.plugins||[]){if(m.init){const b=await((s=m.init)==null?void 0:s.call(m,e.toString(),t));h=b.options||h,e=b.url}g.onRequest.push((o=m.hooks)==null?void 0:o.onRequest),g.onResponse.push((r=m.hooks)==null?void 0:r.onResponse),g.onSuccess.push((u=m.hooks)==null?void 0:u.onSuccess),g.onError.push((c=m.hooks)==null?void 0:c.onError),g.onRetry.push((f=m.hooks)==null?void 0:f.onRetry)}return{url:e,options:h,hooks:g}},s_=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},Fz=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function Kz(e){if(typeof e=="number")return new s_({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new s_(e);case"exponential":return new Fz(e);default:throw new Error("Invalid retry strategy")}}var Gz=async e=>{const t={},s=async o=>typeof o=="function"?await o():o;if(e?.auth){if(e.auth.type==="Bearer"){const o=await s(e.auth.token);if(!o)return t;t.authorization=`Bearer ${o}`}else if(e.auth.type==="Basic"){const[o,r]=await Promise.all([s(e.auth.username),s(e.auth.password)]);if(!o||!r)return t;t.authorization=`Basic ${btoa(`${o}:${r}`)}`}else if(e.auth.type==="Custom"){const[o,r]=await Promise.all([s(e.auth.prefix),s(e.auth.value)]);if(!r)return t;t.authorization=`${o??""} ${r}`}}return t},Yz=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Qz(e){const t=e.headers.get("content-type"),s=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const o=t.split(";").shift()||"";return Yz.test(o)?"json":s.has(o)||o.startsWith("text/")?"text":"blob"}function Xz(e){try{return JSON.parse(e),!0}catch{return!1}}function $p(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function i_(e){try{return JSON.parse(e)}catch{return e}}function o_(e){return typeof e=="function"}function Wz(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&o_(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&o_(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function Zz(e){const t=new Headers(e?.headers),s=await Gz(e);for(const[o,r]of Object.entries(s||{}))t.set(o,r);if(!t.has("content-type")){const o=Jz(e?.body);o&&t.set("content-type",o)}return t}function Jz(e){return $p(e)?"application/json":null}function e7(e){if(!e?.body)return null;const t=new Headers(e?.headers);if($p(e.body)&&!t.has("content-type")){for(const[s,o]of Object.entries(e?.body))o instanceof Date&&(e.body[s]=o.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&$p(e.body)?new URLSearchParams(e.body).toString():e.body}function t7(e,t){var s;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const o=(s=e.split("@")[1])==null?void 0:s.split("/")[0];return oE.includes(o)?o.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function n7(e,t){let s;return!e?.signal&&e?.timeout&&(s=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:s,clearTimeout:()=>{s&&clearTimeout(s)}}}var s7=class iE extends Error{constructor(t,s){super(s||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,iE.prototype)}};async function Vc(e,t){const s=await e["~standard"].validate(t);if(s.issues)throw new s7(s.issues);return s.value}var oE=["get","post","put","patch","delete"],i7=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,s){var o,r,u,c;const f=((r=(o=e.plugins)==null?void 0:o.find(h=>{var g;return(g=h.schema)!=null&&g.config?t.startsWith(h.schema.config.baseURL||"")||t.startsWith(h.schema.config.prefix||""):!1}))==null?void 0:r.schema)||e.schema;if(f){let h=t;(u=f.config)!=null&&u.prefix&&h.startsWith(f.config.prefix)&&(h=h.replace(f.config.prefix,""),f.config.baseURL&&(t=t.replace(f.config.prefix,f.config.baseURL))),(c=f.config)!=null&&c.baseURL&&h.startsWith(f.config.baseURL)&&(h=h.replace(f.config.baseURL,""));const g=f.schema[h];if(g){let m=ps(as({},s),{method:g.method,output:g.output});return s?.disableValidation||(m=ps(as({},m),{body:g.input?await Vc(g.input,s?.body):s?.body,params:g.params?await Vc(g.params,s?.params):s?.params,query:g.query?await Vc(g.query,s?.query):s?.query})),{url:t,options:m}}}return{url:t,options:s}}}),o7=e=>{async function t(s,o){const r=ps(as(as({},e),o),{plugins:[...e?.plugins||[],i7(e||{}),...o?.plugins||[]]});if(e?.catchAllError)try{return await jp(s,r)}catch(u){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:u}}}return await jp(s,r)}return t};function a7(e,t){const{baseURL:s,params:o,query:r}=t||{query:{},params:{},baseURL:""};let u=e.startsWith("http")?e.split("/").slice(0,3).join("/"):s||"";if(e.startsWith("@")){const b=e.toString().split("@")[1].split("/")[0];oE.includes(b)&&(e=e.replace(`@${b}/`,"/"))}u.endsWith("/")||(u+="/");let[c,f]=e.replace(u,"").split("?");const h=new URLSearchParams(f);for(const[b,y]of Object.entries(r||{})){if(y==null)continue;let _;if(typeof y=="string")_=y;else if(Array.isArray(y)){for(const k of y)h.append(b,k);continue}else _=JSON.stringify(y);h.set(b,_)}if(o)if(Array.isArray(o)){const b=c.split("/").filter(y=>y.startsWith(":"));for(const[y,_]of b.entries()){const k=o[y];c=c.replace(_,k)}}else for(const[b,y]of Object.entries(o))c=c.replace(`:${b}`,String(y));c=c.split("/").map(encodeURIComponent).join("/"),c.startsWith("/")&&(c=c.slice(1));let g=h.toString();return g=g.length>0?`?${g}`.replace(/\+/g,"%20"):"",u.startsWith("http")?new URL(`${c}${g}`,u):`${u}${c}${g}`}var jp=async(e,t)=>{var s,o,r,u,c,f,h,g;const{hooks:m,url:b,options:y}=await Hz(e,t),_=Wz(y),k=new AbortController,S=(s=y.signal)!=null?s:k.signal,C=a7(b,y),R=e7(y),T=await Zz(y),A=t7(b,y);let w=ps(as({},y),{url:C,headers:T,body:R,method:A,signal:S});for(const B of m.onRequest)if(B){const q=await B(w);typeof q=="object"&&q!==null&&(w=q)}("pipeTo"in w&&typeof w.pipeTo=="function"||typeof((o=t?.body)==null?void 0:o.pipe)=="function")&&("duplex"in w||(w.duplex="half"));const{clearTimeout:x}=n7(y,k);let M=await _(w.url,w);x();const L={response:M,request:w};for(const B of m.onResponse)if(B){const q=await B(ps(as({},L),{response:(r=t?.hookOptions)!=null&&r.cloneResponse?M.clone():M}));q instanceof Response?M=q:typeof q=="object"&&q!==null&&(M=q.response)}if(M.ok){if(!(w.method!=="HEAD"))return{data:"",error:null};const q=Qz(M),J={data:null,response:M,request:w};if(q==="json"||q==="text"){const D=await M.text(),I=(u=w.jsonParser)!=null?u:i_;J.data=await I(D)}else J.data=await M[q]();w?.output&&w.output&&!w.disableValidation&&(J.data=await Vc(w.output,J.data));for(const D of m.onSuccess)D&&await D(ps(as({},J),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?M.clone():M}));return t?.throw?J.data:{data:J.data,error:null}}const P=(f=t?.jsonParser)!=null?f:i_,V=await M.text(),Z=Xz(V),z=Z?await P(V):null,Q={response:M,responseText:V,request:w,error:ps(as({},z),{status:M.status,statusText:M.statusText})};for(const B of m.onError)B&&await B(ps(as({},Q),{response:(h=t?.hookOptions)!=null&&h.cloneResponse?M.clone():M}));if(t?.retry){const B=Kz(t.retry),q=(g=t.retryAttempt)!=null?g:0;if(await B.shouldAttemptRetry(q,M)){for(const D of m.onRetry)D&&await D(L);const J=B.getDelay(q);return await new Promise(D=>setTimeout(D,J)),await jp(e,ps(as({},t),{retryAttempt:q+1}))}}if(t?.throw)throw new qz(M.status,M.statusText,Z?z:V);return{data:null,error:ps(as({},z),{status:M.status,statusText:M.statusText})}};const r7=(e,t)=>{const s="credentials"in Request.prototype,o=mz(e?.baseURL,e?.basePath)??"/api/auth",r=e?.plugins?.flatMap(w=>w.fetchPlugins).filter(w=>w!==void 0)||[],u={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:c,onError:f,onRequest:h,onResponse:g,...m}=e?.fetchOptions||{},b=o7({baseURL:o,...s?{credentials:"include"}:{},method:"GET",jsonParser(w){return w?Ez(w,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[u,...m.plugins||[],...e?.disableDefaultFetchPlugins?[]:[bz],...r]}),{$sessionSignal:y,session:_}=$z(b,e),k=e?.plugins||[];let S={},C={$sessionSignal:y,session:_},R={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const T=[{signal:"$sessionSignal",matcher(w){return w==="/sign-out"||w==="/update-user"||w==="/sign-up/email"||w==="/sign-in/email"||w==="/delete-user"||w==="/verify-email"||w==="/revoke-sessions"||w==="/revoke-session"||w==="/change-email"}}];for(const w of k)w.getAtoms&&Object.assign(C,w.getAtoms?.(b)),w.pathMethods&&Object.assign(R,w.pathMethods),w.atomListeners&&T.push(...w.atomListeners);const A={notify:w=>{C[w].set(!C[w].get())},listen:(w,x)=>{C[w].subscribe(x)},atoms:C};for(const w of k)w.getActions&&Object.assign(S,w.getActions?.(b,A,e));return{get baseURL(){return o},pluginsActions:S,pluginsAtoms:C,pluginPathMethods:R,atomListeners:T,$fetch:b,$store:A}};function l7(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function u7(e,t,s){const o=t[e],{fetchOptions:r,query:u,...c}=s||{};return o||(r?.method?r.method:c&&Object.keys(c).length>0?"POST":"GET")}function c7(e,t,s,o,r){function u(c=[]){return new Proxy(function(){},{get(f,h){if(typeof h!="string"||h==="then"||h==="catch"||h==="finally")return;const g=[...c,h];let m=e;for(const b of g)if(m&&typeof m=="object"&&b in m)m=m[b];else{m=void 0;break}return typeof m=="function"||l7(m)?m:u(g)},apply:async(f,h,g)=>{const m="/"+c.map(T=>T.replace(/[A-Z]/g,A=>`-${A.toLowerCase()}`)).join("/"),b=g[0]||{},y=g[1]||{},{query:_,fetchOptions:k,...S}=b,C={...y,...k},R=u7(m,s,b);return await t(m,{...C,body:R==="GET"?void 0:{...S,...C?.body||{}},query:_||C?.query,method:R,async onSuccess(T){if(await C?.onSuccess?.(T),!r||C.disableSignal)return;const A=r.filter(x=>x.matcher(m));if(!A.length)return;const w=new Set;for(const x of A){const M=o[x.signal];if(!M)return;if(w.has(x.signal))continue;w.add(x.signal);const L=M.get();setTimeout(()=>{M.set(!L)},10)}}})}})}return u()}function f7(e,t={}){let s=E.useRef(e.get());const{keys:o,deps:r=[e,o]}=t;let u=E.useCallback(f=>{const h=g=>{s.current!==g&&(s.current=g,f())};return h(e.value),o?.length?wz(e,o,h):e.listen(h)},r),c=()=>s.current;return E.useSyncExternalStore(u,c,c)}function d7(e){return`use${hz(e)}`}function h7(e){const{pluginPathMethods:t,pluginsActions:s,pluginsAtoms:o,$fetch:r,$store:u,atomListeners:c}=r7(e);let f={};for(const[h,g]of Object.entries(o))f[d7(h)]=()=>f7(g);return c7({...s,...f,$fetch:r,$store:u},r,t,o,c)}const a_=h7({basePath:window.bootstrapData?.basePath==="/"?"/api/auth":window.bootstrapData?.basePath+"/api/auth"});function g7(){const e=Ut.c(28),{data:t}=a_.useSession(),{theme:s,setTheme:o}=sz(),r=Dl(),{isCollapsed:u}=eE(),c=t?.user?.email??"";let f;e[0]!==c?(f=c.charAt(0).toUpperCase()||"?",e[0]=c,e[1]=f):f=e[1];const h=f;let g;e[2]!==r?(g=async()=>{await a_.signOut(),r({to:"/signin"})},e[2]=r,e[3]=g):g=e[3];const m=g;let b;e[4]===Symbol.for("react.memo_cache_sentinel")?(b=[{value:"light",icon:B4,label:"Light"},{value:"dark",icon:z4,label:"Dark"},{value:"system",icon:P4,label:"System"}],e[4]=b):b=e[4];const y=b,_=`${tL} ${u?yL:""}`;let k;e[5]!==h?(k=Y.jsx("span",{className:nL,children:h}),e[5]=h,e[6]=k):k=e[6];let S;e[7]!==u||e[8]!==c?(S=!u&&Y.jsxs(Y.Fragment,{children:[Y.jsx("span",{className:sL,children:c}),Y.jsx(R4,{className:iL})]}),e[7]=u,e[8]=c,e[9]=S):S=e[9];let C;e[10]!==_||e[11]!==k||e[12]!==S?(C=Y.jsxs(m6,{className:_,children:[k,S]}),e[10]=_,e[11]=k,e[12]=S,e[13]=C):C=e[13];let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R=Y.jsx("div",{className:lL,children:"Theme"}),e[14]=R):R=e[14];let T;e[15]!==o||e[16]!==s?(T=Y.jsxs("div",{className:rL,children:[R,Y.jsx("div",{className:uL,children:y.map(P=>Y.jsx("button",{className:`${cL} ${s===P.value?fL:""}`,onClick:()=>o(P.value),title:P.label,type:"button",children:Y.jsx(P.icon,{className:dL})},P.value))})]}),e[15]=o,e[16]=s,e[17]=T):T=e[17];let A;e[18]===Symbol.for("react.memo_cache_sentinel")?(A=Y.jsx("div",{className:hL}),e[18]=A):A=e[18];let w;e[19]===Symbol.for("react.memo_cache_sentinel")?(w=Y.jsx(D4,{className:pL}),e[19]=w):w=e[19];let x;e[20]!==m?(x=Y.jsxs(J3,{className:gL,onClick:m,children:[w,"Logout"]}),e[20]=m,e[21]=x):x=e[21];let M;e[22]!==x||e[23]!==T?(M=Y.jsx(o6,{children:Y.jsx(a6,{className:oL,side:"bottom",sideOffset:4,align:"start",positionMethod:"fixed",children:Y.jsxs(s6,{className:aL,children:[T,A,x]})})}),e[22]=x,e[23]=T,e[24]=M):M=e[24];let L;return e[25]!==M||e[26]!==C?(L=Y.jsxs(d6,{children:[C,M]}),e[25]=M,e[26]=C,e[27]=L):L=e[27],L}function p7(){const e=Ut.c(13),{isCollapsed:t}=eE();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=Y.jsx(c4,{children:Y.jsx(g7,{})}),e[0]=s):s=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=Y.jsx(Xr,{asChild:!0,children:Y.jsxs(ho,{to:"/",children:[Y.jsx(Zt,{icon:PS}),"Overview"]})}),e[1]=o):o=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=Y.jsx(Xr,{asChild:!0,children:Y.jsxs(ho,{to:"/settings",children:[Y.jsx(Zt,{icon:zS}),"Settings"]})}),e[2]=r):r=e[2];const u=`${mL} ${t?bL:""}`;let c;e[3]!==u?(c=Y.jsx("span",{className:u,children:"Workspace"}),e[3]=u,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=Y.jsx(Xr,{asChild:!0,children:Y.jsxs(ho,{to:"/configs",children:[Y.jsx(Zt,{icon:$S}),"Configs"]})}),e[5]=f):f=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=Y.jsx(Xr,{asChild:!0,children:Y.jsxs(ho,{to:"/environments",children:[Y.jsx(Zt,{icon:NS}),"Environments"]})}),e[6]=h):h=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=Y.jsx(Xr,{asChild:!0,children:Y.jsxs(ho,{to:"/observability",children:[Y.jsx(Zt,{icon:jS}),"Observability"]})}),e[7]=g):g=e[7];let m;e[8]!==c?(m=Y.jsxs(d4,{children:[o,r,c,f,h,g]}),e[8]=c,e[9]=m):m=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=Y.jsx(f4,{}),e[10]=b):b=e[10];let y;return e[11]!==m?(y=Y.jsxs(h4,{children:[s,m,b]}),e[11]=m,e[12]=y):y=e[12],y}var m7="_1j1a89s0",Wj="_1j1a89s2",Zj="_1j1a89s3";const Nf=vw()({component:y7}),b7=["/signin","/setup"];function y7(){const e=Ut.c(3),t=Pw();if(b7.some(u=>t.pathname.startsWith(u))){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u=Y.jsx(Yg,{}),e[0]=u):u=e[0],u}let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=Y.jsx(p7,{}),e[1]=o):o=e[1];let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=Y.jsx("div",{children:Y.jsxs(R6,{children:[o,Y.jsx("div",{className:m7,children:Y.jsx(Yg,{})})]})}),e[2]=r):r=e[2],r}const v7="modulepreload",_7=function(e,t){return new URL(e,t).href},r_={},Je=function(t,s,o){let r=Promise.resolve();if(s&&s.length>0){let g=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const c=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),h=f?.nonce||f?.getAttribute("nonce");r=g(s.map(m=>{if(m=_7(m,o),m in r_)return;r_[m]=!0;const b=m.endsWith(".css"),y=b?'[rel="stylesheet"]':"";if(o)for(let k=c.length-1;k>=0;k--){const S=c[k];if(S.href===m&&(!b||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${m}"]${y}`))return;const _=document.createElement("link");if(_.rel=b?"stylesheet":v7,b||(_.as="script"),_.crossOrigin="",_.href=m,h&&_.setAttribute("nonce",h),document.head.appendChild(_),b)return new Promise((k,S)=>{_.addEventListener("load",k),_.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function u(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return r.then(c=>{for(const f of c||[])f.status==="rejected"&&u(f.reason);return t().catch(u)})},k7=()=>Je(()=>import("./route-Dsk5qQsg.js"),__vite__mapDeps([0,1]),import.meta.url),S7=Qe("/(app)")({component:Ze(k7,"component")}),C7=()=>Je(()=>import("./index-CXl8yUk6.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,1]),import.meta.url),E7=Qe("/(app)/")({component:Ze(C7,"component"),staticData:{customData:{title:"Overview",icon:Y.jsx(Zt,{icon:PS})}}}),R7=()=>Je(()=>import("./signin-DT7q7n3E.js"),__vite__mapDeps([14,15,5,16,17,18,19,1]),import.meta.url),x7=Qe("/(auth)/signin")({component:Ze(R7,"component")}),T7=()=>Je(()=>import("./setup-DIckLV4k.js"),__vite__mapDeps([20,15,5,16,17,18,19,1]),import.meta.url),w7=Qe("/(auth)/setup")({component:Ze(T7,"component")}),O7=()=>Je(()=>import("./environments-SG5eHA9e.js"),__vite__mapDeps([21,3,4,5,22,15,23,24,25,26,27,28,29,6,30,8,9,31,10,32,1]),import.meta.url),A7=Qe("/(app)/environments")({component:Ze(O7,"component"),staticData:{customData:{title:"Environments",icon:Y.jsx(Zt,{icon:NS})}}}),M7=()=>Je(()=>import("./configs-DiX0v39W.js"),__vite__mapDeps([33,22,15,23,24,25,26,27,28,3,4,29,6,7,8,9,5,31,34,11,12,10,32,35,1]),import.meta.url),D7=Qe("/(app)/configs")({component:Ze(M7,"component"),staticData:{customData:{title:"Configs",icon:Y.jsx(Zt,{icon:$S})}}}),L7=()=>Je(()=>import("./route-COMWKM5H.js"),__vite__mapDeps([36,1]),import.meta.url),P7=Qe("/(app)/settings")({component:Ze(L7,"component"),staticData:{customData:{title:"Settings",icon:Y.jsx(Zt,{icon:zS})}}}),N7=()=>Je(()=>import("./route-C1mboO2Z.js"),__vite__mapDeps([37,1]),import.meta.url),z7=e=>{const t=new Date;let s=new Date;switch(e){case"15m":s=new Date(t.getTime()-900*1e3);break;case"1h":s=new Date(t.getTime()-3600*1e3);break;case"3h":s=new Date(t.getTime()-10800*1e3);break;case"6h":s=new Date(t.getTime()-360*60*1e3);break;case"12h":s=new Date(t.getTime()-720*60*1e3);break;case"24h":s=new Date(t.getTime()-1440*60*1e3);break;case"2d":s=new Date(t.getTime()-2880*60*1e3);break;case"7d":s=new Date(t.getTime()-10080*60*1e3);break;case"30d":s=new Date(t.getTime()-720*60*60*1e3);break;case"90d":s=new Date(t.getTime()-2160*60*60*1e3);break;default:s=new Date(t.getTime()-10080*60*1e3)}return{from:s.toISOString(),to:t.toISOString()}},$7=Qe("/(app)/observability")({component:Ze(N7,"component"),validateSearch:e=>{const t=e.range||"7d",s=z7(t),o=e.from,r=e.to;let u=s.from,c=s.to;if(o){const b=new Date(o);isNaN(b.getTime())||(u=b.toISOString())}if(r){const b=new Date(r);isNaN(b.getTime())||(c=b.toISOString())}const f=e.environmentId,h=e.configId,g=e.variantId,m=e.tags;return{range:t,from:u,to:c,...f&&{environmentId:f},...h&&{configId:h},...g&&{variantId:g},...m&&{tags:m}}},staticData:{customData:{title:"Observability",icon:Y.jsx(Zt,{icon:jS})}}}),j7=()=>Je(()=>import("./index-BZWJrClo.js"),__vite__mapDeps([38,1]),import.meta.url),U7=Qe("/(app)/settings/")({component:Ze(j7,"component")}),I7=()=>Je(()=>import("./index-L9LUh7qm.js"),__vite__mapDeps([39,1]),import.meta.url),V7=Qe("/(app)/observability/")({component:Ze(I7,"component")}),B7=()=>Je(()=>import("./_settings-D_xgTz13.js"),__vite__mapDeps([40,3,4,5,10,41,1]),import.meta.url),q7=Qe("/(app)/settings/_settings")({component:Ze(B7,"component")}),H7=()=>Je(()=>import("./_observability-CKbO1YDc.js"),__vite__mapDeps([42,3,4,5,43,27,44,45,30,7,46,47,10,48,1]),import.meta.url),F7=Qe("/(app)/observability/_observability")({component:Ze(H7,"component")});var K7=(e,t,s={})=>{let o=`${e}=${t}`;if(e.startsWith("__Secure-")&&!s.secure)throw new Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!s.secure)throw new Error("__Host- Cookie must have Secure attributes");if(s.path!=="/")throw new Error('__Host- Cookie must have Path attributes with "/"');if(s.domain)throw new Error("__Host- Cookie must not have Domain attributes")}if(s&&typeof s.maxAge=="number"&&s.maxAge>=0){if(s.maxAge>3456e4)throw new Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");o+=`; Max-Age=${s.maxAge|0}`}if(s.domain&&s.prefix!=="host"&&(o+=`; Domain=${s.domain}`),s.path&&(o+=`; Path=${s.path}`),s.expires){if(s.expires.getTime()-Date.now()>3456e7)throw new Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");o+=`; Expires=${s.expires.toUTCString()}`}if(s.httpOnly&&(o+="; HttpOnly"),s.secure&&(o+="; Secure"),s.sameSite&&(o+=`; SameSite=${s.sameSite.charAt(0).toUpperCase()+s.sameSite.slice(1)}`),s.priority&&(o+=`; Priority=${s.priority.charAt(0).toUpperCase()+s.priority.slice(1)}`),s.partitioned){if(!s.secure)throw new Error("Partitioned Cookie must have Secure attributes");o+="; Partitioned"}return o},G7=(e,t,s)=>(t=encodeURIComponent(t),K7(e,t,s)),Y7=(e,t)=>(e=e.replace(/\/+$/,""),e=e+"/",t=t.replace(/^\/+/,""),e+t),Up=(e,t)=>{for(const[s,o]of Object.entries(t)){const r=new RegExp("/:"+s+"(?:{[^/]+})?\\??");e=e.replace(r,o?`/${o}`:"")}return e},aE=e=>{const t=new URLSearchParams;for(const[s,o]of Object.entries(e))if(o!==void 0)if(Array.isArray(o))for(const r of o)t.append(s,r);else t.set(s,o);return t},Q7=(e,t)=>{switch(t){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},rE=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,"/"):e.replace(/\/index(?=\?|$)/,"");function Rc(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function lE(e,t){if(!Rc(e)&&!Rc(t))return t;const s={...e};for(const o in t){const r=t[o];Rc(s[o])&&Rc(r)?s[o]=lE(s[o],r):s[o]=r}return s}var uE=(e,t)=>new Proxy(()=>{},{get(o,r){if(!(typeof r!="string"||r==="then"))return uE(e,[...t,r])},apply(o,r,u){return e({path:t,args:u})}}),X7=class{url;method;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t){this.url=e,this.method=t}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=aE(e.query)),e.form){const f=new FormData;for(const[h,g]of Object.entries(e.form))if(Array.isArray(g))for(const m of g)f.append(h,m);else f.append(h,g);this.rBody=f}e.json&&(this.rBody=JSON.stringify(e.json),this.cType="application/json"),e.param&&(this.pathParams=e.param)}let s=this.method.toUpperCase();const o={...e?.header,...typeof t?.headers=="function"?await t.headers():t?.headers};if(e?.cookie){const f=[];for(const[h,g]of Object.entries(e.cookie))f.push(G7(h,g,{path:"/"}));o.Cookie=f.join(",")}this.cType&&(o["Content-Type"]=this.cType);const r=new Headers(o??void 0);let u=this.url;u=rE(u),u=Up(u,this.pathParams),this.queryParams&&(u=u+"?"+this.queryParams.toString()),s=this.method.toUpperCase();const c=!(s==="GET"||s==="HEAD");return(t?.fetch||fetch)(u,{body:c?this.rBody:void 0,method:s,headers:r,...t?.init})}},W7=(e,t)=>uE(function s(o){const r=[...o.path],u=r.slice(-3).reverse();if(u[0]==="toString")return u[1]==="name"?u[2]||"":s.toString();if(u[0]==="valueOf")return u[1]==="name"?u[2]||"":s;let c="";if(/^\$/.test(u[0])){const m=r.pop();m&&(c=m.replace(/^\$/,""))}const f=r.join("/"),h=Y7(e,f);if(c==="url"){let m=h;return o.args[0]&&(o.args[0].param&&(m=Up(h,o.args[0].param)),o.args[0].query&&(m=m+"?"+aE(o.args[0].query).toString())),m=rE(m),new URL(m)}if(c==="ws"){const m=Q7(o.args[0]&&o.args[0].param?Up(h,o.args[0].param):h,"ws"),b=new URL(m),y=o.args[0]?.query;return y&&Object.entries(y).forEach(([k,S])=>{Array.isArray(S)?S.forEach(C=>b.searchParams.append(k,C)):b.searchParams.set(k,S)}),((...k)=>t?.webSocket!==void 0&&typeof t.webSocket=="function"?t.webSocket(...k):new WebSocket(...k))(b.toString())}const g=new X7(h,c);if(c){t??={};const m=lE(t,{...o.args[1]});return g.fetch(o.args[0],m)}return g},[]);class Ip extends Error{response;request;options;constructor(t,s,o){const r=t.status||t.status===0?t.status:"",u=t.statusText??"",c=`${r} ${u}`.trim(),f=c?`status code ${c}`:"an unknown error";super(`Request failed with ${f}: ${s.method} ${s.url}`),this.name="HTTPError",this.response=t,this.request=s,this.options=o}}class cE extends Error{name="NonError";value;constructor(t){let s="Non-error value was thrown";try{typeof t=="string"?s=t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"&&(s=t.message)}catch{}super(s),this.value=t}}class Ig extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(t){const s=t?.cause?t.cause instanceof Error?t.cause:new cE(t.cause):void 0;super(t?.code?`Forced retry: ${t.code}`:"Forced retry",s?{cause:s}:void 0),this.customDelay=t?.delay,this.code=t?.code,this.customRequest=t?.request}}const l_=(()=>{let e=!1,t=!1;const s=typeof globalThis.ReadableStream=="function",o=typeof globalThis.Request=="function";if(s&&o)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(r){if(r instanceof Error&&r.message==="unsupported BodyInit type")return!1;throw r}return e&&!t})(),Z7=typeof globalThis.AbortController=="function",fE=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",J7=typeof globalThis.ReadableStream=="function",e8=typeof globalThis.FormData=="function",dE=["get","post","put","patch","head","delete"],t8={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Vg=2147483647,n8=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,hE=Symbol("stop");class gE{options;constructor(t){this.options=t}}const s8=e=>new gE(e),i8={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},o8={next:!0},a8={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},r8=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(const[s,o]of e)t+=n8,t+=new TextEncoder().encode(`Content-Disposition: form-data; name="${s}"`).length,t+=typeof o=="string"?new TextEncoder().encode(o).length:o.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if(typeof e=="string")return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if(typeof e=="object"&&e!==null)try{const t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{return 0}return 0},pE=(e,t,s)=>{let o,r=0;return e.pipeThrough(new TransformStream({transform(u,c){if(c.enqueue(u),o){r+=o.byteLength;let f=t===0?0:r/t;f>=1&&(f=1-Number.EPSILON),s?.({percent:f,totalBytes:Math.max(t,r),transferredBytes:r},o)}o=u},flush(){o&&(r+=o.byteLength,s?.({percent:1,totalBytes:Math.max(t,r),transferredBytes:r},o))}}))},l8=(e,t)=>{if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});const s=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(pE(e.body,s,t),{status:e.status,statusText:e.statusText,headers:e.headers})},u8=(e,t,s)=>{if(!e.body)return e;const o=r8(s??e.body);return new Request(e,{duplex:"half",body:pE(e.body,o,t)})},go=e=>e!==null&&typeof e=="object",xc=(...e)=>{for(const t of e)if((!go(t)||Array.isArray(t))&&t!==void 0)throw new TypeError("The `options` argument must be an object");return Zm({},...e)},mE=(e={},t={})=>{const s=new globalThis.Headers(e),o=t instanceof globalThis.Headers,r=new globalThis.Headers(t);for(const[u,c]of r.entries())o&&c==="undefined"||c===void 0?s.delete(u):s.set(u,c);return s};function Tc(e,t,s){return Object.hasOwn(t,s)&&t[s]===void 0?[]:Zm(e[s]??[],t[s]??[])}const bE=(e={},t={})=>({beforeRequest:Tc(e,t,"beforeRequest"),beforeRetry:Tc(e,t,"beforeRetry"),afterResponse:Tc(e,t,"afterResponse"),beforeError:Tc(e,t,"beforeError")}),c8=(e,t)=>{const s=new URLSearchParams;for(const o of[e,t])if(o!==void 0)if(o instanceof URLSearchParams)for(const[r,u]of o.entries())s.append(r,u);else if(Array.isArray(o))for(const r of o){if(!Array.isArray(r)||r.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");s.append(String(r[0]),String(r[1]))}else if(go(o))for(const[r,u]of Object.entries(o))u!==void 0&&s.append(r,String(u));else{const r=new URLSearchParams(o);for(const[u,c]of r.entries())s.append(u,c)}return s},Zm=(...e)=>{let t={},s={},o={},r;const u=[];for(const c of e)if(Array.isArray(c))Array.isArray(t)||(t=[]),t=[...t,...c];else if(go(c)){for(let[f,h]of Object.entries(c)){if(f==="signal"&&h instanceof globalThis.AbortSignal){u.push(h);continue}if(f==="context"){if(h!=null&&(!go(h)||Array.isArray(h)))throw new TypeError("The `context` option must be an object");t={...t,context:h==null?{}:{...t.context,...h}};continue}if(f==="searchParams"){h==null?r=void 0:r=r===void 0?h:c8(r,h);continue}go(h)&&f in t&&(h=Zm(t[f],h)),t={...t,[f]:h}}go(c.hooks)&&(o=bE(o,c.hooks),t.hooks=o),go(c.headers)&&(s=mE(s,c.headers),t.headers=s)}return r!==void 0&&(t.searchParams=r),u.length>0&&(u.length===1?t.signal=u[0]:fE?t.signal=AbortSignal.any(u):t.signal=u.at(-1)),t.context===void 0&&(t.context={}),t},f8=e=>dE.includes(e)?e.toUpperCase():e,d8=["get","put","head","delete","options","trace"],h8=[408,413,429,500,502,503,504],g8=[413,429,503],u_={limit:2,methods:d8,statusCodes:h8,afterStatusCodes:g8,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},p8=(e={})=>{if(typeof e=="number")return{...u_,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...u_,...e}};class Vp extends Error{request;constructor(t){super(`Request timed out: ${t.method} ${t.url}`),this.name="TimeoutError",this.request=t}}async function m8(e,t,s,o){return new Promise((r,u)=>{const c=setTimeout(()=>{s&&s.abort(),u(new Vp(e))},o.timeout);o.fetch(e,t).then(r).catch(u).then(()=>{clearTimeout(c)})})}async function b8(e,{signal:t}){return new Promise((s,o)=>{t&&(t.throwIfAborted(),t.addEventListener("abort",r,{once:!0}));function r(){clearTimeout(u),o(t.reason)}const u=setTimeout(()=>{t?.removeEventListener("abort",r),s()},e)})}const y8=(e,t)=>{const s={};for(const o in t)Object.hasOwn(t,o)&&!(o in a8)&&!(o in i8)&&(!(o in e)||o in o8)&&(s[o]=t[o]);return s},v8=e=>e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:typeof e=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;function _8(e){return e instanceof Ip||e?.name===Ip.name}function k8(e){return e instanceof Vp||e?.name===Vp.name}class Ol{static create(t,s){const o=new Ol(t,s),r=async()=>{if(typeof o.#e.timeout=="number"&&o.#e.timeout>Vg)throw new RangeError(`The \`timeout\` option cannot be greater than ${Vg}`);await Promise.resolve();let c=await o.#g();for(const f of o.#e.hooks.afterResponse){const h=o.#h(c.clone()),g=await f(o.request,o.#l(),h,{retryCount:o.#s});if(g instanceof globalThis.Response&&(c=g),g instanceof gE)throw await Promise.all([h.body?.cancel(),c.body?.cancel()]),new Ig(g.options)}if(o.#h(c),!c.ok&&(typeof o.#e.throwHttpErrors=="function"?o.#e.throwHttpErrors(c.status):o.#e.throwHttpErrors)){let f=new Ip(c,o.request,o.#l());for(const h of o.#e.hooks.beforeError)f=await h(f,{retryCount:o.#s});throw f}if(o.#e.onDownloadProgress){if(typeof o.#e.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!J7)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return l8(c.clone(),o.#e.onDownloadProgress)}return c},u=o.#u(r).finally(async()=>{const c=o.#r,f=[];c&&!c.bodyUsed&&f.push(c.body?.cancel()),o.request.bodyUsed||f.push(o.request.body?.cancel()),await Promise.all(f)});for(const[c,f]of Object.entries(t8))c==="bytes"&&typeof globalThis.Response?.prototype?.bytes!="function"||(u[c]=async()=>{o.request.headers.set("accept",o.request.headers.get("accept")||f);const h=await u;if(c==="json"){if(h.status===204)return"";const g=await h.text();return g===""?"":s.parseJson?s.parseJson(g):JSON.parse(g)}return h[c]()});return u}static#n(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof URLSearchParams)?Object.fromEntries(Object.entries(t).filter(([,s])=>s!==void 0)):t}request;#t;#s=0;#i;#e;#r;#o;#a;constructor(t,s={}){if(this.#i=t,this.#e={...s,headers:mE(this.#i.headers,s.headers),hooks:bE({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},s.hooks),method:f8(s.method??this.#i.method??"GET"),prefixUrl:String(s.prefixUrl||""),retry:p8(s.retry),throwHttpErrors:s.throwHttpErrors??!0,timeout:s.timeout??1e4,fetch:s.fetch??globalThis.fetch.bind(globalThis),context:s.context??{}},typeof this.#i!="string"&&!(this.#i instanceof URL||this.#i instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this.#e.prefixUrl&&typeof this.#i=="string"){if(this.#i.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#e.prefixUrl.endsWith("/")||(this.#e.prefixUrl+="/"),this.#i=this.#e.prefixUrl+this.#i}Z7&&fE&&(this.#o=this.#e.signal??this.#i.signal,this.#t=new globalThis.AbortController,this.#e.signal=this.#o?AbortSignal.any([this.#o,this.#t.signal]):this.#t.signal),l_&&(this.#e.duplex="half"),this.#e.json!==void 0&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));const o=s.headers&&new globalThis.Headers(s.headers).has("content-type");if(this.#i instanceof globalThis.Request&&(e8&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!o&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#i,this.#e),v8(this.#e.searchParams)){const u="?"+(typeof this.#e.searchParams=="string"?this.#e.searchParams.replace(/^\?/,""):new URLSearchParams(Ol.#n(this.#e.searchParams)).toString()),c=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,u);this.request=new globalThis.Request(c,this.#e)}if(this.#e.onUploadProgress){if(typeof this.#e.onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");if(!l_)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#f(this.request,this.#e.body??void 0)}}#d(){const t=this.#e.retry.delay(this.#s);let s=t;return this.#e.retry.jitter===!0?s=Math.random()*t:typeof this.#e.retry.jitter=="function"&&(s=this.#e.retry.jitter(t),(!Number.isFinite(s)||s<0)&&(s=t)),Math.min(this.#e.retry.backoffLimit,s)}async#p(t){if(this.#s++,this.#s>this.#e.retry.limit)throw t;const s=t instanceof Error?t:new cE(t);if(s instanceof Ig)return s.customDelay??this.#d();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw t;if(this.#e.retry.shouldRetry!==void 0){const o=await this.#e.retry.shouldRetry({error:s,retryCount:this.#s});if(o===!1)throw t;if(o===!0)return this.#d()}if(k8(t)&&!this.#e.retry.retryOnTimeout)throw t;if(_8(t)){if(!this.#e.retry.statusCodes.includes(t.response.status))throw t;const o=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Retry-After")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(o&&this.#e.retry.afterStatusCodes.includes(t.response.status)){let r=Number(o)*1e3;Number.isNaN(r)?r=Date.parse(o)-Date.now():r>=Date.parse("2024-01-01")&&(r-=Date.now());const u=this.#e.retry.maxRetryAfter??r;return r<u?r:u}if(t.response.status===413)throw t}return this.#d()}#h(t){return this.#e.parseJson&&(t.json=async()=>this.#e.parseJson(await t.text())),t}async#u(t){try{return await t()}catch(s){const o=Math.min(await this.#p(s),Vg);if(this.#s<1)throw s;if(await b8(o,this.#o?{signal:this.#o}:{}),s instanceof Ig&&s.customRequest){const r=this.#e.signal?new globalThis.Request(s.customRequest,{signal:this.#e.signal}):new globalThis.Request(s.customRequest);this.#c(r)}for(const r of this.#e.hooks.beforeRetry){const u=await r({request:this.request,options:this.#l(),error:s,retryCount:this.#s});if(u instanceof globalThis.Request){this.#c(u);break}if(u instanceof globalThis.Response)return u;if(u===hE)return}return this.#u(t)}}async#g(){this.#t?.signal.aborted&&(this.#t=new globalThis.AbortController,this.#e.signal=this.#o?AbortSignal.any([this.#o,this.#t.signal]):this.#t.signal,this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));for(const s of this.#e.hooks.beforeRequest){const o=await s(this.request,this.#l(),{retryCount:this.#s});if(o instanceof Response)return o;if(o instanceof globalThis.Request){this.#c(o);break}}const t=y8(this.request,this.#e);return this.#r=this.request,this.request=this.#r.clone(),this.#e.timeout===!1?this.#e.fetch(this.#r,t):m8(this.#r,t,this.#t,this.#e)}#l(){if(!this.#a){const{hooks:t,...s}=this.#e;this.#a=Object.freeze(s)}return this.#a}#c(t){this.#a=void 0,this.request=this.#f(t)}#f(t,s){return!this.#e.onUploadProgress||!t.body?t:u8(t,this.#e.onUploadProgress,s??this.#e.body??void 0)}}const Bp=e=>{const t=(s,o)=>Ol.create(s,xc(e,o));for(const s of dE)t[s]=(o,r)=>Ol.create(o,xc(e,r,{method:s}));return t.create=s=>Bp(xc(s)),t.extend=s=>(typeof s=="function"&&(s=s(e??{})),Bp(xc(e,s))),t.stop=hE,t.retry=s8,t},S8=Bp(),C8=S8.create({retry:0,timeout:150*1e3}),c_=new URL((window.bootstrapData?.basePath==="/"?"":window.bootstrapData?.basePath)+"/api",window.location.origin),Jm=W7(c_.origin+c_.pathname,{fetch:C8});var jl=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(){}},E8={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},R8=class{#n=E8;#t=!1;setTimeoutProvider(e){this.#n=e}setTimeout(e,t){return this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}},bo=new R8;function x8(e){setTimeout(e,0)}var Mo=typeof window>"u"||"Deno"in globalThis;function vn(){}function T8(e,t){return typeof e=="function"?e(t):e}function qp(e){return typeof e=="number"&&e>=0&&e!==1/0}function yE(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ji(e,t){return typeof e=="function"?e(t):e}function Xn(e,t){return typeof e=="function"?e(t):e}function f_(e,t){const{type:s="all",exact:o,fetchStatus:r,predicate:u,queryKey:c,stale:f}=e;if(c){if(o){if(t.queryHash!==eb(c,t.options))return!1}else if(!Ml(t.queryKey,c))return!1}if(s!=="all"){const h=t.isActive();if(s==="active"&&!h||s==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||r&&r!==t.state.fetchStatus||u&&!u(t))}function d_(e,t){const{exact:s,status:o,predicate:r,mutationKey:u}=e;if(u){if(!t.options.mutationKey)return!1;if(s){if(Al(t.options.mutationKey)!==Al(u))return!1}else if(!Ml(t.options.mutationKey,u))return!1}return!(o&&t.state.status!==o||r&&!r(t))}function eb(e,t){return(t?.queryKeyHashFn||Al)(e)}function Al(e){return JSON.stringify(e,(t,s)=>Fp(s)?Object.keys(s).sort().reduce((o,r)=>(o[r]=s[r],o),{}):s)}function Ml(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(s=>Ml(e[s],t[s])):!1}var w8=Object.prototype.hasOwnProperty;function vE(e,t){if(e===t)return e;const s=h_(e)&&h_(t);if(!s&&!(Fp(e)&&Fp(t)))return t;const r=(s?e:Object.keys(e)).length,u=s?t:Object.keys(t),c=u.length,f=s?new Array(c):{};let h=0;for(let g=0;g<c;g++){const m=s?g:u[g],b=e[m],y=t[m];if(b===y){f[m]=b,(s?g<r:w8.call(e,m))&&h++;continue}if(b===null||y===null||typeof b!="object"||typeof y!="object"){f[m]=y;continue}const _=vE(b,y);f[m]=_,_===b&&h++}return r===c&&h===r?e:f}function Hp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function h_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fp(e){if(!g_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!g_(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function g_(e){return Object.prototype.toString.call(e)==="[object Object]"}function O8(e){return new Promise(t=>{bo.setTimeout(t,e)})}function Kp(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?vE(e,t):t}function A8(e,t,s=0){const o=[...e,t];return s&&o.length>s?o.slice(1):o}function M8(e,t,s=0){const o=[t,...e];return s&&o.length>s?o.slice(0,-1):o}var tb=Symbol();function _E(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===tb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function D8(e,t){return typeof e=="function"?e(...t):!!e}var L8=class extends jl{#n;#t;#s;constructor(){super(),this.#s=e=>{if(!Mo&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#n!==e&&(this.#n=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#n=="boolean"?this.#n:globalThis.document?.visibilityState!=="hidden"}},nb=new L8;function Gp(){let e,t;const s=new Promise((r,u)=>{e=r,t=u});s.status="pending",s.catch(()=>{});function o(r){Object.assign(s,r),delete s.resolve,delete s.reject}return s.resolve=r=>{o({status:"fulfilled",value:r}),e(r)},s.reject=r=>{o({status:"rejected",reason:r}),t(r)},s}var P8=x8;function N8(){let e=[],t=0,s=f=>{f()},o=f=>{f()},r=P8;const u=f=>{t?e.push(f):r(()=>{s(f)})},c=()=>{const f=e;e=[],f.length&&r(()=>{o(()=>{f.forEach(h=>{s(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||c()}return h},batchCalls:f=>(...h)=>{u(()=>{f(...h)})},schedule:u,setNotifyFunction:f=>{s=f},setBatchNotifyFunction:f=>{o=f},setScheduler:f=>{r=f}}}var Yt=N8(),z8=class extends jl{#n=!0;#t;#s;constructor(){super(),this.#s=e=>{if(!Mo&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#n}},_f=new z8;function $8(e){return Math.min(1e3*2**e,3e4)}function kE(e){return(e??"online")==="online"?_f.isOnline():!0}var Yp=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function SE(e){let t=!1,s=0,o;const r=Gp(),u=()=>r.status!=="pending",c=S=>{if(!u()){const C=new Yp(S);y(C),e.onCancel?.(C)}},f=()=>{t=!0},h=()=>{t=!1},g=()=>nb.isFocused()&&(e.networkMode==="always"||_f.isOnline())&&e.canRun(),m=()=>kE(e.networkMode)&&e.canRun(),b=S=>{u()||(o?.(),r.resolve(S))},y=S=>{u()||(o?.(),r.reject(S))},_=()=>new Promise(S=>{o=C=>{(u()||g())&&S(C)},e.onPause?.()}).then(()=>{o=void 0,u()||e.onContinue?.()}),k=()=>{if(u())return;let S;const C=s===0?e.initialPromise:void 0;try{S=C??e.fn()}catch(R){S=Promise.reject(R)}Promise.resolve(S).then(b).catch(R=>{if(u())return;const T=e.retry??(Mo?0:3),A=e.retryDelay??$8,w=typeof A=="function"?A(s,R):A,x=T===!0||typeof T=="number"&&s<T||typeof T=="function"&&T(s,R);if(t||!x){y(R);return}s++,e.onFail?.(s,R),O8(w).then(()=>g()?void 0:_()).then(()=>{t?y(R):k()})})};return{promise:r,status:()=>r.status,cancel:c,continue:()=>(o?.(),r),cancelRetry:f,continueRetry:h,canStart:m,start:()=>(m()?k():_().then(k),r)}}var CE=class{#n;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qp(this.gcTime)&&(this.#n=bo.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Mo?1/0:300*1e3))}clearGcTimeout(){this.#n&&(bo.clearTimeout(this.#n),this.#n=void 0)}},j8=class extends CE{#n;#t;#s;#i;#e;#r;#o;constructor(e){super(),this.#o=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#s=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#n=m_(this.options),this.state=e.state??this.#n,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#e?.promise}setOptions(e){if(this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=m_(this.options);t.data!==void 0&&(this.setState(p_(t.data,t.dataUpdatedAt)),this.#n=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this)}setData(e,t){const s=Kp(this.state.data,e,this.options);return this.#a({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#e?.promise;return this.#e?.cancel(e),t?t.then(vn).catch(vn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#n)}isActive(){return this.observers.some(e=>Xn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ji(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!yE(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#e?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#e?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#e&&(this.#o?this.#e.cancel({revert:!0}):this.#e.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#e?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#e)return this.#e.continueRetry(),this.#e.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const s=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},r=()=>{const f=_E(this.options,t),g=(()=>{const m={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(m),m})();return this.#o=!1,this.options.persister?this.options.persister(f,g,this):f(g)},c=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return o(f),f})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#e=SE({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:f=>{f instanceof Yp&&f.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const f=await this.#e.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#s.config.onSuccess?.(f,this),this.#s.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Yp){if(f.silent)return this.#e.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#a({type:"error",error:f}),this.#s.config.onError?.(f,this),this.#s.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#a(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...EE(s.data,this.options),fetchMeta:e.meta??null};case"success":const o={...s,...p_(e.data,e.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?o:void 0,o;case"error":const r=e.error;return{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),Yt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function EE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kE(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function p_(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function m_(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,o=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var U8=class extends jl{constructor(e,t){super(),this.options=t,this.#n=e,this.#a=null,this.#o=Gp(),this.bindMethods(),this.setOptions(t)}#n;#t=void 0;#s=void 0;#i=void 0;#e;#r;#o;#a;#d;#p;#h;#u;#g;#l;#c=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),b_(this.#t,this.options)?this.#f():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qp(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qp(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#k(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,s=this.#t;if(this.options=this.#n.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Hp(this.options,t)&&this.#n.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&y_(this.#t,s,this.options,t)&&this.#f(),this.updateResult(),o&&(this.#t!==s||Xn(this.options.enabled,this.#t)!==Xn(t.enabled,this.#t)||ji(this.options.staleTime,this.#t)!==ji(t.staleTime,this.#t))&&this.#m();const r=this.#b();o&&(this.#t!==s||Xn(this.options.enabled,this.#t)!==Xn(t.enabled,this.#t)||r!==this.#l)&&this.#y(r)}getOptimisticResult(e){const t=this.#n.getQueryCache().build(this.#n,e),s=this.createResult(t,e);return V8(this,s)&&(this.#i=s,this.#r=this.options,this.#e=this.#t.state),s}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(s,o)=>(this.trackProp(o),t?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(e){this.#c.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#n.defaultQueryOptions(e),s=this.#n.getQueryCache().build(this.#n,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(vn)),t}#m(){this.#_();const e=ji(this.options.staleTime,this.#t);if(Mo||this.#i.isStale||!qp(e))return;const s=yE(this.#i.dataUpdatedAt,e)+1;this.#u=bo.setTimeout(()=>{this.#i.isStale||this.updateResult()},s)}#b(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#k(),this.#l=e,!(Mo||Xn(this.options.enabled,this.#t)===!1||!qp(this.#l)||this.#l===0)&&(this.#g=bo.setInterval(()=>{(this.options.refetchIntervalInBackground||nb.isFocused())&&this.#f()},this.#l))}#v(){this.#m(),this.#y(this.#b())}#_(){this.#u&&(bo.clearTimeout(this.#u),this.#u=void 0)}#k(){this.#g&&(bo.clearInterval(this.#g),this.#g=void 0)}createResult(e,t){const s=this.#t,o=this.options,r=this.#i,u=this.#e,c=this.#r,h=e!==s?e.state:this.#s,{state:g}=e;let m={...g},b=!1,y;if(t._optimisticResults){const P=this.hasListeners(),V=!P&&b_(e,t),Z=P&&y_(e,s,t,o);(V||Z)&&(m={...m,...EE(g.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:_,errorUpdatedAt:k,status:S}=m;y=m.data;let C=!1;if(t.placeholderData!==void 0&&y===void 0&&S==="pending"){let P;r?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(P=r.data,C=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,P!==void 0&&(S="success",y=Kp(r?.data,P,t),b=!0)}if(t.select&&y!==void 0&&!C)if(r&&y===u?.data&&t.select===this.#d)y=this.#p;else try{this.#d=t.select,y=t.select(y),y=Kp(r?.data,y,t),this.#p=y,this.#a=null}catch(P){this.#a=P}this.#a&&(_=this.#a,y=this.#p,k=Date.now(),S="error");const R=m.fetchStatus==="fetching",T=S==="pending",A=S==="error",w=T&&R,x=y!==void 0,L={status:S,fetchStatus:m.fetchStatus,isPending:T,isSuccess:S==="success",isError:A,isInitialLoading:w,isLoading:w,data:y,dataUpdatedAt:m.dataUpdatedAt,error:_,errorUpdatedAt:k,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:R,isRefetching:R&&!T,isLoadingError:A&&!x,isPaused:m.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:A&&x,isStale:sb(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Xn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=z=>{L.status==="error"?z.reject(L.error):L.data!==void 0&&z.resolve(L.data)},V=()=>{const z=this.#o=L.promise=Gp();P(z)},Z=this.#o;switch(Z.status){case"pending":e.queryHash===s.queryHash&&P(Z);break;case"fulfilled":(L.status==="error"||L.data!==Z.value)&&V();break;case"rejected":(L.status!=="error"||L.error!==Z.reason)&&V();break}}return L}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#e=this.#t.state,this.#r=this.options,this.#e.data!==void 0&&(this.#h=this.#t),Hp(t,e))return;this.#i=t;const s=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!this.#c.size)return!0;const u=new Set(r??this.#c);return this.options.throwOnError&&u.add("error"),Object.keys(this.#i).some(c=>{const f=c;return this.#i[f]!==e[f]&&u.has(f)})};this.#C({listeners:s()})}#S(){const e=this.#n.getQueryCache().build(this.#n,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#s=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#C(e){Yt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#n.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function I8(e,t){return Xn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function b_(e,t){return I8(e,t)||e.state.data!==void 0&&Qp(e,t,t.refetchOnMount)}function Qp(e,t,s){if(Xn(t.enabled,e)!==!1&&ji(t.staleTime,e)!=="static"){const o=typeof s=="function"?s(e):s;return o==="always"||o!==!1&&sb(e,t)}return!1}function y_(e,t,s,o){return(e!==t||Xn(o.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&sb(e,s)}function sb(e,t){return Xn(t.enabled,e)!==!1&&e.isStaleByTime(ji(t.staleTime,e))}function V8(e,t){return!Hp(e.getCurrentResult(),t)}function v_(e){return{onFetch:(t,s)=>{const o=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,u=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},h=0;const g=async()=>{let m=!1;const b=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},y=_E(t.options,t.fetchOptions),_=async(k,S,C)=>{if(m)return Promise.reject();if(S==null&&k.pages.length)return Promise.resolve(k);const T=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return b(M),M})(),A=await y(T),{maxPages:w}=t.options,x=C?M8:A8;return{pages:x(k.pages,A,w),pageParams:x(k.pageParams,S,w)}};if(r&&u.length){const k=r==="backward",S=k?B8:__,C={pages:u,pageParams:c},R=S(o,C);f=await _(C,R,k)}else{const k=e??u.length;do{const S=h===0?c[0]??o.initialPageParam:__(o,f);if(h>0&&S==null)break;f=await _(f,S),h++}while(h<k)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(g,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=g}}}function __(e,{pages:t,pageParams:s}){const o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,s[o],s):void 0}function B8(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}var q8=class extends CE{#n;#t;#s;#i;constructor(e){super(),this.#n=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#t=[],this.state=e.state||H8(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#e({type:"continue"})},s={client:this.#n,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=SE({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(u,c)=>{this.#e({type:"failed",failureCount:u,error:c})},onPause:()=>{this.#e({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const o=this.state.status==="pending",r=!this.#i.canStart();try{if(o)t();else{this.#e({type:"pending",variables:e,isPaused:r}),await this.#s.config.onMutate?.(e,this,s);const c=await this.options.onMutate?.(e,s);c!==this.state.context&&this.#e({type:"pending",context:c,variables:e,isPaused:r})}const u=await this.#i.start();return await this.#s.config.onSuccess?.(u,e,this.state.context,this,s),await this.options.onSuccess?.(u,e,this.state.context,s),await this.#s.config.onSettled?.(u,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(u,null,e,this.state.context,s),this.#e({type:"success",data:u}),u}catch(u){try{throw await this.#s.config.onError?.(u,e,this.state.context,this,s),await this.options.onError?.(u,e,this.state.context,s),await this.#s.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(void 0,u,e,this.state.context,s),u}finally{this.#e({type:"error",error:u})}}finally{this.#s.runNext(this)}}#e(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Yt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function H8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var F8=class extends jl{constructor(e={}){super(),this.config=e,this.#n=new Set,this.#t=new Map,this.#s=0}#n;#t;#s;build(e,t,s){const o=new q8({client:e,mutationCache:this,mutationId:++this.#s,options:e.defaultMutationOptions(t),state:s});return this.add(o),o}add(e){this.#n.add(e);const t=wc(e);if(typeof t=="string"){const s=this.#t.get(t);s?s.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#n.delete(e)){const t=wc(e);if(typeof t=="string"){const s=this.#t.get(t);if(s)if(s.length>1){const o=s.indexOf(e);o!==-1&&s.splice(o,1)}else s[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=wc(e);if(typeof t=="string"){const o=this.#t.get(t)?.find(r=>r.state.status==="pending");return!o||o===e}else return!0}runNext(e){const t=wc(e);return typeof t=="string"?this.#t.get(t)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Yt.batch(()=>{this.#n.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#n.clear(),this.#t.clear()})}getAll(){return Array.from(this.#n)}find(e){const t={exact:!0,...e};return this.getAll().find(s=>d_(t,s))}findAll(e={}){return this.getAll().filter(t=>d_(e,t))}notify(e){Yt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Yt.batch(()=>Promise.all(e.map(t=>t.continue().catch(vn))))}};function wc(e){return e.options.scope?.id}var K8=class extends jl{constructor(e={}){super(),this.config=e,this.#n=new Map}#n;build(e,t,s){const o=t.queryKey,r=t.queryHash??eb(o,t);let u=this.get(r);return u||(u=new j8({client:e,queryKey:o,queryHash:r,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(o)}),this.add(u)),u}add(e){this.#n.has(e.queryHash)||(this.#n.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#n.get(e.queryHash);t&&(e.destroy(),t===e&&this.#n.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Yt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#n.get(e)}getAll(){return[...this.#n.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(s=>f_(t,s))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(s=>f_(e,s)):t}notify(e){Yt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Yt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Yt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},G8=class{#n;#t;#s;#i;#e;#r;#o;#a;constructor(e={}){this.#n=e.queryCache||new K8,this.#t=e.mutationCache||new F8,this.#s=e.defaultOptions||{},this.#i=new Map,this.#e=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=nb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#n.onFocus())}),this.#a=_f.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#n.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#n.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#n.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),s=this.#n.build(this,t),o=s.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(ji(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return this.#n.findAll(e).map(({queryKey:t,state:s})=>{const o=s.data;return[t,o]})}setQueryData(e,t,s){const o=this.defaultQueryOptions({queryKey:e}),u=this.#n.get(o.queryHash)?.state.data,c=T8(t,u);if(c!==void 0)return this.#n.build(this,o).setData(c,{...s,manual:!0})}setQueriesData(e,t,s){return Yt.batch(()=>this.#n.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,s)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#n.get(t.queryHash)?.state}removeQueries(e){const t=this.#n;Yt.batch(()=>{t.findAll(e).forEach(s=>{t.remove(s)})})}resetQueries(e,t){const s=this.#n;return Yt.batch(()=>(s.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const s={revert:!0,...t},o=Yt.batch(()=>this.#n.findAll(e).map(r=>r.cancel(s)));return Promise.all(o).then(vn).catch(vn)}invalidateQueries(e,t={}){return Yt.batch(()=>(this.#n.findAll(e).forEach(s=>{s.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const s={...t,cancelRefetch:t.cancelRefetch??!0},o=Yt.batch(()=>this.#n.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let u=r.fetch(void 0,s);return s.throwOnError||(u=u.catch(vn)),r.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(o).then(vn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=this.#n.build(this,t);return s.isStaleByTime(ji(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vn).catch(vn)}fetchInfiniteQuery(e){return e.behavior=v_(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vn).catch(vn)}ensureInfiniteQueryData(e){return e.behavior=v_(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _f.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#n}getMutationCache(){return this.#t}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#i.set(Al(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],s={};return t.forEach(o=>{Ml(e,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(e,t){this.#e.set(Al(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#e.values()],s={};return t.forEach(o=>{Ml(e,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#s.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=eb(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===tb&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#n.clear(),this.#t.clear()}},RE=E.createContext(void 0),Y8=e=>{const t=E.useContext(RE);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Q8=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Y.jsx(RE.Provider,{value:e,children:t})),xE=E.createContext(!1),X8=()=>E.useContext(xE);xE.Provider;function W8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Z8=E.createContext(W8()),J8=()=>E.useContext(Z8),e$=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},t$=e=>{E.useEffect(()=>{e.clearReset()},[e])},n$=({result:e,errorResetBoundary:t,throwOnError:s,query:o,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(r&&e.data===void 0||D8(s,[e.error,o])),s$=e=>{if(e.suspense){const s=r=>r==="static"?r:Math.max(r??1e3,1e3),o=e.staleTime;e.staleTime=typeof o=="function"?(...r)=>s(o(...r)):s(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},i$=(e,t)=>e.isLoading&&e.isFetching&&!t,o$=(e,t)=>e?.suspense&&t.isPending,k_=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function a$(e,t,s){const o=X8(),r=J8(),u=Y8(),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=o?"isRestoring":"optimistic",s$(c),e$(c,r),t$(r);const f=!u.getQueryCache().get(c.queryHash),[h]=E.useState(()=>new t(u,c)),g=h.getOptimisticResult(c),m=!o&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(b=>{const y=m?h.subscribe(Yt.batchCalls(b)):vn;return h.updateResult(),y},[h,m]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),E.useEffect(()=>{h.setOptions(c)},[c,h]),o$(c,g))throw k_(c,h,r);if(n$({result:g,errorResetBoundary:r,throwOnError:c.throwOnError,query:u.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw g.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(c,g),c.experimental_prefetchInRender&&!Mo&&i$(g,o)&&(f?k_(c,h,r):u.getQueryCache().get(c.queryHash)?.promise)?.catch(vn).finally(()=>{h.updateResult()}),c.notifyOnChangeProps?g:h.trackResult(g)}function ib(e,t){return a$(e,U8)}function Jj(e){return e}const ob=e=>({queryKey:["environment",e],queryFn:async()=>{const s=await(await Jm.v1.environments[":id"].$get({param:{id:e}})).json(),o="data"in s?s.data:null;return o?{...o,isProd:o.isProd===!0||o.isProd===1||o.isProd==="true"}:null},enabled:!!e&&e!=="new",staleTime:1e3*60*5}),eU=e=>{const t=Ut.c(2);let s;return t[0]!==e?(s=ob(e),t[0]=e,t[1]=s):s=t[1],ib(s)},r$=()=>Je(()=>import("./route-C7NpQ_hb.js"),__vite__mapDeps([49,1]),import.meta.url),l$=Qe("/(app)/environments/$environment")({component:Ze(r$,"component"),loader:async({params:e,context:t})=>e.environment==="new"?{title:"New Environment"}:{title:(await t.queryClient.ensureQueryData(ob(e.environment)))?.name??e.environment}}),ab=e=>({queryKey:["config",e],queryFn:async()=>{const s=await(await Jm.v1.configs[":id"].$get({param:{id:e}})).json();return"data"in s?s.data:null},enabled:!!e&&e!=="new",staleTime:1e3*60*5}),tU=e=>{const t=Ut.c(2);let s;return t[0]!==e?(s=ab(e),t[0]=e,t[1]=s):s=t[1],ib(s)},u$=()=>Je(()=>import("./route-z4_NUCvs.js"),__vite__mapDeps([50,1]),import.meta.url),c$=Qe("/(app)/configs/$id")({component:Ze(u$,"component"),loader:async({params:e,context:t})=>e.id==="new"?{title:"New Config"}:{title:(await t.queryClient.ensureQueryData(ab(e.id)))?.name??e.id}}),f$=()=>Je(()=>import("./index-DBcmlZIg.js"),__vite__mapDeps([51,16,17,52,53,1]),import.meta.url),d$=Qe("/(app)/environments/$environment/")({component:Ze(f$,"component"),loader:async({params:e,context:t})=>e.environment==="new"?{title:"New Environment"}:{title:(await t.queryClient.ensureQueryData(ob(e.environment)))?.name??e.environment}}),h$=()=>Je(()=>import("./index-wAmb7-nC.js"),__vite__mapDeps([54,16,17,52,53,1]),import.meta.url),g$=Qe("/(app)/configs/$id/")({component:Ze(h$,"component"),loader:async({params:e,context:t})=>e.id==="new"?{title:"New Config"}:{title:(await t.queryClient.ensureQueryData(ab(e.id)))?.name??e.id}}),p$=()=>Je(()=>import("./workspace-providers-DpuJYL2J.js"),__vite__mapDeps([55,5,44,45,56,31,34,57,58,1]),import.meta.url),m$=Qe("/(app)/settings/_settings/workspace-providers")({component:Ze(p$,"component"),staticData:{customData:{title:"Providers",icon:Y.jsx(Zt,{icon:j4})}}}),b$=()=>Je(()=>import("./workspace-general-4coxLwka.js"),__vite__mapDeps([59,31,60,1]),import.meta.url),y$=Qe("/(app)/settings/_settings/workspace-general")({component:Ze(b$,"component"),staticData:{customData:{title:"Workspace",icon:Y.jsx(Zt,{icon:k4})}}}),v$=()=>Je(()=>import("./user-profile-DrbTr5ek.js"),__vite__mapDeps([61,62,63,1]),import.meta.url),_$=Qe("/(app)/settings/_settings/user-profile")({component:Ze(v$,"component"),staticData:{customData:{title:"Profile",icon:Y.jsx(Zt,{icon:F4})}}}),k$=()=>Je(()=>import("./requests-Dy44WwrQ.js"),__vite__mapDeps([64,47,7,29,5,6,43,27,65,66,9,11,10,1]),import.meta.url),S$=Qe("/(app)/observability/_observability/requests")({component:Ze(k$,"component"),staticData:{customData:{title:"Requests",icon:Y.jsx(Zt,{icon:A4})}}}),C$=()=>Je(()=>import("./overview-F3JSdG23.js"),__vite__mapDeps([67,47,65,66,1]),import.meta.url),E$=Qe("/(app)/observability/_observability/overview")({component:Ze(C$,"component"),staticData:{customData:{title:"Overview",icon:Y.jsx(Zt,{icon:C4})}}}),R$=()=>Je(()=>import("./costs-YGYS6p97.js"),__vite__mapDeps([68,47,65,66,1]),import.meta.url),x$=Qe("/(app)/observability/_observability/costs")({component:Ze(R$,"component"),staticData:{customData:{title:"Costs",icon:Y.jsx(Zt,{icon:T4})}}}),T$=()=>Je(()=>import("./_tabs-Du0rKJRQ.js"),__vite__mapDeps([69,70,25,1]),import.meta.url),w$=Qe("/(app)/environments/$environment/_tabs")({component:Ze(T$,"component")}),O$=()=>Je(()=>import("./_variants-7Dzwfolk.js"),__vite__mapDeps([71,1]),import.meta.url),A$=Qe("/(app)/configs/$id/_variants")({component:Ze(O$,"component"),staticData:{customData:{title:"Variants"}}}),M$=()=>Je(()=>import("./_tabs-B4OeOdtD.js"),__vite__mapDeps([72,70,25,1]),import.meta.url),D$=Qe("/(app)/configs/$id/_tabs")({component:Ze(M$,"component")}),L$=()=>Je(()=>import("./settings-ByLwomz8.js"),__vite__mapDeps([73,31,30,26,27,74,57,45,75,1]),import.meta.url),P$=Qe("/(app)/environments/$environment/_tabs/settings")({component:Ze(L$,"component"),staticData:{customData:{title:"Settings"}}}),N$=()=>Je(()=>import("./secrets-Cgp8qBss.js"),__vite__mapDeps([76,11,12,77,1]),import.meta.url),z$=Qe("/(app)/environments/$environment/_tabs/secrets")({component:Ze(N$,"component")}),$$=()=>Je(()=>import("./variants-BS8SfM2u.js"),__vite__mapDeps([78,5,6,46,79,80,32,1]),import.meta.url),j$=Qe("/(app)/configs/$id/_tabs/variants")({component:Ze($$,"component"),staticData:{customData:{title:"Variants"}}}),U$=()=>Je(()=>import("./targeting-CVDqzB8u.js"),__vite__mapDeps([81,6,30,82,79,80,1]),import.meta.url),I$=Qe("/(app)/configs/$id/_tabs/targeting")({component:Ze(U$,"component"),staticData:{customData:{title:"Targeting"}}}),V$=()=>Je(()=>import("./settings-Dzk0Fgyf.js"),__vite__mapDeps([83,31,7,74,57,45,84,1]),import.meta.url),B$=Qe("/(app)/configs/$id/_tabs/settings")({component:Ze(V$,"component"),staticData:{customData:{title:"Settings"}}}),TE=e=>({queryKey:["variant",e],queryFn:async()=>{const s=await(await Jm.v1.variants[":id"].$get({param:{id:e}})).json();return"data"in s?s.data:null},enabled:!!e,staleTime:1e3*60*5}),nU=e=>{const t=Ut.c(2);let s;return t[0]!==e?(s=TE(e),t[0]=e,t[1]=s):s=t[1],ib(s)},q$=()=>Je(()=>import("./_variant-Coggt7xV.js"),__vite__mapDeps([85,44,45,15,86,31,82,87,23,24,25,43,27,56,10,11,46,5,30,88,1]),import.meta.url),H$=Qe("/(app)/configs/$id/_variants/variants/$variant")({component:Ze(q$,"component"),loader:async({params:e,context:t})=>e.variant==="new"?{title:"New Variant"}:{title:(await t.queryClient.ensureQueryData(TE(e.variant)))?.name??e.variant}}),F$=()=>Je(()=>import("./_environment-DP283K6-.js"),__vite__mapDeps([89,5,44,45,30,46,82,86,31,87,62,63,1]),import.meta.url),K$=Qe("/(app)/configs/$id/_targeting/targeting/$environment")({component:Ze(F$,"component")}),Wa=S7.update({id:"/(app)",getParentRoute:()=>Nf}),G$=E7.update({id:"/",path:"/",getParentRoute:()=>Wa}),Y$=x7.update({id:"/(auth)/signin",path:"/signin",getParentRoute:()=>Nf}),Q$=w7.update({id:"/(auth)/setup",path:"/setup",getParentRoute:()=>Nf}),wE=A7.update({id:"/environments",path:"/environments",getParentRoute:()=>Wa}),OE=D7.update({id:"/configs",path:"/configs",getParentRoute:()=>Wa}),rb=P7.update({id:"/settings",path:"/settings",getParentRoute:()=>Wa}),lb=$7.update({id:"/observability",path:"/observability",getParentRoute:()=>Wa}),X$=U7.update({id:"/",path:"/",getParentRoute:()=>rb}),W$=V7.update({id:"/",path:"/",getParentRoute:()=>lb}),zf=q7.update({id:"/_settings",getParentRoute:()=>rb}),$f=F7.update({id:"/_observability",getParentRoute:()=>lb}),ub=l$.update({id:"/$environment",path:"/$environment",getParentRoute:()=>wE}),Ul=c$.update({id:"/$id",path:"/$id",getParentRoute:()=>OE}),Z$=d$.update({id:"/",path:"/",getParentRoute:()=>ub}),J$=g$.update({id:"/",path:"/",getParentRoute:()=>Ul}),e9=m$.update({id:"/workspace-providers",path:"/workspace-providers",getParentRoute:()=>zf}),t9=y$.update({id:"/workspace-general",path:"/workspace-general",getParentRoute:()=>zf}),n9=_$.update({id:"/user-profile",path:"/user-profile",getParentRoute:()=>zf}),s9=S$.update({id:"/requests",path:"/requests",getParentRoute:()=>$f}),i9=E$.update({id:"/overview",path:"/overview",getParentRoute:()=>$f}),o9=x$.update({id:"/costs",path:"/costs",getParentRoute:()=>$f}),cb=w$.update({id:"/_tabs",getParentRoute:()=>ub}),AE=A$.update({id:"/_variants",getParentRoute:()=>Ul}),jf=D$.update({id:"/_tabs",getParentRoute:()=>Ul}),a9=P$.update({id:"/settings",path:"/settings",getParentRoute:()=>cb}),r9=z$.update({id:"/secrets",path:"/secrets",getParentRoute:()=>cb}),l9=j$.update({id:"/variants",path:"/variants",getParentRoute:()=>jf}),u9=I$.update({id:"/targeting",path:"/targeting",getParentRoute:()=>jf}),c9=B$.update({id:"/settings",path:"/settings",getParentRoute:()=>jf}),f9=H$.update({id:"/variants/$variant",path:"/variants/$variant",getParentRoute:()=>AE}),d9=K$.update({id:"/_targeting/targeting/$environment",path:"/targeting/$environment",getParentRoute:()=>Ul}),h9={appObservabilityObservabilityCostsRoute:o9,appObservabilityObservabilityOverviewRoute:i9,appObservabilityObservabilityRequestsRoute:s9},g9=$f._addFileChildren(h9),p9={appObservabilityObservabilityRoute:g9,appObservabilityIndexRoute:W$},m9=lb._addFileChildren(p9),b9={appSettingsSettingsUserProfileRoute:n9,appSettingsSettingsWorkspaceGeneralRoute:t9,appSettingsSettingsWorkspaceProvidersRoute:e9},y9=zf._addFileChildren(b9),v9={appSettingsSettingsRoute:y9,appSettingsIndexRoute:X$},_9=rb._addFileChildren(v9),k9={appConfigsIdTabsSettingsRoute:c9,appConfigsIdTabsTargetingRoute:u9,appConfigsIdTabsVariantsRoute:l9},S9=jf._addFileChildren(k9),C9={appConfigsIdVariantsVariantsVariantRoute:f9},E9=AE._addFileChildren(C9),R9={appConfigsIdTabsRoute:S9,appConfigsIdVariantsRoute:E9,appConfigsIdIndexRoute:J$,appConfigsIdTargetingTargetingEnvironmentRoute:d9},x9=Ul._addFileChildren(R9),T9={appConfigsIdRouteRoute:x9},w9=OE._addFileChildren(T9),O9={appEnvironmentsEnvironmentTabsSecretsRoute:r9,appEnvironmentsEnvironmentTabsSettingsRoute:a9},A9=cb._addFileChildren(O9),M9={appEnvironmentsEnvironmentTabsRoute:A9,appEnvironmentsEnvironmentIndexRoute:Z$},D9=ub._addFileChildren(M9),L9={appEnvironmentsEnvironmentRouteRoute:D9},P9=wE._addFileChildren(L9),N9={appObservabilityRouteRoute:m9,appSettingsRouteRoute:_9,appConfigsRoute:w9,appEnvironmentsRoute:P9,appIndexRoute:G$},z9=Wa._addFileChildren(N9),$9={appRouteRoute:z9,authSetupRoute:Q$,authSigninRoute:Y$},j9=Nf._addFileChildren($9)._addFileTypes();var Bg={exports:{}},el={},qg={exports:{}},Hg={};var S_;function U9(){return S_||(S_=1,(function(e){function t(D,I){var U=D.length;D.push(I);e:for(;0<U;){var oe=U-1>>>1,ae=D[oe];if(0<r(ae,I))D[oe]=I,D[U]=ae,U=oe;else break e}}function s(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var I=D[0],U=D.pop();if(U!==I){D[0]=U;e:for(var oe=0,ae=D.length,N=ae>>>1;oe<N;){var K=2*(oe+1)-1,X=D[K],re=K+1,fe=D[re];if(0>r(X,U))re<ae&&0>r(fe,X)?(D[oe]=fe,D[re]=U,oe=re):(D[oe]=X,D[K]=U,oe=K);else if(re<ae&&0>r(fe,U))D[oe]=fe,D[re]=U,oe=re;else break e}}return I}function r(D,I){var U=D.sortIndex-I.sortIndex;return U!==0?U:D.id-I.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],g=[],m=1,b=null,y=3,_=!1,k=!1,S=!1,C=!1,R=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function w(D){for(var I=s(g);I!==null;){if(I.callback===null)o(g);else if(I.startTime<=D)o(g),I.sortIndex=I.expirationTime,t(h,I);else break;I=s(g)}}function x(D){if(S=!1,w(D),!k)if(s(h)!==null)k=!0,M||(M=!0,Q());else{var I=s(g);I!==null&&J(x,I.startTime-D)}}var M=!1,L=-1,P=5,V=-1;function Z(){return C?!0:!(e.unstable_now()-V<P)}function z(){if(C=!1,M){var D=e.unstable_now();V=D;var I=!0;try{e:{k=!1,S&&(S=!1,T(L),L=-1),_=!0;var U=y;try{t:{for(w(D),b=s(h);b!==null&&!(b.expirationTime>D&&Z());){var oe=b.callback;if(typeof oe=="function"){b.callback=null,y=b.priorityLevel;var ae=oe(b.expirationTime<=D);if(D=e.unstable_now(),typeof ae=="function"){b.callback=ae,w(D),I=!0;break t}b===s(h)&&o(h),w(D)}else o(h);b=s(h)}if(b!==null)I=!0;else{var N=s(g);N!==null&&J(x,N.startTime-D),I=!1}}break e}finally{b=null,y=U,_=!1}I=void 0}}finally{I?Q():M=!1}}}var Q;if(typeof A=="function")Q=function(){A(z)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,q=B.port2;B.port1.onmessage=z,Q=function(){q.postMessage(null)}}else Q=function(){R(z,0)};function J(D,I){L=R(function(){D(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(D){switch(y){case 1:case 2:case 3:var I=3;break;default:I=y}var U=y;y=I;try{return D()}finally{y=U}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(D,I){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var U=y;y=D;try{return I()}finally{y=U}},e.unstable_scheduleCallback=function(D,I,U){var oe=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?oe+U:oe):U=oe,D){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=U+ae,D={id:m++,callback:I,priorityLevel:D,startTime:U,expirationTime:ae,sortIndex:-1},U>oe?(D.sortIndex=U,t(g,D),s(h)===null&&D===s(g)&&(S?(T(L),L=-1):S=!0,J(x,U-oe))):(D.sortIndex=ae,t(h,D),k||_||(k=!0,M||(M=!0,Q()))),D},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(D){var I=y;return function(){var U=y;y=I;try{return D.apply(this,arguments)}finally{y=U}}}})(Hg)),Hg}var C_;function I9(){return C_||(C_=1,qg.exports=U9()),qg.exports}var E_;function V9(){if(E_)return el;E_=1;var e=I9(),t=Ba(),s=q_();function o(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function u(n){var i=n,a=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(a=i.return),n=i.return;while(n)}return i.tag===3?a:null}function c(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function h(n){if(u(n)!==n)throw Error(o(188))}function g(n){var i=n.alternate;if(!i){if(i=u(n),i===null)throw Error(o(188));return i!==n?null:n}for(var a=n,l=i;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(l=d.return,l!==null){a=l;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return h(d),n;if(p===l)return h(d),i;p=p.sibling}throw Error(o(188))}if(a.return!==l.return)a=d,l=p;else{for(var v=!1,O=d.child;O;){if(O===a){v=!0,a=d,l=p;break}if(O===l){v=!0,l=d,a=p;break}O=O.sibling}if(!v){for(O=p.child;O;){if(O===a){v=!0,a=p,l=d;break}if(O===l){v=!0,l=p,a=d;break}O=O.sibling}if(!v)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?n:i}function m(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=m(n),i!==null)return i;n=n.sibling}return null}var b=Object.assign,y=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),A=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function Q(n){return n===null||typeof n!="object"?null:(n=z&&n[z]||n["@@iterator"],typeof n=="function"?n:null)}var B=Symbol.for("react.client.reference");function q(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===B?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case S:return"Fragment";case R:return"Profiler";case C:return"StrictMode";case x:return"Suspense";case M:return"SuspenseList";case V:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case k:return"Portal";case A:return n.displayName||"Context";case T:return(n._context.displayName||"Context")+".Consumer";case w:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case L:return i=n.displayName||null,i!==null?i:q(n.type)||"Memo";case P:i=n._payload,n=n._init;try{return q(n(i))}catch{}}return null}var J=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},oe=[],ae=-1;function N(n){return{current:n}}function K(n){0>ae||(n.current=oe[ae],oe[ae]=null,ae--)}function X(n,i){ae++,oe[ae]=n.current,n.current=i}var re=N(null),fe=N(null),le=N(null),ue=N(null);function de(n,i){switch(X(le,i),X(fe,n),X(re,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?Ey(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=Ey(i),n=Ry(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}K(re),X(re,n)}function ye(){K(re),K(fe),K(le)}function xe(n){n.memoizedState!==null&&X(ue,n);var i=re.current,a=Ry(i,n.type);i!==a&&(X(fe,n),X(re,a))}function ne(n){fe.current===n&&(K(re),K(fe)),ue.current===n&&(K(ue),Vr._currentValue=U)}var ke,ve;function Ie(n){if(ke===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);ke=i&&i[1]||"",ve=-1<a.stack.indexOf(`
|
|
19
|
+
`.trim(),z.head.prepend(Q)},[y]),E.useEffect(()=>{let z=C.current;return()=>{var Q;b||g0((Q=z.target)!==null&&Q!==void 0?Q:void 0);for(let B of z.disposables)B();z.disposables=[]}},[b]),{isPressed:h||k,pressProps:Ui(_,Z,{[y0]:!0})}}function Am(e){return e.tagName==="A"&&e.hasAttribute("href")}function xg(e,t){const{key:s,code:o}=e,r=t,u=r.getAttribute("role");return(s==="Enter"||s===" "||s==="Spacebar"||o==="Space")&&!(r instanceof ls(r).HTMLInputElement&&!RS(r,s)||r instanceof ls(r).HTMLTextAreaElement||r.isContentEditable)&&!((u==="link"||!u&&Am(r))&&s!=="Enter")}function uo(e,t){let s=t.clientX,o=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:s,clientY:o}}function CD(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Am(e)}function v0(e,t){return e instanceof HTMLInputElement?!RS(e,t):CD(e)}const ED=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function RS(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":ED.has(e.type)}let Fa=null,fp=new Set,hl=new Map,Oo=!1,dp=!1;const RD={Tab:!0,Escape:!0};function Mm(e,t){for(let s of fp)s(e,t)}function xD(e){return!(e.metaKey||!Sl()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ff(e){Oo=!0,xD(e)&&(Fa="keyboard",Mm("keyboard",e))}function Aa(e){Fa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Oo=!0,Mm("pointer",e))}function xS(e){bS(e)&&(Oo=!0,Fa="virtual")}function TS(e){e.target===window||e.target===document||cf||!e.isTrusted||(!Oo&&!dp&&(Fa="virtual",Mm("virtual",e)),Oo=!1,dp=!1)}function wS(){cf||(Oo=!1,dp=!0)}function hp(e){if(typeof window>"u"||typeof document>"u"||hl.get(ls(e)))return;const t=ls(e),s=ln(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Oo=!0,o.apply(this,arguments)},s.addEventListener("keydown",ff,!0),s.addEventListener("keyup",ff,!0),s.addEventListener("click",xS,!0),t.addEventListener("focus",TS,!0),t.addEventListener("blur",wS,!1),typeof PointerEvent<"u"&&(s.addEventListener("pointerdown",Aa,!0),s.addEventListener("pointermove",Aa,!0),s.addEventListener("pointerup",Aa,!0)),t.addEventListener("beforeunload",()=>{OS(e)},{once:!0}),hl.set(t,{focus:o})}const OS=(e,t)=>{const s=ls(e),o=ln(e);t&&o.removeEventListener("DOMContentLoaded",t),hl.has(s)&&(s.HTMLElement.prototype.focus=hl.get(s).focus,o.removeEventListener("keydown",ff,!0),o.removeEventListener("keyup",ff,!0),o.removeEventListener("click",xS,!0),s.removeEventListener("focus",TS,!0),s.removeEventListener("blur",wS,!1),typeof PointerEvent<"u"&&(o.removeEventListener("pointerdown",Aa,!0),o.removeEventListener("pointermove",Aa,!0),o.removeEventListener("pointerup",Aa,!0)),hl.delete(s))};function TD(e){const t=ln(e);let s;return t.readyState!=="loading"?hp(e):(s=()=>{hp(e)},t.addEventListener("DOMContentLoaded",s)),()=>OS(e,s)}typeof document<"u"&&TD();function AS(){return Fa!=="pointer"}function wD(){return Fa}const OD=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function AD(e,t,s){let o=ln(s?.target);const r=typeof window<"u"?ls(s?.target).HTMLInputElement:HTMLInputElement,u=typeof window<"u"?ls(s?.target).HTMLTextAreaElement:HTMLTextAreaElement,c=typeof window<"u"?ls(s?.target).HTMLElement:HTMLElement,f=typeof window<"u"?ls(s?.target).KeyboardEvent:KeyboardEvent;return e=e||o.activeElement instanceof r&&!OD.has(o.activeElement.type)||o.activeElement instanceof u||o.activeElement instanceof c&&o.activeElement.isContentEditable,!(e&&t==="keyboard"&&s instanceof f&&!RD[s.key])}function MD(e,t,s){hp(),E.useEffect(()=>{let o=(r,u)=>{AD(!!s?.isTextInput,r,u)&&e(AS())};return fp.add(o),()=>{fp.delete(o)}},t)}function DD(e){const t=ln(e),s=kl(t);if(wD()==="virtual"){let o=s;pS(()=>{kl(t)===o&&e.isConnected&&Va(e)})}else Va(e)}function MS(e){let{isDisabled:t,onFocus:s,onBlur:o,onFocusChange:r}=e;const u=E.useCallback(h=>{if(h.target===h.currentTarget)return o&&o(h),r&&r(!1),!0},[o,r]),c=SS(u),f=E.useCallback(h=>{const g=ln(h.target),m=g?kl(g):kl();h.target===h.currentTarget&&m===rn(h.nativeEvent)&&(s&&s(h),r&&r(!0),c(h))},[r,s,c]);return{focusProps:{onFocus:!t&&(s||r||o)?f:void 0,onBlur:!t&&(o||r)?u:void 0}}}function _0(e){if(!e)return;let t=!0;return s=>{let o={...s,preventDefault(){s.preventDefault()},isDefaultPrevented(){return s.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&s.stopPropagation()}}function LD(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:_0(e.onKeyDown),onKeyUp:_0(e.onKeyUp)}}}let PD=Ct.createContext(null);function ND(e){let t=E.useContext(PD)||{};mS(t,e);let{ref:s,...o}=t;return o}function zD(e,t){let{focusProps:s}=MS(e),{keyboardProps:o}=LD(e),r=Ui(s,o),u=ND(t),c=e.isDisabled?{}:u,f=E.useRef(e.autoFocus);E.useEffect(()=>{f.current&&t.current&&DD(t.current),f.current=!1},[t]);let h=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(h=void 0),{focusableProps:Ui({...r,tabIndex:h},c)}}function $D(e){let{isDisabled:t,onBlurWithin:s,onFocusWithin:o,onFocusWithinChange:r}=e,u=E.useRef({isFocusWithin:!1}),{addGlobalListener:c,removeAllGlobalListeners:f}=wm(),h=E.useCallback(b=>{b.currentTarget.contains(b.target)&&u.current.isFocusWithin&&!b.currentTarget.contains(b.relatedTarget)&&(u.current.isFocusWithin=!1,f(),s&&s(b),r&&r(!1))},[s,r,u,f]),g=SS(h),m=E.useCallback(b=>{if(!b.currentTarget.contains(b.target))return;const y=ln(b.target),_=kl(y);if(!u.current.isFocusWithin&&_===rn(b.nativeEvent)){o&&o(b),r&&r(!0),u.current.isFocusWithin=!0,g(b);let k=b.currentTarget;c(y,"focus",S=>{if(u.current.isFocusWithin&&!Yn(k,S.target)){let C=new y.defaultView.FocusEvent("blur",{relatedTarget:S.target});kS(C,k);let R=Om(C);h(R)}},{capture:!0})}},[o,r,g,c,h]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:h}}}let gp=!1,vc=0;function jD(){gp=!0,setTimeout(()=>{gp=!1},50)}function k0(e){e.pointerType==="touch"&&jD()}function UD(){if(!(typeof document>"u"))return vc===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",k0),vc++,()=>{vc--,!(vc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",k0)}}function ID(e){let{onHoverStart:t,onHoverChange:s,onHoverEnd:o,isDisabled:r}=e,[u,c]=E.useState(!1),f=E.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;E.useEffect(UD,[]);let{addGlobalListener:h,removeAllGlobalListeners:g}=wm(),{hoverProps:m,triggerHoverEnd:b}=E.useMemo(()=>{let y=(S,C)=>{if(f.pointerType=C,r||C==="touch"||f.isHovered||!S.currentTarget.contains(S.target))return;f.isHovered=!0;let R=S.currentTarget;f.target=R,h(ln(S.target),"pointerover",T=>{f.isHovered&&f.target&&!Yn(f.target,T.target)&&_(T,T.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:R,pointerType:C}),s&&s(!0),c(!0)},_=(S,C)=>{let R=f.target;f.pointerType="",f.target=null,!(C==="touch"||!f.isHovered||!R)&&(f.isHovered=!1,g(),o&&o({type:"hoverend",target:R,pointerType:C}),s&&s(!1),c(!1))},k={};return typeof PointerEvent<"u"&&(k.onPointerEnter=S=>{gp&&S.pointerType==="mouse"||y(S,S.pointerType)},k.onPointerLeave=S=>{!r&&S.currentTarget.contains(S.target)&&_(S,S.pointerType)}),{hoverProps:k,triggerHoverEnd:_}},[t,s,o,r,f,h,g]);return E.useEffect(()=>{r&&b({currentTarget:f.target},f.pointerType)},[r]),{hoverProps:m,isHovered:u}}function VD(e={}){let{autoFocus:t=!1,isTextInput:s,within:o}=e,r=E.useRef({isFocused:!1,isFocusVisible:t||AS()}),[u,c]=E.useState(!1),[f,h]=E.useState(()=>r.current.isFocused&&r.current.isFocusVisible),g=E.useCallback(()=>h(r.current.isFocused&&r.current.isFocusVisible),[]),m=E.useCallback(_=>{r.current.isFocused=_,c(_),g()},[g]);MD(_=>{r.current.isFocusVisible=_,g()},[],{isTextInput:s});let{focusProps:b}=MS({isDisabled:o,onFocusChange:m}),{focusWithinProps:y}=$D({isDisabled:!o,onFocusWithinChange:m});return{isFocused:u,isFocusVisible:f,focusProps:o?y:b}}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 BD=E.createContext(!1);function qD(e){let t=(s,o)=>E.useContext(BD)?null:e(s,o);return t.displayName=e.displayName||e.name,E.forwardRef(t)}function HD(e,t){let{elementType:s="button",isDisabled:o,onPress:r,onPressStart:u,onPressEnd:c,onPressUp:f,onPressChange:h,preventFocusOnPress:g,allowFocusWhenDisabled:m,onClick:b,href:y,target:_,rel:k,type:S="button"}=e,C;s==="button"?C={type:S,disabled:o,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:C={role:"button",href:s==="a"&&!o?y:void 0,target:s==="a"?_:void 0,type:s==="input"?S:void 0,disabled:s==="input"?o:void 0,"aria-disabled":!o||s==="input"?void 0:o,rel:s==="a"?k:void 0};let{pressProps:R,isPressed:T}=SD({onPressStart:u,onPressEnd:c,onPressChange:h,onPress:r,onPressUp:f,onClick:b,isDisabled:o,preventFocusOnPress:g,ref:t}),{focusableProps:A}=zD(e,t);m&&(A.tabIndex=o?-1:A.tabIndex);let w=Ui(A,R,fS(e,{labelable:!0}));return{isPressed:T,buttonProps:Ui(C,w,{"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"]})}}const FD=E.createContext(null),KD=E.createContext({}),GD=qD(function(t,s){[t,s]=dD(t,s,KD);let o=t,{isPending:r}=o,{buttonProps:u,isPressed:c}=HD(t,s);u=YD(u,r);let{focusProps:f,isFocused:h,isFocusVisible:g}=VD(t),{hoverProps:m,isHovered:b}=ID({...t,isDisabled:t.isDisabled||r}),y={isHovered:b,isPressed:(o.isPressed||c)&&!r,isFocused:h,isFocusVisible:g,isDisabled:t.isDisabled||!1,isPending:r??!1},_=cD({...t,values:y,defaultClassName:"react-aria-Button"}),k=u0(u.id),S=u0(),C=u["aria-labelledby"];r&&(C?C=`${C} ${S}`:u["aria-label"]&&(C=`${k} ${S}`));let R=E.useRef(r);E.useEffect(()=>{let A={"aria-labelledby":C||k};(!R.current&&h&&r||R.current&&h&&!r)&&h0(A,"assertive"),R.current=r},[r,h,C,k]);let T=fS(t,{global:!0});return delete T.onClick,Ct.createElement("button",{...Ui(T,_,u,f,m),type:u.type==="submit"&&r?"button":u.type,id:k,ref:s,"aria-labelledby":C,slot:t.slot||void 0,"aria-disabled":r?"true":u["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":y.isPressed||void 0,"data-hovered":b||void 0,"data-focused":h||void 0,"data-pending":r||void 0,"data-focus-visible":g||void 0},Ct.createElement(FD.Provider,{value:{id:S}},_.children))});function YD(e,t){if(t){for(const s in e)s.startsWith("on")&&!(s.includes("Focus")||s.includes("Blur"))&&(e[s]=void 0);e.href=void 0,e.target=void 0}return e}function S0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function QD(...e){return t=>{let s=!1;const o=e.map(r=>{const u=S0(r,t);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let r=0;r<o.length;r++){const u=o[r];typeof u=="function"?u():S0(e[r],null)}}}}var XD=Symbol.for("react.lazy"),df=em[" use ".trim().toString()];function WD(e){return typeof e=="object"&&e!==null&&"then"in e}function DS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===XD&&"_payload"in e&&WD(e._payload)}function ZD(e){const t=e4(e),s=E.forwardRef((o,r)=>{let{children:u,...c}=o;DS(u)&&typeof df=="function"&&(u=df(u._payload));const f=E.Children.toArray(u),h=f.find(n4);if(h){const g=h.props.children,m=f.map(b=>b===h?E.Children.count(g)>1?E.Children.only(null):E.isValidElement(g)?g.props.children:null:b);return Y.jsx(t,{...c,ref:r,children:E.isValidElement(g)?E.cloneElement(g,void 0,m):null})}return Y.jsx(t,{...c,ref:r,children:u})});return s.displayName=`${e}.Slot`,s}var JD=ZD("Slot");function e4(e){const t=E.forwardRef((s,o)=>{let{children:r,...u}=s;if(DS(r)&&typeof df=="function"&&(r=df(r._payload)),E.isValidElement(r)){const c=i4(r),f=s4(u,r.props);return r.type!==E.Fragment&&(f.ref=o?QD(o,c):c),E.cloneElement(r,f)}return E.Children.count(r)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var t4=Symbol("radix.slottable");function n4(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===t4}function s4(e,t){const s={...t};for(const o in t){const r=e[o],u=t[o];/^on[A-Z]/.test(o)?r&&u?s[o]=(...f)=>{const h=u(...f);return r(...f),h}:r&&(s[o]=r):o==="style"?s[o]={...r,...u}:o==="className"&&(s[o]=[r,u].filter(Boolean).join(" "))}return{...e,...s}}function i4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var o4=zn({defaultClassName:"_11bsk7z1 _11bsk7z0 _1lg22bks0 _1lg22bksi _1lg22bkbf _1lg22bk116",variantClassNames:{collapsed:{true:"_11bsk7z2",false:"_11bsk7z3"},position:{fixed:"_11bsk7z4",relative:"_11bsk7z5"},theme:{light:"_11bsk7z6",dark:"_11bsk7z7"}},defaultVariants:{collapsed:!1,position:"relative",theme:"light"},compoundVariants:[]}),a4=zn({defaultClassName:"_11bsk7zb _11bsk7z8 _1lg22bkpx _1lg22bk6",variantClassNames:{centered:{true:"_11bsk7zc _11bsk7z9 _1lg22bks0 _1lg22bktf _1lg22bksx",false:"_11bsk7zd _11bsk7za _1lg22bks0 _1lg22bktf _1lg22bksl"}},defaultVariants:{centered:!1},compoundVariants:[]}),r4=zn({defaultClassName:"_11bsk7zh _11bsk7ze _1lg22bkpx _1lg22bk6",variantClassNames:{centered:{true:"_11bsk7zi _11bsk7zf _1lg22bks0 _1lg22bktf _1lg22bksx",false:"_11bsk7zj _11bsk7zg _1lg22bks0 _1lg22bktf _1lg22bksl"}},defaultVariants:{centered:!1},compoundVariants:[]}),l4=zn({defaultClassName:"_11bsk7zl _11bsk7zk _1lg22bk6 _1lg22bkto _1lg22bks0 _1lg22bksi",variantClassNames:{},defaultVariants:{},compoundVariants:[]}),u4=zn({defaultClassName:"_11bsk7zn _11bsk7zm _1lg22bks0 _1lg22bk3 _1lg22bkv0 _1lg22bkj9 _1lg22bkw0",variantClassNames:{},defaultVariants:{},compoundVariants:[]});const c4=e=>{const t=Ut.c(10);let s,o,r;t[0]!==e?({centered:s,className:o,...r}=e,t[0]=e,t[1]=s,t[2]=o,t[3]=r):(s=t[1],o=t[2],r=t[3]);let u;t[4]!==s||t[5]!==o?(u=Js(a4({centered:s}),o),t[4]=s,t[5]=o,t[6]=u):u=t[6];let c;return t[7]!==r||t[8]!==u?(c=Y.jsx("div",{slot:"sidebar-header",...r,className:u}),t[7]=r,t[8]=u,t[9]=c):c=t[9],c},f4=e=>{const t=Ut.c(10);let s,o,r;t[0]!==e?({centered:s,className:o,...r}=e,t[0]=e,t[1]=s,t[2]=o,t[3]=r):(s=t[1],o=t[2],r=t[3]);let u;t[4]!==s||t[5]!==o?(u=Js(r4({centered:s}),o),t[4]=s,t[5]=o,t[6]=u):u=t[6];let c;return t[7]!==r||t[8]!==u?(c=Y.jsx("div",{slot:"sidebar-footer",...r,className:u}),t[7]=r,t[8]=u,t[9]=c):c=t[9],c},d4=e=>{const t=Ut.c(8);let s,o;t[0]!==e?({className:s,...o}=e,t[0]=e,t[1]=s,t[2]=o):(s=t[1],o=t[2]);let r;t[3]!==s?(r=Js(l4(),s),t[3]=s,t[4]=r):r=t[4];let u;return t[5]!==o||t[6]!==r?(u=Y.jsx("div",{...o,className:r}),t[5]=o,t[6]=r,t[7]=u):u=t[7],u},h4=e=>{const t=Ut.c(14);let s,o,r,u,c;t[0]!==e?({collapsed:o,position:r,theme:c,className:s,...u}=e,t[0]=e,t[1]=s,t[2]=o,t[3]=r,t[4]=u,t[5]=c):(s=t[1],o=t[2],r=t[3],u=t[4],c=t[5]);let f;t[6]!==s||t[7]!==o||t[8]!==r||t[9]!==c?(f=Js(o4({collapsed:o,position:r,theme:c}),s),t[6]=s,t[7]=o,t[8]=r,t[9]=c,t[10]=f):f=t[10];let h;return t[11]!==u||t[12]!==f?(h=Y.jsx("aside",{...u,className:f}),t[11]=u,t[12]=f,t[13]=h):h=t[13],h},Xr=e=>{const t=Ut.c(12);let s,o,r,u;t[0]!==e?({className:o,asChild:u,children:s,...r}=e,t[0]=e,t[1]=s,t[2]=o,t[3]=r,t[4]=u):(s=t[1],o=t[2],r=t[3],u=t[4]);const c=u===void 0?!1:u;let f;t[5]!==o?(f=Js(u4(),o),t[5]=o,t[6]=f):f=t[6];const h=f,g=c?JD:GD;let m;return t[7]!==g||t[8]!==s||t[9]!==h||t[10]!==r?(m=Y.jsx(g,{className:h,...r,children:s}),t[7]=g,t[8]=s,t[9]=h,t[10]=r,t[11]=m):m=t[11],m};const g4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),p4=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,s,o)=>o?o.toUpperCase():s.toLowerCase()),C0=e=>{const t=p4(e);return t.charAt(0).toUpperCase()+t.slice(1)},LS=(...e)=>e.filter((t,s,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===s).join(" ").trim(),m4=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var b4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const y4=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:r="",children:u,iconNode:c,...f},h)=>E.createElement("svg",{ref:h,...b4,width:t,height:t,stroke:e,strokeWidth:o?Number(s)*24/Number(t):s,className:LS("lucide",r),...!u&&!m4(f)&&{"aria-hidden":"true"},...f},[...c.map(([g,m])=>E.createElement(g,m)),...Array.isArray(u)?u:[u]]));const tn=(e,t)=>{const s=E.forwardRef(({className:o,...r},u)=>E.createElement(y4,{ref:u,iconNode:t,className:LS(`lucide-${g4(C0(e))}`,`lucide-${e}`,o),...r}));return s.displayName=C0(e),s};const v4=[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]],PS=tn("blocks",v4);const _4=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],k4=tn("building-2",_4);const S4=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],C4=tn("chart-column",S4);const E4=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],R4=tn("chevron-down",E4);const x4=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],T4=tn("dollar-sign",x4);const w4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],NS=tn("globe",w4);const O4=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],A4=tn("list",O4);const M4=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],D4=tn("log-out",M4);const L4=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],P4=tn("monitor",L4);const N4=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],z4=tn("moon",N4);const $4=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],j4=tn("plug",$4);const U4=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],zS=tn("settings",U4);const I4=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],$S=tn("sliders-vertical",I4);const V4=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],B4=tn("sun",V4);const q4=[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]],jS=tn("telescope",q4);const H4=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],F4=tn("user",H4);var gj="fs2a330",pj="fs2a331",mj="fs2a332",bj="fs2a333",yj="fs2a334",vj=zn({defaultClassName:"fs2a335",variantClassNames:{interactive:{true:"fs2a336",false:"fs2a337"},selected:{true:"fs2a338",false:"fs2a339"}},defaultVariants:{interactive:!1,selected:!1},compoundVariants:[]}),_j="fs2a33a",kj="fs2a33b",Sj="_1mfazoe0",Cj="_1mfazoe1",Ej="_1mfazoe2",Rj="_1mfazoe4 _1mfazoe3 _1lg22bkv0 _1lg22bkuc _1lg22bk26 _1lg22bk2u _1lg22bkj9",xj="_1mfazoe5",Tj="_1mfazoe6",wj="_1mfazoe7",Oj="_1mfazoe8",Aj="_1mfazoe9",Mj="_1mfazoea",Dj="_1mfazoeb",Lj="_1mfazoec",Pj=zn({defaultClassName:"_1mfazoed",variantClassNames:{withIcon:{true:"_1mfazoee",false:"_1mfazoef"}},defaultVariants:{withIcon:!1},compoundVariants:[]}),Nj=zn({defaultClassName:"_1mfazoeg",variantClassNames:{withIcon:{true:"_1mfazoeh",false:"_1mfazoei"}},defaultVariants:{withIcon:!1},compoundVariants:[]}),zj=zn({defaultClassName:"_1mfazoej",variantClassNames:{withIcon:{true:"_1mfazoek",false:"_1mfazoel"}},defaultVariants:{withIcon:!1},compoundVariants:[]}),$j=zn({defaultClassName:"_1mfazoem",variantClassNames:{withIcon:{true:"_1mfazoen",false:"_1mfazoeo"}},defaultVariants:{withIcon:!1},compoundVariants:[]}),jj="_1mfazoep",Uj="_1mfazoeq",Ij="_1mfazoer",Vj="_1mfazoes",Bj="_1mfazoet",qj="_1mfazoeu",Hj="_1mfazoev",Fj="_1mfazoey",Kj="_1mfazoez",Gj="_1mfazoe10",Yj="_1mfazoe12 _1mfazoe11 _1lg22bkv0 _1lg22bkuc _1lg22bk23 _1lg22bkjc",Qj="_1mfazoe13",Xj="_1mfazoe14",K4=zn({defaultClassName:"_1g4ahca0",variantClassNames:{size:{default:"_1g4ahca1",lg:"_1g4ahca2"},variant:{default:"_1g4ahca3",filled:"_1g4ahca4"}},defaultVariants:{size:"default",variant:"default"},compoundVariants:[]});const G4=E.forwardRef((e,t)=>{const s=Ut.c(13);let o,r,u,c;s[0]!==e?({variant:c,size:u,className:o,...r}=e,s[0]=e,s[1]=o,s[2]=r,s[3]=u,s[4]=c):(o=s[1],r=s[2],u=s[3],c=s[4]);let f;s[5]!==o||s[6]!==u||s[7]!==c?(f=Js(K4({variant:c,size:u}),o),s[5]=o,s[6]=u,s[7]=c,s[8]=f):f=s[8];let h;return s[9]!==r||s[10]!==t||s[11]!==f?(h=Y.jsx("input",{ref:t,className:f,...r}),s[9]=r,s[10]=t,s[11]=f,s[12]=h):h=s[12],h});G4.displayName="Input";function Y4(e,t){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var o=s.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q4(e){var t=Y4(e,"string");return typeof t=="symbol"?t:String(t)}function X4(e,t,s){return t=Q4(t),t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function E0(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),s.push.apply(s,o)}return s}function Tg(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?E0(Object(s),!0).forEach(function(o){X4(e,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):E0(Object(s)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(s,o))})}return e}var W4=e=>function(){for(var t=arguments.length,s=new Array(t),o=0;o<t;o++)s[o]=arguments[o];var r=Object.assign({},...s.map(h=>h.styles)),u=Object.keys(r),c=u.filter(h=>"mappings"in r[h]),f=h=>{var g=[],m={},b=Tg({},h),y=!1;for(var _ of c){var k=h[_];if(k!=null){var S=r[_];y=!0;for(var C of S.mappings)m[C]=k,b[C]==null&&delete b[C]}}var R=y?Tg(Tg({},m),b):h,T=function(){var x=R[A],M=r[A];try{if(M.mappings)return 1;if(typeof x=="string"||typeof x=="number")g.push(M.values[x].defaultClass);else if(Array.isArray(x))for(var L=0;L<x.length;L++){var P=x[L];if(P!=null){var V=M.responsiveArray[L];g.push(M.values[P].conditions[V])}}else for(var Z in x){var z=x[Z];z!=null&&g.push(M.values[z].conditions[Z])}}catch(Q){throw Q}};for(var A in R)T();return e(g.join(" "))};return Object.assign(f,{properties:new Set(u)})},Z4=e=>e,J4=function(){return W4(Z4)(...arguments)};J4({conditions:{defaultCondition:"mobile",conditionNames:["mobile","tablet","desktop"],responsiveArray:void 0},styles:{p:{mappings:["padding"]},px:{mappings:["paddingLeft","paddingRight"]},py:{mappings:["paddingTop","paddingBottom"]},m:{mappings:["margin"]},mx:{mappings:["marginLeft","marginRight"]},my:{mappings:["marginTop","marginBottom"]},padding:{values:{none:{conditions:{mobile:"_1lg22bk0",tablet:"_1lg22bk1",desktop:"_1lg22bk2"},defaultClass:"_1lg22bk0"},xs:{conditions:{mobile:"_1lg22bk3",tablet:"_1lg22bk4",desktop:"_1lg22bk5"},defaultClass:"_1lg22bk3"},sm:{conditions:{mobile:"_1lg22bk6",tablet:"_1lg22bk7",desktop:"_1lg22bk8"},defaultClass:"_1lg22bk6"},md:{conditions:{mobile:"_1lg22bk9",tablet:"_1lg22bka",desktop:"_1lg22bkb"},defaultClass:"_1lg22bk9"},lg:{conditions:{mobile:"_1lg22bkc",tablet:"_1lg22bkd",desktop:"_1lg22bke"},defaultClass:"_1lg22bkc"},xl:{conditions:{mobile:"_1lg22bkf",tablet:"_1lg22bkg",desktop:"_1lg22bkh"},defaultClass:"_1lg22bkf"},"2xl":{conditions:{mobile:"_1lg22bki",tablet:"_1lg22bkj",desktop:"_1lg22bkk"},defaultClass:"_1lg22bki"},"3xl":{conditions:{mobile:"_1lg22bkl",tablet:"_1lg22bkm",desktop:"_1lg22bkn"},defaultClass:"_1lg22bkl"}}},paddingTop:{values:{none:{conditions:{mobile:"_1lg22bko",tablet:"_1lg22bkp",desktop:"_1lg22bkq"},defaultClass:"_1lg22bko"},xs:{conditions:{mobile:"_1lg22bkr",tablet:"_1lg22bks",desktop:"_1lg22bkt"},defaultClass:"_1lg22bkr"},sm:{conditions:{mobile:"_1lg22bku",tablet:"_1lg22bkv",desktop:"_1lg22bkw"},defaultClass:"_1lg22bku"},md:{conditions:{mobile:"_1lg22bkx",tablet:"_1lg22bky",desktop:"_1lg22bkz"},defaultClass:"_1lg22bkx"},lg:{conditions:{mobile:"_1lg22bk10",tablet:"_1lg22bk11",desktop:"_1lg22bk12"},defaultClass:"_1lg22bk10"},xl:{conditions:{mobile:"_1lg22bk13",tablet:"_1lg22bk14",desktop:"_1lg22bk15"},defaultClass:"_1lg22bk13"},"2xl":{conditions:{mobile:"_1lg22bk16",tablet:"_1lg22bk17",desktop:"_1lg22bk18"},defaultClass:"_1lg22bk16"},"3xl":{conditions:{mobile:"_1lg22bk19",tablet:"_1lg22bk1a",desktop:"_1lg22bk1b"},defaultClass:"_1lg22bk19"}}},paddingBottom:{values:{none:{conditions:{mobile:"_1lg22bk1c",tablet:"_1lg22bk1d",desktop:"_1lg22bk1e"},defaultClass:"_1lg22bk1c"},xs:{conditions:{mobile:"_1lg22bk1f",tablet:"_1lg22bk1g",desktop:"_1lg22bk1h"},defaultClass:"_1lg22bk1f"},sm:{conditions:{mobile:"_1lg22bk1i",tablet:"_1lg22bk1j",desktop:"_1lg22bk1k"},defaultClass:"_1lg22bk1i"},md:{conditions:{mobile:"_1lg22bk1l",tablet:"_1lg22bk1m",desktop:"_1lg22bk1n"},defaultClass:"_1lg22bk1l"},lg:{conditions:{mobile:"_1lg22bk1o",tablet:"_1lg22bk1p",desktop:"_1lg22bk1q"},defaultClass:"_1lg22bk1o"},xl:{conditions:{mobile:"_1lg22bk1r",tablet:"_1lg22bk1s",desktop:"_1lg22bk1t"},defaultClass:"_1lg22bk1r"},"2xl":{conditions:{mobile:"_1lg22bk1u",tablet:"_1lg22bk1v",desktop:"_1lg22bk1w"},defaultClass:"_1lg22bk1u"},"3xl":{conditions:{mobile:"_1lg22bk1x",tablet:"_1lg22bk1y",desktop:"_1lg22bk1z"},defaultClass:"_1lg22bk1x"}}},paddingLeft:{values:{none:{conditions:{mobile:"_1lg22bk20",tablet:"_1lg22bk21",desktop:"_1lg22bk22"},defaultClass:"_1lg22bk20"},xs:{conditions:{mobile:"_1lg22bk23",tablet:"_1lg22bk24",desktop:"_1lg22bk25"},defaultClass:"_1lg22bk23"},sm:{conditions:{mobile:"_1lg22bk26",tablet:"_1lg22bk27",desktop:"_1lg22bk28"},defaultClass:"_1lg22bk26"},md:{conditions:{mobile:"_1lg22bk29",tablet:"_1lg22bk2a",desktop:"_1lg22bk2b"},defaultClass:"_1lg22bk29"},lg:{conditions:{mobile:"_1lg22bk2c",tablet:"_1lg22bk2d",desktop:"_1lg22bk2e"},defaultClass:"_1lg22bk2c"},xl:{conditions:{mobile:"_1lg22bk2f",tablet:"_1lg22bk2g",desktop:"_1lg22bk2h"},defaultClass:"_1lg22bk2f"},"2xl":{conditions:{mobile:"_1lg22bk2i",tablet:"_1lg22bk2j",desktop:"_1lg22bk2k"},defaultClass:"_1lg22bk2i"},"3xl":{conditions:{mobile:"_1lg22bk2l",tablet:"_1lg22bk2m",desktop:"_1lg22bk2n"},defaultClass:"_1lg22bk2l"}}},paddingRight:{values:{none:{conditions:{mobile:"_1lg22bk2o",tablet:"_1lg22bk2p",desktop:"_1lg22bk2q"},defaultClass:"_1lg22bk2o"},xs:{conditions:{mobile:"_1lg22bk2r",tablet:"_1lg22bk2s",desktop:"_1lg22bk2t"},defaultClass:"_1lg22bk2r"},sm:{conditions:{mobile:"_1lg22bk2u",tablet:"_1lg22bk2v",desktop:"_1lg22bk2w"},defaultClass:"_1lg22bk2u"},md:{conditions:{mobile:"_1lg22bk2x",tablet:"_1lg22bk2y",desktop:"_1lg22bk2z"},defaultClass:"_1lg22bk2x"},lg:{conditions:{mobile:"_1lg22bk30",tablet:"_1lg22bk31",desktop:"_1lg22bk32"},defaultClass:"_1lg22bk30"},xl:{conditions:{mobile:"_1lg22bk33",tablet:"_1lg22bk34",desktop:"_1lg22bk35"},defaultClass:"_1lg22bk33"},"2xl":{conditions:{mobile:"_1lg22bk36",tablet:"_1lg22bk37",desktop:"_1lg22bk38"},defaultClass:"_1lg22bk36"},"3xl":{conditions:{mobile:"_1lg22bk39",tablet:"_1lg22bk3a",desktop:"_1lg22bk3b"},defaultClass:"_1lg22bk39"}}},margin:{values:{none:{conditions:{mobile:"_1lg22bk3c",tablet:"_1lg22bk3d",desktop:"_1lg22bk3e"},defaultClass:"_1lg22bk3c"},xs:{conditions:{mobile:"_1lg22bk3f",tablet:"_1lg22bk3g",desktop:"_1lg22bk3h"},defaultClass:"_1lg22bk3f"},sm:{conditions:{mobile:"_1lg22bk3i",tablet:"_1lg22bk3j",desktop:"_1lg22bk3k"},defaultClass:"_1lg22bk3i"},md:{conditions:{mobile:"_1lg22bk3l",tablet:"_1lg22bk3m",desktop:"_1lg22bk3n"},defaultClass:"_1lg22bk3l"},lg:{conditions:{mobile:"_1lg22bk3o",tablet:"_1lg22bk3p",desktop:"_1lg22bk3q"},defaultClass:"_1lg22bk3o"},xl:{conditions:{mobile:"_1lg22bk3r",tablet:"_1lg22bk3s",desktop:"_1lg22bk3t"},defaultClass:"_1lg22bk3r"},"2xl":{conditions:{mobile:"_1lg22bk3u",tablet:"_1lg22bk3v",desktop:"_1lg22bk3w"},defaultClass:"_1lg22bk3u"},"3xl":{conditions:{mobile:"_1lg22bk3x",tablet:"_1lg22bk3y",desktop:"_1lg22bk3z"},defaultClass:"_1lg22bk3x"}}},marginTop:{values:{none:{conditions:{mobile:"_1lg22bk40",tablet:"_1lg22bk41",desktop:"_1lg22bk42"},defaultClass:"_1lg22bk40"},xs:{conditions:{mobile:"_1lg22bk43",tablet:"_1lg22bk44",desktop:"_1lg22bk45"},defaultClass:"_1lg22bk43"},sm:{conditions:{mobile:"_1lg22bk46",tablet:"_1lg22bk47",desktop:"_1lg22bk48"},defaultClass:"_1lg22bk46"},md:{conditions:{mobile:"_1lg22bk49",tablet:"_1lg22bk4a",desktop:"_1lg22bk4b"},defaultClass:"_1lg22bk49"},lg:{conditions:{mobile:"_1lg22bk4c",tablet:"_1lg22bk4d",desktop:"_1lg22bk4e"},defaultClass:"_1lg22bk4c"},xl:{conditions:{mobile:"_1lg22bk4f",tablet:"_1lg22bk4g",desktop:"_1lg22bk4h"},defaultClass:"_1lg22bk4f"},"2xl":{conditions:{mobile:"_1lg22bk4i",tablet:"_1lg22bk4j",desktop:"_1lg22bk4k"},defaultClass:"_1lg22bk4i"},"3xl":{conditions:{mobile:"_1lg22bk4l",tablet:"_1lg22bk4m",desktop:"_1lg22bk4n"},defaultClass:"_1lg22bk4l"}}},marginBottom:{values:{none:{conditions:{mobile:"_1lg22bk4o",tablet:"_1lg22bk4p",desktop:"_1lg22bk4q"},defaultClass:"_1lg22bk4o"},xs:{conditions:{mobile:"_1lg22bk4r",tablet:"_1lg22bk4s",desktop:"_1lg22bk4t"},defaultClass:"_1lg22bk4r"},sm:{conditions:{mobile:"_1lg22bk4u",tablet:"_1lg22bk4v",desktop:"_1lg22bk4w"},defaultClass:"_1lg22bk4u"},md:{conditions:{mobile:"_1lg22bk4x",tablet:"_1lg22bk4y",desktop:"_1lg22bk4z"},defaultClass:"_1lg22bk4x"},lg:{conditions:{mobile:"_1lg22bk50",tablet:"_1lg22bk51",desktop:"_1lg22bk52"},defaultClass:"_1lg22bk50"},xl:{conditions:{mobile:"_1lg22bk53",tablet:"_1lg22bk54",desktop:"_1lg22bk55"},defaultClass:"_1lg22bk53"},"2xl":{conditions:{mobile:"_1lg22bk56",tablet:"_1lg22bk57",desktop:"_1lg22bk58"},defaultClass:"_1lg22bk56"},"3xl":{conditions:{mobile:"_1lg22bk59",tablet:"_1lg22bk5a",desktop:"_1lg22bk5b"},defaultClass:"_1lg22bk59"}}},marginLeft:{values:{none:{conditions:{mobile:"_1lg22bk5c",tablet:"_1lg22bk5d",desktop:"_1lg22bk5e"},defaultClass:"_1lg22bk5c"},xs:{conditions:{mobile:"_1lg22bk5f",tablet:"_1lg22bk5g",desktop:"_1lg22bk5h"},defaultClass:"_1lg22bk5f"},sm:{conditions:{mobile:"_1lg22bk5i",tablet:"_1lg22bk5j",desktop:"_1lg22bk5k"},defaultClass:"_1lg22bk5i"},md:{conditions:{mobile:"_1lg22bk5l",tablet:"_1lg22bk5m",desktop:"_1lg22bk5n"},defaultClass:"_1lg22bk5l"},lg:{conditions:{mobile:"_1lg22bk5o",tablet:"_1lg22bk5p",desktop:"_1lg22bk5q"},defaultClass:"_1lg22bk5o"},xl:{conditions:{mobile:"_1lg22bk5r",tablet:"_1lg22bk5s",desktop:"_1lg22bk5t"},defaultClass:"_1lg22bk5r"},"2xl":{conditions:{mobile:"_1lg22bk5u",tablet:"_1lg22bk5v",desktop:"_1lg22bk5w"},defaultClass:"_1lg22bk5u"},"3xl":{conditions:{mobile:"_1lg22bk5x",tablet:"_1lg22bk5y",desktop:"_1lg22bk5z"},defaultClass:"_1lg22bk5x"}}},marginRight:{values:{none:{conditions:{mobile:"_1lg22bk60",tablet:"_1lg22bk61",desktop:"_1lg22bk62"},defaultClass:"_1lg22bk60"},xs:{conditions:{mobile:"_1lg22bk63",tablet:"_1lg22bk64",desktop:"_1lg22bk65"},defaultClass:"_1lg22bk63"},sm:{conditions:{mobile:"_1lg22bk66",tablet:"_1lg22bk67",desktop:"_1lg22bk68"},defaultClass:"_1lg22bk66"},md:{conditions:{mobile:"_1lg22bk69",tablet:"_1lg22bk6a",desktop:"_1lg22bk6b"},defaultClass:"_1lg22bk69"},lg:{conditions:{mobile:"_1lg22bk6c",tablet:"_1lg22bk6d",desktop:"_1lg22bk6e"},defaultClass:"_1lg22bk6c"},xl:{conditions:{mobile:"_1lg22bk6f",tablet:"_1lg22bk6g",desktop:"_1lg22bk6h"},defaultClass:"_1lg22bk6f"},"2xl":{conditions:{mobile:"_1lg22bk6i",tablet:"_1lg22bk6j",desktop:"_1lg22bk6k"},defaultClass:"_1lg22bk6i"},"3xl":{conditions:{mobile:"_1lg22bk6l",tablet:"_1lg22bk6m",desktop:"_1lg22bk6n"},defaultClass:"_1lg22bk6l"}}},backgroundColor:{values:{accent1:{conditions:{mobile:"_1lg22bk6o",tablet:"_1lg22bk6p",desktop:"_1lg22bk6q"},defaultClass:"_1lg22bk6o"},accent2:{conditions:{mobile:"_1lg22bk6r",tablet:"_1lg22bk6s",desktop:"_1lg22bk6t"},defaultClass:"_1lg22bk6r"},accent3:{conditions:{mobile:"_1lg22bk6u",tablet:"_1lg22bk6v",desktop:"_1lg22bk6w"},defaultClass:"_1lg22bk6u"},accent4:{conditions:{mobile:"_1lg22bk6x",tablet:"_1lg22bk6y",desktop:"_1lg22bk6z"},defaultClass:"_1lg22bk6x"},accent5:{conditions:{mobile:"_1lg22bk70",tablet:"_1lg22bk71",desktop:"_1lg22bk72"},defaultClass:"_1lg22bk70"},accent6:{conditions:{mobile:"_1lg22bk73",tablet:"_1lg22bk74",desktop:"_1lg22bk75"},defaultClass:"_1lg22bk73"},accent7:{conditions:{mobile:"_1lg22bk76",tablet:"_1lg22bk77",desktop:"_1lg22bk78"},defaultClass:"_1lg22bk76"},accent8:{conditions:{mobile:"_1lg22bk79",tablet:"_1lg22bk7a",desktop:"_1lg22bk7b"},defaultClass:"_1lg22bk79"},accent9:{conditions:{mobile:"_1lg22bk7c",tablet:"_1lg22bk7d",desktop:"_1lg22bk7e"},defaultClass:"_1lg22bk7c"},accent10:{conditions:{mobile:"_1lg22bk7f",tablet:"_1lg22bk7g",desktop:"_1lg22bk7h"},defaultClass:"_1lg22bk7f"},accent11:{conditions:{mobile:"_1lg22bk7i",tablet:"_1lg22bk7j",desktop:"_1lg22bk7k"},defaultClass:"_1lg22bk7i"},accent12:{conditions:{mobile:"_1lg22bk7l",tablet:"_1lg22bk7m",desktop:"_1lg22bk7n"},defaultClass:"_1lg22bk7l"},accentA1:{conditions:{mobile:"_1lg22bk7o",tablet:"_1lg22bk7p",desktop:"_1lg22bk7q"},defaultClass:"_1lg22bk7o"},accentA2:{conditions:{mobile:"_1lg22bk7r",tablet:"_1lg22bk7s",desktop:"_1lg22bk7t"},defaultClass:"_1lg22bk7r"},accentA3:{conditions:{mobile:"_1lg22bk7u",tablet:"_1lg22bk7v",desktop:"_1lg22bk7w"},defaultClass:"_1lg22bk7u"},accentA4:{conditions:{mobile:"_1lg22bk7x",tablet:"_1lg22bk7y",desktop:"_1lg22bk7z"},defaultClass:"_1lg22bk7x"},accentA5:{conditions:{mobile:"_1lg22bk80",tablet:"_1lg22bk81",desktop:"_1lg22bk82"},defaultClass:"_1lg22bk80"},accentA6:{conditions:{mobile:"_1lg22bk83",tablet:"_1lg22bk84",desktop:"_1lg22bk85"},defaultClass:"_1lg22bk83"},accentA7:{conditions:{mobile:"_1lg22bk86",tablet:"_1lg22bk87",desktop:"_1lg22bk88"},defaultClass:"_1lg22bk86"},accentA8:{conditions:{mobile:"_1lg22bk89",tablet:"_1lg22bk8a",desktop:"_1lg22bk8b"},defaultClass:"_1lg22bk89"},accentA9:{conditions:{mobile:"_1lg22bk8c",tablet:"_1lg22bk8d",desktop:"_1lg22bk8e"},defaultClass:"_1lg22bk8c"},accentA10:{conditions:{mobile:"_1lg22bk8f",tablet:"_1lg22bk8g",desktop:"_1lg22bk8h"},defaultClass:"_1lg22bk8f"},accentA11:{conditions:{mobile:"_1lg22bk8i",tablet:"_1lg22bk8j",desktop:"_1lg22bk8k"},defaultClass:"_1lg22bk8i"},accentA12:{conditions:{mobile:"_1lg22bk8l",tablet:"_1lg22bk8m",desktop:"_1lg22bk8n"},defaultClass:"_1lg22bk8l"},accentContrast:{conditions:{mobile:"_1lg22bk8o",tablet:"_1lg22bk8p",desktop:"_1lg22bk8q"},defaultClass:"_1lg22bk8o"},accentSurface:{conditions:{mobile:"_1lg22bk8r",tablet:"_1lg22bk8s",desktop:"_1lg22bk8t"},defaultClass:"_1lg22bk8r"},accentIndicator:{conditions:{mobile:"_1lg22bk8u",tablet:"_1lg22bk8v",desktop:"_1lg22bk8w"},defaultClass:"_1lg22bk8u"},accentTrack:{conditions:{mobile:"_1lg22bk8x",tablet:"_1lg22bk8y",desktop:"_1lg22bk8z"},defaultClass:"_1lg22bk8x"},error1:{conditions:{mobile:"_1lg22bk90",tablet:"_1lg22bk91",desktop:"_1lg22bk92"},defaultClass:"_1lg22bk90"},error2:{conditions:{mobile:"_1lg22bk93",tablet:"_1lg22bk94",desktop:"_1lg22bk95"},defaultClass:"_1lg22bk93"},error3:{conditions:{mobile:"_1lg22bk96",tablet:"_1lg22bk97",desktop:"_1lg22bk98"},defaultClass:"_1lg22bk96"},error4:{conditions:{mobile:"_1lg22bk99",tablet:"_1lg22bk9a",desktop:"_1lg22bk9b"},defaultClass:"_1lg22bk99"},error5:{conditions:{mobile:"_1lg22bk9c",tablet:"_1lg22bk9d",desktop:"_1lg22bk9e"},defaultClass:"_1lg22bk9c"},error6:{conditions:{mobile:"_1lg22bk9f",tablet:"_1lg22bk9g",desktop:"_1lg22bk9h"},defaultClass:"_1lg22bk9f"},error7:{conditions:{mobile:"_1lg22bk9i",tablet:"_1lg22bk9j",desktop:"_1lg22bk9k"},defaultClass:"_1lg22bk9i"},error8:{conditions:{mobile:"_1lg22bk9l",tablet:"_1lg22bk9m",desktop:"_1lg22bk9n"},defaultClass:"_1lg22bk9l"},error9:{conditions:{mobile:"_1lg22bk9o",tablet:"_1lg22bk9p",desktop:"_1lg22bk9q"},defaultClass:"_1lg22bk9o"},error10:{conditions:{mobile:"_1lg22bk9r",tablet:"_1lg22bk9s",desktop:"_1lg22bk9t"},defaultClass:"_1lg22bk9r"},error11:{conditions:{mobile:"_1lg22bk9u",tablet:"_1lg22bk9v",desktop:"_1lg22bk9w"},defaultClass:"_1lg22bk9u"},error12:{conditions:{mobile:"_1lg22bk9x",tablet:"_1lg22bk9y",desktop:"_1lg22bk9z"},defaultClass:"_1lg22bk9x"},errorA1:{conditions:{mobile:"_1lg22bka0",tablet:"_1lg22bka1",desktop:"_1lg22bka2"},defaultClass:"_1lg22bka0"},errorA2:{conditions:{mobile:"_1lg22bka3",tablet:"_1lg22bka4",desktop:"_1lg22bka5"},defaultClass:"_1lg22bka3"},errorA3:{conditions:{mobile:"_1lg22bka6",tablet:"_1lg22bka7",desktop:"_1lg22bka8"},defaultClass:"_1lg22bka6"},errorA4:{conditions:{mobile:"_1lg22bka9",tablet:"_1lg22bkaa",desktop:"_1lg22bkab"},defaultClass:"_1lg22bka9"},errorA5:{conditions:{mobile:"_1lg22bkac",tablet:"_1lg22bkad",desktop:"_1lg22bkae"},defaultClass:"_1lg22bkac"},errorA6:{conditions:{mobile:"_1lg22bkaf",tablet:"_1lg22bkag",desktop:"_1lg22bkah"},defaultClass:"_1lg22bkaf"},errorA7:{conditions:{mobile:"_1lg22bkai",tablet:"_1lg22bkaj",desktop:"_1lg22bkak"},defaultClass:"_1lg22bkai"},errorA8:{conditions:{mobile:"_1lg22bkal",tablet:"_1lg22bkam",desktop:"_1lg22bkan"},defaultClass:"_1lg22bkal"},errorA9:{conditions:{mobile:"_1lg22bkao",tablet:"_1lg22bkap",desktop:"_1lg22bkaq"},defaultClass:"_1lg22bkao"},errorA10:{conditions:{mobile:"_1lg22bkar",tablet:"_1lg22bkas",desktop:"_1lg22bkat"},defaultClass:"_1lg22bkar"},errorA11:{conditions:{mobile:"_1lg22bkau",tablet:"_1lg22bkav",desktop:"_1lg22bkaw"},defaultClass:"_1lg22bkau"},errorA12:{conditions:{mobile:"_1lg22bkax",tablet:"_1lg22bkay",desktop:"_1lg22bkaz"},defaultClass:"_1lg22bkax"},errorContrast:{conditions:{mobile:"_1lg22bkb0",tablet:"_1lg22bkb1",desktop:"_1lg22bkb2"},defaultClass:"_1lg22bkb0"},errorSurface:{conditions:{mobile:"_1lg22bkb3",tablet:"_1lg22bkb4",desktop:"_1lg22bkb5"},defaultClass:"_1lg22bkb3"},errorIndicator:{conditions:{mobile:"_1lg22bkb6",tablet:"_1lg22bkb7",desktop:"_1lg22bkb8"},defaultClass:"_1lg22bkb6"},errorTrack:{conditions:{mobile:"_1lg22bkb9",tablet:"_1lg22bkba",desktop:"_1lg22bkbb"},defaultClass:"_1lg22bkb9"},gray1:{conditions:{mobile:"_1lg22bkbc",tablet:"_1lg22bkbd",desktop:"_1lg22bkbe"},defaultClass:"_1lg22bkbc"},gray2:{conditions:{mobile:"_1lg22bkbf",tablet:"_1lg22bkbg",desktop:"_1lg22bkbh"},defaultClass:"_1lg22bkbf"},gray3:{conditions:{mobile:"_1lg22bkbi",tablet:"_1lg22bkbj",desktop:"_1lg22bkbk"},defaultClass:"_1lg22bkbi"},gray4:{conditions:{mobile:"_1lg22bkbl",tablet:"_1lg22bkbm",desktop:"_1lg22bkbn"},defaultClass:"_1lg22bkbl"},gray5:{conditions:{mobile:"_1lg22bkbo",tablet:"_1lg22bkbp",desktop:"_1lg22bkbq"},defaultClass:"_1lg22bkbo"},gray6:{conditions:{mobile:"_1lg22bkbr",tablet:"_1lg22bkbs",desktop:"_1lg22bkbt"},defaultClass:"_1lg22bkbr"},gray7:{conditions:{mobile:"_1lg22bkbu",tablet:"_1lg22bkbv",desktop:"_1lg22bkbw"},defaultClass:"_1lg22bkbu"},gray8:{conditions:{mobile:"_1lg22bkbx",tablet:"_1lg22bkby",desktop:"_1lg22bkbz"},defaultClass:"_1lg22bkbx"},gray9:{conditions:{mobile:"_1lg22bkc0",tablet:"_1lg22bkc1",desktop:"_1lg22bkc2"},defaultClass:"_1lg22bkc0"},gray10:{conditions:{mobile:"_1lg22bkc3",tablet:"_1lg22bkc4",desktop:"_1lg22bkc5"},defaultClass:"_1lg22bkc3"},gray11:{conditions:{mobile:"_1lg22bkc6",tablet:"_1lg22bkc7",desktop:"_1lg22bkc8"},defaultClass:"_1lg22bkc6"},gray12:{conditions:{mobile:"_1lg22bkc9",tablet:"_1lg22bkca",desktop:"_1lg22bkcb"},defaultClass:"_1lg22bkc9"},grayA1:{conditions:{mobile:"_1lg22bkcc",tablet:"_1lg22bkcd",desktop:"_1lg22bkce"},defaultClass:"_1lg22bkcc"},grayA2:{conditions:{mobile:"_1lg22bkcf",tablet:"_1lg22bkcg",desktop:"_1lg22bkch"},defaultClass:"_1lg22bkcf"},grayA3:{conditions:{mobile:"_1lg22bkci",tablet:"_1lg22bkcj",desktop:"_1lg22bkck"},defaultClass:"_1lg22bkci"},grayA4:{conditions:{mobile:"_1lg22bkcl",tablet:"_1lg22bkcm",desktop:"_1lg22bkcn"},defaultClass:"_1lg22bkcl"},grayA5:{conditions:{mobile:"_1lg22bkco",tablet:"_1lg22bkcp",desktop:"_1lg22bkcq"},defaultClass:"_1lg22bkco"},grayA6:{conditions:{mobile:"_1lg22bkcr",tablet:"_1lg22bkcs",desktop:"_1lg22bkct"},defaultClass:"_1lg22bkcr"},grayA7:{conditions:{mobile:"_1lg22bkcu",tablet:"_1lg22bkcv",desktop:"_1lg22bkcw"},defaultClass:"_1lg22bkcu"},grayA8:{conditions:{mobile:"_1lg22bkcx",tablet:"_1lg22bkcy",desktop:"_1lg22bkcz"},defaultClass:"_1lg22bkcx"},grayA9:{conditions:{mobile:"_1lg22bkd0",tablet:"_1lg22bkd1",desktop:"_1lg22bkd2"},defaultClass:"_1lg22bkd0"},grayA10:{conditions:{mobile:"_1lg22bkd3",tablet:"_1lg22bkd4",desktop:"_1lg22bkd5"},defaultClass:"_1lg22bkd3"},grayA11:{conditions:{mobile:"_1lg22bkd6",tablet:"_1lg22bkd7",desktop:"_1lg22bkd8"},defaultClass:"_1lg22bkd6"},grayA12:{conditions:{mobile:"_1lg22bkd9",tablet:"_1lg22bkda",desktop:"_1lg22bkdb"},defaultClass:"_1lg22bkd9"},grayContrast:{conditions:{mobile:"_1lg22bkdc",tablet:"_1lg22bkdd",desktop:"_1lg22bkde"},defaultClass:"_1lg22bkdc"},graySurface:{conditions:{mobile:"_1lg22bkdf",tablet:"_1lg22bkdg",desktop:"_1lg22bkdh"},defaultClass:"_1lg22bkdf"},grayIndicator:{conditions:{mobile:"_1lg22bkdi",tablet:"_1lg22bkdj",desktop:"_1lg22bkdk"},defaultClass:"_1lg22bkdi"},grayTrack:{conditions:{mobile:"_1lg22bkdl",tablet:"_1lg22bkdm",desktop:"_1lg22bkdn"},defaultClass:"_1lg22bkdl"},background:{conditions:{mobile:"_1lg22bkdo",tablet:"_1lg22bkdp",desktop:"_1lg22bkdq"},defaultClass:"_1lg22bkdo"}}},color:{values:{accent1:{conditions:{mobile:"_1lg22bkdr",tablet:"_1lg22bkds",desktop:"_1lg22bkdt"},defaultClass:"_1lg22bkdr"},accent2:{conditions:{mobile:"_1lg22bkdu",tablet:"_1lg22bkdv",desktop:"_1lg22bkdw"},defaultClass:"_1lg22bkdu"},accent3:{conditions:{mobile:"_1lg22bkdx",tablet:"_1lg22bkdy",desktop:"_1lg22bkdz"},defaultClass:"_1lg22bkdx"},accent4:{conditions:{mobile:"_1lg22bke0",tablet:"_1lg22bke1",desktop:"_1lg22bke2"},defaultClass:"_1lg22bke0"},accent5:{conditions:{mobile:"_1lg22bke3",tablet:"_1lg22bke4",desktop:"_1lg22bke5"},defaultClass:"_1lg22bke3"},accent6:{conditions:{mobile:"_1lg22bke6",tablet:"_1lg22bke7",desktop:"_1lg22bke8"},defaultClass:"_1lg22bke6"},accent7:{conditions:{mobile:"_1lg22bke9",tablet:"_1lg22bkea",desktop:"_1lg22bkeb"},defaultClass:"_1lg22bke9"},accent8:{conditions:{mobile:"_1lg22bkec",tablet:"_1lg22bked",desktop:"_1lg22bkee"},defaultClass:"_1lg22bkec"},accent9:{conditions:{mobile:"_1lg22bkef",tablet:"_1lg22bkeg",desktop:"_1lg22bkeh"},defaultClass:"_1lg22bkef"},accent10:{conditions:{mobile:"_1lg22bkei",tablet:"_1lg22bkej",desktop:"_1lg22bkek"},defaultClass:"_1lg22bkei"},accent11:{conditions:{mobile:"_1lg22bkel",tablet:"_1lg22bkem",desktop:"_1lg22bken"},defaultClass:"_1lg22bkel"},accent12:{conditions:{mobile:"_1lg22bkeo",tablet:"_1lg22bkep",desktop:"_1lg22bkeq"},defaultClass:"_1lg22bkeo"},accentA1:{conditions:{mobile:"_1lg22bker",tablet:"_1lg22bkes",desktop:"_1lg22bket"},defaultClass:"_1lg22bker"},accentA2:{conditions:{mobile:"_1lg22bkeu",tablet:"_1lg22bkev",desktop:"_1lg22bkew"},defaultClass:"_1lg22bkeu"},accentA3:{conditions:{mobile:"_1lg22bkex",tablet:"_1lg22bkey",desktop:"_1lg22bkez"},defaultClass:"_1lg22bkex"},accentA4:{conditions:{mobile:"_1lg22bkf0",tablet:"_1lg22bkf1",desktop:"_1lg22bkf2"},defaultClass:"_1lg22bkf0"},accentA5:{conditions:{mobile:"_1lg22bkf3",tablet:"_1lg22bkf4",desktop:"_1lg22bkf5"},defaultClass:"_1lg22bkf3"},accentA6:{conditions:{mobile:"_1lg22bkf6",tablet:"_1lg22bkf7",desktop:"_1lg22bkf8"},defaultClass:"_1lg22bkf6"},accentA7:{conditions:{mobile:"_1lg22bkf9",tablet:"_1lg22bkfa",desktop:"_1lg22bkfb"},defaultClass:"_1lg22bkf9"},accentA8:{conditions:{mobile:"_1lg22bkfc",tablet:"_1lg22bkfd",desktop:"_1lg22bkfe"},defaultClass:"_1lg22bkfc"},accentA9:{conditions:{mobile:"_1lg22bkff",tablet:"_1lg22bkfg",desktop:"_1lg22bkfh"},defaultClass:"_1lg22bkff"},accentA10:{conditions:{mobile:"_1lg22bkfi",tablet:"_1lg22bkfj",desktop:"_1lg22bkfk"},defaultClass:"_1lg22bkfi"},accentA11:{conditions:{mobile:"_1lg22bkfl",tablet:"_1lg22bkfm",desktop:"_1lg22bkfn"},defaultClass:"_1lg22bkfl"},accentA12:{conditions:{mobile:"_1lg22bkfo",tablet:"_1lg22bkfp",desktop:"_1lg22bkfq"},defaultClass:"_1lg22bkfo"},accentContrast:{conditions:{mobile:"_1lg22bkfr",tablet:"_1lg22bkfs",desktop:"_1lg22bkft"},defaultClass:"_1lg22bkfr"},accentSurface:{conditions:{mobile:"_1lg22bkfu",tablet:"_1lg22bkfv",desktop:"_1lg22bkfw"},defaultClass:"_1lg22bkfu"},accentIndicator:{conditions:{mobile:"_1lg22bkfx",tablet:"_1lg22bkfy",desktop:"_1lg22bkfz"},defaultClass:"_1lg22bkfx"},accentTrack:{conditions:{mobile:"_1lg22bkg0",tablet:"_1lg22bkg1",desktop:"_1lg22bkg2"},defaultClass:"_1lg22bkg0"},error1:{conditions:{mobile:"_1lg22bkg3",tablet:"_1lg22bkg4",desktop:"_1lg22bkg5"},defaultClass:"_1lg22bkg3"},error2:{conditions:{mobile:"_1lg22bkg6",tablet:"_1lg22bkg7",desktop:"_1lg22bkg8"},defaultClass:"_1lg22bkg6"},error3:{conditions:{mobile:"_1lg22bkg9",tablet:"_1lg22bkga",desktop:"_1lg22bkgb"},defaultClass:"_1lg22bkg9"},error4:{conditions:{mobile:"_1lg22bkgc",tablet:"_1lg22bkgd",desktop:"_1lg22bkge"},defaultClass:"_1lg22bkgc"},error5:{conditions:{mobile:"_1lg22bkgf",tablet:"_1lg22bkgg",desktop:"_1lg22bkgh"},defaultClass:"_1lg22bkgf"},error6:{conditions:{mobile:"_1lg22bkgi",tablet:"_1lg22bkgj",desktop:"_1lg22bkgk"},defaultClass:"_1lg22bkgi"},error7:{conditions:{mobile:"_1lg22bkgl",tablet:"_1lg22bkgm",desktop:"_1lg22bkgn"},defaultClass:"_1lg22bkgl"},error8:{conditions:{mobile:"_1lg22bkgo",tablet:"_1lg22bkgp",desktop:"_1lg22bkgq"},defaultClass:"_1lg22bkgo"},error9:{conditions:{mobile:"_1lg22bkgr",tablet:"_1lg22bkgs",desktop:"_1lg22bkgt"},defaultClass:"_1lg22bkgr"},error10:{conditions:{mobile:"_1lg22bkgu",tablet:"_1lg22bkgv",desktop:"_1lg22bkgw"},defaultClass:"_1lg22bkgu"},error11:{conditions:{mobile:"_1lg22bkgx",tablet:"_1lg22bkgy",desktop:"_1lg22bkgz"},defaultClass:"_1lg22bkgx"},error12:{conditions:{mobile:"_1lg22bkh0",tablet:"_1lg22bkh1",desktop:"_1lg22bkh2"},defaultClass:"_1lg22bkh0"},errorA1:{conditions:{mobile:"_1lg22bkh3",tablet:"_1lg22bkh4",desktop:"_1lg22bkh5"},defaultClass:"_1lg22bkh3"},errorA2:{conditions:{mobile:"_1lg22bkh6",tablet:"_1lg22bkh7",desktop:"_1lg22bkh8"},defaultClass:"_1lg22bkh6"},errorA3:{conditions:{mobile:"_1lg22bkh9",tablet:"_1lg22bkha",desktop:"_1lg22bkhb"},defaultClass:"_1lg22bkh9"},errorA4:{conditions:{mobile:"_1lg22bkhc",tablet:"_1lg22bkhd",desktop:"_1lg22bkhe"},defaultClass:"_1lg22bkhc"},errorA5:{conditions:{mobile:"_1lg22bkhf",tablet:"_1lg22bkhg",desktop:"_1lg22bkhh"},defaultClass:"_1lg22bkhf"},errorA6:{conditions:{mobile:"_1lg22bkhi",tablet:"_1lg22bkhj",desktop:"_1lg22bkhk"},defaultClass:"_1lg22bkhi"},errorA7:{conditions:{mobile:"_1lg22bkhl",tablet:"_1lg22bkhm",desktop:"_1lg22bkhn"},defaultClass:"_1lg22bkhl"},errorA8:{conditions:{mobile:"_1lg22bkho",tablet:"_1lg22bkhp",desktop:"_1lg22bkhq"},defaultClass:"_1lg22bkho"},errorA9:{conditions:{mobile:"_1lg22bkhr",tablet:"_1lg22bkhs",desktop:"_1lg22bkht"},defaultClass:"_1lg22bkhr"},errorA10:{conditions:{mobile:"_1lg22bkhu",tablet:"_1lg22bkhv",desktop:"_1lg22bkhw"},defaultClass:"_1lg22bkhu"},errorA11:{conditions:{mobile:"_1lg22bkhx",tablet:"_1lg22bkhy",desktop:"_1lg22bkhz"},defaultClass:"_1lg22bkhx"},errorA12:{conditions:{mobile:"_1lg22bki0",tablet:"_1lg22bki1",desktop:"_1lg22bki2"},defaultClass:"_1lg22bki0"},errorContrast:{conditions:{mobile:"_1lg22bki3",tablet:"_1lg22bki4",desktop:"_1lg22bki5"},defaultClass:"_1lg22bki3"},errorSurface:{conditions:{mobile:"_1lg22bki6",tablet:"_1lg22bki7",desktop:"_1lg22bki8"},defaultClass:"_1lg22bki6"},errorIndicator:{conditions:{mobile:"_1lg22bki9",tablet:"_1lg22bkia",desktop:"_1lg22bkib"},defaultClass:"_1lg22bki9"},errorTrack:{conditions:{mobile:"_1lg22bkic",tablet:"_1lg22bkid",desktop:"_1lg22bkie"},defaultClass:"_1lg22bkic"},gray1:{conditions:{mobile:"_1lg22bkif",tablet:"_1lg22bkig",desktop:"_1lg22bkih"},defaultClass:"_1lg22bkif"},gray2:{conditions:{mobile:"_1lg22bkii",tablet:"_1lg22bkij",desktop:"_1lg22bkik"},defaultClass:"_1lg22bkii"},gray3:{conditions:{mobile:"_1lg22bkil",tablet:"_1lg22bkim",desktop:"_1lg22bkin"},defaultClass:"_1lg22bkil"},gray4:{conditions:{mobile:"_1lg22bkio",tablet:"_1lg22bkip",desktop:"_1lg22bkiq"},defaultClass:"_1lg22bkio"},gray5:{conditions:{mobile:"_1lg22bkir",tablet:"_1lg22bkis",desktop:"_1lg22bkit"},defaultClass:"_1lg22bkir"},gray6:{conditions:{mobile:"_1lg22bkiu",tablet:"_1lg22bkiv",desktop:"_1lg22bkiw"},defaultClass:"_1lg22bkiu"},gray7:{conditions:{mobile:"_1lg22bkix",tablet:"_1lg22bkiy",desktop:"_1lg22bkiz"},defaultClass:"_1lg22bkix"},gray8:{conditions:{mobile:"_1lg22bkj0",tablet:"_1lg22bkj1",desktop:"_1lg22bkj2"},defaultClass:"_1lg22bkj0"},gray9:{conditions:{mobile:"_1lg22bkj3",tablet:"_1lg22bkj4",desktop:"_1lg22bkj5"},defaultClass:"_1lg22bkj3"},gray10:{conditions:{mobile:"_1lg22bkj6",tablet:"_1lg22bkj7",desktop:"_1lg22bkj8"},defaultClass:"_1lg22bkj6"},gray11:{conditions:{mobile:"_1lg22bkj9",tablet:"_1lg22bkja",desktop:"_1lg22bkjb"},defaultClass:"_1lg22bkj9"},gray12:{conditions:{mobile:"_1lg22bkjc",tablet:"_1lg22bkjd",desktop:"_1lg22bkje"},defaultClass:"_1lg22bkjc"},grayA1:{conditions:{mobile:"_1lg22bkjf",tablet:"_1lg22bkjg",desktop:"_1lg22bkjh"},defaultClass:"_1lg22bkjf"},grayA2:{conditions:{mobile:"_1lg22bkji",tablet:"_1lg22bkjj",desktop:"_1lg22bkjk"},defaultClass:"_1lg22bkji"},grayA3:{conditions:{mobile:"_1lg22bkjl",tablet:"_1lg22bkjm",desktop:"_1lg22bkjn"},defaultClass:"_1lg22bkjl"},grayA4:{conditions:{mobile:"_1lg22bkjo",tablet:"_1lg22bkjp",desktop:"_1lg22bkjq"},defaultClass:"_1lg22bkjo"},grayA5:{conditions:{mobile:"_1lg22bkjr",tablet:"_1lg22bkjs",desktop:"_1lg22bkjt"},defaultClass:"_1lg22bkjr"},grayA6:{conditions:{mobile:"_1lg22bkju",tablet:"_1lg22bkjv",desktop:"_1lg22bkjw"},defaultClass:"_1lg22bkju"},grayA7:{conditions:{mobile:"_1lg22bkjx",tablet:"_1lg22bkjy",desktop:"_1lg22bkjz"},defaultClass:"_1lg22bkjx"},grayA8:{conditions:{mobile:"_1lg22bkk0",tablet:"_1lg22bkk1",desktop:"_1lg22bkk2"},defaultClass:"_1lg22bkk0"},grayA9:{conditions:{mobile:"_1lg22bkk3",tablet:"_1lg22bkk4",desktop:"_1lg22bkk5"},defaultClass:"_1lg22bkk3"},grayA10:{conditions:{mobile:"_1lg22bkk6",tablet:"_1lg22bkk7",desktop:"_1lg22bkk8"},defaultClass:"_1lg22bkk6"},grayA11:{conditions:{mobile:"_1lg22bkk9",tablet:"_1lg22bkka",desktop:"_1lg22bkkb"},defaultClass:"_1lg22bkk9"},grayA12:{conditions:{mobile:"_1lg22bkkc",tablet:"_1lg22bkkd",desktop:"_1lg22bkke"},defaultClass:"_1lg22bkkc"},grayContrast:{conditions:{mobile:"_1lg22bkkf",tablet:"_1lg22bkkg",desktop:"_1lg22bkkh"},defaultClass:"_1lg22bkkf"},graySurface:{conditions:{mobile:"_1lg22bkki",tablet:"_1lg22bkkj",desktop:"_1lg22bkkk"},defaultClass:"_1lg22bkki"},grayIndicator:{conditions:{mobile:"_1lg22bkkl",tablet:"_1lg22bkkm",desktop:"_1lg22bkkn"},defaultClass:"_1lg22bkkl"},grayTrack:{conditions:{mobile:"_1lg22bkko",tablet:"_1lg22bkkp",desktop:"_1lg22bkkq"},defaultClass:"_1lg22bkko"},background:{conditions:{mobile:"_1lg22bkkr",tablet:"_1lg22bkks",desktop:"_1lg22bkkt"},defaultClass:"_1lg22bkkr"}}},borderColor:{values:{accent1:{conditions:{mobile:"_1lg22bkku",tablet:"_1lg22bkkv",desktop:"_1lg22bkkw"},defaultClass:"_1lg22bkku"},accent2:{conditions:{mobile:"_1lg22bkkx",tablet:"_1lg22bkky",desktop:"_1lg22bkkz"},defaultClass:"_1lg22bkkx"},accent3:{conditions:{mobile:"_1lg22bkl0",tablet:"_1lg22bkl1",desktop:"_1lg22bkl2"},defaultClass:"_1lg22bkl0"},accent4:{conditions:{mobile:"_1lg22bkl3",tablet:"_1lg22bkl4",desktop:"_1lg22bkl5"},defaultClass:"_1lg22bkl3"},accent5:{conditions:{mobile:"_1lg22bkl6",tablet:"_1lg22bkl7",desktop:"_1lg22bkl8"},defaultClass:"_1lg22bkl6"},accent6:{conditions:{mobile:"_1lg22bkl9",tablet:"_1lg22bkla",desktop:"_1lg22bklb"},defaultClass:"_1lg22bkl9"},accent7:{conditions:{mobile:"_1lg22bklc",tablet:"_1lg22bkld",desktop:"_1lg22bkle"},defaultClass:"_1lg22bklc"},accent8:{conditions:{mobile:"_1lg22bklf",tablet:"_1lg22bklg",desktop:"_1lg22bklh"},defaultClass:"_1lg22bklf"},accent9:{conditions:{mobile:"_1lg22bkli",tablet:"_1lg22bklj",desktop:"_1lg22bklk"},defaultClass:"_1lg22bkli"},accent10:{conditions:{mobile:"_1lg22bkll",tablet:"_1lg22bklm",desktop:"_1lg22bkln"},defaultClass:"_1lg22bkll"},accent11:{conditions:{mobile:"_1lg22bklo",tablet:"_1lg22bklp",desktop:"_1lg22bklq"},defaultClass:"_1lg22bklo"},accent12:{conditions:{mobile:"_1lg22bklr",tablet:"_1lg22bkls",desktop:"_1lg22bklt"},defaultClass:"_1lg22bklr"},accentA1:{conditions:{mobile:"_1lg22bklu",tablet:"_1lg22bklv",desktop:"_1lg22bklw"},defaultClass:"_1lg22bklu"},accentA2:{conditions:{mobile:"_1lg22bklx",tablet:"_1lg22bkly",desktop:"_1lg22bklz"},defaultClass:"_1lg22bklx"},accentA3:{conditions:{mobile:"_1lg22bkm0",tablet:"_1lg22bkm1",desktop:"_1lg22bkm2"},defaultClass:"_1lg22bkm0"},accentA4:{conditions:{mobile:"_1lg22bkm3",tablet:"_1lg22bkm4",desktop:"_1lg22bkm5"},defaultClass:"_1lg22bkm3"},accentA5:{conditions:{mobile:"_1lg22bkm6",tablet:"_1lg22bkm7",desktop:"_1lg22bkm8"},defaultClass:"_1lg22bkm6"},accentA6:{conditions:{mobile:"_1lg22bkm9",tablet:"_1lg22bkma",desktop:"_1lg22bkmb"},defaultClass:"_1lg22bkm9"},accentA7:{conditions:{mobile:"_1lg22bkmc",tablet:"_1lg22bkmd",desktop:"_1lg22bkme"},defaultClass:"_1lg22bkmc"},accentA8:{conditions:{mobile:"_1lg22bkmf",tablet:"_1lg22bkmg",desktop:"_1lg22bkmh"},defaultClass:"_1lg22bkmf"},accentA9:{conditions:{mobile:"_1lg22bkmi",tablet:"_1lg22bkmj",desktop:"_1lg22bkmk"},defaultClass:"_1lg22bkmi"},accentA10:{conditions:{mobile:"_1lg22bkml",tablet:"_1lg22bkmm",desktop:"_1lg22bkmn"},defaultClass:"_1lg22bkml"},accentA11:{conditions:{mobile:"_1lg22bkmo",tablet:"_1lg22bkmp",desktop:"_1lg22bkmq"},defaultClass:"_1lg22bkmo"},accentA12:{conditions:{mobile:"_1lg22bkmr",tablet:"_1lg22bkms",desktop:"_1lg22bkmt"},defaultClass:"_1lg22bkmr"},accentContrast:{conditions:{mobile:"_1lg22bkmu",tablet:"_1lg22bkmv",desktop:"_1lg22bkmw"},defaultClass:"_1lg22bkmu"},accentSurface:{conditions:{mobile:"_1lg22bkmx",tablet:"_1lg22bkmy",desktop:"_1lg22bkmz"},defaultClass:"_1lg22bkmx"},accentIndicator:{conditions:{mobile:"_1lg22bkn0",tablet:"_1lg22bkn1",desktop:"_1lg22bkn2"},defaultClass:"_1lg22bkn0"},accentTrack:{conditions:{mobile:"_1lg22bkn3",tablet:"_1lg22bkn4",desktop:"_1lg22bkn5"},defaultClass:"_1lg22bkn3"},error1:{conditions:{mobile:"_1lg22bkn6",tablet:"_1lg22bkn7",desktop:"_1lg22bkn8"},defaultClass:"_1lg22bkn6"},error2:{conditions:{mobile:"_1lg22bkn9",tablet:"_1lg22bkna",desktop:"_1lg22bknb"},defaultClass:"_1lg22bkn9"},error3:{conditions:{mobile:"_1lg22bknc",tablet:"_1lg22bknd",desktop:"_1lg22bkne"},defaultClass:"_1lg22bknc"},error4:{conditions:{mobile:"_1lg22bknf",tablet:"_1lg22bkng",desktop:"_1lg22bknh"},defaultClass:"_1lg22bknf"},error5:{conditions:{mobile:"_1lg22bkni",tablet:"_1lg22bknj",desktop:"_1lg22bknk"},defaultClass:"_1lg22bkni"},error6:{conditions:{mobile:"_1lg22bknl",tablet:"_1lg22bknm",desktop:"_1lg22bknn"},defaultClass:"_1lg22bknl"},error7:{conditions:{mobile:"_1lg22bkno",tablet:"_1lg22bknp",desktop:"_1lg22bknq"},defaultClass:"_1lg22bkno"},error8:{conditions:{mobile:"_1lg22bknr",tablet:"_1lg22bkns",desktop:"_1lg22bknt"},defaultClass:"_1lg22bknr"},error9:{conditions:{mobile:"_1lg22bknu",tablet:"_1lg22bknv",desktop:"_1lg22bknw"},defaultClass:"_1lg22bknu"},error10:{conditions:{mobile:"_1lg22bknx",tablet:"_1lg22bkny",desktop:"_1lg22bknz"},defaultClass:"_1lg22bknx"},error11:{conditions:{mobile:"_1lg22bko0",tablet:"_1lg22bko1",desktop:"_1lg22bko2"},defaultClass:"_1lg22bko0"},error12:{conditions:{mobile:"_1lg22bko3",tablet:"_1lg22bko4",desktop:"_1lg22bko5"},defaultClass:"_1lg22bko3"},errorA1:{conditions:{mobile:"_1lg22bko6",tablet:"_1lg22bko7",desktop:"_1lg22bko8"},defaultClass:"_1lg22bko6"},errorA2:{conditions:{mobile:"_1lg22bko9",tablet:"_1lg22bkoa",desktop:"_1lg22bkob"},defaultClass:"_1lg22bko9"},errorA3:{conditions:{mobile:"_1lg22bkoc",tablet:"_1lg22bkod",desktop:"_1lg22bkoe"},defaultClass:"_1lg22bkoc"},errorA4:{conditions:{mobile:"_1lg22bkof",tablet:"_1lg22bkog",desktop:"_1lg22bkoh"},defaultClass:"_1lg22bkof"},errorA5:{conditions:{mobile:"_1lg22bkoi",tablet:"_1lg22bkoj",desktop:"_1lg22bkok"},defaultClass:"_1lg22bkoi"},errorA6:{conditions:{mobile:"_1lg22bkol",tablet:"_1lg22bkom",desktop:"_1lg22bkon"},defaultClass:"_1lg22bkol"},errorA7:{conditions:{mobile:"_1lg22bkoo",tablet:"_1lg22bkop",desktop:"_1lg22bkoq"},defaultClass:"_1lg22bkoo"},errorA8:{conditions:{mobile:"_1lg22bkor",tablet:"_1lg22bkos",desktop:"_1lg22bkot"},defaultClass:"_1lg22bkor"},errorA9:{conditions:{mobile:"_1lg22bkou",tablet:"_1lg22bkov",desktop:"_1lg22bkow"},defaultClass:"_1lg22bkou"},errorA10:{conditions:{mobile:"_1lg22bkox",tablet:"_1lg22bkoy",desktop:"_1lg22bkoz"},defaultClass:"_1lg22bkox"},errorA11:{conditions:{mobile:"_1lg22bkp0",tablet:"_1lg22bkp1",desktop:"_1lg22bkp2"},defaultClass:"_1lg22bkp0"},errorA12:{conditions:{mobile:"_1lg22bkp3",tablet:"_1lg22bkp4",desktop:"_1lg22bkp5"},defaultClass:"_1lg22bkp3"},errorContrast:{conditions:{mobile:"_1lg22bkp6",tablet:"_1lg22bkp7",desktop:"_1lg22bkp8"},defaultClass:"_1lg22bkp6"},errorSurface:{conditions:{mobile:"_1lg22bkp9",tablet:"_1lg22bkpa",desktop:"_1lg22bkpb"},defaultClass:"_1lg22bkp9"},errorIndicator:{conditions:{mobile:"_1lg22bkpc",tablet:"_1lg22bkpd",desktop:"_1lg22bkpe"},defaultClass:"_1lg22bkpc"},errorTrack:{conditions:{mobile:"_1lg22bkpf",tablet:"_1lg22bkpg",desktop:"_1lg22bkph"},defaultClass:"_1lg22bkpf"},gray1:{conditions:{mobile:"_1lg22bkpi",tablet:"_1lg22bkpj",desktop:"_1lg22bkpk"},defaultClass:"_1lg22bkpi"},gray2:{conditions:{mobile:"_1lg22bkpl",tablet:"_1lg22bkpm",desktop:"_1lg22bkpn"},defaultClass:"_1lg22bkpl"},gray3:{conditions:{mobile:"_1lg22bkpo",tablet:"_1lg22bkpp",desktop:"_1lg22bkpq"},defaultClass:"_1lg22bkpo"},gray4:{conditions:{mobile:"_1lg22bkpr",tablet:"_1lg22bkps",desktop:"_1lg22bkpt"},defaultClass:"_1lg22bkpr"},gray5:{conditions:{mobile:"_1lg22bkpu",tablet:"_1lg22bkpv",desktop:"_1lg22bkpw"},defaultClass:"_1lg22bkpu"},gray6:{conditions:{mobile:"_1lg22bkpx",tablet:"_1lg22bkpy",desktop:"_1lg22bkpz"},defaultClass:"_1lg22bkpx"},gray7:{conditions:{mobile:"_1lg22bkq0",tablet:"_1lg22bkq1",desktop:"_1lg22bkq2"},defaultClass:"_1lg22bkq0"},gray8:{conditions:{mobile:"_1lg22bkq3",tablet:"_1lg22bkq4",desktop:"_1lg22bkq5"},defaultClass:"_1lg22bkq3"},gray9:{conditions:{mobile:"_1lg22bkq6",tablet:"_1lg22bkq7",desktop:"_1lg22bkq8"},defaultClass:"_1lg22bkq6"},gray10:{conditions:{mobile:"_1lg22bkq9",tablet:"_1lg22bkqa",desktop:"_1lg22bkqb"},defaultClass:"_1lg22bkq9"},gray11:{conditions:{mobile:"_1lg22bkqc",tablet:"_1lg22bkqd",desktop:"_1lg22bkqe"},defaultClass:"_1lg22bkqc"},gray12:{conditions:{mobile:"_1lg22bkqf",tablet:"_1lg22bkqg",desktop:"_1lg22bkqh"},defaultClass:"_1lg22bkqf"},grayA1:{conditions:{mobile:"_1lg22bkqi",tablet:"_1lg22bkqj",desktop:"_1lg22bkqk"},defaultClass:"_1lg22bkqi"},grayA2:{conditions:{mobile:"_1lg22bkql",tablet:"_1lg22bkqm",desktop:"_1lg22bkqn"},defaultClass:"_1lg22bkql"},grayA3:{conditions:{mobile:"_1lg22bkqo",tablet:"_1lg22bkqp",desktop:"_1lg22bkqq"},defaultClass:"_1lg22bkqo"},grayA4:{conditions:{mobile:"_1lg22bkqr",tablet:"_1lg22bkqs",desktop:"_1lg22bkqt"},defaultClass:"_1lg22bkqr"},grayA5:{conditions:{mobile:"_1lg22bkqu",tablet:"_1lg22bkqv",desktop:"_1lg22bkqw"},defaultClass:"_1lg22bkqu"},grayA6:{conditions:{mobile:"_1lg22bkqx",tablet:"_1lg22bkqy",desktop:"_1lg22bkqz"},defaultClass:"_1lg22bkqx"},grayA7:{conditions:{mobile:"_1lg22bkr0",tablet:"_1lg22bkr1",desktop:"_1lg22bkr2"},defaultClass:"_1lg22bkr0"},grayA8:{conditions:{mobile:"_1lg22bkr3",tablet:"_1lg22bkr4",desktop:"_1lg22bkr5"},defaultClass:"_1lg22bkr3"},grayA9:{conditions:{mobile:"_1lg22bkr6",tablet:"_1lg22bkr7",desktop:"_1lg22bkr8"},defaultClass:"_1lg22bkr6"},grayA10:{conditions:{mobile:"_1lg22bkr9",tablet:"_1lg22bkra",desktop:"_1lg22bkrb"},defaultClass:"_1lg22bkr9"},grayA11:{conditions:{mobile:"_1lg22bkrc",tablet:"_1lg22bkrd",desktop:"_1lg22bkre"},defaultClass:"_1lg22bkrc"},grayA12:{conditions:{mobile:"_1lg22bkrf",tablet:"_1lg22bkrg",desktop:"_1lg22bkrh"},defaultClass:"_1lg22bkrf"},grayContrast:{conditions:{mobile:"_1lg22bkri",tablet:"_1lg22bkrj",desktop:"_1lg22bkrk"},defaultClass:"_1lg22bkri"},graySurface:{conditions:{mobile:"_1lg22bkrl",tablet:"_1lg22bkrm",desktop:"_1lg22bkrn"},defaultClass:"_1lg22bkrl"},grayIndicator:{conditions:{mobile:"_1lg22bkro",tablet:"_1lg22bkrp",desktop:"_1lg22bkrq"},defaultClass:"_1lg22bkro"},grayTrack:{conditions:{mobile:"_1lg22bkrr",tablet:"_1lg22bkrs",desktop:"_1lg22bkrt"},defaultClass:"_1lg22bkrr"},background:{conditions:{mobile:"_1lg22bkru",tablet:"_1lg22bkrv",desktop:"_1lg22bkrw"},defaultClass:"_1lg22bkru"}}},display:{values:{none:{conditions:{mobile:"_1lg22bkrx",tablet:"_1lg22bkry",desktop:"_1lg22bkrz"},defaultClass:"_1lg22bkrx"},flex:{conditions:{mobile:"_1lg22bks0",tablet:"_1lg22bks1",desktop:"_1lg22bks2"},defaultClass:"_1lg22bks0"},block:{conditions:{mobile:"_1lg22bks3",tablet:"_1lg22bks4",desktop:"_1lg22bks5"},defaultClass:"_1lg22bks3"},inline:{conditions:{mobile:"_1lg22bks6",tablet:"_1lg22bks7",desktop:"_1lg22bks8"},defaultClass:"_1lg22bks6"},"inline-block":{conditions:{mobile:"_1lg22bks9",tablet:"_1lg22bksa",desktop:"_1lg22bksb"},defaultClass:"_1lg22bks9"},grid:{conditions:{mobile:"_1lg22bksc",tablet:"_1lg22bksd",desktop:"_1lg22bkse"},defaultClass:"_1lg22bksc"}}},flexDirection:{values:{row:{conditions:{mobile:"_1lg22bksf",tablet:"_1lg22bksg",desktop:"_1lg22bksh"},defaultClass:"_1lg22bksf"},column:{conditions:{mobile:"_1lg22bksi",tablet:"_1lg22bksj",desktop:"_1lg22bksk"},defaultClass:"_1lg22bksi"},"row-reverse":{conditions:{mobile:"_1lg22bksl",tablet:"_1lg22bksm",desktop:"_1lg22bksn"},defaultClass:"_1lg22bksl"},"column-reverse":{conditions:{mobile:"_1lg22bkso",tablet:"_1lg22bksp",desktop:"_1lg22bksq"},defaultClass:"_1lg22bkso"}}},justifyContent:{values:{stretch:{conditions:{mobile:"_1lg22bksr",tablet:"_1lg22bkss",desktop:"_1lg22bkst"},defaultClass:"_1lg22bksr"},"flex-start":{conditions:{mobile:"_1lg22bksu",tablet:"_1lg22bksv",desktop:"_1lg22bksw"},defaultClass:"_1lg22bksu"},center:{conditions:{mobile:"_1lg22bksx",tablet:"_1lg22bksy",desktop:"_1lg22bksz"},defaultClass:"_1lg22bksx"},"flex-end":{conditions:{mobile:"_1lg22bkt0",tablet:"_1lg22bkt1",desktop:"_1lg22bkt2"},defaultClass:"_1lg22bkt0"},"space-around":{conditions:{mobile:"_1lg22bkt3",tablet:"_1lg22bkt4",desktop:"_1lg22bkt5"},defaultClass:"_1lg22bkt3"},"space-between":{conditions:{mobile:"_1lg22bkt6",tablet:"_1lg22bkt7",desktop:"_1lg22bkt8"},defaultClass:"_1lg22bkt6"}}},alignItems:{values:{stretch:{conditions:{mobile:"_1lg22bkt9",tablet:"_1lg22bkta",desktop:"_1lg22bktb"},defaultClass:"_1lg22bkt9"},"flex-start":{conditions:{mobile:"_1lg22bktc",tablet:"_1lg22bktd",desktop:"_1lg22bkte"},defaultClass:"_1lg22bktc"},center:{conditions:{mobile:"_1lg22bktf",tablet:"_1lg22bktg",desktop:"_1lg22bkth"},defaultClass:"_1lg22bktf"},"flex-end":{conditions:{mobile:"_1lg22bkti",tablet:"_1lg22bktj",desktop:"_1lg22bktk"},defaultClass:"_1lg22bkti"}}},gap:{values:{none:{conditions:{mobile:"_1lg22bktl",tablet:"_1lg22bktm",desktop:"_1lg22bktn"},defaultClass:"_1lg22bktl"},xs:{conditions:{mobile:"_1lg22bkto",tablet:"_1lg22bktp",desktop:"_1lg22bktq"},defaultClass:"_1lg22bkto"},sm:{conditions:{mobile:"_1lg22bktr",tablet:"_1lg22bkts",desktop:"_1lg22bktt"},defaultClass:"_1lg22bktr"},md:{conditions:{mobile:"_1lg22bktu",tablet:"_1lg22bktv",desktop:"_1lg22bktw"},defaultClass:"_1lg22bktu"},lg:{conditions:{mobile:"_1lg22bktx",tablet:"_1lg22bkty",desktop:"_1lg22bktz"},defaultClass:"_1lg22bktx"},xl:{conditions:{mobile:"_1lg22bku0",tablet:"_1lg22bku1",desktop:"_1lg22bku2"},defaultClass:"_1lg22bku0"},"2xl":{conditions:{mobile:"_1lg22bku3",tablet:"_1lg22bku4",desktop:"_1lg22bku5"},defaultClass:"_1lg22bku3"},"3xl":{conditions:{mobile:"_1lg22bku6",tablet:"_1lg22bku7",desktop:"_1lg22bku8"},defaultClass:"_1lg22bku6"}}},borderRadius:{values:{none:{conditions:{mobile:"_1lg22bku9",tablet:"_1lg22bkua",desktop:"_1lg22bkub"},defaultClass:"_1lg22bku9"},xs:{conditions:{mobile:"_1lg22bkuc",tablet:"_1lg22bkud",desktop:"_1lg22bkue"},defaultClass:"_1lg22bkuc"},sm:{conditions:{mobile:"_1lg22bkuf",tablet:"_1lg22bkug",desktop:"_1lg22bkuh"},defaultClass:"_1lg22bkuf"},md:{conditions:{mobile:"_1lg22bkui",tablet:"_1lg22bkuj",desktop:"_1lg22bkuk"},defaultClass:"_1lg22bkui"},lg:{conditions:{mobile:"_1lg22bkul",tablet:"_1lg22bkum",desktop:"_1lg22bkun"},defaultClass:"_1lg22bkul"},xl:{conditions:{mobile:"_1lg22bkuo",tablet:"_1lg22bkup",desktop:"_1lg22bkuq"},defaultClass:"_1lg22bkuo"},"2xl":{conditions:{mobile:"_1lg22bkur",tablet:"_1lg22bkus",desktop:"_1lg22bkut"},defaultClass:"_1lg22bkur"},"3xl":{conditions:{mobile:"_1lg22bkuu",tablet:"_1lg22bkuv",desktop:"_1lg22bkuw"},defaultClass:"_1lg22bkuu"}}},fontSize:{values:{xs:{conditions:{mobile:"_1lg22bkux",tablet:"_1lg22bkuy",desktop:"_1lg22bkuz"},defaultClass:"_1lg22bkux"},sm:{conditions:{mobile:"_1lg22bkv0",tablet:"_1lg22bkv1",desktop:"_1lg22bkv2"},defaultClass:"_1lg22bkv0"},base:{conditions:{mobile:"_1lg22bkv3",tablet:"_1lg22bkv4",desktop:"_1lg22bkv5"},defaultClass:"_1lg22bkv3"},lg:{conditions:{mobile:"_1lg22bkv6",tablet:"_1lg22bkv7",desktop:"_1lg22bkv8"},defaultClass:"_1lg22bkv6"},xl:{conditions:{mobile:"_1lg22bkv9",tablet:"_1lg22bkva",desktop:"_1lg22bkvb"},defaultClass:"_1lg22bkv9"},"2xl":{conditions:{mobile:"_1lg22bkvc",tablet:"_1lg22bkvd",desktop:"_1lg22bkve"},defaultClass:"_1lg22bkvc"},"3xl":{conditions:{mobile:"_1lg22bkvf",tablet:"_1lg22bkvg",desktop:"_1lg22bkvh"},defaultClass:"_1lg22bkvf"},"4xl":{conditions:{mobile:"_1lg22bkvi",tablet:"_1lg22bkvj",desktop:"_1lg22bkvk"},defaultClass:"_1lg22bkvi"}}},fontWeight:{values:{normal:{conditions:{mobile:"_1lg22bkvl",tablet:"_1lg22bkvm",desktop:"_1lg22bkvn"},defaultClass:"_1lg22bkvl"},medium:{conditions:{mobile:"_1lg22bkvo",tablet:"_1lg22bkvp",desktop:"_1lg22bkvq"},defaultClass:"_1lg22bkvo"},semibold:{conditions:{mobile:"_1lg22bkvr",tablet:"_1lg22bkvs",desktop:"_1lg22bkvt"},defaultClass:"_1lg22bkvr"},bold:{conditions:{mobile:"_1lg22bkvu",tablet:"_1lg22bkvv",desktop:"_1lg22bkvw"},defaultClass:"_1lg22bkvu"}}},fontFamily:{values:{sans:{conditions:{mobile:"_1lg22bkvx",tablet:"_1lg22bkvy",desktop:"_1lg22bkvz"},defaultClass:"_1lg22bkvx"},mono:{conditions:{mobile:"_1lg22bkw0",tablet:"_1lg22bkw1",desktop:"_1lg22bkw2"},defaultClass:"_1lg22bkw0"}}},textAlign:{values:{left:{conditions:{mobile:"_1lg22bkw3",tablet:"_1lg22bkw4",desktop:"_1lg22bkw5"},defaultClass:"_1lg22bkw3"},center:{conditions:{mobile:"_1lg22bkw6",tablet:"_1lg22bkw7",desktop:"_1lg22bkw8"},defaultClass:"_1lg22bkw6"},right:{conditions:{mobile:"_1lg22bkw9",tablet:"_1lg22bkwa",desktop:"_1lg22bkwb"},defaultClass:"_1lg22bkw9"}}},position:{values:{static:{conditions:{mobile:"_1lg22bkwc",tablet:"_1lg22bkwd",desktop:"_1lg22bkwe"},defaultClass:"_1lg22bkwc"},relative:{conditions:{mobile:"_1lg22bkwf",tablet:"_1lg22bkwg",desktop:"_1lg22bkwh"},defaultClass:"_1lg22bkwf"},absolute:{conditions:{mobile:"_1lg22bkwi",tablet:"_1lg22bkwj",desktop:"_1lg22bkwk"},defaultClass:"_1lg22bkwi"},fixed:{conditions:{mobile:"_1lg22bkwl",tablet:"_1lg22bkwm",desktop:"_1lg22bkwn"},defaultClass:"_1lg22bkwl"},sticky:{conditions:{mobile:"_1lg22bkwo",tablet:"_1lg22bkwp",desktop:"_1lg22bkwq"},defaultClass:"_1lg22bkwo"}}},top:{values:{none:{conditions:{mobile:"_1lg22bkwr",tablet:"_1lg22bkws",desktop:"_1lg22bkwt"},defaultClass:"_1lg22bkwr"},xs:{conditions:{mobile:"_1lg22bkwu",tablet:"_1lg22bkwv",desktop:"_1lg22bkww"},defaultClass:"_1lg22bkwu"},sm:{conditions:{mobile:"_1lg22bkwx",tablet:"_1lg22bkwy",desktop:"_1lg22bkwz"},defaultClass:"_1lg22bkwx"},md:{conditions:{mobile:"_1lg22bkx0",tablet:"_1lg22bkx1",desktop:"_1lg22bkx2"},defaultClass:"_1lg22bkx0"},lg:{conditions:{mobile:"_1lg22bkx3",tablet:"_1lg22bkx4",desktop:"_1lg22bkx5"},defaultClass:"_1lg22bkx3"},xl:{conditions:{mobile:"_1lg22bkx6",tablet:"_1lg22bkx7",desktop:"_1lg22bkx8"},defaultClass:"_1lg22bkx6"},"2xl":{conditions:{mobile:"_1lg22bkx9",tablet:"_1lg22bkxa",desktop:"_1lg22bkxb"},defaultClass:"_1lg22bkx9"},"3xl":{conditions:{mobile:"_1lg22bkxc",tablet:"_1lg22bkxd",desktop:"_1lg22bkxe"},defaultClass:"_1lg22bkxc"}}},bottom:{values:{none:{conditions:{mobile:"_1lg22bkxf",tablet:"_1lg22bkxg",desktop:"_1lg22bkxh"},defaultClass:"_1lg22bkxf"},xs:{conditions:{mobile:"_1lg22bkxi",tablet:"_1lg22bkxj",desktop:"_1lg22bkxk"},defaultClass:"_1lg22bkxi"},sm:{conditions:{mobile:"_1lg22bkxl",tablet:"_1lg22bkxm",desktop:"_1lg22bkxn"},defaultClass:"_1lg22bkxl"},md:{conditions:{mobile:"_1lg22bkxo",tablet:"_1lg22bkxp",desktop:"_1lg22bkxq"},defaultClass:"_1lg22bkxo"},lg:{conditions:{mobile:"_1lg22bkxr",tablet:"_1lg22bkxs",desktop:"_1lg22bkxt"},defaultClass:"_1lg22bkxr"},xl:{conditions:{mobile:"_1lg22bkxu",tablet:"_1lg22bkxv",desktop:"_1lg22bkxw"},defaultClass:"_1lg22bkxu"},"2xl":{conditions:{mobile:"_1lg22bkxx",tablet:"_1lg22bkxy",desktop:"_1lg22bkxz"},defaultClass:"_1lg22bkxx"},"3xl":{conditions:{mobile:"_1lg22bky0",tablet:"_1lg22bky1",desktop:"_1lg22bky2"},defaultClass:"_1lg22bky0"}}},left:{values:{none:{conditions:{mobile:"_1lg22bky3",tablet:"_1lg22bky4",desktop:"_1lg22bky5"},defaultClass:"_1lg22bky3"},xs:{conditions:{mobile:"_1lg22bky6",tablet:"_1lg22bky7",desktop:"_1lg22bky8"},defaultClass:"_1lg22bky6"},sm:{conditions:{mobile:"_1lg22bky9",tablet:"_1lg22bkya",desktop:"_1lg22bkyb"},defaultClass:"_1lg22bky9"},md:{conditions:{mobile:"_1lg22bkyc",tablet:"_1lg22bkyd",desktop:"_1lg22bkye"},defaultClass:"_1lg22bkyc"},lg:{conditions:{mobile:"_1lg22bkyf",tablet:"_1lg22bkyg",desktop:"_1lg22bkyh"},defaultClass:"_1lg22bkyf"},xl:{conditions:{mobile:"_1lg22bkyi",tablet:"_1lg22bkyj",desktop:"_1lg22bkyk"},defaultClass:"_1lg22bkyi"},"2xl":{conditions:{mobile:"_1lg22bkyl",tablet:"_1lg22bkym",desktop:"_1lg22bkyn"},defaultClass:"_1lg22bkyl"},"3xl":{conditions:{mobile:"_1lg22bkyo",tablet:"_1lg22bkyp",desktop:"_1lg22bkyq"},defaultClass:"_1lg22bkyo"}}},right:{values:{none:{conditions:{mobile:"_1lg22bkyr",tablet:"_1lg22bkys",desktop:"_1lg22bkyt"},defaultClass:"_1lg22bkyr"},xs:{conditions:{mobile:"_1lg22bkyu",tablet:"_1lg22bkyv",desktop:"_1lg22bkyw"},defaultClass:"_1lg22bkyu"},sm:{conditions:{mobile:"_1lg22bkyx",tablet:"_1lg22bkyy",desktop:"_1lg22bkyz"},defaultClass:"_1lg22bkyx"},md:{conditions:{mobile:"_1lg22bkz0",tablet:"_1lg22bkz1",desktop:"_1lg22bkz2"},defaultClass:"_1lg22bkz0"},lg:{conditions:{mobile:"_1lg22bkz3",tablet:"_1lg22bkz4",desktop:"_1lg22bkz5"},defaultClass:"_1lg22bkz3"},xl:{conditions:{mobile:"_1lg22bkz6",tablet:"_1lg22bkz7",desktop:"_1lg22bkz8"},defaultClass:"_1lg22bkz6"},"2xl":{conditions:{mobile:"_1lg22bkz9",tablet:"_1lg22bkza",desktop:"_1lg22bkzb"},defaultClass:"_1lg22bkz9"},"3xl":{conditions:{mobile:"_1lg22bkzc",tablet:"_1lg22bkzd",desktop:"_1lg22bkze"},defaultClass:"_1lg22bkzc"}}},zIndex:{values:{0:{conditions:{mobile:"_1lg22bkzf",tablet:"_1lg22bkzg",desktop:"_1lg22bkzh"},defaultClass:"_1lg22bkzf"},10:{conditions:{mobile:"_1lg22bkzi",tablet:"_1lg22bkzj",desktop:"_1lg22bkzk"},defaultClass:"_1lg22bkzi"},20:{conditions:{mobile:"_1lg22bkzl",tablet:"_1lg22bkzm",desktop:"_1lg22bkzn"},defaultClass:"_1lg22bkzl"},30:{conditions:{mobile:"_1lg22bkzo",tablet:"_1lg22bkzp",desktop:"_1lg22bkzq"},defaultClass:"_1lg22bkzo"},40:{conditions:{mobile:"_1lg22bkzr",tablet:"_1lg22bkzs",desktop:"_1lg22bkzt"},defaultClass:"_1lg22bkzr"},50:{conditions:{mobile:"_1lg22bkzu",tablet:"_1lg22bkzv",desktop:"_1lg22bkzw"},defaultClass:"_1lg22bkzu"}}}}},{conditions:void 0,styles:{cursor:{values:{default:{defaultClass:"_1lg22bkzx"},pointer:{defaultClass:"_1lg22bkzy"},"not-allowed":{defaultClass:"_1lg22bkzz"}}},userSelect:{values:{none:{defaultClass:"_1lg22bk100"},text:{defaultClass:"_1lg22bk101"},all:{defaultClass:"_1lg22bk102"}}},pointerEvents:{values:{none:{defaultClass:"_1lg22bk103"},auto:{defaultClass:"_1lg22bk104"}}},outline:{values:{none:{defaultClass:"_1lg22bk105"}}},borderWidth:{values:{0:{defaultClass:"_1lg22bk106"},1:{defaultClass:"_1lg22bk107"},2:{defaultClass:"_1lg22bk108"}}},borderStyle:{values:{none:{defaultClass:"_1lg22bk109"},solid:{defaultClass:"_1lg22bk10a"},dashed:{defaultClass:"_1lg22bk10b"},dotted:{defaultClass:"_1lg22bk10c"}}},boxSizing:{values:{"border-box":{defaultClass:"_1lg22bk10d"},"content-box":{defaultClass:"_1lg22bk10e"}}},width:{values:{auto:{defaultClass:"_1lg22bk10f"},"100%":{defaultClass:"_1lg22bk10g"},"50%":{defaultClass:"_1lg22bk10h"},"25%":{defaultClass:"_1lg22bk10i"}}},height:{values:{auto:{defaultClass:"_1lg22bk10j"},"100%":{defaultClass:"_1lg22bk10k"},"50%":{defaultClass:"_1lg22bk10l"},"25%":{defaultClass:"_1lg22bk10m"}}},minWidth:{values:{0:{defaultClass:"_1lg22bk10n"},"100%":{defaultClass:"_1lg22bk10o"}}},minHeight:{values:{0:{defaultClass:"_1lg22bk10p"},"100%":{defaultClass:"_1lg22bk10q"}}},maxWidth:{values:{none:{defaultClass:"_1lg22bk10r"},"100%":{defaultClass:"_1lg22bk10s"}}},maxHeight:{values:{none:{defaultClass:"_1lg22bk10t"},"100%":{defaultClass:"_1lg22bk10u"}}},overflow:{values:{visible:{defaultClass:"_1lg22bk10v"},hidden:{defaultClass:"_1lg22bk10w"},scroll:{defaultClass:"_1lg22bk10x"},auto:{defaultClass:"_1lg22bk10y"}}},whiteSpace:{values:{normal:{defaultClass:"_1lg22bk10z"},nowrap:{defaultClass:"_1lg22bk110"},pre:{defaultClass:"_1lg22bk111"},"pre-wrap":{defaultClass:"_1lg22bk112"}}},textOverflow:{values:{clip:{defaultClass:"_1lg22bk113"},ellipsis:{defaultClass:"_1lg22bk114"}}},transitionTimingFunction:{values:{easeInOutBack:{defaultClass:"_1lg22bk115"},easeInOutCubic:{defaultClass:"_1lg22bk116"}}}}});var eL=zn({defaultClassName:"_19asz6d0",variantClassNames:{size:{xs:"_19asz6d1",sm:"_19asz6d2",md:"_19asz6d3",lg:"_19asz6d4",xl:"_19asz6d5"}},defaultVariants:{size:"sm"},compoundVariants:[]});const Zt=e=>{const t=Ut.c(14);let s,o,r,u;t[0]!==e?({icon:s,size:u,className:o,...r}=e,t[0]=e,t[1]=s,t[2]=o,t[3]=r,t[4]=u):(s=t[1],o=t[2],r=t[3],u=t[4]);const c=u===void 0?"sm":u;let f;t[5]!==o||t[6]!==c?(f=Js(eL({size:c}),o),t[5]=o,t[6]=c,t[7]=f):f=t[7];let h;t[8]!==s?(h=Y.jsx(s,{}),t[8]=s,t[9]=h):h=t[9];let g;return t[10]!==r||t[11]!==f||t[12]!==h?(g=Y.jsx("span",{className:f,...r,children:h}),t[10]=r,t[11]=f,t[12]=h,t[13]=g):g=t[13],g};var tL="xbvkwf0",nL="xbvkwf1",sL="xbvkwf2",iL="xbvkwf3",oL="xbvkwf4",aL="xbvkwf5",rL="xbvkwf6",lL="xbvkwf8 xbvkwf7 _1lg22bkw0",uL="xbvkwf9",cL="xbvkwfa",fL="xbvkwfb",dL="xbvkwfc",hL="xbvkwfd",gL="xbvkwfe",pL="xbvkwff",mL="xbvkwfi xbvkwfh _1lg22bkux _1lg22bkw0 _1lg22bkj3 _1lg22bk23 _1lg22bk2r",bL="xbvkwfj",yL="xbvkwfk";const Ks={BASE_URL:"./",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function US(e){return"init"in e}function pp(e){return!!e.write}function R0(e){return"v"in e||"e"in e}function hf(e){if("e"in e)throw e.e;if((Ks?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const gf=new WeakMap;function IS(e){var t;return pf(e)&&!!((t=gf.get(e))!=null&&t[0])}function vL(e){const t=gf.get(e);t?.[0]&&(t[0]=!1,t[1].forEach(s=>s()))}function mp(e,t){let s=gf.get(e);if(!s){s=[!0,new Set],gf.set(e,s);const o=()=>{s[0]=!1};e.then(o,o)}s[1].add(t)}function pf(e){return typeof e?.then=="function"}function VS(e,t,s){if(!s.p.has(e)){s.p.add(e);const o=()=>s.p.delete(e);t.then(o,o)}}function BS(e,t,s){var o;const r=new Set;for(const u of((o=s.get(e))==null?void 0:o.t)||[])s.has(u)&&r.add(u);for(const u of t.p)r.add(u);return r}const _L=(e,t,...s)=>t.read(...s),kL=(e,t,...s)=>t.write(...s),SL=(e,t)=>{var s;return(s=t.unstable_onInit)==null?void 0:s.call(t,e)},CL=(e,t,s)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,s)},EL=(e,t)=>{var s;const o=en(e),r=o[0],u=o[6],c=o[9];if((Ks?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let f=r.get(t);return f||(f={d:new Map,p:new Set,n:0},r.set(t,f),(s=u.i)==null||s.call(u,t),c?.(e,t)),f},RL=e=>{const t=en(e),s=t[1],o=t[3],r=t[4],u=t[5],c=t[6],f=t[13],h=[],g=m=>{try{m()}catch(b){h.push(b)}};do{c.f&&g(c.f);const m=new Set,b=m.add.bind(m);o.forEach(y=>{var _;return(_=s.get(y))==null?void 0:_.l.forEach(b)}),o.clear(),u.forEach(b),u.clear(),r.forEach(b),r.clear(),m.forEach(g),o.size&&f(e)}while(o.size||u.size||r.size);if(h.length)throw new AggregateError(h)},xL=e=>{const t=en(e),s=t[1],o=t[2],r=t[3],u=t[11],c=t[14],f=t[17],h=[],g=new WeakSet,m=new WeakSet,b=Array.from(r);for(;b.length;){const y=b[b.length-1],_=u(e,y);if(m.has(y)){b.pop();continue}if(g.has(y)){if(o.get(y)===_.n)h.push([y,_]);else if((Ks?"production":void 0)!=="production"&&o.has(y))throw new Error("[Bug] invalidated atom exists");m.add(y),b.pop();continue}g.add(y);for(const k of BS(y,_,s))g.has(k)||b.push(k)}for(let y=h.length-1;y>=0;--y){const[_,k]=h[y];let S=!1;for(const C of k.d.keys())if(C!==_&&r.has(C)){S=!0;break}S&&(c(e,_),f(e,_)),o.delete(_)}},bp=new WeakSet,TL=(e,t)=>{var s,o;const r=en(e),u=r[1],c=r[2],f=r[3],h=r[6],g=r[7],m=r[11],b=r[12],y=r[13],_=r[14],k=r[16],S=r[17],C=m(e,t);if(R0(C)&&(u.has(t)&&c.get(t)!==C.n||Array.from(C.d).every(([P,V])=>_(e,P).n===V)))return C;C.d.clear();let R=!0;function T(){u.has(t)&&(S(e,t),y(e),b(e))}function A(P){var V;if(P===t){const z=m(e,P);if(!R0(z))if(US(P))mf(e,P,P.init);else throw new Error("no atom init");return hf(z)}const Z=_(e,P);try{return hf(Z)}finally{C.d.set(P,Z.n),IS(C.v)&&VS(t,C.v,Z),(V=u.get(P))==null||V.t.add(t),R||T()}}let w,x;const M={get signal(){return w||(w=new AbortController),w.signal},get setSelf(){return(Ks?"production":void 0)!=="production"&&!pp(t)&&console.warn("setSelf function cannot be used with read-only atom"),!x&&pp(t)&&(x=(...P)=>{if((Ks?"production":void 0)!=="production"&&R&&console.warn("setSelf function cannot be called in sync"),!R)try{return k(e,t,...P)}finally{y(e),b(e)}}),x}},L=C.n;try{(Ks?"production":void 0)!=="production"&&bp.delete(e);const P=g(e,t,A,M);return(Ks?"production":void 0)!=="production"&&bp.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),mf(e,t,P),pf(P)&&(mp(P,()=>w?.abort()),P.then(T,T)),(s=h.r)==null||s.call(h,t),C}catch(P){return delete C.v,C.e=P,++C.n,C}finally{R=!1,L!==C.n&&c.get(t)===L&&(c.set(t,C.n),f.add(t),(o=h.c)==null||o.call(h,t))}},wL=(e,t)=>{const s=en(e),o=s[1],r=s[2],u=s[11],c=[t];for(;c.length;){const f=c.pop(),h=u(e,f);for(const g of BS(f,h,o)){const m=u(e,g);r.set(g,m.n),c.push(g)}}},qS=(e,t,...s)=>{const o=en(e),r=o[3],u=o[6],c=o[8],f=o[11],h=o[12],g=o[13],m=o[14],b=o[15],y=o[17];let _=!0;const k=C=>hf(m(e,C)),S=(C,...R)=>{var T;const A=f(e,C);try{if(C===t){if(!US(C))throw new Error("atom not writable");(Ks?"production":void 0)!=="production"&&bp.add(e);const w=A.n,x=R[0];mf(e,C,x),y(e,C),w!==A.n&&(r.add(C),(T=u.c)==null||T.call(u,C),b(e,C));return}else return qS(e,C,...R)}finally{_||(g(e),h(e))}};try{return c(e,t,k,S,...s)}finally{_=!1}},OL=(e,t)=>{var s;const o=en(e),r=o[1],u=o[3],c=o[6],f=o[11],h=o[15],g=o[18],m=o[19],b=f(e,t),y=r.get(t);if(y&&!IS(b.v)){for(const[_,k]of b.d)if(!y.d.has(_)){const S=f(e,_);g(e,_).t.add(t),y.d.add(_),k!==S.n&&(u.add(_),(s=c.c)==null||s.call(c,_),h(e,_))}for(const _ of y.d||[])if(!b.d.has(_)){y.d.delete(_);const k=m(e,_);k?.t.delete(t)}}},HS=(e,t)=>{var s;const o=en(e),r=o[1],u=o[4],c=o[6],f=o[10],h=o[11],g=o[12],m=o[13],b=o[14],y=o[16],_=h(e,t);let k=r.get(t);if(!k){b(e,t);for(const S of _.d.keys())HS(e,S).t.add(t);if(k={l:new Set,d:new Set(_.d.keys()),t:new Set},r.set(t,k),(s=c.m)==null||s.call(c,t),pp(t)){const S=()=>{let C=!0;const R=(...T)=>{try{return y(e,t,...T)}finally{C||(m(e),g(e))}};try{const T=f(e,t,R);T&&(k.u=()=>{C=!0;try{T()}finally{C=!1}})}finally{C=!1}};u.add(S)}}return k},AL=(e,t)=>{var s;const o=en(e),r=o[1],u=o[5],c=o[6],f=o[11],h=o[19],g=f(e,t);let m=r.get(t);if(m&&!m.l.size&&!Array.from(m.t).some(b=>{var y;return(y=r.get(b))==null?void 0:y.d.has(t)})){m.u&&u.add(m.u),m=void 0,r.delete(t),(s=c.u)==null||s.call(c,t);for(const b of g.d.keys()){const y=h(e,b);y?.t.delete(t)}return}return m},mf=(e,t,s)=>{const o=en(e)[11],r=o(e,t),u="v"in r,c=r.v;if(pf(s))for(const f of r.d.keys())VS(t,s,o(e,f));r.v=s,delete r.e,(!u||!Object.is(c,r.v))&&(++r.n,pf(c)&&vL(c))},ML=(e,t)=>{const s=en(e)[14];return hf(s(e,t))},DL=(e,t,...s)=>{const o=en(e),r=o[12],u=o[13],c=o[16];try{return c(e,t,...s)}finally{u(e),r(e)}},LL=(e,t,s)=>{const o=en(e),r=o[12],u=o[18],c=o[19],h=u(e,t).l;return h.add(s),r(e),()=>{h.delete(s),c(e,t),r(e)}},FS=new WeakMap,en=e=>{const t=FS.get(e);if((Ks?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function PL(...e){const t={get(o){const r=en(t)[21];return r(t,o)},set(o,...r){const u=en(t)[22];return u(t,o,...r)},sub(o,r){const u=en(t)[23];return u(t,o,r)}},s=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},_L,kL,SL,CL,EL,RL,xL,TL,wL,qS,OL,HS,AL,mf,ML,DL,LL,void 0].map((o,r)=>e[r]||o);return FS.set(t,Object.freeze(s)),t}const KS={};let NL=0;function GS(e,t){const s=`atom${++NL}`,o={toString(){return(KS?"production":void 0)!=="production"&&this.debugLabel?s+":"+this.debugLabel:s}};return typeof e=="function"?o.read=e:(o.init=e,o.read=zL,o.write=$L),o}function zL(e){return e(this)}function $L(e,t,s){return t(this,typeof s=="function"?s(e(this)):s)}function jL(){return PL()}let Wr;function UL(){return Wr||(Wr=jL(),(KS?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Wr),globalThis.__JOTAI_DEFAULT_STORE__!==Wr&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Wr}const IL={},VL=E.createContext(void 0);function YS(e){return E.useContext(VL)||UL()}const yp=e=>typeof e?.then=="function",vp=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},BL=Ct.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(vp(e),e)}),wg=new WeakMap,x0=(e,t)=>{let s=wg.get(e);return s||(s=new Promise((o,r)=>{let u=e;const c=g=>m=>{u===g&&o(m)},f=g=>m=>{u===g&&r(m)},h=()=>{try{const g=t();yp(g)?(wg.set(g,s),u=g,g.then(c(g),f(g)),mp(g,h)):o(g)}catch(g){r(g)}};e.then(c(e),f(e)),mp(e,h)}),wg.set(e,s)),s};function qL(e,t){const{delay:s,unstable_promiseStatus:o=!Ct.use}={},r=YS(),[[u,c,f],h]=E.useReducer(m=>{const b=r.get(e);return Object.is(m[0],b)&&m[1]===r&&m[2]===e?m:[b,r,e]},void 0,()=>[r.get(e),r,e]);let g=u;if((c!==r||f!==e)&&(h(),g=r.get(e)),E.useEffect(()=>{const m=r.sub(e,()=>{if(o)try{const b=r.get(e);yp(b)&&vp(x0(b,()=>r.get(e)))}catch{}if(typeof s=="number"){setTimeout(h,s);return}h()});return h(),m},[r,e,s,o]),E.useDebugValue(g),yp(g)){const m=x0(g,()=>r.get(e));return o&&vp(m),BL(m)}return g}function HL(e,t){const s=YS();return E.useCallback((...r)=>{if((IL?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return s.set(e,...r)},[s,e])}function FL(e,t){return[qL(e),HL(e)]}function KL(e,t){e.indexOf(t)===-1&&e.push(t)}function QS(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}const Ao=(e,t,s)=>s>t?t:s<e?e:s;let Dm=()=>{};const Xs={},XS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function GL(e){return typeof e=="object"&&e!==null}const WS=e=>/^0[^.\s]+$/u.test(e);function Lm(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ka=e=>e,YL=(e,t)=>s=>t(e(s)),Pm=(...e)=>e.reduce(YL),Nm=(e,t,s)=>{const o=t-e;return o===0?1:(s-e)/o};class ZS{constructor(){this.subscriptions=[]}add(t){return KL(this.subscriptions,t),()=>QS(this.subscriptions,t)}notify(t,s,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,s,o);else for(let u=0;u<r;u++){const c=this.subscriptions[u];c&&c(t,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ss=e=>e*1e3,us=e=>e/1e3;function JS(e,t){return t?e*(1e3/t):0}const QL=(e,t,s)=>{const o=t-e;return((s-e)%o+o)%o+e},eC=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,XL=1e-7,WL=12;function ZL(e,t,s,o,r){let u,c,f=0;do c=t+(s-t)/2,u=eC(c,o,r)-e,u>0?s=c:t=c;while(Math.abs(u)>XL&&++f<WL);return c}function Nl(e,t,s,o){if(e===t&&s===o)return Ka;const r=u=>ZL(u,0,1,e,s);return u=>u===0||u===1?u:eC(r(u),t,o)}const tC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nC=e=>t=>1-e(1-t),sC=Nl(.33,1.53,.69,.99),zm=nC(sC),iC=tC(zm),oC=e=>(e*=2)<1?.5*zm(e):.5*(2-Math.pow(2,-10*(e-1))),$m=e=>1-Math.sin(Math.acos(e)),JL=nC($m),aC=tC($m),e5=Nl(.42,0,1,1),t5=Nl(0,0,.58,1),rC=Nl(.42,0,.58,1),lC=e=>Array.isArray(e)&&typeof e[0]!="number";function uC(e,t){return lC(e)?e[QL(0,e.length,t)]:e}const cC=e=>Array.isArray(e)&&typeof e[0]=="number",n5={linear:Ka,easeIn:e5,easeInOut:rC,easeOut:t5,circIn:$m,circInOut:aC,circOut:JL,backIn:zm,backInOut:iC,backOut:sC,anticipate:oC},s5=e=>typeof e=="string",T0=e=>{if(cC(e)){Dm(e.length===4);const[t,s,o,r]=e;return Nl(t,s,o,r)}else if(s5(e))return n5[e];return e},_c=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function i5(e,t){let s=new Set,o=new Set,r=!1,u=!1;const c=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function h(m){c.has(m)&&(g.schedule(m),e()),m(f)}const g={schedule:(m,b=!1,y=!1)=>{const k=y&&r?s:o;return b&&c.add(m),k.has(m)||k.add(m),m},cancel:m=>{o.delete(m),c.delete(m)},process:m=>{if(f=m,r){u=!0;return}r=!0,[s,o]=[o,s],s.forEach(h),s.clear(),r=!1,u&&(u=!1,g.process(m))}};return g}const o5=40;function fC(e,t){let s=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},u=()=>s=!0,c=_c.reduce((A,w)=>(A[w]=i5(u),A),{}),{setup:f,read:h,resolveKeyframes:g,preUpdate:m,update:b,preRender:y,render:_,postRender:k}=c,S=()=>{const A=Xs.useManualTiming?r.timestamp:performance.now();s=!1,Xs.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(A-r.timestamp,o5),1)),r.timestamp=A,r.isProcessing=!0,f.process(r),h.process(r),g.process(r),m.process(r),b.process(r),y.process(r),_.process(r),k.process(r),r.isProcessing=!1,s&&t&&(o=!1,e(S))},C=()=>{s=!0,o=!0,r.isProcessing||e(S)};return{schedule:_c.reduce((A,w)=>{const x=c[w];return A[w]=(M,L=!1,P=!1)=>(s||C(),x.schedule(M,L,P)),A},{}),cancel:A=>{for(let w=0;w<_c.length;w++)c[_c[w]].cancel(A)},state:r,steps:c}}const{schedule:Ws,cancel:_p,state:bf}=fC(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ka,!0);let jc;function a5(){jc=void 0}const Zn={now:()=>(jc===void 0&&Zn.set(bf.isProcessing||Xs.useManualTiming?bf.timestamp:performance.now()),jc),set:e=>{jc=e,queueMicrotask(a5)}},dC=e=>t=>typeof t=="string"&&t.startsWith(e),hC=dC("--"),r5=dC("var(--"),jm=e=>r5(e)?l5.test(e.split("/*")[0].trim()):!1,l5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ga={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},El={...Ga,transform:e=>Ao(0,1,e)},kc={...Ga,default:1},gl=e=>Math.round(e*1e5)/1e5,Um=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function u5(e){return e==null}const c5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Im=(e,t)=>s=>!!(typeof s=="string"&&c5.test(s)&&s.startsWith(e)||t&&!u5(s)&&Object.prototype.hasOwnProperty.call(s,t)),gC=(e,t,s)=>o=>{if(typeof o!="string")return o;const[r,u,c,f]=o.match(Um);return{[e]:parseFloat(r),[t]:parseFloat(u),[s]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},f5=e=>Ao(0,255,e),Og={...Ga,transform:e=>Math.round(f5(e))},po={test:Im("rgb","red"),parse:gC("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:o=1})=>"rgba("+Og.transform(e)+", "+Og.transform(t)+", "+Og.transform(s)+", "+gl(El.transform(o))+")"};function d5(e){let t="",s="",o="",r="";return e.length>5?(t=e.substring(1,3),s=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),s=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,s+=s,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const kp={test:Im("#"),parse:d5,transform:po.transform},zl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wi=zl("deg"),Ma=zl("%"),Le=zl("px"),h5=zl("vh"),g5=zl("vw"),w0={...Ma,parse:e=>Ma.parse(e)/100,transform:e=>Ma.transform(e*100)},Ra={test:Im("hsl","hue"),parse:gC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:o=1})=>"hsla("+Math.round(e)+", "+Ma.transform(gl(t))+", "+Ma.transform(gl(s))+", "+gl(El.transform(o))+")"},Ot={test:e=>po.test(e)||kp.test(e)||Ra.test(e),parse:e=>po.test(e)?po.parse(e):Ra.test(e)?Ra.parse(e):kp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?po.transform(e):Ra.transform(e),getAnimatableNone:e=>{const t=Ot.parse(e);return t.alpha=0,Ot.transform(t)}},p5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function m5(e){return isNaN(e)&&typeof e=="string"&&(e.match(Um)?.length||0)+(e.match(p5)?.length||0)>0}const pC="number",mC="color",b5="var",y5="var(",O0="${}",v5=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Rl(e){const t=e.toString(),s=[],o={color:[],number:[],var:[]},r=[];let u=0;const f=t.replace(v5,h=>(Ot.test(h)?(o.color.push(u),r.push(mC),s.push(Ot.parse(h))):h.startsWith(y5)?(o.var.push(u),r.push(b5),s.push(h)):(o.number.push(u),r.push(pC),s.push(parseFloat(h))),++u,O0)).split(O0);return{values:s,split:f,indexes:o,types:r}}function bC(e){return Rl(e).values}function yC(e){const{split:t,types:s}=Rl(e),o=t.length;return r=>{let u="";for(let c=0;c<o;c++)if(u+=t[c],r[c]!==void 0){const f=s[c];f===pC?u+=gl(r[c]):f===mC?u+=Ot.transform(r[c]):u+=r[c]}return u}}const _5=e=>typeof e=="number"?0:Ot.test(e)?Ot.getAnimatableNone(e):e;function k5(e){const t=bC(e);return yC(e)(t.map(_5))}const Ya={test:m5,parse:bC,createTransformer:yC,getAnimatableNone:k5};function Ag(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function S5({hue:e,saturation:t,lightness:s,alpha:o}){e/=360,t/=100,s/=100;let r=0,u=0,c=0;if(!t)r=u=c=s;else{const f=s<.5?s*(1+t):s+t-s*t,h=2*s-f;r=Ag(h,f,e+1/3),u=Ag(h,f,e),c=Ag(h,f,e-1/3)}return{red:Math.round(r*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:o}}function yf(e,t){return s=>s>0?t:e}const $l=(e,t,s)=>e+(t-e)*s,Mg=(e,t,s)=>{const o=e*e,r=s*(t*t-o)+o;return r<0?0:Math.sqrt(r)},C5=[kp,po,Ra],E5=e=>C5.find(t=>t.test(e));function A0(e){const t=E5(e);if(!t)return!1;let s=t.parse(e);return t===Ra&&(s=S5(s)),s}const M0=(e,t)=>{const s=A0(e),o=A0(t);if(!s||!o)return yf(e,t);const r={...s};return u=>(r.red=Mg(s.red,o.red,u),r.green=Mg(s.green,o.green,u),r.blue=Mg(s.blue,o.blue,u),r.alpha=$l(s.alpha,o.alpha,u),po.transform(r))},Sp=new Set(["none","hidden"]);function R5(e,t){return Sp.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function x5(e,t){return s=>$l(e,t,s)}function Vm(e){return typeof e=="number"?x5:typeof e=="string"?jm(e)?yf:Ot.test(e)?M0:O5:Array.isArray(e)?vC:typeof e=="object"?Ot.test(e)?M0:T5:yf}function vC(e,t){const s=[...e],o=s.length,r=e.map((u,c)=>Vm(u)(u,t[c]));return u=>{for(let c=0;c<o;c++)s[c]=r[c](u);return s}}function T5(e,t){const s={...e,...t},o={};for(const r in s)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Vm(e[r])(e[r],t[r]));return r=>{for(const u in o)s[u]=o[u](r);return s}}function w5(e,t){const s=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const u=t.types[r],c=e.indexes[u][o[u]],f=e.values[c]??0;s[r]=f,o[u]++}return s}const O5=(e,t)=>{const s=Ya.createTransformer(t),o=Rl(e),r=Rl(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Sp.has(e)&&!r.values.length||Sp.has(t)&&!o.values.length?R5(e,t):Pm(vC(w5(o,r),r.values),s):yf(e,t)};function _C(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?$l(e,t,s):Vm(e)(e,t)}const A5=e=>{const t=({timestamp:s})=>e(s);return{start:(s=!0)=>Ws.update(t,s),stop:()=>_p(t),now:()=>bf.isProcessing?bf.timestamp:Zn.now()}},kC=(e,t,s=10)=>{let o="";const r=Math.max(Math.round(t/s),2);for(let u=0;u<r;u++)o+=Math.round(e(u/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},vf=2e4;function Bm(e){let t=0;const s=50;let o=e.next(t);for(;!o.done&&t<vf;)t+=s,o=e.next(t);return t>=vf?1/0:t}function SC(e,t=100,s){const o=s({...e,keyframes:[0,t]}),r=Math.min(Bm(o),vf);return{type:"keyframes",ease:u=>o.next(r*u).value/t,duration:us(r)}}const M5=5;function CC(e,t,s){const o=Math.max(t-M5,0);return JS(s-e(o),t-o)}const bt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Dg=.001;function D5({duration:e=bt.duration,bounce:t=bt.bounce,velocity:s=bt.velocity,mass:o=bt.mass}){let r,u,c=1-t;c=Ao(bt.minDamping,bt.maxDamping,c),e=Ao(bt.minDuration,bt.maxDuration,us(e)),c<1?(r=g=>{const m=g*c,b=m*e,y=m-s,_=Cp(g,c),k=Math.exp(-b);return Dg-y/_*k},u=g=>{const b=g*c*e,y=b*s+s,_=Math.pow(c,2)*Math.pow(g,2)*e,k=Math.exp(-b),S=Cp(Math.pow(g,2),c);return(-r(g)+Dg>0?-1:1)*((y-_)*k)/S}):(r=g=>{const m=Math.exp(-g*e),b=(g-s)*e+1;return-Dg+m*b},u=g=>{const m=Math.exp(-g*e),b=(s-g)*(e*e);return m*b});const f=5/e,h=P5(r,u,f);if(e=Ss(e),isNaN(h))return{stiffness:bt.stiffness,damping:bt.damping,duration:e};{const g=Math.pow(h,2)*o;return{stiffness:g,damping:c*2*Math.sqrt(o*g),duration:e}}}const L5=12;function P5(e,t,s){let o=s;for(let r=1;r<L5;r++)o=o-e(o)/t(o);return o}function Cp(e,t){return e*Math.sqrt(1-t*t)}const N5=["duration","bounce"],z5=["stiffness","damping","mass"];function D0(e,t){return t.some(s=>e[s]!==void 0)}function $5(e){let t={velocity:bt.velocity,stiffness:bt.stiffness,damping:bt.damping,mass:bt.mass,isResolvedFromDuration:!1,...e};if(!D0(e,z5)&&D0(e,N5))if(e.visualDuration){const s=e.visualDuration,o=2*Math.PI/(s*1.2),r=o*o,u=2*Ao(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:bt.mass,stiffness:r,damping:u}}else{const s=D5(e);t={...t,...s,mass:bt.mass},t.isResolvedFromDuration=!0}return t}function xl(e=bt.visualDuration,t=bt.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=s;const u=s.keyframes[0],c=s.keyframes[s.keyframes.length-1],f={done:!1,value:u},{stiffness:h,damping:g,mass:m,duration:b,velocity:y,isResolvedFromDuration:_}=$5({...s,velocity:-us(s.velocity||0)}),k=y||0,S=g/(2*Math.sqrt(h*m)),C=c-u,R=us(Math.sqrt(h/m)),T=Math.abs(C)<5;o||(o=T?bt.restSpeed.granular:bt.restSpeed.default),r||(r=T?bt.restDelta.granular:bt.restDelta.default);let A;if(S<1){const x=Cp(R,S);A=M=>{const L=Math.exp(-S*R*M);return c-L*((k+S*R*C)/x*Math.sin(x*M)+C*Math.cos(x*M))}}else if(S===1)A=x=>c-Math.exp(-R*x)*(C+(k+R*C)*x);else{const x=R*Math.sqrt(S*S-1);A=M=>{const L=Math.exp(-S*R*M),P=Math.min(x*M,300);return c-L*((k+S*R*C)*Math.sinh(P)+x*C*Math.cosh(P))/x}}const w={calculatedDuration:_&&b||null,next:x=>{const M=A(x);if(_)f.done=x>=b;else{let L=x===0?k:0;S<1&&(L=x===0?Ss(k):CC(A,x,M));const P=Math.abs(L)<=o,V=Math.abs(c-M)<=r;f.done=P&&V}return f.value=f.done?c:M,f},toString:()=>{const x=Math.min(Bm(w),vf),M=kC(L=>w.next(x*L).value,x,30);return x+"ms "+M},toTransition:()=>{}};return w}xl.applyToOptions=e=>{const t=SC(e,100,xl);return e.ease=t.ease,e.duration=Ss(t.duration),e.type="keyframes",e};function Ep({keyframes:e,velocity:t=0,power:s=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:u=500,modifyTarget:c,min:f,max:h,restDelta:g=.5,restSpeed:m}){const b=e[0],y={done:!1,value:b},_=P=>f!==void 0&&P<f||h!==void 0&&P>h,k=P=>f===void 0?h:h===void 0||Math.abs(f-P)<Math.abs(h-P)?f:h;let S=s*t;const C=b+S,R=c===void 0?C:c(C);R!==C&&(S=R-b);const T=P=>-S*Math.exp(-P/o),A=P=>R+T(P),w=P=>{const V=T(P),Z=A(P);y.done=Math.abs(V)<=g,y.value=y.done?R:Z};let x,M;const L=P=>{_(y.value)&&(x=P,M=xl({keyframes:[y.value,k(y.value)],velocity:CC(A,P,y.value),damping:r,stiffness:u,restDelta:g,restSpeed:m}))};return L(0),{calculatedDuration:null,next:P=>{let V=!1;return!M&&x===void 0&&(V=!0,w(P),L(P)),x!==void 0&&P>=x?M.next(P-x):(!V&&w(P),y)}}}function j5(e,t,s){const o=[],r=s||Xs.mix||_C,u=e.length-1;for(let c=0;c<u;c++){let f=r(e[c],e[c+1]);if(t){const h=Array.isArray(t)?t[c]||Ka:t;f=Pm(h,f)}o.push(f)}return o}function U5(e,t,{clamp:s=!0,ease:o,mixer:r}={}){const u=e.length;if(Dm(u===t.length),u===1)return()=>t[0];if(u===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=j5(t,o,r),h=f.length,g=m=>{if(c&&m<e[0])return t[0];let b=0;if(h>1)for(;b<e.length-2&&!(m<e[b+1]);b++);const y=Nm(e[b],e[b+1],m);return f[b](y)};return s?m=>g(Ao(e[0],e[u-1],m)):g}function EC(e,t){const s=e[e.length-1];for(let o=1;o<=t;o++){const r=Nm(0,t,o);e.push($l(s,1,r))}}function RC(e){const t=[0];return EC(t,e.length-1),t}function I5(e,t){return e.map(s=>s*t)}function V5(e,t){return e.map(()=>t||rC).splice(0,e.length-1)}function pl({duration:e=300,keyframes:t,times:s,ease:o="easeInOut"}){const r=lC(o)?o.map(T0):T0(o),u={done:!1,value:t[0]},c=I5(s&&s.length===t.length?s:RC(t),e),f=U5(c,t,{ease:Array.isArray(r)?r:V5(t,r)});return{calculatedDuration:e,next:h=>(u.value=f(h),u.done=h>=e,u)}}const B5=e=>e!==null;function qm(e,{repeat:t,repeatType:s="loop"},o,r=1){const u=e.filter(B5),f=r<0||t&&s!=="loop"&&t%2===1?0:u.length-1;return!f||o===void 0?u[f]:o}const q5={decay:Ep,inertia:Ep,tween:pl,keyframes:pl,spring:xl};function xC(e){typeof e.type=="string"&&(e.type=q5[e.type])}class Hm{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,s){return this.finished.then(t,s)}}const H5=e=>e/100;class Fm extends Hm{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==Zn.now()&&this.tick(Zn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;xC(t);const{type:s=pl,repeat:o=0,repeatDelay:r=0,repeatType:u,velocity:c=0}=t;let{keyframes:f}=t;const h=s||pl;h!==pl&&typeof f[0]!="number"&&(this.mixKeyframes=Pm(H5,_C(f[0],f[1])),f=[0,100]);const g=h({...t,keyframes:f});u==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...f].reverse(),velocity:-c})),g.calculatedDuration===null&&(g.calculatedDuration=Bm(g));const{calculatedDuration:m}=g;this.calculatedDuration=m,this.resolvedDuration=m+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=g}updateTime(t){const s=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(t,s=!1){const{generator:o,totalDuration:r,mixKeyframes:u,mirroredGenerator:c,resolvedDuration:f,calculatedDuration:h}=this;if(this.startTime===null)return o.next(0);const{delay:g=0,keyframes:m,repeat:b,repeatType:y,repeatDelay:_,type:k,onUpdate:S,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),s?this.currentTime=t:this.updateTime(t);const R=this.currentTime-g*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?R<0:R>r;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let A=this.currentTime,w=o;if(b){const P=Math.min(this.currentTime,r)/f;let V=Math.floor(P),Z=P%1;!Z&&P>=1&&(Z=1),Z===1&&V--,V=Math.min(V,b+1),!!(V%2)&&(y==="reverse"?(Z=1-Z,_&&(Z-=_/f)):y==="mirror"&&(w=c)),A=Ao(0,1,Z)*f}const x=T?{done:!1,value:m[0]}:w.next(A);u&&(x.value=u(x.value));let{done:M}=x;!T&&h!==null&&(M=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return L&&k!==Ep&&(x.value=qm(m,this.options,C,this.speed)),S&&S(x.value),L&&this.finish(),x}then(t,s){return this.finished.then(t,s)}get duration(){return us(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+us(t)}get time(){return us(this.currentTime)}set time(t){t=Ss(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Zn.now());const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=us(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=A5,startTime:s}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=s??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Zn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function F5(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const mo=e=>e*180/Math.PI,Rp=e=>{const t=mo(Math.atan2(e[1],e[0]));return xp(t)},K5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Rp,rotateZ:Rp,skewX:e=>mo(Math.atan(e[1])),skewY:e=>mo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xp=e=>(e=e%360,e<0&&(e+=360),e),L0=Rp,P0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),N0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),G5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:P0,scaleY:N0,scale:e=>(P0(e)+N0(e))/2,rotateX:e=>xp(mo(Math.atan2(e[6],e[5]))),rotateY:e=>xp(mo(Math.atan2(-e[2],e[0]))),rotateZ:L0,rotate:L0,skewX:e=>mo(Math.atan(e[4])),skewY:e=>mo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Tp(e){return e.includes("scale")?1:0}function wp(e,t){if(!e||e==="none")return Tp(t);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(s)o=G5,r=s;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=K5,r=f}if(!r)return Tp(t);const u=o[t],c=r[1].split(",").map(Q5);return typeof u=="function"?u(c):c[u]}const Y5=(e,t)=>{const{transform:s="none"}=getComputedStyle(e);return wp(s,t)};function Q5(e){return parseFloat(e.trim())}const Qa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xa=new Set(Qa),z0=e=>e===Ga||e===Le,X5=new Set(["x","y","z"]),W5=Qa.filter(e=>!X5.has(e));function Z5(e){const t=[];return W5.forEach(s=>{const o=e.getValue(s);o!==void 0&&(t.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),t}const Co={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>wp(t,"x"),y:(e,{transform:t})=>wp(t,"y")};Co.translateX=Co.x;Co.translateY=Co.y;const Eo=new Set;let Op=!1,Ap=!1,Mp=!1;function TC(){if(Ap){const e=Array.from(Eo).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),s=new Map;t.forEach(o=>{const r=Z5(o);r.length&&(s.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=s.get(o);r&&r.forEach(([u,c])=>{o.getValue(u)?.set(c)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Ap=!1,Op=!1,Eo.forEach(e=>e.complete(Mp)),Eo.clear()}function wC(){Eo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ap=!0)})}function J5(){Mp=!0,wC(),TC(),Mp=!1}class Km{constructor(t,s,o,r,u,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=o,this.motionValue=r,this.element=u,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Eo.add(this),Op||(Op=!0,Ws.read(wC),Ws.resolveKeyframes(TC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:o,motionValue:r}=this;if(t[0]===null){const u=r?.get(),c=t[t.length-1];if(u!==void 0)t[0]=u;else if(o&&s){const f=o.readValue(s,c);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=c),r&&u===void 0&&r.set(t[0])}F5(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Eo.delete(this)}cancel(){this.state==="scheduled"&&(Eo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const eP=e=>e.startsWith("--");function tP(e,t,s){eP(t)?e.style.setProperty(t,s):e.style[t]=s}const nP=Lm(()=>window.ScrollTimeline!==void 0),sP={};function iP(e,t){const s=Lm(e);return()=>sP[t]??s()}const OC=iP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ol=([e,t,s,o])=>`cubic-bezier(${e}, ${t}, ${s}, ${o})`,$0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ol([0,.65,.55,1]),circOut:ol([.55,0,1,.45]),backIn:ol([.31,.01,.66,-.59]),backOut:ol([.33,1.53,.69,.99])};function AC(e,t){if(e)return typeof e=="function"?OC()?kC(e,t):"ease-out":cC(e)?ol(e):Array.isArray(e)?e.map(s=>AC(s,t)||$0.easeOut):$0[e]}function oP(e,t,s,{delay:o=0,duration:r=300,repeat:u=0,repeatType:c="loop",ease:f="easeOut",times:h}={},g=void 0){const m={[t]:s};h&&(m.offset=h);const b=AC(f,r);Array.isArray(b)&&(m.easing=b);const y={delay:o,duration:r,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return g&&(y.pseudoElement=g),e.animate(m,y)}function Gm(e){return typeof e=="function"&&"applyToOptions"in e}function aP({type:e,...t}){return Gm(e)&&OC()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class rP extends Hm{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:s,name:o,keyframes:r,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:f,onComplete:h}=t;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=t,Dm(typeof t.type!="string");const g=aP(t);this.animation=oP(s,o,r,g,u),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const m=qm(r,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(m):tP(s,o,m),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return us(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+us(t)}get time(){return us(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ss(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&nP()?(this.animation.timeline=t,Ka):s(this)}}const MC={anticipate:oC,backInOut:iC,circInOut:aC};function lP(e){return e in MC}function uP(e){typeof e.ease=="string"&&lP(e.ease)&&(e.ease=MC[e.ease])}const j0=10;class cP extends rP{constructor(t){uP(t),xC(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:s,onUpdate:o,onComplete:r,element:u,...c}=this.options;if(!s)return;if(t!==void 0){s.set(t);return}const f=new Fm({...c,autoplay:!1}),h=Ss(this.finishedTime??this.time);s.setWithVelocity(f.sample(h-j0).value,f.sample(h).value,j0),f.stop()}}const U0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ya.test(e)||e==="0")&&!e.startsWith("url("));function fP(e){const t=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==t)return!0}function dP(e,t,s,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const u=e[e.length-1],c=U0(r,t),f=U0(u,t);return!c||!f?!1:fP(e)||(s==="spring"||Gm(s))&&o}function Dp(e){e.duration=0,e.type="keyframes"}const hP=new Set(["opacity","clipPath","filter","transform"]),gP=Lm(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function pP(e){const{motionValue:t,name:s,repeatDelay:o,repeatType:r,damping:u,type:c}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:g}=t.owner.getProps();return gP()&&s&&hP.has(s)&&(s!=="transform"||!g)&&!h&&!o&&r!=="mirror"&&u!==0&&c!=="inertia"}const mP=40;class bP extends Hm{constructor({autoplay:t=!0,delay:s=0,type:o="keyframes",repeat:r=0,repeatDelay:u=0,repeatType:c="loop",keyframes:f,name:h,motionValue:g,element:m,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Zn.now();const y={autoplay:t,delay:s,type:o,repeat:r,repeatDelay:u,repeatType:c,name:h,motionValue:g,element:m,...b},_=m?.KeyframeResolver||Km;this.keyframeResolver=new _(f,(k,S,C)=>this.onKeyframesResolved(k,S,y,!C),h,g,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,s,o,r){this.keyframeResolver=void 0;const{name:u,type:c,velocity:f,delay:h,isHandoff:g,onUpdate:m}=o;this.resolvedAt=Zn.now(),dP(t,u,c,f)||((Xs.instantAnimations||!h)&&m?.(qm(t,o,s)),t[0]=t[t.length-1],Dp(o),o.repeat=0);const y={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>mP?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:t},_=!g&&pP(y)?new cP({...y,element:y.motionValue.owner.current}):new Fm(y);_.finished.then(()=>this.notifyFinished()).catch(Ka),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(t,s){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),J5()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class yP{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,s){for(let o=0;o<this.animations.length;o++)this.animations[o][t]=s}attachTimeline(t){const s=this.animations.map(o=>o.attachTimeline(t));return()=>{s.forEach((o,r)=>{o&&o(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return I0(this.animations,"duration")}get iterationDuration(){return I0(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(s=>s[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function I0(e,t){let s=0;for(let o=0;o<e.length;o++){const r=e[o][t];r!==null&&r>s&&(s=r)}return s}class vP extends yP{then(t,s){return this.finished.finally(t).then(()=>{})}}const _P=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kP(e){const t=_P.exec(e);if(!t)return[,];const[,s,o,r]=t;return[`--${s??o}`,r]}function DC(e,t,s=1){const[o,r]=kP(e);if(!o)return;const u=window.getComputedStyle(t).getPropertyValue(o);if(u){const c=u.trim();return XS(c)?parseFloat(c):c}return jm(r)?DC(r,t,s+1):r}function LC(e,t){return e?.[t]??e?.default??e}const PC=new Set(["width","height","top","left","right","bottom",...Qa]),SP={test:e=>e==="auto",parse:e=>e},NC=e=>t=>t.test(e),zC=[Ga,Le,Ma,wi,g5,h5,SP],V0=e=>zC.find(NC(e));function CP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WS(e):!0}const EP=new Set(["brightness","contrast","saturate","opacity"]);function RP(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=s.match(Um)||[];if(!o)return e;const r=s.replace(o,"");let u=EP.has(t)?1:0;return o!==s&&(u*=100),t+"("+u+r+")"}const xP=/\b([a-z-]*)\(.*?\)/gu,Lp={...Ya,getAnimatableNone:e=>{const t=e.match(xP);return t?t.map(RP).join(" "):e}},B0={...Ga,transform:Math.round},TP={rotate:wi,rotateX:wi,rotateY:wi,rotateZ:wi,scale:kc,scaleX:kc,scaleY:kc,scaleZ:kc,skew:wi,skewX:wi,skewY:wi,distance:Le,translateX:Le,translateY:Le,translateZ:Le,x:Le,y:Le,z:Le,perspective:Le,transformPerspective:Le,opacity:El,originX:w0,originY:w0,originZ:Le},Ym={borderWidth:Le,borderTopWidth:Le,borderRightWidth:Le,borderBottomWidth:Le,borderLeftWidth:Le,borderRadius:Le,radius:Le,borderTopLeftRadius:Le,borderTopRightRadius:Le,borderBottomRightRadius:Le,borderBottomLeftRadius:Le,width:Le,maxWidth:Le,height:Le,maxHeight:Le,top:Le,right:Le,bottom:Le,left:Le,padding:Le,paddingTop:Le,paddingRight:Le,paddingBottom:Le,paddingLeft:Le,margin:Le,marginTop:Le,marginRight:Le,marginBottom:Le,marginLeft:Le,backgroundPositionX:Le,backgroundPositionY:Le,...TP,zIndex:B0,fillOpacity:El,strokeOpacity:El,numOctaves:B0},wP={...Ym,color:Ot,backgroundColor:Ot,outlineColor:Ot,fill:Ot,stroke:Ot,borderColor:Ot,borderTopColor:Ot,borderRightColor:Ot,borderBottomColor:Ot,borderLeftColor:Ot,filter:Lp,WebkitFilter:Lp},$C=e=>wP[e];function jC(e,t){let s=$C(e);return s!==Lp&&(s=Ya),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const OP=new Set(["auto","none","0"]);function AP(e,t,s){let o=0,r;for(;o<e.length&&!r;){const u=e[o];typeof u=="string"&&!OP.has(u)&&Rl(u).values.length&&(r=e[o]),o++}if(r&&s)for(const u of t)e[u]=jC(s,r)}class MP extends Km{constructor(t,s,o,r,u){super(t,s,o,r,u,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let g=t[h];if(typeof g=="string"&&(g=g.trim(),jm(g))){const m=DC(g,s.current);m!==void 0&&(t[h]=m),h===t.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!PC.has(o)||t.length!==2)return;const[r,u]=t,c=V0(r),f=V0(u);if(c!==f)if(z0(c)&&z0(f))for(let h=0;h<t.length;h++){const g=t[h];typeof g=="string"&&(t[h]=parseFloat(g))}else Co[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||CP(t[r]))&&o.push(r);o.length&&AP(t,o,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Co[o](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const r=s[s.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){const{element:t,name:s,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(s);r&&r.jump(this.measuredOrigin,!1);const u=o.length-1,c=o[u];o[u]=Co[s](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function DP(e,t,s){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const r=s?.[e]??o.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const UC=(e,t)=>t&&typeof e=="number"?t.transform(e):e,q0=30,LP=e=>!isNaN(parseFloat(e));class PP{constructor(t,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const r=Zn.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=Zn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=LP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new ZS);const o=this.events[t].add(s);return t==="change"?()=>{o(),Ws.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Zn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>q0)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,q0);return JS(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tl(e,t){return new PP(e,t)}const{schedule:NP}=fC(queueMicrotask,!1);function IC(e){return GL(e)&&"ownerSVGElement"in e}function zP(e){return IC(e)&&e.tagName==="svg"}const un=e=>!!(e&&e.getVelocity),$P=[...zC,Ot,Ya],jP=e=>$P.find(NC(e));function Qm(e){return typeof e=="object"&&!Array.isArray(e)}function VC(e,t,s,o){return typeof e=="string"&&Qm(t)?DP(e,s,o):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function UP(e,t,s){return e*(t+1)}function H0(e,t,s,o){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?s:t.startsWith("<")?Math.max(0,s+parseFloat(t.slice(1))):o.get(t)??e}function IP(e,t,s){for(let o=0;o<e.length;o++){const r=e[o];r.at>t&&r.at<s&&(QS(e,r),o--)}}function VP(e,t,s,o,r,u){IP(e,r,u);for(let c=0;c<t.length;c++)e.push({value:t[c],at:$l(r,u,o[c]),easing:uC(s,c)})}function BP(e,t){for(let s=0;s<e.length;s++)e[s]=e[s]/(t+1)}function qP(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const HP="easeInOut";function FP(e,{defaultTransition:t={},...s}={},o,r){const u=t.duration||.3,c=new Map,f=new Map,h={},g=new Map;let m=0,b=0,y=0;for(let _=0;_<e.length;_++){const k=e[_];if(typeof k=="string"){g.set(k,b);continue}else if(!Array.isArray(k)){g.set(k.name,H0(b,k.at,m,g));continue}let[S,C,R={}]=k;R.at!==void 0&&(b=H0(b,R.at,m,g));let T=0;const A=(w,x,M,L=0,P=0)=>{const V=KP(w),{delay:Z=0,times:z=RC(V),type:Q="keyframes",repeat:B,repeatType:q,repeatDelay:J=0,...D}=x;let{ease:I=t.ease||"easeOut",duration:U}=x;const oe=typeof Z=="function"?Z(L,P):Z,ae=V.length,N=Gm(Q)?Q:r?.[Q||"keyframes"];if(ae<=2&&N){let fe=100;if(ae===2&&QP(V)){const de=V[1]-V[0];fe=Math.abs(de)}const le={...D};U!==void 0&&(le.duration=Ss(U));const ue=SC(le,fe,N);I=ue.ease,U=ue.duration}U??(U=u);const K=b+oe;z.length===1&&z[0]===0&&(z[1]=1);const X=z.length-V.length;if(X>0&&EC(z,X),V.length===1&&V.unshift(null),B){U=UP(U,B);const fe=[...V],le=[...z];I=Array.isArray(I)?[...I]:[I];const ue=[...I];for(let de=0;de<B;de++){V.push(...fe);for(let ye=0;ye<fe.length;ye++)z.push(le[ye]+(de+1)),I.push(ye===0?"linear":uC(ue,ye-1))}BP(z,B)}const re=K+U;VP(M,V,I,z,K,re),T=Math.max(oe+U,T),y=Math.max(re,y)};if(un(S)){const w=F0(S,f);A(C,R,K0("default",w))}else{const w=VC(S,C,o,h),x=w.length;for(let M=0;M<x;M++){C=C,R=R;const L=w[M],P=F0(L,f);for(const V in C)A(C[V],GP(R,V),K0(V,P),M,x)}}m=b,b+=T}return f.forEach((_,k)=>{for(const S in _){const C=_[S];C.sort(qP);const R=[],T=[],A=[];for(let x=0;x<C.length;x++){const{at:M,value:L,easing:P}=C[x];R.push(L),T.push(Nm(0,y,M)),A.push(P||"easeOut")}T[0]!==0&&(T.unshift(0),R.unshift(R[0]),A.unshift(HP)),T[T.length-1]!==1&&(T.push(1),R.push(null)),c.has(k)||c.set(k,{keyframes:{},transition:{}});const w=c.get(k);w.keyframes[S]=R,w.transition[S]={...t,duration:y,ease:A,times:T,...s}}}),c}function F0(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function K0(e,t){return t[e]||(t[e]=[]),t[e]}function KP(e){return Array.isArray(e)?e:[e]}function GP(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const YP=e=>typeof e=="number",QP=e=>e.every(YP),wl=new WeakMap,XP=e=>Array.isArray(e);function G0(e){const t=[{},{}];return e?.values.forEach((s,o)=>{t[0][o]=s.get(),t[1][o]=s.getVelocity()}),t}function BC(e,t,s,o){if(typeof t=="function"){const[r,u]=G0(o);t=t(s!==void 0?s:e.custom,r,u)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,u]=G0(o);t=t(s!==void 0?s:e.custom,r,u)}return t}function WP(e,t,s){const o=e.getProps();return BC(o,t,o.custom,e)}function ZP(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,Tl(s))}function JP(e){return XP(e)?e[e.length-1]||0:e}function eN(e,t){const s=WP(e,t);let{transitionEnd:o={},transition:r={},...u}=s||{};u={...u,...o};for(const c in u){const f=JP(u[c]);ZP(e,c,f)}}function tN(e){return!!(un(e)&&e.add)}function nN(e,t){const s=e.getValue("willChange");if(tN(s))return s.add(t);if(!s&&Xs.WillChange){const o=new Xs.WillChange("auto");e.addValue("willChange",o),o.add(t)}}const Xm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sN="framerAppearId",iN="data-"+Xm(sN);function oN(e){return e.props[iN]}const aN=e=>e!==null;function rN(e,{repeat:t,repeatType:s="loop"},o){const r=e.filter(aN),u=t&&s!=="loop"&&t%2===1?0:r.length-1;return r[u]}const lN={type:"spring",stiffness:500,damping:25,restSpeed:10},uN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cN={type:"keyframes",duration:.8},fN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dN=(e,{keyframes:t})=>t.length>2?cN:Xa.has(e)?e.startsWith("scale")?uN(t[1]):lN:fN;function hN({when:e,delay:t,delayChildren:s,staggerChildren:o,staggerDirection:r,repeat:u,repeatType:c,repeatDelay:f,from:h,elapsed:g,...m}){return!!Object.keys(m).length}const qC=(e,t,s,o={},r,u)=>c=>{const f=LC(o,e)||{},h=f.delay||o.delay||0;let{elapsed:g=0}=o;g=g-Ss(h);const m={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-g,onUpdate:y=>{t.set(y),f.onUpdate&&f.onUpdate(y)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:u?void 0:r};hN(f)||Object.assign(m,dN(e,m)),m.duration&&(m.duration=Ss(m.duration)),m.repeatDelay&&(m.repeatDelay=Ss(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let b=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Dp(m),m.delay===0&&(b=!0)),(Xs.instantAnimations||Xs.skipAnimations)&&(b=!0,Dp(m),m.delay=0),m.allowFlatten=!f.type&&!f.ease,b&&!u&&t.get()!==void 0){const y=rN(m.keyframes,f);if(y!==void 0){Ws.update(()=>{m.onUpdate(y),m.onComplete()});return}}return f.isSync?new Fm(m):new bP(m)};function gN({protectedKeys:e,needsAnimating:t},s){const o=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,o}function pN(e,t,{delay:s=0,transitionOverride:o,type:r}={}){let{transition:u=e.getDefaultTransition(),transitionEnd:c,...f}=t;o&&(u=o);const h=[],g=r&&e.animationState&&e.animationState.getState()[r];for(const m in f){const b=e.getValue(m,e.latestValues[m]??null),y=f[m];if(y===void 0||g&&gN(g,m))continue;const _={delay:s,...LC(u||{},m)},k=b.get();if(k!==void 0&&!b.isAnimating&&!Array.isArray(y)&&y===k&&!_.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const R=oN(e);if(R){const T=window.MotionHandoffAnimation(R,m,Ws);T!==null&&(_.startTime=T,S=!0)}}nN(e,m),b.start(qC(m,b,y,e.shouldReduceMotion&&PC.has(m)?{type:!1}:_,e,S));const C=b.animation;C&&h.push(C)}return c&&Promise.all(h).then(()=>{Ws.update(()=>{c&&eN(e,c)})}),h}function mN({top:e,left:t,right:s,bottom:o}){return{x:{min:t,max:s},y:{min:e,max:o}}}function bN(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function yN(e,t){return mN(bN(e.getBoundingClientRect(),t))}const Y0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Pp={};for(const e in Y0)Pp[e]={isEnabled:t=>Y0[e].some(s=>!!t[s])};const Q0=()=>({min:0,max:0}),Wm=()=>({x:Q0(),y:Q0()}),vN=typeof window<"u",Np={current:null},HC={current:!1};function _N(){if(HC.current=!0,!!vN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Np.current=e.matches;e.addEventListener("change",t),t()}else Np.current=!1}function kN(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function SN(e){return typeof e=="string"||Array.isArray(e)}const CN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],EN=["initial",...CN];function FC(e){return kN(e.animate)||EN.some(t=>SN(e[t]))}function RN(e){return!!(FC(e)||e.variants)}function xN(e,t,s){for(const o in t){const r=t[o],u=s[o];if(un(r))e.addValue(o,r);else if(un(u))e.addValue(o,Tl(r,{owner:e}));else if(u!==r)if(e.hasValue(o)){const c=e.getValue(o);c.liveStyle===!0?c.jump(r):c.hasAnimated||c.set(r)}else{const c=e.getStaticValue(o);e.addValue(o,Tl(c!==void 0?c:r,{owner:e}))}}for(const o in s)t[o]===void 0&&e.removeValue(o);return t}const X0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class KC{scrapeMotionValuesFromProps(t,s,o){return{}}constructor({parent:t,props:s,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:u,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Km,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Zn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ws.render(this.render,!1,!0))};const{latestValues:h,renderState:g}=c;this.latestValues=h,this.baseTarget={...h},this.initialValues=s.initial?{...h}:{},this.renderState=g,this.parent=t,this.props=s,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=f,this.blockInitialAnimation=!!u,this.isControllingVariants=FC(s),this.isVariantNode=RN(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const y in b){const _=b[y];h[y]!==void 0&&un(_)&&_.set(h[y])}}mount(t){this.current=t,wl.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,o)=>this.bindToMotionValue(o,s)),HC.current||_N(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Np.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),_p(this.notifyUpdate),_p(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,s){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=Xa.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=s.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ws.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{r(),u&&u(),s.owner&&s.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Pp){const s=Pp[t];if(!s)continue;const{isEnabled:o,Feature:r}=s;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const u=this.features[t];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wm()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<X0.length;o++){const r=X0[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const u="on"+r,c=t[u];c&&(this.propEventSubscriptions[r]=this.on(r,c))}this.prevMotionValues=xN(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const o=this.values.get(t);s!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&s!==void 0&&(o=Tl(s===null?void 0:s,{owner:this}),this.addValue(t,o)),o}readValue(t,s){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(XS(o)||WS(o))?o=parseFloat(o):!jP(o)&&Ya.test(s)&&(o=jC(t,s)),this.setBaseTarget(t,un(o)?o.get():o)),un(o)?o.get():o}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const u=BC(this.props,s,this.presenceContext?.custom);u&&(o=u[t])}if(s&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!un(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new ZS),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}scheduleRenderMicrotask(){NP.render(this.render)}}class GC extends KC{constructor(){super(...arguments),this.KeyframeResolver=MP}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){return t.style?t.style[s]:void 0}removeValueFromRenderState(t,{vars:s,style:o}){delete s[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;un(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}const TN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wN=Qa.length;function ON(e,t,s){let o="",r=!0;for(let u=0;u<wN;u++){const c=Qa[u],f=e[c];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(c.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||s){const g=UC(f,Ym[c]);if(!h){r=!1;const m=TN[c]||c;o+=`${m}(${g}) `}s&&(t[c]=g)}}return o=o.trim(),s?o=s(t,r?"":o):r&&(o="none"),o}function YC(e,t,s){const{style:o,vars:r,transformOrigin:u}=e;let c=!1,f=!1;for(const h in t){const g=t[h];if(Xa.has(h)){c=!0;continue}else if(hC(h)){r[h]=g;continue}else{const m=UC(g,Ym[h]);h.startsWith("origin")?(f=!0,u[h]=m):o[h]=m}}if(t.transform||(c||s?o.transform=ON(t,e.transform,s):o.transform&&(o.transform="none")),f){const{originX:h="50%",originY:g="50%",originZ:m=0}=u;o.transformOrigin=`${h} ${g} ${m}`}}function QC(e,{style:t,vars:s},o,r){const u=e.style;let c;for(c in t)u[c]=t[c];r?.applyProjectionStyles(u,o);for(c in s)u.setProperty(c,s[c])}const AN={};function MN(e,{layout:t,layoutId:s}){return Xa.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!AN[e]||e==="opacity")}function XC(e,t,s){const{style:o}=e,r={};for(const u in o)(un(o[u])||t.style&&un(t.style[u])||MN(u,e)||s?.getValue(u)?.liveStyle!==void 0)&&(r[u]=o[u]);return r}function DN(e){return window.getComputedStyle(e)}class LN extends GC{constructor(){super(...arguments),this.type="html",this.renderInstance=QC}readValueFromInstance(t,s){if(Xa.has(s))return this.projection?.isProjecting?Tp(s):Y5(t,s);{const o=DN(t),r=(hC(s)?o.getPropertyValue(s):o[s])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:s}){return yN(t,s)}build(t,s,o){YC(t,s,o.transformTemplate)}scrapeMotionValuesFromProps(t,s,o){return XC(t,s,o)}}function PN(e,t){return e in t}class NN extends KC{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,s){if(PN(s,t)){const o=t[s];if(typeof o=="string"||typeof o=="number")return o}}getBaseTargetFromProps(){}removeValueFromRenderState(t,s){delete s.output[t]}measureInstanceViewportBox(){return Wm()}build(t,s){Object.assign(t.output,s)}renderInstance(t,{output:s}){Object.assign(t,s)}sortInstanceNodePosition(){return 0}}const zN={offset:"stroke-dashoffset",array:"stroke-dasharray"},$N={offset:"strokeDashoffset",array:"strokeDasharray"};function jN(e,t,s=1,o=0,r=!0){e.pathLength=1;const u=r?zN:$N;e[u.offset]=Le.transform(-o);const c=Le.transform(t),f=Le.transform(s);e[u.array]=`${c} ${f}`}function UN(e,{attrX:t,attrY:s,attrScale:o,pathLength:r,pathSpacing:u=1,pathOffset:c=0,...f},h,g,m){if(YC(e,f,g),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:y}=e;b.transform&&(y.transform=b.transform,delete b.transform),(y.transform||b.transformOrigin)&&(y.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),y.transform&&(y.transformBox=m?.transformBox??"fill-box",delete b.transformBox),t!==void 0&&(b.x=t),s!==void 0&&(b.y=s),o!==void 0&&(b.scale=o),r!==void 0&&jN(b,r,u,c,!1)}const WC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),IN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function VN(e,t,s,o){QC(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(WC.has(r)?r:Xm(r),t.attrs[r])}function BN(e,t,s){const o=XC(e,t,s);for(const r in e)if(un(e[r])||un(t[r])){const u=Qa.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[u]=e[r]}return o}class qN extends GC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wm}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(Xa.has(s)){const o=$C(s);return o&&o.default||0}return s=WC.has(s)?s:Xm(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,o){return BN(t,s,o)}build(t,s,o){UN(t,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,s,o,r){VN(t,s,o,r)}mount(t){this.isSVGTag=IN(t.tagName),super.mount(t)}}function HN(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},s=IC(e)&&!zP(e)?new qN(t):new LN(t);s.mount(e),wl.set(e,s)}function FN(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},s=new NN(t);s.mount(e),wl.set(e,s)}function KN(e,t,s){const o=un(e)?e:Tl(e);return o.start(qC("",o,t,s)),o.animation}function GN(e,t){return un(e)||typeof e=="number"||typeof e=="string"&&!Qm(t)}function ZC(e,t,s,o){const r=[];if(GN(e,t))r.push(KN(e,Qm(t)&&t.default||t,s&&(s.default||s)));else{const u=VC(e,t,o),c=u.length;for(let f=0;f<c;f++){const h=u[f],g=h instanceof Element?HN:FN;wl.has(h)||g(h);const m=wl.get(h),b={...s};"delay"in b&&typeof b.delay=="function"&&(b.delay=b.delay(f,c)),r.push(...pN(m,{...t,transition:b},{}))}}return r}function YN(e,t,s){const o=[];return FP(e,t,s,{spring:xl}).forEach(({keyframes:u,transition:c},f)=>{o.push(...ZC(f,u,c))}),o}function QN(e){return Array.isArray(e)&&e.some(Array.isArray)}function XN(e){function t(s,o,r){let u=[],c;if(QN(s))u=YN(s,o,e);else{const{onComplete:h,...g}=r||{};typeof h=="function"&&(c=h),u=ZC(s,o,g,e)}const f=new vP(u);return c&&f.finished.then(c),f}return t}const WN=XN(),ZN="--sidebar-width",JC=()=>typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue(ZN).trim()||"192px";GS(JC());const JN=()=>JC()==="40px",ez=GS(JN()),_a="--sidebar-width";function eE(){const e=Ut.c(19),[t,s]=FL(ez),o=E.useRef(null);let r;e[0]!==t||e[1]!==s?(r=S=>{if(typeof document<"u"&&S!==t){const C=S?"40px":"192px";o.current&&(o.current.cancel(),o.current=null);const R=getComputedStyle(document.documentElement).getPropertyValue(_a).trim()||"192px",T=parseFloat(R.replace(/[^\d.]/g,"")),A=parseFloat(C.replace(/[^\d.]/g,""));if(Math.abs(T-A)>1){const w=C.replace(/[\d.]/g,"");o.current=WN(T,A,{duration:.3,ease:"circInOut",onUpdate:x=>{document.documentElement.style.setProperty(_a,`${x}${w}`)},onComplete:()=>{o.current=null,document.documentElement.style.setProperty(_a,C)}}),s(S)}else s(S),document.documentElement.style.setProperty(_a,C)}},e[0]=t,e[1]=s,e[2]=r):r=e[2];const u=r;let c;e[3]!==t||e[4]!==u?(c=()=>{u(!t)},e[3]=t,e[4]=u,e[5]=c):c=e[5];const f=c;let h;e[6]!==u?(h=()=>{u(!0)},e[6]=u,e[7]=h):h=e[7];const g=h;let m;e[8]!==u?(m=()=>{u(!1)},e[8]=u,e[9]=m):m=e[9];const b=m;let y;e[10]!==t?(y=()=>{if(typeof document<"u"){const S=getComputedStyle(document.documentElement).getPropertyValue(_a).trim(),C=t?"40px":"192px";(!S||S!==C)&&document.documentElement.style.setProperty(_a,C)}return()=>{o.current&&(o.current.cancel(),o.current=null)}},e[10]=t,e[11]=y):y=e[11];let _;e[12]===Symbol.for("react.memo_cache_sentinel")?(_=[],e[12]=_):_=e[12],E.useEffect(y,_);let k;return e[13]!==g||e[14]!==b||e[15]!==t||e[16]!==u||e[17]!==f?(k={isCollapsed:t,setSidebarCollapsed:u,toggleSidebar:f,collapseSidebar:g,expandSidebar:b},e[13]=g,e[14]=b,e[15]=t,e[16]=u,e[17]=f,e[18]=k):k=e[18],k}const tE="llmops-theme";function tz(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function nz(){if(typeof window>"u")return"system";const e=localStorage.getItem(tE);return e==="light"||e==="dark"||e==="system"?e:"system"}function Lg(e){(e==="system"?tz():e)==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}function sz(){const e=Ut.c(6),[t,s]=E.useState(iz);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=h=>{s(h),localStorage.setItem(tE,h),Lg(h)},e[0]=o):o=e[0];const r=o;let u,c;e[1]!==t?(u=()=>{Lg(t);const h=window.matchMedia("(prefers-color-scheme: dark)"),g=()=>{t==="system"&&Lg("system")};return h.addEventListener("change",g),()=>h.removeEventListener("change",g)},c=[t],e[1]=t,e[2]=u,e[3]=c):(u=e[2],c=e[3]),E.useEffect(u,c);let f;return e[4]!==t?(f={theme:t,setTheme:r},e[4]=t,e[5]=f):f=e[5],f}function iz(){return nz()}var oz={},W0={};const Uc=Object.create(null),Zr=e=>oz||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Uc:globalThis),Qn=new Proxy(Uc,{get(e,t){return Zr()[t]??Uc[t]},has(e,t){return t in Zr()||t in Uc},set(e,t,s){const o=Zr(!0);return o[t]=s,!0},deleteProperty(e,t){if(!t)return!1;const s=Zr(!0);return delete s[t],!0},ownKeys(){const e=Zr(!0);return Object.keys(e)}});function wt(e,t){return typeof process<"u"&&W0?W0[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const Jr=1,jt=4,ys=8,Dn=24,Z0={eterm:jt,cons25:jt,console:jt,cygwin:jt,dtterm:jt,gnome:jt,hurd:jt,jfbterm:jt,konsole:jt,kterm:jt,mlterm:jt,mosh:Dn,putty:jt,st:jt,"rxvt-unicode-24bit":Dn,terminator:Dn,"xterm-kitty":Dn},az=new Map(Object.entries({APPVEYOR:ys,BUILDKITE:ys,CIRCLECI:Dn,DRONE:ys,GITEA_ACTIONS:Dn,GITHUB_ACTIONS:Dn,GITLAB_CI:ys,TRAVIS:ys})),rz=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function lz(){if(wt("FORCE_COLOR")!==void 0)switch(wt("FORCE_COLOR")){case"":case"1":case"true":return jt;case"2":return ys;case"3":return Dn;default:return Jr}if(wt("NODE_DISABLE_COLORS")!==void 0&&wt("NODE_DISABLE_COLORS")!==""||wt("NO_COLOR")!==void 0&&wt("NO_COLOR")!==""||wt("TERM")==="dumb")return Jr;if(wt("TMUX"))return Dn;if("TF_BUILD"in Qn&&"AGENT_NAME"in Qn)return jt;if("CI"in Qn){for(const{0:e,1:t}of az)if(e in Qn)return t;return wt("CI_NAME")==="codeship"?ys:Jr}if("TEAMCITY_VERSION"in Qn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(wt("TEAMCITY_VERSION"))!==null?jt:Jr;switch(wt("TERM_PROGRAM")){case"iTerm.app":return!wt("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(wt("TERM_PROGRAM_VERSION"))!==null?ys:Dn;case"HyperTerm":case"MacTerm":return Dn;case"Apple_Terminal":return ys}if(wt("COLORTERM")==="truecolor"||wt("COLORTERM")==="24bit")return Dn;if(wt("TERM")){if(/truecolor/.exec(wt("TERM"))!==null)return Dn;if(/^xterm-256/.exec(wt("TERM"))!==null)return ys;const e=wt("TERM").toLowerCase();if(Z0[e])return Z0[e];if(rz.some(t=>t.exec(e)!==null))return jt}return wt("COLORTERM")?jt:Jr}const vs={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},zp=["debug","info","success","warn","error"];function uz(e,t){return zp.indexOf(t)>=zp.indexOf(e)}const cz={info:vs.fg.blue,success:vs.fg.green,warn:vs.fg.yellow,error:vs.fg.red,debug:vs.fg.magenta},fz=(e,t,s)=>{const o=new Date().toISOString();return s?`${vs.dim}${o}${vs.reset} ${cz[e]}${e.toUpperCase()}${vs.reset} ${vs.bright}[Better Auth]:${vs.reset} ${t}`:`${o} ${e.toUpperCase()} [Better Auth]: ${t}`},dz=e=>{const t="error",s=lz()!==1,o=(r,u,c=[])=>{if(!uz(t,r))return;const f=fz(r,u,s);{r==="error"?console.error(f,...c):r==="warn"?console.warn(f,...c):console.log(f,...c);return}};return{...Object.fromEntries(zp.map(r=>[r,(...[u,...c])=>o(r,u,c)])),get level(){return t}}};dz();function hz(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ic=class extends Error{constructor(e,t){super(e),this.name="BetterAuthError",this.message=e,this.cause=t,this.stack=""}};function gz(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Ic(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function pz(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Ic(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Ic?t:new Ic(`Invalid base URL: ${e}. Please provide a valid base URL.`,String(t))}}function Pg(e,t="/api/auth"){if(pz(e),gz(e))return e;const s=e.replace(/\/+$/,"");return!t||t==="/"?s:(t=t.startsWith("/")?t:`/${t}`,`${s}${t}`)}function mz(e,t,s,o,r){if(e)return Pg(e,t);{const u=Qn.BETTER_AUTH_URL||Qn.NEXT_PUBLIC_BETTER_AUTH_URL||Qn.PUBLIC_BETTER_AUTH_URL||Qn.NUXT_PUBLIC_BETTER_AUTH_URL||Qn.NUXT_PUBLIC_AUTH_URL||(Qn.BASE_URL!=="/"?Qn.BASE_URL:void 0);if(u)return Pg(u,t)}if(typeof window<"u"&&window.location)return Pg(window.location.origin,t)}const bz={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},yz={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},vz=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,J0={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},_z=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function kz(e){return e instanceof Date&&!isNaN(e.getTime())}function Sz(e){const t=_z.exec(e);if(!t)return null;const[,s,o,r,u,c,f,h,g,m,b]=t;let y=new Date(Date.UTC(parseInt(s,10),parseInt(o,10)-1,parseInt(r,10),parseInt(u,10),parseInt(c,10),parseInt(f,10),h?parseInt(h.padEnd(3,"0"),10):0));if(g){const _=(parseInt(m,10)*60+parseInt(b,10))*(g==="+"?-1:1);y.setUTCMinutes(y.getUTCMinutes()+_)}return kz(y)?y:null}function Cz(e,t={}){const{strict:s=!1,warnings:o=!1,reviver:r,parseDates:u=!0}=t;if(typeof e!="string")return e;const c=e.trim();if(c.length>0&&c[0]==='"'&&c.endsWith('"')&&!c.slice(1,-1).includes('"'))return c.slice(1,-1);const f=c.toLowerCase();if(f.length<=9&&f in J0)return J0[f];if(!vz.test(c)){if(s)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(yz).some(([h,g])=>{const m=g.test(c);return m&&o&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${h} pattern`),m})&&s)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(c,(g,m)=>{if(g==="__proto__"||g==="constructor"&&m&&typeof m=="object"&&"prototype"in m){o&&console.warn(`[better-json] Dropping "${g}" key to prevent prototype pollution`);return}if(u&&typeof m=="string"){const b=Sz(m);if(b)return b}return r?r(g,m):m})}catch(h){if(s)throw h;return e}}function Ez(e,t={strict:!0}){return Cz(e,t)}let os=[],xi=0;const Sc=4,nE=e=>{let t=[],s={get(){return s.lc||s.listen(()=>{})(),s.value},lc:0,listen(o){return s.lc=t.push(o),()=>{for(let u=xi+Sc;u<os.length;)os[u]===o?os.splice(u,Sc):u+=Sc;let r=t.indexOf(o);~r&&(t.splice(r,1),--s.lc||s.off())}},notify(o,r){let u=!os.length;for(let c of t)os.push(c,s.value,o,r);if(u){for(xi=0;xi<os.length;xi+=Sc)os[xi](os[xi+1],os[xi+2],os[xi+3]);os.length=0}},off(){},set(o){let r=s.value;r!==o&&(s.value=o,s.notify(r))},subscribe(o){let r=s.listen(o);return o(s.value),r},value:e};return s},Rz=5,Cc=6,Ec=10;let xz=(e,t,s,o)=>(e.events=e.events||{},e.events[s+Ec]||(e.events[s+Ec]=o(r=>{e.events[s].reduceRight((u,c)=>(c(u),u),{shared:{},...r})})),e.events[s]=e.events[s]||[],e.events[s].push(t),()=>{let r=e.events[s],u=r.indexOf(t);r.splice(u,1),r.length||(delete e.events[s],e.events[s+Ec](),delete e.events[s+Ec])}),Tz=1e3,sE=(e,t)=>xz(e,o=>{let r=t(o);r&&e.events[Cc].push(r)},Rz,o=>{let r=e.listen;e.listen=(...c)=>(!e.lc&&!e.active&&(e.active=!0,o()),r(...c));let u=e.off;return e.events[Cc]=[],e.off=()=>{u(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let c of e.events[Cc])c();e.events[Cc]=[]}},Tz)},()=>{e.listen=r,e.off=u}});function wz(e,t,s){let o=new Set(t).add(void 0);return e.listen((r,u,c)=>{o.has(c)&&s(r,u,c)})}const Oz=()=>typeof window>"u",Az=(e,t,s,o)=>{const r=nE({data:null,error:null,isPending:!0,isRefetching:!1,refetch:f=>u(f)}),u=async f=>new Promise(h=>{const g=typeof o=="function"?o({data:r.get().data,error:r.get().error,isPending:r.get().isPending}):o;s(t,{...g,query:{...g?.query,...f?.query},async onSuccess(m){r.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch}),await g?.onSuccess?.(m)},async onError(m){const{request:b}=m,y=typeof b.retry=="number"?b.retry:b.retry?.attempts,_=b.retryAttempt||0;y&&_<y||(r.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch}),await g?.onError?.(m))},async onRequest(m){const b=r.get();r.set({isPending:b.data===null,data:b.data,error:null,isRefetching:!0,refetch:r.value.refetch}),await g?.onRequest?.(m)}}).catch(m=>{r.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch})}).finally(()=>{h(void 0)})});e=Array.isArray(e)?e:[e];let c=!1;for(const f of e)f.subscribe(async()=>{Oz()||(c?await u():sE(r,()=>{const h=setTimeout(async()=>{c||(await u(),c=!0)},0);return()=>{r.off(),f.off(),clearTimeout(h)}}))});return r},Ng=Symbol.for("better-auth:broadcast-channel"),Mz=()=>Math.floor(Date.now()/1e3);var Dz=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:Mz()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const s=JSON.parse(t.newValue??"{}");s?.event!=="session"||!s?.data||this.listeners.forEach(o=>o(s))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function zg(e="better-auth.message"){return globalThis[Ng]||(globalThis[Ng]=new Dz(e)),globalThis[Ng]}const $g=Symbol.for("better-auth:focus-manager");var Lz=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function e_(){return globalThis[$g]||(globalThis[$g]=new Lz),globalThis[$g]}const jg=Symbol.for("better-auth:online-manager");var Pz=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function Ug(){return globalThis[jg]||(globalThis[jg]=new Pz),globalThis[jg]}const ka=()=>Math.floor(Date.now()/1e3),Nz=5;function zz(e){const{sessionAtom:t,sessionSignal:s,$fetch:o,options:r={}}=e,u=r.sessionOptions?.refetchInterval??0,c=r.sessionOptions?.refetchOnWindowFocus??!0,f=r.sessionOptions?.refetchWhenOffline??!1,h={lastSync:0,lastSessionRequest:0,cachedSession:void 0},g=()=>f||Ug().isOnline,m=T=>{if(!g())return;if(T?.event==="storage"){h.lastSync=ka(),s.set(!s.get());return}const A=t.get();if(T?.event==="poll"){h.lastSessionRequest=ka(),o("/get-session").then(w=>{w.error?t.set({...A,data:null,error:w.error}):t.set({...A,data:w.data,error:null}),h.lastSync=ka(),s.set(!s.get())}).catch(()=>{});return}if(T?.event==="visibilitychange"){if(ka()-h.lastSessionRequest<Nz)return;h.lastSessionRequest=ka()}(A?.data===null||A?.data===void 0||T?.event==="visibilitychange")&&(h.lastSync=ka(),s.set(!s.get()))},b=T=>{zg().post({event:"session",data:{trigger:T},clientId:Math.random().toString(36).substring(7)})},y=()=>{u&&u>0&&(h.pollInterval=setInterval(()=>{t.get()?.data&&m({event:"poll"})},u*1e3))},_=()=>{h.unsubscribeBroadcast=zg().subscribe(()=>{m({event:"storage"})})},k=()=>{c&&(h.unsubscribeFocus=e_().subscribe(()=>{m({event:"visibilitychange"})}))},S=()=>{h.unsubscribeOnline=Ug().subscribe(T=>{T&&m({event:"visibilitychange"})})};return{init:()=>{y(),_(),k(),S(),zg().setup(),e_().setup(),Ug().setup()},cleanup:()=>{h.pollInterval&&(clearInterval(h.pollInterval),h.pollInterval=void 0),h.unsubscribeBroadcast&&(h.unsubscribeBroadcast(),h.unsubscribeBroadcast=void 0),h.unsubscribeFocus&&(h.unsubscribeFocus(),h.unsubscribeFocus=void 0),h.unsubscribeOnline&&(h.unsubscribeOnline(),h.unsubscribeOnline=void 0),h.lastSync=0,h.lastSessionRequest=0,h.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:b}}function $z(e,t){const s=nE(!1),o=Az(s,"/get-session",e,{method:"GET"});return sE(o,()=>{const r=zz({sessionAtom:o,sessionSignal:s,$fetch:e,options:t});return r.init(),()=>{r.cleanup()}}),{session:o,$sessionSignal:s}}var jz=Object.defineProperty,Uz=Object.defineProperties,Iz=Object.getOwnPropertyDescriptors,t_=Object.getOwnPropertySymbols,Vz=Object.prototype.hasOwnProperty,Bz=Object.prototype.propertyIsEnumerable,n_=(e,t,s)=>t in e?jz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,as=(e,t)=>{for(var s in t||(t={}))Vz.call(t,s)&&n_(e,s,t[s]);if(t_)for(var s of t_(t))Bz.call(t,s)&&n_(e,s,t[s]);return e},ps=(e,t)=>Uz(e,Iz(t)),qz=class extends Error{constructor(e,t,s){super(t||e.toString(),{cause:s}),this.status=e,this.statusText=t,this.error=s,Error.captureStackTrace(this,this.constructor)}},Hz=async(e,t)=>{var s,o,r,u,c,f;let h=t||{};const g={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:h,hooks:g};for(const m of t?.plugins||[]){if(m.init){const b=await((s=m.init)==null?void 0:s.call(m,e.toString(),t));h=b.options||h,e=b.url}g.onRequest.push((o=m.hooks)==null?void 0:o.onRequest),g.onResponse.push((r=m.hooks)==null?void 0:r.onResponse),g.onSuccess.push((u=m.hooks)==null?void 0:u.onSuccess),g.onError.push((c=m.hooks)==null?void 0:c.onError),g.onRetry.push((f=m.hooks)==null?void 0:f.onRetry)}return{url:e,options:h,hooks:g}},s_=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},Fz=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function Kz(e){if(typeof e=="number")return new s_({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new s_(e);case"exponential":return new Fz(e);default:throw new Error("Invalid retry strategy")}}var Gz=async e=>{const t={},s=async o=>typeof o=="function"?await o():o;if(e?.auth){if(e.auth.type==="Bearer"){const o=await s(e.auth.token);if(!o)return t;t.authorization=`Bearer ${o}`}else if(e.auth.type==="Basic"){const[o,r]=await Promise.all([s(e.auth.username),s(e.auth.password)]);if(!o||!r)return t;t.authorization=`Basic ${btoa(`${o}:${r}`)}`}else if(e.auth.type==="Custom"){const[o,r]=await Promise.all([s(e.auth.prefix),s(e.auth.value)]);if(!r)return t;t.authorization=`${o??""} ${r}`}}return t},Yz=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Qz(e){const t=e.headers.get("content-type"),s=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const o=t.split(";").shift()||"";return Yz.test(o)?"json":s.has(o)||o.startsWith("text/")?"text":"blob"}function Xz(e){try{return JSON.parse(e),!0}catch{return!1}}function $p(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function i_(e){try{return JSON.parse(e)}catch{return e}}function o_(e){return typeof e=="function"}function Wz(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&o_(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&o_(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function Zz(e){const t=new Headers(e?.headers),s=await Gz(e);for(const[o,r]of Object.entries(s||{}))t.set(o,r);if(!t.has("content-type")){const o=Jz(e?.body);o&&t.set("content-type",o)}return t}function Jz(e){return $p(e)?"application/json":null}function e7(e){if(!e?.body)return null;const t=new Headers(e?.headers);if($p(e.body)&&!t.has("content-type")){for(const[s,o]of Object.entries(e?.body))o instanceof Date&&(e.body[s]=o.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&$p(e.body)?new URLSearchParams(e.body).toString():e.body}function t7(e,t){var s;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const o=(s=e.split("@")[1])==null?void 0:s.split("/")[0];return oE.includes(o)?o.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function n7(e,t){let s;return!e?.signal&&e?.timeout&&(s=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:s,clearTimeout:()=>{s&&clearTimeout(s)}}}var s7=class iE extends Error{constructor(t,s){super(s||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,iE.prototype)}};async function Vc(e,t){const s=await e["~standard"].validate(t);if(s.issues)throw new s7(s.issues);return s.value}var oE=["get","post","put","patch","delete"],i7=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,s){var o,r,u,c;const f=((r=(o=e.plugins)==null?void 0:o.find(h=>{var g;return(g=h.schema)!=null&&g.config?t.startsWith(h.schema.config.baseURL||"")||t.startsWith(h.schema.config.prefix||""):!1}))==null?void 0:r.schema)||e.schema;if(f){let h=t;(u=f.config)!=null&&u.prefix&&h.startsWith(f.config.prefix)&&(h=h.replace(f.config.prefix,""),f.config.baseURL&&(t=t.replace(f.config.prefix,f.config.baseURL))),(c=f.config)!=null&&c.baseURL&&h.startsWith(f.config.baseURL)&&(h=h.replace(f.config.baseURL,""));const g=f.schema[h];if(g){let m=ps(as({},s),{method:g.method,output:g.output});return s?.disableValidation||(m=ps(as({},m),{body:g.input?await Vc(g.input,s?.body):s?.body,params:g.params?await Vc(g.params,s?.params):s?.params,query:g.query?await Vc(g.query,s?.query):s?.query})),{url:t,options:m}}}return{url:t,options:s}}}),o7=e=>{async function t(s,o){const r=ps(as(as({},e),o),{plugins:[...e?.plugins||[],i7(e||{}),...o?.plugins||[]]});if(e?.catchAllError)try{return await jp(s,r)}catch(u){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:u}}}return await jp(s,r)}return t};function a7(e,t){const{baseURL:s,params:o,query:r}=t||{query:{},params:{},baseURL:""};let u=e.startsWith("http")?e.split("/").slice(0,3).join("/"):s||"";if(e.startsWith("@")){const b=e.toString().split("@")[1].split("/")[0];oE.includes(b)&&(e=e.replace(`@${b}/`,"/"))}u.endsWith("/")||(u+="/");let[c,f]=e.replace(u,"").split("?");const h=new URLSearchParams(f);for(const[b,y]of Object.entries(r||{})){if(y==null)continue;let _;if(typeof y=="string")_=y;else if(Array.isArray(y)){for(const k of y)h.append(b,k);continue}else _=JSON.stringify(y);h.set(b,_)}if(o)if(Array.isArray(o)){const b=c.split("/").filter(y=>y.startsWith(":"));for(const[y,_]of b.entries()){const k=o[y];c=c.replace(_,k)}}else for(const[b,y]of Object.entries(o))c=c.replace(`:${b}`,String(y));c=c.split("/").map(encodeURIComponent).join("/"),c.startsWith("/")&&(c=c.slice(1));let g=h.toString();return g=g.length>0?`?${g}`.replace(/\+/g,"%20"):"",u.startsWith("http")?new URL(`${c}${g}`,u):`${u}${c}${g}`}var jp=async(e,t)=>{var s,o,r,u,c,f,h,g;const{hooks:m,url:b,options:y}=await Hz(e,t),_=Wz(y),k=new AbortController,S=(s=y.signal)!=null?s:k.signal,C=a7(b,y),R=e7(y),T=await Zz(y),A=t7(b,y);let w=ps(as({},y),{url:C,headers:T,body:R,method:A,signal:S});for(const B of m.onRequest)if(B){const q=await B(w);typeof q=="object"&&q!==null&&(w=q)}("pipeTo"in w&&typeof w.pipeTo=="function"||typeof((o=t?.body)==null?void 0:o.pipe)=="function")&&("duplex"in w||(w.duplex="half"));const{clearTimeout:x}=n7(y,k);let M=await _(w.url,w);x();const L={response:M,request:w};for(const B of m.onResponse)if(B){const q=await B(ps(as({},L),{response:(r=t?.hookOptions)!=null&&r.cloneResponse?M.clone():M}));q instanceof Response?M=q:typeof q=="object"&&q!==null&&(M=q.response)}if(M.ok){if(!(w.method!=="HEAD"))return{data:"",error:null};const q=Qz(M),J={data:null,response:M,request:w};if(q==="json"||q==="text"){const D=await M.text(),I=(u=w.jsonParser)!=null?u:i_;J.data=await I(D)}else J.data=await M[q]();w?.output&&w.output&&!w.disableValidation&&(J.data=await Vc(w.output,J.data));for(const D of m.onSuccess)D&&await D(ps(as({},J),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?M.clone():M}));return t?.throw?J.data:{data:J.data,error:null}}const P=(f=t?.jsonParser)!=null?f:i_,V=await M.text(),Z=Xz(V),z=Z?await P(V):null,Q={response:M,responseText:V,request:w,error:ps(as({},z),{status:M.status,statusText:M.statusText})};for(const B of m.onError)B&&await B(ps(as({},Q),{response:(h=t?.hookOptions)!=null&&h.cloneResponse?M.clone():M}));if(t?.retry){const B=Kz(t.retry),q=(g=t.retryAttempt)!=null?g:0;if(await B.shouldAttemptRetry(q,M)){for(const D of m.onRetry)D&&await D(L);const J=B.getDelay(q);return await new Promise(D=>setTimeout(D,J)),await jp(e,ps(as({},t),{retryAttempt:q+1}))}}if(t?.throw)throw new qz(M.status,M.statusText,Z?z:V);return{data:null,error:ps(as({},z),{status:M.status,statusText:M.statusText})}};const r7=(e,t)=>{const s="credentials"in Request.prototype,o=mz(e?.baseURL,e?.basePath)??"/api/auth",r=e?.plugins?.flatMap(w=>w.fetchPlugins).filter(w=>w!==void 0)||[],u={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:c,onError:f,onRequest:h,onResponse:g,...m}=e?.fetchOptions||{},b=o7({baseURL:o,...s?{credentials:"include"}:{},method:"GET",jsonParser(w){return w?Ez(w,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[u,...m.plugins||[],...e?.disableDefaultFetchPlugins?[]:[bz],...r]}),{$sessionSignal:y,session:_}=$z(b,e),k=e?.plugins||[];let S={},C={$sessionSignal:y,session:_},R={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const T=[{signal:"$sessionSignal",matcher(w){return w==="/sign-out"||w==="/update-user"||w==="/sign-up/email"||w==="/sign-in/email"||w==="/delete-user"||w==="/verify-email"||w==="/revoke-sessions"||w==="/revoke-session"||w==="/change-email"}}];for(const w of k)w.getAtoms&&Object.assign(C,w.getAtoms?.(b)),w.pathMethods&&Object.assign(R,w.pathMethods),w.atomListeners&&T.push(...w.atomListeners);const A={notify:w=>{C[w].set(!C[w].get())},listen:(w,x)=>{C[w].subscribe(x)},atoms:C};for(const w of k)w.getActions&&Object.assign(S,w.getActions?.(b,A,e));return{get baseURL(){return o},pluginsActions:S,pluginsAtoms:C,pluginPathMethods:R,atomListeners:T,$fetch:b,$store:A}};function l7(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function u7(e,t,s){const o=t[e],{fetchOptions:r,query:u,...c}=s||{};return o||(r?.method?r.method:c&&Object.keys(c).length>0?"POST":"GET")}function c7(e,t,s,o,r){function u(c=[]){return new Proxy(function(){},{get(f,h){if(typeof h!="string"||h==="then"||h==="catch"||h==="finally")return;const g=[...c,h];let m=e;for(const b of g)if(m&&typeof m=="object"&&b in m)m=m[b];else{m=void 0;break}return typeof m=="function"||l7(m)?m:u(g)},apply:async(f,h,g)=>{const m="/"+c.map(T=>T.replace(/[A-Z]/g,A=>`-${A.toLowerCase()}`)).join("/"),b=g[0]||{},y=g[1]||{},{query:_,fetchOptions:k,...S}=b,C={...y,...k},R=u7(m,s,b);return await t(m,{...C,body:R==="GET"?void 0:{...S,...C?.body||{}},query:_||C?.query,method:R,async onSuccess(T){if(await C?.onSuccess?.(T),!r||C.disableSignal)return;const A=r.filter(x=>x.matcher(m));if(!A.length)return;const w=new Set;for(const x of A){const M=o[x.signal];if(!M)return;if(w.has(x.signal))continue;w.add(x.signal);const L=M.get();setTimeout(()=>{M.set(!L)},10)}}})}})}return u()}function f7(e,t={}){let s=E.useRef(e.get());const{keys:o,deps:r=[e,o]}=t;let u=E.useCallback(f=>{const h=g=>{s.current!==g&&(s.current=g,f())};return h(e.value),o?.length?wz(e,o,h):e.listen(h)},r),c=()=>s.current;return E.useSyncExternalStore(u,c,c)}function d7(e){return`use${hz(e)}`}function h7(e){const{pluginPathMethods:t,pluginsActions:s,pluginsAtoms:o,$fetch:r,$store:u,atomListeners:c}=r7(e);let f={};for(const[h,g]of Object.entries(o))f[d7(h)]=()=>f7(g);return c7({...s,...f,$fetch:r,$store:u},r,t,o,c)}const a_=h7({basePath:window.bootstrapData?.basePath==="/"?"/api/auth":window.bootstrapData?.basePath+"/api/auth"});function g7(){const e=Ut.c(28),{data:t}=a_.useSession(),{theme:s,setTheme:o}=sz(),r=Dl(),{isCollapsed:u}=eE(),c=t?.user?.email??"";let f;e[0]!==c?(f=c.charAt(0).toUpperCase()||"?",e[0]=c,e[1]=f):f=e[1];const h=f;let g;e[2]!==r?(g=async()=>{await a_.signOut(),r({to:"/signin"})},e[2]=r,e[3]=g):g=e[3];const m=g;let b;e[4]===Symbol.for("react.memo_cache_sentinel")?(b=[{value:"light",icon:B4,label:"Light"},{value:"dark",icon:z4,label:"Dark"},{value:"system",icon:P4,label:"System"}],e[4]=b):b=e[4];const y=b,_=`${tL} ${u?yL:""}`;let k;e[5]!==h?(k=Y.jsx("span",{className:nL,children:h}),e[5]=h,e[6]=k):k=e[6];let S;e[7]!==u||e[8]!==c?(S=!u&&Y.jsxs(Y.Fragment,{children:[Y.jsx("span",{className:sL,children:c}),Y.jsx(R4,{className:iL})]}),e[7]=u,e[8]=c,e[9]=S):S=e[9];let C;e[10]!==_||e[11]!==k||e[12]!==S?(C=Y.jsxs(m6,{className:_,children:[k,S]}),e[10]=_,e[11]=k,e[12]=S,e[13]=C):C=e[13];let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R=Y.jsx("div",{className:lL,children:"Theme"}),e[14]=R):R=e[14];let T;e[15]!==o||e[16]!==s?(T=Y.jsxs("div",{className:rL,children:[R,Y.jsx("div",{className:uL,children:y.map(P=>Y.jsx("button",{className:`${cL} ${s===P.value?fL:""}`,onClick:()=>o(P.value),title:P.label,type:"button",children:Y.jsx(P.icon,{className:dL})},P.value))})]}),e[15]=o,e[16]=s,e[17]=T):T=e[17];let A;e[18]===Symbol.for("react.memo_cache_sentinel")?(A=Y.jsx("div",{className:hL}),e[18]=A):A=e[18];let w;e[19]===Symbol.for("react.memo_cache_sentinel")?(w=Y.jsx(D4,{className:pL}),e[19]=w):w=e[19];let x;e[20]!==m?(x=Y.jsxs(J3,{className:gL,onClick:m,children:[w,"Logout"]}),e[20]=m,e[21]=x):x=e[21];let M;e[22]!==x||e[23]!==T?(M=Y.jsx(o6,{children:Y.jsx(a6,{className:oL,side:"bottom",sideOffset:4,align:"start",positionMethod:"fixed",children:Y.jsxs(s6,{className:aL,children:[T,A,x]})})}),e[22]=x,e[23]=T,e[24]=M):M=e[24];let L;return e[25]!==M||e[26]!==C?(L=Y.jsxs(d6,{children:[C,M]}),e[25]=M,e[26]=C,e[27]=L):L=e[27],L}function p7(){const e=Ut.c(13),{isCollapsed:t}=eE();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=Y.jsx(c4,{children:Y.jsx(g7,{})}),e[0]=s):s=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=Y.jsx(Xr,{asChild:!0,children:Y.jsxs(ho,{to:"/",children:[Y.jsx(Zt,{icon:PS}),"Overview"]})}),e[1]=o):o=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=Y.jsx(Xr,{asChild:!0,children:Y.jsxs(ho,{to:"/settings",children:[Y.jsx(Zt,{icon:zS}),"Settings"]})}),e[2]=r):r=e[2];const u=`${mL} ${t?bL:""}`;let c;e[3]!==u?(c=Y.jsx("span",{className:u,children:"Workspace"}),e[3]=u,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=Y.jsx(Xr,{asChild:!0,children:Y.jsxs(ho,{to:"/configs",children:[Y.jsx(Zt,{icon:$S}),"Configs"]})}),e[5]=f):f=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=Y.jsx(Xr,{asChild:!0,children:Y.jsxs(ho,{to:"/environments",children:[Y.jsx(Zt,{icon:NS}),"Environments"]})}),e[6]=h):h=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=Y.jsx(Xr,{asChild:!0,children:Y.jsxs(ho,{to:"/observability",children:[Y.jsx(Zt,{icon:jS}),"Observability"]})}),e[7]=g):g=e[7];let m;e[8]!==c?(m=Y.jsxs(d4,{children:[o,r,c,f,h,g]}),e[8]=c,e[9]=m):m=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=Y.jsx(f4,{}),e[10]=b):b=e[10];let y;return e[11]!==m?(y=Y.jsxs(h4,{children:[s,m,b]}),e[11]=m,e[12]=y):y=e[12],y}var m7="_1j1a89s0",Wj="_1j1a89s2",Zj="_1j1a89s3";const Nf=vw()({component:y7}),b7=["/signin","/setup"];function y7(){const e=Ut.c(3),t=Pw();if(b7.some(u=>t.pathname.startsWith(u))){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u=Y.jsx(Yg,{}),e[0]=u):u=e[0],u}let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=Y.jsx(p7,{}),e[1]=o):o=e[1];let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=Y.jsx("div",{children:Y.jsxs(R6,{children:[o,Y.jsx("div",{className:m7,children:Y.jsx(Yg,{})})]})}),e[2]=r):r=e[2],r}const v7="modulepreload",_7=function(e,t){return new URL(e,t).href},r_={},Je=function(t,s,o){let r=Promise.resolve();if(s&&s.length>0){let g=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const c=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),h=f?.nonce||f?.getAttribute("nonce");r=g(s.map(m=>{if(m=_7(m,o),m in r_)return;r_[m]=!0;const b=m.endsWith(".css"),y=b?'[rel="stylesheet"]':"";if(o)for(let k=c.length-1;k>=0;k--){const S=c[k];if(S.href===m&&(!b||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${m}"]${y}`))return;const _=document.createElement("link");if(_.rel=b?"stylesheet":v7,b||(_.as="script"),_.crossOrigin="",_.href=m,h&&_.setAttribute("nonce",h),document.head.appendChild(_),b)return new Promise((k,S)=>{_.addEventListener("load",k),_.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function u(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return r.then(c=>{for(const f of c||[])f.status==="rejected"&&u(f.reason);return t().catch(u)})},k7=()=>Je(()=>import("./route-v7PO6657.js"),__vite__mapDeps([0,1]),import.meta.url),S7=Qe("/(app)")({component:Ze(k7,"component")}),C7=()=>Je(()=>import("./index-D7CjbFS0.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,1]),import.meta.url),E7=Qe("/(app)/")({component:Ze(C7,"component"),staticData:{customData:{title:"Overview",icon:Y.jsx(Zt,{icon:PS})}}}),R7=()=>Je(()=>import("./signin-B_kUyGAp.js"),__vite__mapDeps([14,15,5,16,17,18,19,1]),import.meta.url),x7=Qe("/(auth)/signin")({component:Ze(R7,"component")}),T7=()=>Je(()=>import("./setup-CIRVKcq-.js"),__vite__mapDeps([20,15,5,16,17,18,19,1]),import.meta.url),w7=Qe("/(auth)/setup")({component:Ze(T7,"component")}),O7=()=>Je(()=>import("./environments-BHZ_35T8.js"),__vite__mapDeps([21,3,4,5,22,15,23,24,25,26,27,28,29,6,30,8,9,31,10,32,1]),import.meta.url),A7=Qe("/(app)/environments")({component:Ze(O7,"component"),staticData:{customData:{title:"Environments",icon:Y.jsx(Zt,{icon:NS})}}}),M7=()=>Je(()=>import("./configs-CWaFij7a.js"),__vite__mapDeps([33,22,15,23,24,25,26,27,28,3,4,29,6,7,8,9,5,31,34,11,12,10,32,35,1]),import.meta.url),D7=Qe("/(app)/configs")({component:Ze(M7,"component"),staticData:{customData:{title:"Configs",icon:Y.jsx(Zt,{icon:$S})}}}),L7=()=>Je(()=>import("./route-BlPm4saZ.js"),__vite__mapDeps([36,1]),import.meta.url),P7=Qe("/(app)/settings")({component:Ze(L7,"component"),staticData:{customData:{title:"Settings",icon:Y.jsx(Zt,{icon:zS})}}}),N7=()=>Je(()=>import("./route-DHkrULGT.js"),__vite__mapDeps([37,1]),import.meta.url),z7=e=>{const t=new Date;let s=new Date;switch(e){case"15m":s=new Date(t.getTime()-900*1e3);break;case"1h":s=new Date(t.getTime()-3600*1e3);break;case"3h":s=new Date(t.getTime()-10800*1e3);break;case"6h":s=new Date(t.getTime()-360*60*1e3);break;case"12h":s=new Date(t.getTime()-720*60*1e3);break;case"24h":s=new Date(t.getTime()-1440*60*1e3);break;case"2d":s=new Date(t.getTime()-2880*60*1e3);break;case"7d":s=new Date(t.getTime()-10080*60*1e3);break;case"30d":s=new Date(t.getTime()-720*60*60*1e3);break;case"90d":s=new Date(t.getTime()-2160*60*60*1e3);break;default:s=new Date(t.getTime()-10080*60*1e3)}return{from:s.toISOString(),to:t.toISOString()}},$7=Qe("/(app)/observability")({component:Ze(N7,"component"),validateSearch:e=>{const t=e.range||"7d",s=z7(t),o=e.from,r=e.to;let u=s.from,c=s.to;if(o){const b=new Date(o);isNaN(b.getTime())||(u=b.toISOString())}if(r){const b=new Date(r);isNaN(b.getTime())||(c=b.toISOString())}const f=e.environmentId,h=e.configId,g=e.variantId,m=e.tags;return{range:t,from:u,to:c,...f&&{environmentId:f},...h&&{configId:h},...g&&{variantId:g},...m&&{tags:m}}},staticData:{customData:{title:"Observability",icon:Y.jsx(Zt,{icon:jS})}}}),j7=()=>Je(()=>import("./index-CmwqDWtN.js"),__vite__mapDeps([38,1]),import.meta.url),U7=Qe("/(app)/settings/")({component:Ze(j7,"component")}),I7=()=>Je(()=>import("./index-Bx54WVNn.js"),__vite__mapDeps([39,1]),import.meta.url),V7=Qe("/(app)/observability/")({component:Ze(I7,"component")}),B7=()=>Je(()=>import("./_settings-BBP4PpLX.js"),__vite__mapDeps([40,3,4,5,10,41,1]),import.meta.url),q7=Qe("/(app)/settings/_settings")({component:Ze(B7,"component")}),H7=()=>Je(()=>import("./_observability-BsCcZkih.js"),__vite__mapDeps([42,3,4,5,43,27,44,45,30,7,46,47,10,48,1]),import.meta.url),F7=Qe("/(app)/observability/_observability")({component:Ze(H7,"component")});var K7=(e,t,s={})=>{let o=`${e}=${t}`;if(e.startsWith("__Secure-")&&!s.secure)throw new Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!s.secure)throw new Error("__Host- Cookie must have Secure attributes");if(s.path!=="/")throw new Error('__Host- Cookie must have Path attributes with "/"');if(s.domain)throw new Error("__Host- Cookie must not have Domain attributes")}if(s&&typeof s.maxAge=="number"&&s.maxAge>=0){if(s.maxAge>3456e4)throw new Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");o+=`; Max-Age=${s.maxAge|0}`}if(s.domain&&s.prefix!=="host"&&(o+=`; Domain=${s.domain}`),s.path&&(o+=`; Path=${s.path}`),s.expires){if(s.expires.getTime()-Date.now()>3456e7)throw new Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");o+=`; Expires=${s.expires.toUTCString()}`}if(s.httpOnly&&(o+="; HttpOnly"),s.secure&&(o+="; Secure"),s.sameSite&&(o+=`; SameSite=${s.sameSite.charAt(0).toUpperCase()+s.sameSite.slice(1)}`),s.priority&&(o+=`; Priority=${s.priority.charAt(0).toUpperCase()+s.priority.slice(1)}`),s.partitioned){if(!s.secure)throw new Error("Partitioned Cookie must have Secure attributes");o+="; Partitioned"}return o},G7=(e,t,s)=>(t=encodeURIComponent(t),K7(e,t,s)),Y7=(e,t)=>(e=e.replace(/\/+$/,""),e=e+"/",t=t.replace(/^\/+/,""),e+t),Up=(e,t)=>{for(const[s,o]of Object.entries(t)){const r=new RegExp("/:"+s+"(?:{[^/]+})?\\??");e=e.replace(r,o?`/${o}`:"")}return e},aE=e=>{const t=new URLSearchParams;for(const[s,o]of Object.entries(e))if(o!==void 0)if(Array.isArray(o))for(const r of o)t.append(s,r);else t.set(s,o);return t},Q7=(e,t)=>{switch(t){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},rE=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,"/"):e.replace(/\/index(?=\?|$)/,"");function Rc(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function lE(e,t){if(!Rc(e)&&!Rc(t))return t;const s={...e};for(const o in t){const r=t[o];Rc(s[o])&&Rc(r)?s[o]=lE(s[o],r):s[o]=r}return s}var uE=(e,t)=>new Proxy(()=>{},{get(o,r){if(!(typeof r!="string"||r==="then"))return uE(e,[...t,r])},apply(o,r,u){return e({path:t,args:u})}}),X7=class{url;method;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t){this.url=e,this.method=t}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=aE(e.query)),e.form){const f=new FormData;for(const[h,g]of Object.entries(e.form))if(Array.isArray(g))for(const m of g)f.append(h,m);else f.append(h,g);this.rBody=f}e.json&&(this.rBody=JSON.stringify(e.json),this.cType="application/json"),e.param&&(this.pathParams=e.param)}let s=this.method.toUpperCase();const o={...e?.header,...typeof t?.headers=="function"?await t.headers():t?.headers};if(e?.cookie){const f=[];for(const[h,g]of Object.entries(e.cookie))f.push(G7(h,g,{path:"/"}));o.Cookie=f.join(",")}this.cType&&(o["Content-Type"]=this.cType);const r=new Headers(o??void 0);let u=this.url;u=rE(u),u=Up(u,this.pathParams),this.queryParams&&(u=u+"?"+this.queryParams.toString()),s=this.method.toUpperCase();const c=!(s==="GET"||s==="HEAD");return(t?.fetch||fetch)(u,{body:c?this.rBody:void 0,method:s,headers:r,...t?.init})}},W7=(e,t)=>uE(function s(o){const r=[...o.path],u=r.slice(-3).reverse();if(u[0]==="toString")return u[1]==="name"?u[2]||"":s.toString();if(u[0]==="valueOf")return u[1]==="name"?u[2]||"":s;let c="";if(/^\$/.test(u[0])){const m=r.pop();m&&(c=m.replace(/^\$/,""))}const f=r.join("/"),h=Y7(e,f);if(c==="url"){let m=h;return o.args[0]&&(o.args[0].param&&(m=Up(h,o.args[0].param)),o.args[0].query&&(m=m+"?"+aE(o.args[0].query).toString())),m=rE(m),new URL(m)}if(c==="ws"){const m=Q7(o.args[0]&&o.args[0].param?Up(h,o.args[0].param):h,"ws"),b=new URL(m),y=o.args[0]?.query;return y&&Object.entries(y).forEach(([k,S])=>{Array.isArray(S)?S.forEach(C=>b.searchParams.append(k,C)):b.searchParams.set(k,S)}),((...k)=>t?.webSocket!==void 0&&typeof t.webSocket=="function"?t.webSocket(...k):new WebSocket(...k))(b.toString())}const g=new X7(h,c);if(c){t??={};const m=lE(t,{...o.args[1]});return g.fetch(o.args[0],m)}return g},[]);class Ip extends Error{response;request;options;constructor(t,s,o){const r=t.status||t.status===0?t.status:"",u=t.statusText??"",c=`${r} ${u}`.trim(),f=c?`status code ${c}`:"an unknown error";super(`Request failed with ${f}: ${s.method} ${s.url}`),this.name="HTTPError",this.response=t,this.request=s,this.options=o}}class cE extends Error{name="NonError";value;constructor(t){let s="Non-error value was thrown";try{typeof t=="string"?s=t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"&&(s=t.message)}catch{}super(s),this.value=t}}class Ig extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(t){const s=t?.cause?t.cause instanceof Error?t.cause:new cE(t.cause):void 0;super(t?.code?`Forced retry: ${t.code}`:"Forced retry",s?{cause:s}:void 0),this.customDelay=t?.delay,this.code=t?.code,this.customRequest=t?.request}}const l_=(()=>{let e=!1,t=!1;const s=typeof globalThis.ReadableStream=="function",o=typeof globalThis.Request=="function";if(s&&o)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(r){if(r instanceof Error&&r.message==="unsupported BodyInit type")return!1;throw r}return e&&!t})(),Z7=typeof globalThis.AbortController=="function",fE=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",J7=typeof globalThis.ReadableStream=="function",e8=typeof globalThis.FormData=="function",dE=["get","post","put","patch","head","delete"],t8={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Vg=2147483647,n8=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,hE=Symbol("stop");class gE{options;constructor(t){this.options=t}}const s8=e=>new gE(e),i8={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},o8={next:!0},a8={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},r8=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(const[s,o]of e)t+=n8,t+=new TextEncoder().encode(`Content-Disposition: form-data; name="${s}"`).length,t+=typeof o=="string"?new TextEncoder().encode(o).length:o.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if(typeof e=="string")return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if(typeof e=="object"&&e!==null)try{const t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{return 0}return 0},pE=(e,t,s)=>{let o,r=0;return e.pipeThrough(new TransformStream({transform(u,c){if(c.enqueue(u),o){r+=o.byteLength;let f=t===0?0:r/t;f>=1&&(f=1-Number.EPSILON),s?.({percent:f,totalBytes:Math.max(t,r),transferredBytes:r},o)}o=u},flush(){o&&(r+=o.byteLength,s?.({percent:1,totalBytes:Math.max(t,r),transferredBytes:r},o))}}))},l8=(e,t)=>{if(!e.body)return e;if(e.status===204)return new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers});const s=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(pE(e.body,s,t),{status:e.status,statusText:e.statusText,headers:e.headers})},u8=(e,t,s)=>{if(!e.body)return e;const o=r8(s??e.body);return new Request(e,{duplex:"half",body:pE(e.body,o,t)})},go=e=>e!==null&&typeof e=="object",xc=(...e)=>{for(const t of e)if((!go(t)||Array.isArray(t))&&t!==void 0)throw new TypeError("The `options` argument must be an object");return Zm({},...e)},mE=(e={},t={})=>{const s=new globalThis.Headers(e),o=t instanceof globalThis.Headers,r=new globalThis.Headers(t);for(const[u,c]of r.entries())o&&c==="undefined"||c===void 0?s.delete(u):s.set(u,c);return s};function Tc(e,t,s){return Object.hasOwn(t,s)&&t[s]===void 0?[]:Zm(e[s]??[],t[s]??[])}const bE=(e={},t={})=>({beforeRequest:Tc(e,t,"beforeRequest"),beforeRetry:Tc(e,t,"beforeRetry"),afterResponse:Tc(e,t,"afterResponse"),beforeError:Tc(e,t,"beforeError")}),c8=(e,t)=>{const s=new URLSearchParams;for(const o of[e,t])if(o!==void 0)if(o instanceof URLSearchParams)for(const[r,u]of o.entries())s.append(r,u);else if(Array.isArray(o))for(const r of o){if(!Array.isArray(r)||r.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");s.append(String(r[0]),String(r[1]))}else if(go(o))for(const[r,u]of Object.entries(o))u!==void 0&&s.append(r,String(u));else{const r=new URLSearchParams(o);for(const[u,c]of r.entries())s.append(u,c)}return s},Zm=(...e)=>{let t={},s={},o={},r;const u=[];for(const c of e)if(Array.isArray(c))Array.isArray(t)||(t=[]),t=[...t,...c];else if(go(c)){for(let[f,h]of Object.entries(c)){if(f==="signal"&&h instanceof globalThis.AbortSignal){u.push(h);continue}if(f==="context"){if(h!=null&&(!go(h)||Array.isArray(h)))throw new TypeError("The `context` option must be an object");t={...t,context:h==null?{}:{...t.context,...h}};continue}if(f==="searchParams"){h==null?r=void 0:r=r===void 0?h:c8(r,h);continue}go(h)&&f in t&&(h=Zm(t[f],h)),t={...t,[f]:h}}go(c.hooks)&&(o=bE(o,c.hooks),t.hooks=o),go(c.headers)&&(s=mE(s,c.headers),t.headers=s)}return r!==void 0&&(t.searchParams=r),u.length>0&&(u.length===1?t.signal=u[0]:fE?t.signal=AbortSignal.any(u):t.signal=u.at(-1)),t.context===void 0&&(t.context={}),t},f8=e=>dE.includes(e)?e.toUpperCase():e,d8=["get","put","head","delete","options","trace"],h8=[408,413,429,500,502,503,504],g8=[413,429,503],u_={limit:2,methods:d8,statusCodes:h8,afterStatusCodes:g8,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},p8=(e={})=>{if(typeof e=="number")return{...u_,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...u_,...e}};class Vp extends Error{request;constructor(t){super(`Request timed out: ${t.method} ${t.url}`),this.name="TimeoutError",this.request=t}}async function m8(e,t,s,o){return new Promise((r,u)=>{const c=setTimeout(()=>{s&&s.abort(),u(new Vp(e))},o.timeout);o.fetch(e,t).then(r).catch(u).then(()=>{clearTimeout(c)})})}async function b8(e,{signal:t}){return new Promise((s,o)=>{t&&(t.throwIfAborted(),t.addEventListener("abort",r,{once:!0}));function r(){clearTimeout(u),o(t.reason)}const u=setTimeout(()=>{t?.removeEventListener("abort",r),s()},e)})}const y8=(e,t)=>{const s={};for(const o in t)Object.hasOwn(t,o)&&!(o in a8)&&!(o in i8)&&(!(o in e)||o in o8)&&(s[o]=t[o]);return s},v8=e=>e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:typeof e=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;function _8(e){return e instanceof Ip||e?.name===Ip.name}function k8(e){return e instanceof Vp||e?.name===Vp.name}class Ol{static create(t,s){const o=new Ol(t,s),r=async()=>{if(typeof o.#e.timeout=="number"&&o.#e.timeout>Vg)throw new RangeError(`The \`timeout\` option cannot be greater than ${Vg}`);await Promise.resolve();let c=await o.#g();for(const f of o.#e.hooks.afterResponse){const h=o.#h(c.clone()),g=await f(o.request,o.#l(),h,{retryCount:o.#s});if(g instanceof globalThis.Response&&(c=g),g instanceof gE)throw await Promise.all([h.body?.cancel(),c.body?.cancel()]),new Ig(g.options)}if(o.#h(c),!c.ok&&(typeof o.#e.throwHttpErrors=="function"?o.#e.throwHttpErrors(c.status):o.#e.throwHttpErrors)){let f=new Ip(c,o.request,o.#l());for(const h of o.#e.hooks.beforeError)f=await h(f,{retryCount:o.#s});throw f}if(o.#e.onDownloadProgress){if(typeof o.#e.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!J7)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return l8(c.clone(),o.#e.onDownloadProgress)}return c},u=o.#u(r).finally(async()=>{const c=o.#r,f=[];c&&!c.bodyUsed&&f.push(c.body?.cancel()),o.request.bodyUsed||f.push(o.request.body?.cancel()),await Promise.all(f)});for(const[c,f]of Object.entries(t8))c==="bytes"&&typeof globalThis.Response?.prototype?.bytes!="function"||(u[c]=async()=>{o.request.headers.set("accept",o.request.headers.get("accept")||f);const h=await u;if(c==="json"){if(h.status===204)return"";const g=await h.text();return g===""?"":s.parseJson?s.parseJson(g):JSON.parse(g)}return h[c]()});return u}static#n(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof URLSearchParams)?Object.fromEntries(Object.entries(t).filter(([,s])=>s!==void 0)):t}request;#t;#s=0;#i;#e;#r;#o;#a;constructor(t,s={}){if(this.#i=t,this.#e={...s,headers:mE(this.#i.headers,s.headers),hooks:bE({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},s.hooks),method:f8(s.method??this.#i.method??"GET"),prefixUrl:String(s.prefixUrl||""),retry:p8(s.retry),throwHttpErrors:s.throwHttpErrors??!0,timeout:s.timeout??1e4,fetch:s.fetch??globalThis.fetch.bind(globalThis),context:s.context??{}},typeof this.#i!="string"&&!(this.#i instanceof URL||this.#i instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this.#e.prefixUrl&&typeof this.#i=="string"){if(this.#i.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this.#e.prefixUrl.endsWith("/")||(this.#e.prefixUrl+="/"),this.#i=this.#e.prefixUrl+this.#i}Z7&&fE&&(this.#o=this.#e.signal??this.#i.signal,this.#t=new globalThis.AbortController,this.#e.signal=this.#o?AbortSignal.any([this.#o,this.#t.signal]):this.#t.signal),l_&&(this.#e.duplex="half"),this.#e.json!==void 0&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));const o=s.headers&&new globalThis.Headers(s.headers).has("content-type");if(this.#i instanceof globalThis.Request&&(e8&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!o&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#i,this.#e),v8(this.#e.searchParams)){const u="?"+(typeof this.#e.searchParams=="string"?this.#e.searchParams.replace(/^\?/,""):new URLSearchParams(Ol.#n(this.#e.searchParams)).toString()),c=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,u);this.request=new globalThis.Request(c,this.#e)}if(this.#e.onUploadProgress){if(typeof this.#e.onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");if(!l_)throw new Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#f(this.request,this.#e.body??void 0)}}#d(){const t=this.#e.retry.delay(this.#s);let s=t;return this.#e.retry.jitter===!0?s=Math.random()*t:typeof this.#e.retry.jitter=="function"&&(s=this.#e.retry.jitter(t),(!Number.isFinite(s)||s<0)&&(s=t)),Math.min(this.#e.retry.backoffLimit,s)}async#p(t){if(this.#s++,this.#s>this.#e.retry.limit)throw t;const s=t instanceof Error?t:new cE(t);if(s instanceof Ig)return s.customDelay??this.#d();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw t;if(this.#e.retry.shouldRetry!==void 0){const o=await this.#e.retry.shouldRetry({error:s,retryCount:this.#s});if(o===!1)throw t;if(o===!0)return this.#d()}if(k8(t)&&!this.#e.retry.retryOnTimeout)throw t;if(_8(t)){if(!this.#e.retry.statusCodes.includes(t.response.status))throw t;const o=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Retry-After")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(o&&this.#e.retry.afterStatusCodes.includes(t.response.status)){let r=Number(o)*1e3;Number.isNaN(r)?r=Date.parse(o)-Date.now():r>=Date.parse("2024-01-01")&&(r-=Date.now());const u=this.#e.retry.maxRetryAfter??r;return r<u?r:u}if(t.response.status===413)throw t}return this.#d()}#h(t){return this.#e.parseJson&&(t.json=async()=>this.#e.parseJson(await t.text())),t}async#u(t){try{return await t()}catch(s){const o=Math.min(await this.#p(s),Vg);if(this.#s<1)throw s;if(await b8(o,this.#o?{signal:this.#o}:{}),s instanceof Ig&&s.customRequest){const r=this.#e.signal?new globalThis.Request(s.customRequest,{signal:this.#e.signal}):new globalThis.Request(s.customRequest);this.#c(r)}for(const r of this.#e.hooks.beforeRetry){const u=await r({request:this.request,options:this.#l(),error:s,retryCount:this.#s});if(u instanceof globalThis.Request){this.#c(u);break}if(u instanceof globalThis.Response)return u;if(u===hE)return}return this.#u(t)}}async#g(){this.#t?.signal.aborted&&(this.#t=new globalThis.AbortController,this.#e.signal=this.#o?AbortSignal.any([this.#o,this.#t.signal]):this.#t.signal,this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));for(const s of this.#e.hooks.beforeRequest){const o=await s(this.request,this.#l(),{retryCount:this.#s});if(o instanceof Response)return o;if(o instanceof globalThis.Request){this.#c(o);break}}const t=y8(this.request,this.#e);return this.#r=this.request,this.request=this.#r.clone(),this.#e.timeout===!1?this.#e.fetch(this.#r,t):m8(this.#r,t,this.#t,this.#e)}#l(){if(!this.#a){const{hooks:t,...s}=this.#e;this.#a=Object.freeze(s)}return this.#a}#c(t){this.#a=void 0,this.request=this.#f(t)}#f(t,s){return!this.#e.onUploadProgress||!t.body?t:u8(t,this.#e.onUploadProgress,s??this.#e.body??void 0)}}const Bp=e=>{const t=(s,o)=>Ol.create(s,xc(e,o));for(const s of dE)t[s]=(o,r)=>Ol.create(o,xc(e,r,{method:s}));return t.create=s=>Bp(xc(s)),t.extend=s=>(typeof s=="function"&&(s=s(e??{})),Bp(xc(e,s))),t.stop=hE,t.retry=s8,t},S8=Bp(),C8=S8.create({retry:0,timeout:150*1e3}),c_=new URL((window.bootstrapData?.basePath==="/"?"":window.bootstrapData?.basePath)+"/api",window.location.origin),Jm=W7(c_.origin+c_.pathname,{fetch:C8});var jl=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(){}},E8={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},R8=class{#n=E8;#t=!1;setTimeoutProvider(e){this.#n=e}setTimeout(e,t){return this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}},bo=new R8;function x8(e){setTimeout(e,0)}var Mo=typeof window>"u"||"Deno"in globalThis;function vn(){}function T8(e,t){return typeof e=="function"?e(t):e}function qp(e){return typeof e=="number"&&e>=0&&e!==1/0}function yE(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ji(e,t){return typeof e=="function"?e(t):e}function Xn(e,t){return typeof e=="function"?e(t):e}function f_(e,t){const{type:s="all",exact:o,fetchStatus:r,predicate:u,queryKey:c,stale:f}=e;if(c){if(o){if(t.queryHash!==eb(c,t.options))return!1}else if(!Ml(t.queryKey,c))return!1}if(s!=="all"){const h=t.isActive();if(s==="active"&&!h||s==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||r&&r!==t.state.fetchStatus||u&&!u(t))}function d_(e,t){const{exact:s,status:o,predicate:r,mutationKey:u}=e;if(u){if(!t.options.mutationKey)return!1;if(s){if(Al(t.options.mutationKey)!==Al(u))return!1}else if(!Ml(t.options.mutationKey,u))return!1}return!(o&&t.state.status!==o||r&&!r(t))}function eb(e,t){return(t?.queryKeyHashFn||Al)(e)}function Al(e){return JSON.stringify(e,(t,s)=>Fp(s)?Object.keys(s).sort().reduce((o,r)=>(o[r]=s[r],o),{}):s)}function Ml(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(s=>Ml(e[s],t[s])):!1}var w8=Object.prototype.hasOwnProperty;function vE(e,t){if(e===t)return e;const s=h_(e)&&h_(t);if(!s&&!(Fp(e)&&Fp(t)))return t;const r=(s?e:Object.keys(e)).length,u=s?t:Object.keys(t),c=u.length,f=s?new Array(c):{};let h=0;for(let g=0;g<c;g++){const m=s?g:u[g],b=e[m],y=t[m];if(b===y){f[m]=b,(s?g<r:w8.call(e,m))&&h++;continue}if(b===null||y===null||typeof b!="object"||typeof y!="object"){f[m]=y;continue}const _=vE(b,y);f[m]=_,_===b&&h++}return r===c&&h===r?e:f}function Hp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function h_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fp(e){if(!g_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!g_(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function g_(e){return Object.prototype.toString.call(e)==="[object Object]"}function O8(e){return new Promise(t=>{bo.setTimeout(t,e)})}function Kp(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?vE(e,t):t}function A8(e,t,s=0){const o=[...e,t];return s&&o.length>s?o.slice(1):o}function M8(e,t,s=0){const o=[t,...e];return s&&o.length>s?o.slice(0,-1):o}var tb=Symbol();function _E(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===tb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function D8(e,t){return typeof e=="function"?e(...t):!!e}var L8=class extends jl{#n;#t;#s;constructor(){super(),this.#s=e=>{if(!Mo&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#n!==e&&(this.#n=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#n=="boolean"?this.#n:globalThis.document?.visibilityState!=="hidden"}},nb=new L8;function Gp(){let e,t;const s=new Promise((r,u)=>{e=r,t=u});s.status="pending",s.catch(()=>{});function o(r){Object.assign(s,r),delete s.resolve,delete s.reject}return s.resolve=r=>{o({status:"fulfilled",value:r}),e(r)},s.reject=r=>{o({status:"rejected",reason:r}),t(r)},s}var P8=x8;function N8(){let e=[],t=0,s=f=>{f()},o=f=>{f()},r=P8;const u=f=>{t?e.push(f):r(()=>{s(f)})},c=()=>{const f=e;e=[],f.length&&r(()=>{o(()=>{f.forEach(h=>{s(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||c()}return h},batchCalls:f=>(...h)=>{u(()=>{f(...h)})},schedule:u,setNotifyFunction:f=>{s=f},setBatchNotifyFunction:f=>{o=f},setScheduler:f=>{r=f}}}var Yt=N8(),z8=class extends jl{#n=!0;#t;#s;constructor(){super(),this.#s=e=>{if(!Mo&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#n}},_f=new z8;function $8(e){return Math.min(1e3*2**e,3e4)}function kE(e){return(e??"online")==="online"?_f.isOnline():!0}var Yp=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function SE(e){let t=!1,s=0,o;const r=Gp(),u=()=>r.status!=="pending",c=S=>{if(!u()){const C=new Yp(S);y(C),e.onCancel?.(C)}},f=()=>{t=!0},h=()=>{t=!1},g=()=>nb.isFocused()&&(e.networkMode==="always"||_f.isOnline())&&e.canRun(),m=()=>kE(e.networkMode)&&e.canRun(),b=S=>{u()||(o?.(),r.resolve(S))},y=S=>{u()||(o?.(),r.reject(S))},_=()=>new Promise(S=>{o=C=>{(u()||g())&&S(C)},e.onPause?.()}).then(()=>{o=void 0,u()||e.onContinue?.()}),k=()=>{if(u())return;let S;const C=s===0?e.initialPromise:void 0;try{S=C??e.fn()}catch(R){S=Promise.reject(R)}Promise.resolve(S).then(b).catch(R=>{if(u())return;const T=e.retry??(Mo?0:3),A=e.retryDelay??$8,w=typeof A=="function"?A(s,R):A,x=T===!0||typeof T=="number"&&s<T||typeof T=="function"&&T(s,R);if(t||!x){y(R);return}s++,e.onFail?.(s,R),O8(w).then(()=>g()?void 0:_()).then(()=>{t?y(R):k()})})};return{promise:r,status:()=>r.status,cancel:c,continue:()=>(o?.(),r),cancelRetry:f,continueRetry:h,canStart:m,start:()=>(m()?k():_().then(k),r)}}var CE=class{#n;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qp(this.gcTime)&&(this.#n=bo.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Mo?1/0:300*1e3))}clearGcTimeout(){this.#n&&(bo.clearTimeout(this.#n),this.#n=void 0)}},j8=class extends CE{#n;#t;#s;#i;#e;#r;#o;constructor(e){super(),this.#o=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#s=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#n=m_(this.options),this.state=e.state??this.#n,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#e?.promise}setOptions(e){if(this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=m_(this.options);t.data!==void 0&&(this.setState(p_(t.data,t.dataUpdatedAt)),this.#n=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this)}setData(e,t){const s=Kp(this.state.data,e,this.options);return this.#a({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#e?.promise;return this.#e?.cancel(e),t?t.then(vn).catch(vn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#n)}isActive(){return this.observers.some(e=>Xn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ji(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!yE(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#e?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#e?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#e&&(this.#o?this.#e.cancel({revert:!0}):this.#e.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#e?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#e)return this.#e.continueRetry(),this.#e.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const s=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},r=()=>{const f=_E(this.options,t),g=(()=>{const m={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(m),m})();return this.#o=!1,this.options.persister?this.options.persister(f,g,this):f(g)},c=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return o(f),f})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#e=SE({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:f=>{f instanceof Yp&&f.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const f=await this.#e.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#s.config.onSuccess?.(f,this),this.#s.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Yp){if(f.silent)return this.#e.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#a({type:"error",error:f}),this.#s.config.onError?.(f,this),this.#s.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#a(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...EE(s.data,this.options),fetchMeta:e.meta??null};case"success":const o={...s,...p_(e.data,e.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?o:void 0,o;case"error":const r=e.error;return{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),Yt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function EE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kE(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function p_(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function m_(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,o=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var U8=class extends jl{constructor(e,t){super(),this.options=t,this.#n=e,this.#a=null,this.#o=Gp(),this.bindMethods(),this.setOptions(t)}#n;#t=void 0;#s=void 0;#i=void 0;#e;#r;#o;#a;#d;#p;#h;#u;#g;#l;#c=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),b_(this.#t,this.options)?this.#f():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qp(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qp(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#k(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,s=this.#t;if(this.options=this.#n.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Hp(this.options,t)&&this.#n.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&y_(this.#t,s,this.options,t)&&this.#f(),this.updateResult(),o&&(this.#t!==s||Xn(this.options.enabled,this.#t)!==Xn(t.enabled,this.#t)||ji(this.options.staleTime,this.#t)!==ji(t.staleTime,this.#t))&&this.#m();const r=this.#b();o&&(this.#t!==s||Xn(this.options.enabled,this.#t)!==Xn(t.enabled,this.#t)||r!==this.#l)&&this.#y(r)}getOptimisticResult(e){const t=this.#n.getQueryCache().build(this.#n,e),s=this.createResult(t,e);return V8(this,s)&&(this.#i=s,this.#r=this.options,this.#e=this.#t.state),s}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(s,o)=>(this.trackProp(o),t?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(e){this.#c.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#n.defaultQueryOptions(e),s=this.#n.getQueryCache().build(this.#n,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(vn)),t}#m(){this.#_();const e=ji(this.options.staleTime,this.#t);if(Mo||this.#i.isStale||!qp(e))return;const s=yE(this.#i.dataUpdatedAt,e)+1;this.#u=bo.setTimeout(()=>{this.#i.isStale||this.updateResult()},s)}#b(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#k(),this.#l=e,!(Mo||Xn(this.options.enabled,this.#t)===!1||!qp(this.#l)||this.#l===0)&&(this.#g=bo.setInterval(()=>{(this.options.refetchIntervalInBackground||nb.isFocused())&&this.#f()},this.#l))}#v(){this.#m(),this.#y(this.#b())}#_(){this.#u&&(bo.clearTimeout(this.#u),this.#u=void 0)}#k(){this.#g&&(bo.clearInterval(this.#g),this.#g=void 0)}createResult(e,t){const s=this.#t,o=this.options,r=this.#i,u=this.#e,c=this.#r,h=e!==s?e.state:this.#s,{state:g}=e;let m={...g},b=!1,y;if(t._optimisticResults){const P=this.hasListeners(),V=!P&&b_(e,t),Z=P&&y_(e,s,t,o);(V||Z)&&(m={...m,...EE(g.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:_,errorUpdatedAt:k,status:S}=m;y=m.data;let C=!1;if(t.placeholderData!==void 0&&y===void 0&&S==="pending"){let P;r?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(P=r.data,C=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,P!==void 0&&(S="success",y=Kp(r?.data,P,t),b=!0)}if(t.select&&y!==void 0&&!C)if(r&&y===u?.data&&t.select===this.#d)y=this.#p;else try{this.#d=t.select,y=t.select(y),y=Kp(r?.data,y,t),this.#p=y,this.#a=null}catch(P){this.#a=P}this.#a&&(_=this.#a,y=this.#p,k=Date.now(),S="error");const R=m.fetchStatus==="fetching",T=S==="pending",A=S==="error",w=T&&R,x=y!==void 0,L={status:S,fetchStatus:m.fetchStatus,isPending:T,isSuccess:S==="success",isError:A,isInitialLoading:w,isLoading:w,data:y,dataUpdatedAt:m.dataUpdatedAt,error:_,errorUpdatedAt:k,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:R,isRefetching:R&&!T,isLoadingError:A&&!x,isPaused:m.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:A&&x,isStale:sb(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Xn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=z=>{L.status==="error"?z.reject(L.error):L.data!==void 0&&z.resolve(L.data)},V=()=>{const z=this.#o=L.promise=Gp();P(z)},Z=this.#o;switch(Z.status){case"pending":e.queryHash===s.queryHash&&P(Z);break;case"fulfilled":(L.status==="error"||L.data!==Z.value)&&V();break;case"rejected":(L.status!=="error"||L.error!==Z.reason)&&V();break}}return L}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#e=this.#t.state,this.#r=this.options,this.#e.data!==void 0&&(this.#h=this.#t),Hp(t,e))return;this.#i=t;const s=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!this.#c.size)return!0;const u=new Set(r??this.#c);return this.options.throwOnError&&u.add("error"),Object.keys(this.#i).some(c=>{const f=c;return this.#i[f]!==e[f]&&u.has(f)})};this.#C({listeners:s()})}#S(){const e=this.#n.getQueryCache().build(this.#n,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#s=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#C(e){Yt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#n.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function I8(e,t){return Xn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function b_(e,t){return I8(e,t)||e.state.data!==void 0&&Qp(e,t,t.refetchOnMount)}function Qp(e,t,s){if(Xn(t.enabled,e)!==!1&&ji(t.staleTime,e)!=="static"){const o=typeof s=="function"?s(e):s;return o==="always"||o!==!1&&sb(e,t)}return!1}function y_(e,t,s,o){return(e!==t||Xn(o.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&sb(e,s)}function sb(e,t){return Xn(t.enabled,e)!==!1&&e.isStaleByTime(ji(t.staleTime,e))}function V8(e,t){return!Hp(e.getCurrentResult(),t)}function v_(e){return{onFetch:(t,s)=>{const o=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,u=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},h=0;const g=async()=>{let m=!1;const b=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},y=_E(t.options,t.fetchOptions),_=async(k,S,C)=>{if(m)return Promise.reject();if(S==null&&k.pages.length)return Promise.resolve(k);const T=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return b(M),M})(),A=await y(T),{maxPages:w}=t.options,x=C?M8:A8;return{pages:x(k.pages,A,w),pageParams:x(k.pageParams,S,w)}};if(r&&u.length){const k=r==="backward",S=k?B8:__,C={pages:u,pageParams:c},R=S(o,C);f=await _(C,R,k)}else{const k=e??u.length;do{const S=h===0?c[0]??o.initialPageParam:__(o,f);if(h>0&&S==null)break;f=await _(f,S),h++}while(h<k)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(g,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=g}}}function __(e,{pages:t,pageParams:s}){const o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,s[o],s):void 0}function B8(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}var q8=class extends CE{#n;#t;#s;#i;constructor(e){super(),this.#n=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#t=[],this.state=e.state||H8(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#e({type:"continue"})},s={client:this.#n,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=SE({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(u,c)=>{this.#e({type:"failed",failureCount:u,error:c})},onPause:()=>{this.#e({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const o=this.state.status==="pending",r=!this.#i.canStart();try{if(o)t();else{this.#e({type:"pending",variables:e,isPaused:r}),await this.#s.config.onMutate?.(e,this,s);const c=await this.options.onMutate?.(e,s);c!==this.state.context&&this.#e({type:"pending",context:c,variables:e,isPaused:r})}const u=await this.#i.start();return await this.#s.config.onSuccess?.(u,e,this.state.context,this,s),await this.options.onSuccess?.(u,e,this.state.context,s),await this.#s.config.onSettled?.(u,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(u,null,e,this.state.context,s),this.#e({type:"success",data:u}),u}catch(u){try{throw await this.#s.config.onError?.(u,e,this.state.context,this,s),await this.options.onError?.(u,e,this.state.context,s),await this.#s.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(void 0,u,e,this.state.context,s),u}finally{this.#e({type:"error",error:u})}}finally{this.#s.runNext(this)}}#e(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Yt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function H8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var F8=class extends jl{constructor(e={}){super(),this.config=e,this.#n=new Set,this.#t=new Map,this.#s=0}#n;#t;#s;build(e,t,s){const o=new q8({client:e,mutationCache:this,mutationId:++this.#s,options:e.defaultMutationOptions(t),state:s});return this.add(o),o}add(e){this.#n.add(e);const t=wc(e);if(typeof t=="string"){const s=this.#t.get(t);s?s.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#n.delete(e)){const t=wc(e);if(typeof t=="string"){const s=this.#t.get(t);if(s)if(s.length>1){const o=s.indexOf(e);o!==-1&&s.splice(o,1)}else s[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=wc(e);if(typeof t=="string"){const o=this.#t.get(t)?.find(r=>r.state.status==="pending");return!o||o===e}else return!0}runNext(e){const t=wc(e);return typeof t=="string"?this.#t.get(t)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Yt.batch(()=>{this.#n.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#n.clear(),this.#t.clear()})}getAll(){return Array.from(this.#n)}find(e){const t={exact:!0,...e};return this.getAll().find(s=>d_(t,s))}findAll(e={}){return this.getAll().filter(t=>d_(e,t))}notify(e){Yt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Yt.batch(()=>Promise.all(e.map(t=>t.continue().catch(vn))))}};function wc(e){return e.options.scope?.id}var K8=class extends jl{constructor(e={}){super(),this.config=e,this.#n=new Map}#n;build(e,t,s){const o=t.queryKey,r=t.queryHash??eb(o,t);let u=this.get(r);return u||(u=new j8({client:e,queryKey:o,queryHash:r,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(o)}),this.add(u)),u}add(e){this.#n.has(e.queryHash)||(this.#n.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#n.get(e.queryHash);t&&(e.destroy(),t===e&&this.#n.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Yt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#n.get(e)}getAll(){return[...this.#n.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(s=>f_(t,s))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(s=>f_(e,s)):t}notify(e){Yt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Yt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Yt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},G8=class{#n;#t;#s;#i;#e;#r;#o;#a;constructor(e={}){this.#n=e.queryCache||new K8,this.#t=e.mutationCache||new F8,this.#s=e.defaultOptions||{},this.#i=new Map,this.#e=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=nb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#n.onFocus())}),this.#a=_f.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#n.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#n.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#n.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),s=this.#n.build(this,t),o=s.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(ji(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return this.#n.findAll(e).map(({queryKey:t,state:s})=>{const o=s.data;return[t,o]})}setQueryData(e,t,s){const o=this.defaultQueryOptions({queryKey:e}),u=this.#n.get(o.queryHash)?.state.data,c=T8(t,u);if(c!==void 0)return this.#n.build(this,o).setData(c,{...s,manual:!0})}setQueriesData(e,t,s){return Yt.batch(()=>this.#n.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,s)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#n.get(t.queryHash)?.state}removeQueries(e){const t=this.#n;Yt.batch(()=>{t.findAll(e).forEach(s=>{t.remove(s)})})}resetQueries(e,t){const s=this.#n;return Yt.batch(()=>(s.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const s={revert:!0,...t},o=Yt.batch(()=>this.#n.findAll(e).map(r=>r.cancel(s)));return Promise.all(o).then(vn).catch(vn)}invalidateQueries(e,t={}){return Yt.batch(()=>(this.#n.findAll(e).forEach(s=>{s.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const s={...t,cancelRefetch:t.cancelRefetch??!0},o=Yt.batch(()=>this.#n.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let u=r.fetch(void 0,s);return s.throwOnError||(u=u.catch(vn)),r.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(o).then(vn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=this.#n.build(this,t);return s.isStaleByTime(ji(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vn).catch(vn)}fetchInfiniteQuery(e){return e.behavior=v_(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vn).catch(vn)}ensureInfiniteQueryData(e){return e.behavior=v_(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _f.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#n}getMutationCache(){return this.#t}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#i.set(Al(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],s={};return t.forEach(o=>{Ml(e,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(e,t){this.#e.set(Al(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#e.values()],s={};return t.forEach(o=>{Ml(e,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#s.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=eb(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===tb&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#n.clear(),this.#t.clear()}},RE=E.createContext(void 0),Y8=e=>{const t=E.useContext(RE);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Q8=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Y.jsx(RE.Provider,{value:e,children:t})),xE=E.createContext(!1),X8=()=>E.useContext(xE);xE.Provider;function W8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Z8=E.createContext(W8()),J8=()=>E.useContext(Z8),e$=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},t$=e=>{E.useEffect(()=>{e.clearReset()},[e])},n$=({result:e,errorResetBoundary:t,throwOnError:s,query:o,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(r&&e.data===void 0||D8(s,[e.error,o])),s$=e=>{if(e.suspense){const s=r=>r==="static"?r:Math.max(r??1e3,1e3),o=e.staleTime;e.staleTime=typeof o=="function"?(...r)=>s(o(...r)):s(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},i$=(e,t)=>e.isLoading&&e.isFetching&&!t,o$=(e,t)=>e?.suspense&&t.isPending,k_=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function a$(e,t,s){const o=X8(),r=J8(),u=Y8(),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=o?"isRestoring":"optimistic",s$(c),e$(c,r),t$(r);const f=!u.getQueryCache().get(c.queryHash),[h]=E.useState(()=>new t(u,c)),g=h.getOptimisticResult(c),m=!o&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(b=>{const y=m?h.subscribe(Yt.batchCalls(b)):vn;return h.updateResult(),y},[h,m]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),E.useEffect(()=>{h.setOptions(c)},[c,h]),o$(c,g))throw k_(c,h,r);if(n$({result:g,errorResetBoundary:r,throwOnError:c.throwOnError,query:u.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw g.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(c,g),c.experimental_prefetchInRender&&!Mo&&i$(g,o)&&(f?k_(c,h,r):u.getQueryCache().get(c.queryHash)?.promise)?.catch(vn).finally(()=>{h.updateResult()}),c.notifyOnChangeProps?g:h.trackResult(g)}function ib(e,t){return a$(e,U8)}function Jj(e){return e}const ob=e=>({queryKey:["environment",e],queryFn:async()=>{const s=await(await Jm.v1.environments[":id"].$get({param:{id:e}})).json(),o="data"in s?s.data:null;return o?{...o,isProd:o.isProd===!0||o.isProd===1||o.isProd==="true"}:null},enabled:!!e&&e!=="new",staleTime:1e3*60*5}),eU=e=>{const t=Ut.c(2);let s;return t[0]!==e?(s=ob(e),t[0]=e,t[1]=s):s=t[1],ib(s)},r$=()=>Je(()=>import("./route-mr2mV0Yu.js"),__vite__mapDeps([49,1]),import.meta.url),l$=Qe("/(app)/environments/$environment")({component:Ze(r$,"component"),loader:async({params:e,context:t})=>e.environment==="new"?{title:"New Environment"}:{title:(await t.queryClient.ensureQueryData(ob(e.environment)))?.name??e.environment}}),ab=e=>({queryKey:["config",e],queryFn:async()=>{const s=await(await Jm.v1.configs[":id"].$get({param:{id:e}})).json();return"data"in s?s.data:null},enabled:!!e&&e!=="new",staleTime:1e3*60*5}),tU=e=>{const t=Ut.c(2);let s;return t[0]!==e?(s=ab(e),t[0]=e,t[1]=s):s=t[1],ib(s)},u$=()=>Je(()=>import("./route-D4DCefa9.js"),__vite__mapDeps([50,1]),import.meta.url),c$=Qe("/(app)/configs/$id")({component:Ze(u$,"component"),loader:async({params:e,context:t})=>e.id==="new"?{title:"New Config"}:{title:(await t.queryClient.ensureQueryData(ab(e.id)))?.name??e.id}}),f$=()=>Je(()=>import("./index-Ba7KtRo4.js"),__vite__mapDeps([51,16,17,52,53,1]),import.meta.url),d$=Qe("/(app)/environments/$environment/")({component:Ze(f$,"component"),loader:async({params:e,context:t})=>e.environment==="new"?{title:"New Environment"}:{title:(await t.queryClient.ensureQueryData(ob(e.environment)))?.name??e.environment}}),h$=()=>Je(()=>import("./index-DdbFK5pg.js"),__vite__mapDeps([54,16,17,52,53,1]),import.meta.url),g$=Qe("/(app)/configs/$id/")({component:Ze(h$,"component"),loader:async({params:e,context:t})=>e.id==="new"?{title:"New Config"}:{title:(await t.queryClient.ensureQueryData(ab(e.id)))?.name??e.id}}),p$=()=>Je(()=>import("./workspace-providers-CBKGYtAx.js"),__vite__mapDeps([55,5,44,45,56,31,34,57,58,1]),import.meta.url),m$=Qe("/(app)/settings/_settings/workspace-providers")({component:Ze(p$,"component"),staticData:{customData:{title:"Providers",icon:Y.jsx(Zt,{icon:j4})}}}),b$=()=>Je(()=>import("./workspace-general-CRDqD2_R.js"),__vite__mapDeps([59,31,60,1]),import.meta.url),y$=Qe("/(app)/settings/_settings/workspace-general")({component:Ze(b$,"component"),staticData:{customData:{title:"Workspace",icon:Y.jsx(Zt,{icon:k4})}}}),v$=()=>Je(()=>import("./user-profile-CbijLYlM.js"),__vite__mapDeps([61,62,63,1]),import.meta.url),_$=Qe("/(app)/settings/_settings/user-profile")({component:Ze(v$,"component"),staticData:{customData:{title:"Profile",icon:Y.jsx(Zt,{icon:F4})}}}),k$=()=>Je(()=>import("./requests-jUGszjv8.js"),__vite__mapDeps([64,47,7,29,5,6,43,27,65,66,9,11,10,1]),import.meta.url),S$=Qe("/(app)/observability/_observability/requests")({component:Ze(k$,"component"),staticData:{customData:{title:"Requests",icon:Y.jsx(Zt,{icon:A4})}}}),C$=()=>Je(()=>import("./overview-BhnAFrza.js"),__vite__mapDeps([67,47,65,66,1]),import.meta.url),E$=Qe("/(app)/observability/_observability/overview")({component:Ze(C$,"component"),staticData:{customData:{title:"Overview",icon:Y.jsx(Zt,{icon:C4})}}}),R$=()=>Je(()=>import("./costs-5Vkkcitr.js"),__vite__mapDeps([68,47,65,66,1]),import.meta.url),x$=Qe("/(app)/observability/_observability/costs")({component:Ze(R$,"component"),staticData:{customData:{title:"Costs",icon:Y.jsx(Zt,{icon:T4})}}}),T$=()=>Je(()=>import("./_tabs-DhgOS8ht.js"),__vite__mapDeps([69,70,25,1]),import.meta.url),w$=Qe("/(app)/environments/$environment/_tabs")({component:Ze(T$,"component")}),O$=()=>Je(()=>import("./_variants-B1QyPFs9.js"),__vite__mapDeps([71,1]),import.meta.url),A$=Qe("/(app)/configs/$id/_variants")({component:Ze(O$,"component"),staticData:{customData:{title:"Variants"}}}),M$=()=>Je(()=>import("./_tabs-DrzB5Z0A.js"),__vite__mapDeps([72,70,25,1]),import.meta.url),D$=Qe("/(app)/configs/$id/_tabs")({component:Ze(M$,"component")}),L$=()=>Je(()=>import("./settings-IRh_XlY0.js"),__vite__mapDeps([73,31,30,26,27,74,57,45,75,1]),import.meta.url),P$=Qe("/(app)/environments/$environment/_tabs/settings")({component:Ze(L$,"component"),staticData:{customData:{title:"Settings"}}}),N$=()=>Je(()=>import("./secrets-Bn-e_u13.js"),__vite__mapDeps([76,11,12,77,1]),import.meta.url),z$=Qe("/(app)/environments/$environment/_tabs/secrets")({component:Ze(N$,"component")}),$$=()=>Je(()=>import("./variants-Bgidd8eE.js"),__vite__mapDeps([78,5,6,46,79,80,32,1]),import.meta.url),j$=Qe("/(app)/configs/$id/_tabs/variants")({component:Ze($$,"component"),staticData:{customData:{title:"Variants"}}}),U$=()=>Je(()=>import("./targeting-CbWcgm3w.js"),__vite__mapDeps([81,6,30,82,79,80,1]),import.meta.url),I$=Qe("/(app)/configs/$id/_tabs/targeting")({component:Ze(U$,"component"),staticData:{customData:{title:"Targeting"}}}),V$=()=>Je(()=>import("./settings-DmnvYt0Y.js"),__vite__mapDeps([83,31,7,74,57,45,84,1]),import.meta.url),B$=Qe("/(app)/configs/$id/_tabs/settings")({component:Ze(V$,"component"),staticData:{customData:{title:"Settings"}}}),TE=e=>({queryKey:["variant",e],queryFn:async()=>{const s=await(await Jm.v1.variants[":id"].$get({param:{id:e}})).json();return"data"in s?s.data:null},enabled:!!e,staleTime:1e3*60*5}),nU=e=>{const t=Ut.c(2);let s;return t[0]!==e?(s=TE(e),t[0]=e,t[1]=s):s=t[1],ib(s)},q$=()=>Je(()=>import("./_variant-CnHZzp0Z.js"),__vite__mapDeps([85,44,45,15,86,31,82,87,23,24,25,43,27,56,10,11,46,5,30,88,1]),import.meta.url),H$=Qe("/(app)/configs/$id/_variants/variants/$variant")({component:Ze(q$,"component"),loader:async({params:e,context:t})=>e.variant==="new"?{title:"New Variant"}:{title:(await t.queryClient.ensureQueryData(TE(e.variant)))?.name??e.variant}}),F$=()=>Je(()=>import("./_environment-DK0RuLfe.js"),__vite__mapDeps([89,5,44,45,30,46,82,86,31,87,62,63,1]),import.meta.url),K$=Qe("/(app)/configs/$id/_targeting/targeting/$environment")({component:Ze(F$,"component")}),Wa=S7.update({id:"/(app)",getParentRoute:()=>Nf}),G$=E7.update({id:"/",path:"/",getParentRoute:()=>Wa}),Y$=x7.update({id:"/(auth)/signin",path:"/signin",getParentRoute:()=>Nf}),Q$=w7.update({id:"/(auth)/setup",path:"/setup",getParentRoute:()=>Nf}),wE=A7.update({id:"/environments",path:"/environments",getParentRoute:()=>Wa}),OE=D7.update({id:"/configs",path:"/configs",getParentRoute:()=>Wa}),rb=P7.update({id:"/settings",path:"/settings",getParentRoute:()=>Wa}),lb=$7.update({id:"/observability",path:"/observability",getParentRoute:()=>Wa}),X$=U7.update({id:"/",path:"/",getParentRoute:()=>rb}),W$=V7.update({id:"/",path:"/",getParentRoute:()=>lb}),zf=q7.update({id:"/_settings",getParentRoute:()=>rb}),$f=F7.update({id:"/_observability",getParentRoute:()=>lb}),ub=l$.update({id:"/$environment",path:"/$environment",getParentRoute:()=>wE}),Ul=c$.update({id:"/$id",path:"/$id",getParentRoute:()=>OE}),Z$=d$.update({id:"/",path:"/",getParentRoute:()=>ub}),J$=g$.update({id:"/",path:"/",getParentRoute:()=>Ul}),e9=m$.update({id:"/workspace-providers",path:"/workspace-providers",getParentRoute:()=>zf}),t9=y$.update({id:"/workspace-general",path:"/workspace-general",getParentRoute:()=>zf}),n9=_$.update({id:"/user-profile",path:"/user-profile",getParentRoute:()=>zf}),s9=S$.update({id:"/requests",path:"/requests",getParentRoute:()=>$f}),i9=E$.update({id:"/overview",path:"/overview",getParentRoute:()=>$f}),o9=x$.update({id:"/costs",path:"/costs",getParentRoute:()=>$f}),cb=w$.update({id:"/_tabs",getParentRoute:()=>ub}),AE=A$.update({id:"/_variants",getParentRoute:()=>Ul}),jf=D$.update({id:"/_tabs",getParentRoute:()=>Ul}),a9=P$.update({id:"/settings",path:"/settings",getParentRoute:()=>cb}),r9=z$.update({id:"/secrets",path:"/secrets",getParentRoute:()=>cb}),l9=j$.update({id:"/variants",path:"/variants",getParentRoute:()=>jf}),u9=I$.update({id:"/targeting",path:"/targeting",getParentRoute:()=>jf}),c9=B$.update({id:"/settings",path:"/settings",getParentRoute:()=>jf}),f9=H$.update({id:"/variants/$variant",path:"/variants/$variant",getParentRoute:()=>AE}),d9=K$.update({id:"/_targeting/targeting/$environment",path:"/targeting/$environment",getParentRoute:()=>Ul}),h9={appObservabilityObservabilityCostsRoute:o9,appObservabilityObservabilityOverviewRoute:i9,appObservabilityObservabilityRequestsRoute:s9},g9=$f._addFileChildren(h9),p9={appObservabilityObservabilityRoute:g9,appObservabilityIndexRoute:W$},m9=lb._addFileChildren(p9),b9={appSettingsSettingsUserProfileRoute:n9,appSettingsSettingsWorkspaceGeneralRoute:t9,appSettingsSettingsWorkspaceProvidersRoute:e9},y9=zf._addFileChildren(b9),v9={appSettingsSettingsRoute:y9,appSettingsIndexRoute:X$},_9=rb._addFileChildren(v9),k9={appConfigsIdTabsSettingsRoute:c9,appConfigsIdTabsTargetingRoute:u9,appConfigsIdTabsVariantsRoute:l9},S9=jf._addFileChildren(k9),C9={appConfigsIdVariantsVariantsVariantRoute:f9},E9=AE._addFileChildren(C9),R9={appConfigsIdTabsRoute:S9,appConfigsIdVariantsRoute:E9,appConfigsIdIndexRoute:J$,appConfigsIdTargetingTargetingEnvironmentRoute:d9},x9=Ul._addFileChildren(R9),T9={appConfigsIdRouteRoute:x9},w9=OE._addFileChildren(T9),O9={appEnvironmentsEnvironmentTabsSecretsRoute:r9,appEnvironmentsEnvironmentTabsSettingsRoute:a9},A9=cb._addFileChildren(O9),M9={appEnvironmentsEnvironmentTabsRoute:A9,appEnvironmentsEnvironmentIndexRoute:Z$},D9=ub._addFileChildren(M9),L9={appEnvironmentsEnvironmentRouteRoute:D9},P9=wE._addFileChildren(L9),N9={appObservabilityRouteRoute:m9,appSettingsRouteRoute:_9,appConfigsRoute:w9,appEnvironmentsRoute:P9,appIndexRoute:G$},z9=Wa._addFileChildren(N9),$9={appRouteRoute:z9,authSetupRoute:Q$,authSigninRoute:Y$},j9=Nf._addFileChildren($9)._addFileTypes();var Bg={exports:{}},el={},qg={exports:{}},Hg={};var S_;function U9(){return S_||(S_=1,(function(e){function t(D,I){var U=D.length;D.push(I);e:for(;0<U;){var oe=U-1>>>1,ae=D[oe];if(0<r(ae,I))D[oe]=I,D[U]=ae,U=oe;else break e}}function s(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var I=D[0],U=D.pop();if(U!==I){D[0]=U;e:for(var oe=0,ae=D.length,N=ae>>>1;oe<N;){var K=2*(oe+1)-1,X=D[K],re=K+1,fe=D[re];if(0>r(X,U))re<ae&&0>r(fe,X)?(D[oe]=fe,D[re]=U,oe=re):(D[oe]=X,D[K]=U,oe=K);else if(re<ae&&0>r(fe,U))D[oe]=fe,D[re]=U,oe=re;else break e}}return I}function r(D,I){var U=D.sortIndex-I.sortIndex;return U!==0?U:D.id-I.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],g=[],m=1,b=null,y=3,_=!1,k=!1,S=!1,C=!1,R=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function w(D){for(var I=s(g);I!==null;){if(I.callback===null)o(g);else if(I.startTime<=D)o(g),I.sortIndex=I.expirationTime,t(h,I);else break;I=s(g)}}function x(D){if(S=!1,w(D),!k)if(s(h)!==null)k=!0,M||(M=!0,Q());else{var I=s(g);I!==null&&J(x,I.startTime-D)}}var M=!1,L=-1,P=5,V=-1;function Z(){return C?!0:!(e.unstable_now()-V<P)}function z(){if(C=!1,M){var D=e.unstable_now();V=D;var I=!0;try{e:{k=!1,S&&(S=!1,T(L),L=-1),_=!0;var U=y;try{t:{for(w(D),b=s(h);b!==null&&!(b.expirationTime>D&&Z());){var oe=b.callback;if(typeof oe=="function"){b.callback=null,y=b.priorityLevel;var ae=oe(b.expirationTime<=D);if(D=e.unstable_now(),typeof ae=="function"){b.callback=ae,w(D),I=!0;break t}b===s(h)&&o(h),w(D)}else o(h);b=s(h)}if(b!==null)I=!0;else{var N=s(g);N!==null&&J(x,N.startTime-D),I=!1}}break e}finally{b=null,y=U,_=!1}I=void 0}}finally{I?Q():M=!1}}}var Q;if(typeof A=="function")Q=function(){A(z)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,q=B.port2;B.port1.onmessage=z,Q=function(){q.postMessage(null)}}else Q=function(){R(z,0)};function J(D,I){L=R(function(){D(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(D){switch(y){case 1:case 2:case 3:var I=3;break;default:I=y}var U=y;y=I;try{return D()}finally{y=U}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(D,I){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var U=y;y=D;try{return I()}finally{y=U}},e.unstable_scheduleCallback=function(D,I,U){var oe=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?oe+U:oe):U=oe,D){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=U+ae,D={id:m++,callback:I,priorityLevel:D,startTime:U,expirationTime:ae,sortIndex:-1},U>oe?(D.sortIndex=U,t(g,D),s(h)===null&&D===s(g)&&(S?(T(L),L=-1):S=!0,J(x,U-oe))):(D.sortIndex=ae,t(h,D),k||_||(k=!0,M||(M=!0,Q()))),D},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(D){var I=y;return function(){var U=y;y=I;try{return D.apply(this,arguments)}finally{y=U}}}})(Hg)),Hg}var C_;function I9(){return C_||(C_=1,qg.exports=U9()),qg.exports}var E_;function V9(){if(E_)return el;E_=1;var e=I9(),t=Ba(),s=q_();function o(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function u(n){var i=n,a=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(a=i.return),n=i.return;while(n)}return i.tag===3?a:null}function c(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function h(n){if(u(n)!==n)throw Error(o(188))}function g(n){var i=n.alternate;if(!i){if(i=u(n),i===null)throw Error(o(188));return i!==n?null:n}for(var a=n,l=i;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(l=d.return,l!==null){a=l;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return h(d),n;if(p===l)return h(d),i;p=p.sibling}throw Error(o(188))}if(a.return!==l.return)a=d,l=p;else{for(var v=!1,O=d.child;O;){if(O===a){v=!0,a=d,l=p;break}if(O===l){v=!0,l=d,a=p;break}O=O.sibling}if(!v){for(O=p.child;O;){if(O===a){v=!0,a=p,l=d;break}if(O===l){v=!0,l=p,a=d;break}O=O.sibling}if(!v)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?n:i}function m(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=m(n),i!==null)return i;n=n.sibling}return null}var b=Object.assign,y=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),A=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function Q(n){return n===null||typeof n!="object"?null:(n=z&&n[z]||n["@@iterator"],typeof n=="function"?n:null)}var B=Symbol.for("react.client.reference");function q(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===B?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case S:return"Fragment";case R:return"Profiler";case C:return"StrictMode";case x:return"Suspense";case M:return"SuspenseList";case V:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case k:return"Portal";case A:return n.displayName||"Context";case T:return(n._context.displayName||"Context")+".Consumer";case w:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case L:return i=n.displayName||null,i!==null?i:q(n.type)||"Memo";case P:i=n._payload,n=n._init;try{return q(n(i))}catch{}}return null}var J=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},oe=[],ae=-1;function N(n){return{current:n}}function K(n){0>ae||(n.current=oe[ae],oe[ae]=null,ae--)}function X(n,i){ae++,oe[ae]=n.current,n.current=i}var re=N(null),fe=N(null),le=N(null),ue=N(null);function de(n,i){switch(X(le,i),X(fe,n),X(re,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?Ey(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=Ey(i),n=Ry(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}K(re),X(re,n)}function ye(){K(re),K(fe),K(le)}function xe(n){n.memoizedState!==null&&X(ue,n);var i=re.current,a=Ry(i,n.type);i!==a&&(X(fe,n),X(re,a))}function ne(n){fe.current===n&&(K(re),K(fe)),ue.current===n&&(K(ue),Vr._currentValue=U)}var ke,ve;function Ie(n){if(ke===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);ke=i&&i[1]||"",ve=-1<a.stack.indexOf(`
|
|
20
20
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
21
21
|
`+ke+n+ve}var Ee=!1;function pe(n,i){if(!n||Ee)return"";Ee=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(i){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(ee){var W=ee}Reflect.construct(n,[],ie)}else{try{ie.call()}catch(ee){W=ee}n.call(ie.prototype)}}else{try{throw Error()}catch(ee){W=ee}(ie=n())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(ee){if(ee&&W&&typeof ee.stack=="string")return[ee.stack,W.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=l.DetermineComponentFrameRoot(),v=p[0],O=p[1];if(v&&O){var $=v.split(`
|
|
22
22
|
`),G=O.split(`
|