@l10nmonster/server 3.0.0-alpha.14 → 3.0.0-alpha.16
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/index.js +16 -32
- package/package.json +8 -8
- package/routes/dispatcher.js +84 -55
- package/routes/tm.js +2 -1
- package/ui/dist/assets/{Cart-B_Zkvuz_.js → Cart-DE4IB7O6.js} +1 -1
- package/ui/dist/assets/Job-NxVVYeVu.js +1 -0
- package/ui/dist/assets/{Providers-UAlXnJQI.js → Providers-BR9owfvy.js} +1 -1
- package/ui/dist/assets/{Sources-DcwZBkaA.js → Sources-C1PVA74-.js} +1 -1
- package/ui/dist/assets/{SourcesDetail-11v96V44.js → SourcesDetail-BPP_1C6K.js} +1 -1
- package/ui/dist/assets/{SourcesResource-CPGv3HQ8.js → SourcesResource-DksVKNFW.js} +1 -1
- package/ui/dist/assets/{Status-C_qyyf2l.js → Status-D9oOpF1Y.js} +1 -1
- package/ui/dist/assets/StatusDetail--8QtevHF.js +1 -0
- package/ui/dist/assets/{TM-DIDYSCIe.js → TM-CeatLxBS.js} +1 -1
- package/ui/dist/assets/{TMDetail-BmHvlsJe.js → TMDetail-_oIVaxK5.js} +1 -1
- package/ui/dist/assets/Welcome-DIrzw6Qn.js +1 -0
- package/ui/dist/assets/index-CuIl8QRT.js +1 -0
- package/ui/dist/assets/index-a-xKpg48.js +2 -0
- package/ui/dist/assets/vendor-BAKw9_tP.js +19 -0
- package/ui/dist/index.html +3 -3
- package/ui/dist/assets/Job-B2D10u5q.js +0 -1
- package/ui/dist/assets/StatusDetail-CXE95RTb.js +0 -1
- package/ui/dist/assets/Welcome-Bd1y86xQ.js +0 -1
- package/ui/dist/assets/index-Dl1WS_Lc.js +0 -1
- package/ui/dist/assets/index-HzbF4bPY.js +0 -2
- package/ui/dist/assets/vendor-BVSmEsOp.js +0 -75
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function qk(e,t){for(var i=0;i<t.length;i++){const r=t[i];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const c=Object.getOwnPropertyDescriptor(r,o);c&&Object.defineProperty(e,o,c.get?c:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function gC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ng={exports:{}},Ul={};var D0;function Yk(){if(D0)return Ul;D0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(r,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var f in o)f!=="key"&&(c[f]=o[f])}else c=o;return o=c.ref,{$$typeof:e,type:r,key:u,ref:o!==void 0?o:null,props:c}}return Ul.Fragment=t,Ul.jsx=i,Ul.jsxs=i,Ul}var M0;function Kk(){return M0||(M0=1,ng.exports=Yk()),ng.exports}var z=Kk(),ig={exports:{}},Ce={};var L0;function Xk(){if(L0)return Ce;L0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),y=Symbol.iterator;function x(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,O={};function w(I,q,ne){this.props=I,this.context=q,this.refs=O,this.updater=ne||E}w.prototype.isReactComponent={},w.prototype.setState=function(I,q){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,q,"setState")},w.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function k(){}k.prototype=w.prototype;function N(I,q,ne){this.props=I,this.context=q,this.refs=O,this.updater=ne||E}var M=N.prototype=new k;M.constructor=N,C(M,w.prototype),M.isPureReactComponent=!0;var P=Array.isArray;function j(){}var F={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function _(I,q,ne){var re=ne.ref;return{$$typeof:e,type:I,key:q,ref:re!==void 0?re:null,props:ne}}function $(I,q){return _(I.type,q,I.props)}function G(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function Z(I){var q={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(ne){return q[ne]})}var ce=/\/+/g;function fe(I,q){return typeof I=="object"&&I!==null&&I.key!=null?Z(""+I.key):q.toString(36)}function he(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(j,j):(I.status="pending",I.then(function(q){I.status==="pending"&&(I.status="fulfilled",I.value=q)},function(q){I.status==="pending"&&(I.status="rejected",I.reason=q)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function B(I,q,ne,re,Se){var Te=typeof I;(Te==="undefined"||Te==="boolean")&&(I=null);var Ve=!1;if(I===null)Ve=!0;else switch(Te){case"bigint":case"string":case"number":Ve=!0;break;case"object":switch(I.$$typeof){case e:case t:Ve=!0;break;case m:return Ve=I._init,B(Ve(I._payload),q,ne,re,Se)}}if(Ve)return Se=Se(I),Ve=re===""?"."+fe(I,0):re,P(Se)?(ne="",Ve!=null&&(ne=Ve.replace(ce,"$&/")+"/"),B(Se,q,ne,"",function(Oe){return Oe})):Se!=null&&(G(Se)&&(Se=$(Se,ne+(Se.key==null||I&&I.key===Se.key?"":(""+Se.key).replace(ce,"$&/")+"/")+Ve)),q.push(Se)),1;Ve=0;var te=re===""?".":re+":";if(P(I))for(var J=0;J<I.length;J++)re=I[J],Te=te+fe(re,J),Ve+=B(re,q,ne,Te,Se);else if(J=x(I),typeof J=="function")for(I=J.call(I),J=0;!(re=I.next()).done;)re=re.value,Te=te+fe(re,J++),Ve+=B(re,q,ne,Te,Se);else if(Te==="object"){if(typeof I.then=="function")return B(he(I),q,ne,re,Se);throw q=String(I),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Ve}function ee(I,q,ne){if(I==null)return I;var re=[],Se=0;return B(I,re,"","",function(Te){return q.call(ne,Te,Se++)}),re}function oe(I){if(I._status===-1){var q=I._result;q=q(),q.then(function(ne){(I._status===0||I._status===-1)&&(I._status=1,I._result=ne)},function(ne){(I._status===0||I._status===-1)&&(I._status=2,I._result=ne)}),I._status===-1&&(I._status=0,I._result=q)}if(I._status===1)return I._result.default;throw I._result}var ie=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)},be={map:ee,forEach:function(I,q,ne){ee(I,function(){q.apply(this,arguments)},ne)},count:function(I){var q=0;return ee(I,function(){q++}),q},toArray:function(I){return ee(I,function(q){return q})||[]},only:function(I){if(!G(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return Ce.Activity=b,Ce.Children=be,Ce.Component=w,Ce.Fragment=i,Ce.Profiler=o,Ce.PureComponent=N,Ce.StrictMode=r,Ce.Suspense=g,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(I){return F.H.useMemoCache(I)}},Ce.cache=function(I){return function(){return I.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(I,q,ne){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var re=C({},I.props),Se=I.key;if(q!=null)for(Te in q.key!==void 0&&(Se=""+q.key),q)!Y.call(q,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&q.ref===void 0||(re[Te]=q[Te]);var Te=arguments.length-2;if(Te===1)re.children=ne;else if(1<Te){for(var Ve=Array(Te),te=0;te<Te;te++)Ve[te]=arguments[te+2];re.children=Ve}return _(I.type,Se,re)},Ce.createContext=function(I){return I={$$typeof:u,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:c,_context:I},I},Ce.createElement=function(I,q,ne){var re,Se={},Te=null;if(q!=null)for(re in q.key!==void 0&&(Te=""+q.key),q)Y.call(q,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(Se[re]=q[re]);var Ve=arguments.length-2;if(Ve===1)Se.children=ne;else if(1<Ve){for(var te=Array(Ve),J=0;J<Ve;J++)te[J]=arguments[J+2];Se.children=te}if(I&&I.defaultProps)for(re in Ve=I.defaultProps,Ve)Se[re]===void 0&&(Se[re]=Ve[re]);return _(I,Te,Se)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(I){return{$$typeof:f,render:I}},Ce.isValidElement=G,Ce.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:oe}},Ce.memo=function(I,q){return{$$typeof:p,type:I,compare:q===void 0?null:q}},Ce.startTransition=function(I){var q=F.T,ne={};F.T=ne;try{var re=I(),Se=F.S;Se!==null&&Se(ne,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(j,ie)}catch(Te){ie(Te)}finally{q!==null&&ne.types!==null&&(q.types=ne.types),F.T=q}},Ce.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},Ce.use=function(I){return F.H.use(I)},Ce.useActionState=function(I,q,ne){return F.H.useActionState(I,q,ne)},Ce.useCallback=function(I,q){return F.H.useCallback(I,q)},Ce.useContext=function(I){return F.H.useContext(I)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(I,q){return F.H.useDeferredValue(I,q)},Ce.useEffect=function(I,q){return F.H.useEffect(I,q)},Ce.useEffectEvent=function(I){return F.H.useEffectEvent(I)},Ce.useId=function(){return F.H.useId()},Ce.useImperativeHandle=function(I,q,ne){return F.H.useImperativeHandle(I,q,ne)},Ce.useInsertionEffect=function(I,q){return F.H.useInsertionEffect(I,q)},Ce.useLayoutEffect=function(I,q){return F.H.useLayoutEffect(I,q)},Ce.useMemo=function(I,q){return F.H.useMemo(I,q)},Ce.useOptimistic=function(I,q){return F.H.useOptimistic(I,q)},Ce.useReducer=function(I,q,ne){return F.H.useReducer(I,q,ne)},Ce.useRef=function(I){return F.H.useRef(I)},Ce.useState=function(I){return F.H.useState(I)},Ce.useSyncExternalStore=function(I,q,ne){return F.H.useSyncExternalStore(I,q,ne)},Ce.useTransition=function(){return F.H.useTransition()},Ce.version="19.2.0",Ce}var B0;function kp(){return B0||(B0=1,ig.exports=Xk()),ig.exports}var T=kp();const Qk=gC(T),H0=qk({__proto__:null,default:Qk},[T]);var ag={exports:{}},jl={},rg={exports:{}},og={};var F0;function Zk(){return F0||(F0=1,(function(e){function t(B,ee){var oe=B.length;B.push(ee);e:for(;0<oe;){var ie=oe-1>>>1,be=B[ie];if(0<o(be,ee))B[ie]=ee,B[oe]=be,oe=ie;else break e}}function i(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var ee=B[0],oe=B.pop();if(oe!==ee){B[0]=oe;e:for(var ie=0,be=B.length,I=be>>>1;ie<I;){var q=2*(ie+1)-1,ne=B[q],re=q+1,Se=B[re];if(0>o(ne,oe))re<be&&0>o(Se,ne)?(B[ie]=Se,B[re]=oe,ie=re):(B[ie]=ne,B[q]=oe,ie=q);else if(re<be&&0>o(Se,oe))B[ie]=Se,B[re]=oe,ie=re;else break e}}return ee}function o(B,ee){var oe=B.sortIndex-ee.sortIndex;return oe!==0?oe:B.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var g=[],p=[],m=1,b=null,y=3,x=!1,E=!1,C=!1,O=!1,w=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function M(B){for(var ee=i(p);ee!==null;){if(ee.callback===null)r(p);else if(ee.startTime<=B)r(p),ee.sortIndex=ee.expirationTime,t(g,ee);else break;ee=i(p)}}function P(B){if(C=!1,M(B),!E)if(i(g)!==null)E=!0,j||(j=!0,Z());else{var ee=i(p);ee!==null&&he(P,ee.startTime-B)}}var j=!1,F=-1,Y=5,_=-1;function $(){return O?!0:!(e.unstable_now()-_<Y)}function G(){if(O=!1,j){var B=e.unstable_now();_=B;var ee=!0;try{e:{E=!1,C&&(C=!1,k(F),F=-1),x=!0;var oe=y;try{t:{for(M(B),b=i(g);b!==null&&!(b.expirationTime>B&&$());){var ie=b.callback;if(typeof ie=="function"){b.callback=null,y=b.priorityLevel;var be=ie(b.expirationTime<=B);if(B=e.unstable_now(),typeof be=="function"){b.callback=be,M(B),ee=!0;break t}b===i(g)&&r(g),M(B)}else r(g);b=i(g)}if(b!==null)ee=!0;else{var I=i(p);I!==null&&he(P,I.startTime-B),ee=!1}}break e}finally{b=null,y=oe,x=!1}ee=void 0}}finally{ee?Z():j=!1}}}var Z;if(typeof N=="function")Z=function(){N(G)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,fe=ce.port2;ce.port1.onmessage=G,Z=function(){fe.postMessage(null)}}else Z=function(){w(G,0)};function he(B,ee){F=w(function(){B(e.unstable_now())},ee)}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(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(B){switch(y){case 1:case 2:case 3:var ee=3;break;default:ee=y}var oe=y;y=ee;try{return B()}finally{y=oe}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(B,ee){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var oe=y;y=B;try{return ee()}finally{y=oe}},e.unstable_scheduleCallback=function(B,ee,oe){var ie=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ie+oe:ie):oe=ie,B){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=oe+be,B={id:m++,callback:ee,priorityLevel:B,startTime:oe,expirationTime:be,sortIndex:-1},oe>ie?(B.sortIndex=oe,t(p,B),i(g)===null&&B===i(p)&&(C?(k(F),F=-1):C=!0,he(P,oe-ie))):(B.sortIndex=be,t(g,B),E||x||(E=!0,j||(j=!0,Z()))),B},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(B){var ee=y;return function(){var oe=y;y=ee;try{return B.apply(this,arguments)}finally{y=oe}}}})(og)),og}var $0;function Jk(){return $0||($0=1,rg.exports=Zk()),rg.exports}var lg={exports:{}},Mt={};var U0;function eN(){if(U0)return Mt;U0=1;var e=kp();function t(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(g,p,m){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:g,containerInfo:p,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Mt.createPortal=function(g,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return c(g,p,null,m)},Mt.flushSync=function(g){var p=u.T,m=r.p;try{if(u.T=null,r.p=2,g)return g()}finally{u.T=p,r.p=m,r.d.f()}},Mt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(g,p))},Mt.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},Mt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var m=p.as,b=f(m,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?r.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:y,fetchPriority:x}):m==="script"&&r.d.X(g,{crossOrigin:b,integrity:y,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Mt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=f(p.as,p.crossOrigin);r.d.M(g,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(g)},Mt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,b=f(m,p.crossOrigin);r.d.L(g,m,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Mt.preloadModule=function(g,p){if(typeof g=="string")if(p){var m=f(p.as,p.crossOrigin);r.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(g)},Mt.requestFormReset=function(g){r.d.r(g)},Mt.unstable_batchedUpdates=function(g,p){return g(p)},Mt.useFormState=function(g,p,m){return u.H.useFormState(g,p,m)},Mt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Mt.version="19.2.0",Mt}var j0;function pC(){if(j0)return lg.exports;j0=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(),lg.exports=eN(),lg.exports}var G0;function tN(){if(G0)return jl;G0=1;var e=Jk(),t=kp(),i=pC();function r(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var a=n,l=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(l=a.return),n=a.return;while(n)}return a.tag===3?l:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function g(n){if(c(n)!==n)throw Error(r(188))}function p(n){var a=n.alternate;if(!a){if(a=c(n),a===null)throw Error(r(188));return a!==n?null:n}for(var l=n,s=a;;){var d=l.return;if(d===null)break;var h=d.alternate;if(h===null){if(s=d.return,s!==null){l=s;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===l)return g(d),n;if(h===s)return g(d),a;h=h.sibling}throw Error(r(188))}if(l.return!==s.return)l=d,s=h;else{for(var v=!1,S=d.child;S;){if(S===l){v=!0,l=d,s=h;break}if(S===s){v=!0,s=d,l=h;break}S=S.sibling}if(!v){for(S=h.child;S;){if(S===l){v=!0,l=h,s=d;break}if(S===s){v=!0,s=h,l=d;break}S=S.sibling}if(!v)throw Error(r(189))}}if(l.alternate!==s)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?n:a}function m(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=m(n),a!==null)return a;n=n.sibling}return null}var b=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),N=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function Z(n){return n===null||typeof n!="object"?null:(n=G&&n[G]||n["@@iterator"],typeof n=="function"?n:null)}var ce=Symbol.for("react.client.reference");function fe(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ce?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case C:return"Fragment";case w:return"Profiler";case O:return"StrictMode";case P:return"Suspense";case j:return"SuspenseList";case _:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case E:return"Portal";case N:return n.displayName||"Context";case k:return(n._context.displayName||"Context")+".Consumer";case M:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case F:return a=n.displayName||null,a!==null?a:fe(n.type)||"Memo";case Y:a=n._payload,n=n._init;try{return fe(n(a))}catch{}}return null}var he=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ie=[],be=-1;function I(n){return{current:n}}function q(n){0>be||(n.current=ie[be],ie[be]=null,be--)}function ne(n,a){be++,ie[be]=n.current,n.current=a}var re=I(null),Se=I(null),Te=I(null),Ve=I(null);function te(n,a){switch(ne(Te,a),ne(Se,n),ne(re,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?r0(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=r0(a),n=o0(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(re),ne(re,n)}function J(){q(re),q(Se),q(Te)}function Oe(n){n.memoizedState!==null&&ne(Ve,n);var a=re.current,l=o0(a,n.type);a!==l&&(ne(Se,n),ne(re,l))}function Pe(n){Se.current===n&&(q(re),q(Se)),Ve.current===n&&(q(Ve),Bl._currentValue=oe)}var Ke,ut;function wt(n){if(Ke===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);Ke=a&&a[1]||"",ut=-1<l.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Ke+n+ut}var ji=!1;function Ma(n,a){if(!n||ji)return"";ji=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(a){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(U){var H=U}Reflect.construct(n,[],X)}else{try{X.call()}catch(U){H=U}n.call(X.prototype)}}else{try{throw Error()}catch(U){H=U}(X=n())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(U){if(U&&H&&typeof U.stack=="string")return[U.stack,H.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=s.DetermineComponentFrameRoot(),v=h[0],S=h[1];if(v&&S){var R=v.split(`
|
|
4
|
+
`),L=S.split(`
|
|
5
|
+
`);for(d=s=0;s<R.length&&!R[s].includes("DetermineComponentFrameRoot");)s++;for(;d<L.length&&!L[d].includes("DetermineComponentFrameRoot");)d++;if(s===R.length||d===L.length)for(s=R.length-1,d=L.length-1;1<=s&&0<=d&&R[s]!==L[d];)d--;for(;1<=s&&0<=d;s--,d--)if(R[s]!==L[d]){if(s!==1||d!==1)do if(s--,d--,0>d||R[s]!==L[d]){var W=`
|
|
6
|
+
`+R[s].replace(" at new "," at ");return n.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",n.displayName)),W}while(1<=s&&0<=d);break}}}finally{ji=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?wt(l):""}function $d(n,a){switch(n.tag){case 26:case 27:case 5:return wt(n.type);case 16:return wt("Lazy");case 13:return n.child!==a&&a!==null?wt("Suspense Fallback"):wt("Suspense");case 19:return wt("SuspenseList");case 0:case 15:return Ma(n.type,!1);case 11:return Ma(n.type.render,!1);case 1:return Ma(n.type,!0);case 31:return wt("Activity");default:return""}}function Ws(n){try{var a="",l=null;do a+=$d(n,l),l=n,n=n.return;while(n);return a}catch(s){return`
|
|
7
|
+
Error generating stack: `+s.message+`
|
|
8
|
+
`+s.stack}}var Or=Object.prototype.hasOwnProperty,Ko=e.unstable_scheduleCallback,wr=e.unstable_cancelCallback,qs=e.unstable_shouldYield,Xo=e.unstable_requestPaint,nn=e.unstable_now,Rw=e.unstable_getCurrentPriorityLevel,Mm=e.unstable_ImmediatePriority,Lm=e.unstable_UserBlockingPriority,Ys=e.unstable_NormalPriority,kw=e.unstable_LowPriority,Bm=e.unstable_IdlePriority,Nw=e.log,Iw=e.unstable_setDisableYieldValue,Qo=null,an=null;function Gi(n){if(typeof Nw=="function"&&Iw(n),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(Qo,n)}catch{}}var rn=Math.clz32?Math.clz32:Vw,Aw=Math.log,Pw=Math.LN2;function Vw(n){return n>>>=0,n===0?32:31-(Aw(n)/Pw|0)|0}var Ks=256,Xs=262144,Qs=4194304;function La(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Zs(n,a,l){var s=n.pendingLanes;if(s===0)return 0;var d=0,h=n.suspendedLanes,v=n.pingedLanes;n=n.warmLanes;var S=s&134217727;return S!==0?(s=S&~h,s!==0?d=La(s):(v&=S,v!==0?d=La(v):l||(l=S&~n,l!==0&&(d=La(l))))):(S=s&~h,S!==0?d=La(S):v!==0?d=La(v):l||(l=s&~n,l!==0&&(d=La(l)))),d===0?0:a!==0&&a!==d&&(a&h)===0&&(h=d&-d,l=a&-a,h>=l||h===32&&(l&4194048)!==0)?a:d}function Zo(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function _w(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hm(){var n=Qs;return Qs<<=1,(Qs&62914560)===0&&(Qs=4194304),n}function Ud(n){for(var a=[],l=0;31>l;l++)a.push(n);return a}function Jo(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function zw(n,a,l,s,d,h){var v=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var S=n.entanglements,R=n.expirationTimes,L=n.hiddenUpdates;for(l=v&~l;0<l;){var W=31-rn(l),X=1<<W;S[W]=0,R[W]=-1;var H=L[W];if(H!==null)for(L[W]=null,W=0;W<H.length;W++){var U=H[W];U!==null&&(U.lane&=-536870913)}l&=~X}s!==0&&Fm(n,s,0),h!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=h&~(v&~a))}function Fm(n,a,l){n.pendingLanes|=a,n.suspendedLanes&=~a;var s=31-rn(a);n.entangledLanes|=a,n.entanglements[s]=n.entanglements[s]|1073741824|l&261930}function $m(n,a){var l=n.entangledLanes|=a;for(n=n.entanglements;l;){var s=31-rn(l),d=1<<s;d&a|n[s]&a&&(n[s]|=a),l&=~d}}function Um(n,a){var l=a&-a;return l=(l&42)!==0?1:jd(l),(l&(n.suspendedLanes|a))!==0?0:l}function jd(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Gd(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function jm(){var n=ee.p;return n!==0?n:(n=window.event,n===void 0?32:N0(n.type))}function Gm(n,a){var l=ee.p;try{return ee.p=n,a()}finally{ee.p=l}}var Wi=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Wi,$t="__reactProps$"+Wi,Rr="__reactContainer$"+Wi,Wd="__reactEvents$"+Wi,Dw="__reactListeners$"+Wi,Mw="__reactHandles$"+Wi,Wm="__reactResources$"+Wi,el="__reactMarker$"+Wi;function qd(n){delete n[Rt],delete n[$t],delete n[Wd],delete n[Dw],delete n[Mw]}function kr(n){var a=n[Rt];if(a)return a;for(var l=n.parentNode;l;){if(a=l[Rr]||l[Rt]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(n=h0(n);n!==null;){if(l=n[Rt])return l;n=h0(n)}return a}n=l,l=n.parentNode}return null}function Nr(n){if(n=n[Rt]||n[Rr]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function tl(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(r(33))}function Ir(n){var a=n[Wm];return a||(a=n[Wm]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ct(n){n[el]=!0}var qm=new Set,Ym={};function Ba(n,a){Ar(n,a),Ar(n+"Capture",a)}function Ar(n,a){for(Ym[n]=a,n=0;n<a.length;n++)qm.add(a[n])}var Lw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Km={},Xm={};function Bw(n){return Or.call(Xm,n)?!0:Or.call(Km,n)?!1:Lw.test(n)?Xm[n]=!0:(Km[n]=!0,!1)}function Js(n,a,l){if(Bw(a))if(l===null)n.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var s=a.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+l)}}function ec(n,a,l){if(l===null)n.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+l)}}function gi(n,a,l,s){if(s===null)n.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(a,l,""+s)}}function Sn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Qm(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Hw(n,a,l){var s=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,h=s.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return d.call(this)},set:function(v){l=""+v,h.call(this,v)}}),Object.defineProperty(n,a,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Yd(n){if(!n._valueTracker){var a=Qm(n)?"checked":"value";n._valueTracker=Hw(n,a,""+n[a])}}function Zm(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var l=a.getValue(),s="";return n&&(s=Qm(n)?n.checked?"true":"false":n.value),n=s,n!==l?(a.setValue(n),!0):!1}function tc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Fw=/[\n"\\]/g;function Cn(n){return n.replace(Fw,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Kd(n,a,l,s,d,h,v,S){n.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.type=v:n.removeAttribute("type"),a!=null?v==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Sn(a)):n.value!==""+Sn(a)&&(n.value=""+Sn(a)):v!=="submit"&&v!=="reset"||n.removeAttribute("value"),a!=null?Xd(n,v,Sn(a)):l!=null?Xd(n,v,Sn(l)):s!=null&&n.removeAttribute("value"),d==null&&h!=null&&(n.defaultChecked=!!h),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.name=""+Sn(S):n.removeAttribute("name")}function Jm(n,a,l,s,d,h,v,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),a!=null||l!=null){if(!(h!=="submit"&&h!=="reset"||a!=null)){Yd(n);return}l=l!=null?""+Sn(l):"",a=a!=null?""+Sn(a):l,S||a===n.value||(n.value=a),n.defaultValue=a}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=S?n.checked:!!s,n.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.name=v),Yd(n)}function Xd(n,a,l){a==="number"&&tc(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function Pr(n,a,l,s){if(n=n.options,a){a={};for(var d=0;d<l.length;d++)a["$"+l[d]]=!0;for(l=0;l<n.length;l++)d=a.hasOwnProperty("$"+n[l].value),n[l].selected!==d&&(n[l].selected=d),d&&s&&(n[l].defaultSelected=!0)}else{for(l=""+Sn(l),a=null,d=0;d<n.length;d++){if(n[d].value===l){n[d].selected=!0,s&&(n[d].defaultSelected=!0);return}a!==null||n[d].disabled||(a=n[d])}a!==null&&(a.selected=!0)}}function ev(n,a,l){if(a!=null&&(a=""+Sn(a),a!==n.value&&(n.value=a),l==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=l!=null?""+Sn(l):""}function tv(n,a,l,s){if(a==null){if(s!=null){if(l!=null)throw Error(r(92));if(he(s)){if(1<s.length)throw Error(r(93));s=s[0]}l=s}l==null&&(l=""),a=l}l=Sn(a),n.defaultValue=l,s=n.textContent,s===l&&s!==""&&s!==null&&(n.value=s),Yd(n)}function Vr(n,a){if(a){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=a;return}}n.textContent=a}var $w=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function nv(n,a,l){var s=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":s?n.setProperty(a,l):typeof l!="number"||l===0||$w.has(a)?a==="float"?n.cssFloat=l:n[a]=(""+l).trim():n[a]=l+"px"}function iv(n,a,l){if(a!=null&&typeof a!="object")throw Error(r(62));if(n=n.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||a!=null&&a.hasOwnProperty(s)||(s.indexOf("--")===0?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="");for(var d in a)s=a[d],a.hasOwnProperty(d)&&l[d]!==s&&nv(n,d,s)}else for(var h in a)a.hasOwnProperty(h)&&nv(n,h,a[h])}function Qd(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jw=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function nc(n){return jw.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function pi(){}var Zd=null;function Jd(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var _r=null,zr=null;function av(n){var a=Nr(n);if(a&&(n=a.stateNode)){var l=n[$t]||null;e:switch(n=a.stateNode,a.type){case"input":if(Kd(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Cn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var s=l[a];if(s!==n&&s.form===n.form){var d=s[$t]||null;if(!d)throw Error(r(90));Kd(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(a=0;a<l.length;a++)s=l[a],s.form===n.form&&Zm(s)}break e;case"textarea":ev(n,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&Pr(n,!!l.multiple,a,!1)}}}var ef=!1;function rv(n,a,l){if(ef)return n(a,l);ef=!0;try{var s=n(a);return s}finally{if(ef=!1,(_r!==null||zr!==null)&&(Uc(),_r&&(a=_r,n=zr,zr=_r=null,av(a),n)))for(a=0;a<n.length;a++)av(n[a])}}function nl(n,a){var l=n.stateNode;if(l===null)return null;var s=l[$t]||null;if(s===null)return null;l=s[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(n=n.type,s=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!s;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(r(231,a,typeof l));return l}var mi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tf=!1;if(mi)try{var il={};Object.defineProperty(il,"passive",{get:function(){tf=!0}}),window.addEventListener("test",il,il),window.removeEventListener("test",il,il)}catch{tf=!1}var qi=null,nf=null,ic=null;function ov(){if(ic)return ic;var n,a=nf,l=a.length,s,d="value"in qi?qi.value:qi.textContent,h=d.length;for(n=0;n<l&&a[n]===d[n];n++);var v=l-n;for(s=1;s<=v&&a[l-s]===d[h-s];s++);return ic=d.slice(n,1<s?1-s:void 0)}function ac(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function rc(){return!0}function lv(){return!1}function Ut(n){function a(l,s,d,h,v){this._reactName=l,this._targetInst=d,this.type=s,this.nativeEvent=h,this.target=v,this.currentTarget=null;for(var S in n)n.hasOwnProperty(S)&&(l=n[S],this[S]=l?l(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?rc:lv,this.isPropagationStopped=lv,this}return b(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=rc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=rc)},persist:function(){},isPersistent:rc}),a}var Ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oc=Ut(Ha),al=b({},Ha,{view:0,detail:0}),Gw=Ut(al),af,rf,rl,lc=b({},al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lf,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==rl&&(rl&&n.type==="mousemove"?(af=n.screenX-rl.screenX,rf=n.screenY-rl.screenY):rf=af=0,rl=n),af)},movementY:function(n){return"movementY"in n?n.movementY:rf}}),sv=Ut(lc),Ww=b({},lc,{dataTransfer:0}),qw=Ut(Ww),Yw=b({},al,{relatedTarget:0}),of=Ut(Yw),Kw=b({},Ha,{animationName:0,elapsedTime:0,pseudoElement:0}),Xw=Ut(Kw),Qw=b({},Ha,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Zw=Ut(Qw),Jw=b({},Ha,{data:0}),cv=Ut(Jw),eR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tR={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iR(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=nR[n])?!!a[n]:!1}function lf(){return iR}var aR=b({},al,{key:function(n){if(n.key){var a=eR[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=ac(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?tR[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lf,charCode:function(n){return n.type==="keypress"?ac(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ac(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),rR=Ut(aR),oR=b({},lc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uv=Ut(oR),lR=b({},al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lf}),sR=Ut(lR),cR=b({},Ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),uR=Ut(cR),dR=b({},lc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),fR=Ut(dR),hR=b({},Ha,{newState:0,oldState:0}),gR=Ut(hR),pR=[9,13,27,32],sf=mi&&"CompositionEvent"in window,ol=null;mi&&"documentMode"in document&&(ol=document.documentMode);var mR=mi&&"TextEvent"in window&&!ol,dv=mi&&(!sf||ol&&8<ol&&11>=ol),fv=" ",hv=!1;function gv(n,a){switch(n){case"keyup":return pR.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pv(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Dr=!1;function vR(n,a){switch(n){case"compositionend":return pv(a);case"keypress":return a.which!==32?null:(hv=!0,fv);case"textInput":return n=a.data,n===fv&&hv?null:n;default:return null}}function bR(n,a){if(Dr)return n==="compositionend"||!sf&&gv(n,a)?(n=ov(),ic=nf=qi=null,Dr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return dv&&a.locale!=="ko"?null:a.data;default:return null}}var yR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function mv(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!yR[n.type]:a==="textarea"}function vv(n,a,l,s){_r?zr?zr.push(s):zr=[s]:_r=s,a=Xc(a,"onChange"),0<a.length&&(l=new oc("onChange","change",null,l,s),n.push({event:l,listeners:a}))}var ll=null,sl=null;function xR(n){Jy(n,0)}function sc(n){var a=tl(n);if(Zm(a))return n}function bv(n,a){if(n==="change")return a}var yv=!1;if(mi){var cf;if(mi){var uf="oninput"in document;if(!uf){var xv=document.createElement("div");xv.setAttribute("oninput","return;"),uf=typeof xv.oninput=="function"}cf=uf}else cf=!1;yv=cf&&(!document.documentMode||9<document.documentMode)}function Sv(){ll&&(ll.detachEvent("onpropertychange",Cv),sl=ll=null)}function Cv(n){if(n.propertyName==="value"&&sc(sl)){var a=[];vv(a,sl,n,Jd(n)),rv(xR,a)}}function SR(n,a,l){n==="focusin"?(Sv(),ll=a,sl=l,ll.attachEvent("onpropertychange",Cv)):n==="focusout"&&Sv()}function CR(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return sc(sl)}function ER(n,a){if(n==="click")return sc(a)}function TR(n,a){if(n==="input"||n==="change")return sc(a)}function OR(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var on=typeof Object.is=="function"?Object.is:OR;function cl(n,a){if(on(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var l=Object.keys(n),s=Object.keys(a);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var d=l[s];if(!Or.call(a,d)||!on(n[d],a[d]))return!1}return!0}function Ev(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Tv(n,a){var l=Ev(n);n=0;for(var s;l;){if(l.nodeType===3){if(s=n+l.textContent.length,n<=a&&s>=a)return{node:l,offset:a-n};n=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ev(l)}}function Ov(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Ov(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function wv(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=tc(n.document);a instanceof n.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)n=a.contentWindow;else break;a=tc(n.document)}return a}function df(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var wR=mi&&"documentMode"in document&&11>=document.documentMode,Mr=null,ff=null,ul=null,hf=!1;function Rv(n,a,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;hf||Mr==null||Mr!==tc(s)||(s=Mr,"selectionStart"in s&&df(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ul&&cl(ul,s)||(ul=s,s=Xc(ff,"onSelect"),0<s.length&&(a=new oc("onSelect","select",null,a,l),n.push({event:a,listeners:s}),a.target=Mr)))}function Fa(n,a){var l={};return l[n.toLowerCase()]=a.toLowerCase(),l["Webkit"+n]="webkit"+a,l["Moz"+n]="moz"+a,l}var Lr={animationend:Fa("Animation","AnimationEnd"),animationiteration:Fa("Animation","AnimationIteration"),animationstart:Fa("Animation","AnimationStart"),transitionrun:Fa("Transition","TransitionRun"),transitionstart:Fa("Transition","TransitionStart"),transitioncancel:Fa("Transition","TransitionCancel"),transitionend:Fa("Transition","TransitionEnd")},gf={},kv={};mi&&(kv=document.createElement("div").style,"AnimationEvent"in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),"TransitionEvent"in window||delete Lr.transitionend.transition);function $a(n){if(gf[n])return gf[n];if(!Lr[n])return n;var a=Lr[n],l;for(l in a)if(a.hasOwnProperty(l)&&l in kv)return gf[n]=a[l];return n}var Nv=$a("animationend"),Iv=$a("animationiteration"),Av=$a("animationstart"),RR=$a("transitionrun"),kR=$a("transitionstart"),NR=$a("transitioncancel"),Pv=$a("transitionend"),Vv=new Map,pf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");pf.push("scrollEnd");function zn(n,a){Vv.set(n,a),Ba(a,[n])}var cc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},En=[],Br=0,mf=0;function uc(){for(var n=Br,a=mf=Br=0;a<n;){var l=En[a];En[a++]=null;var s=En[a];En[a++]=null;var d=En[a];En[a++]=null;var h=En[a];if(En[a++]=null,s!==null&&d!==null){var v=s.pending;v===null?d.next=d:(d.next=v.next,v.next=d),s.pending=d}h!==0&&_v(l,d,h)}}function dc(n,a,l,s){En[Br++]=n,En[Br++]=a,En[Br++]=l,En[Br++]=s,mf|=s,n.lanes|=s,n=n.alternate,n!==null&&(n.lanes|=s)}function vf(n,a,l,s){return dc(n,a,l,s),fc(n)}function Ua(n,a){return dc(n,null,null,a),fc(n)}function _v(n,a,l){n.lanes|=l;var s=n.alternate;s!==null&&(s.lanes|=l);for(var d=!1,h=n.return;h!==null;)h.childLanes|=l,s=h.alternate,s!==null&&(s.childLanes|=l),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(d=!0)),n=h,h=h.return;return n.tag===3?(h=n.stateNode,d&&a!==null&&(d=31-rn(l),n=h.hiddenUpdates,s=n[d],s===null?n[d]=[a]:s.push(a),a.lane=l|536870912),h):null}function fc(n){if(50<Pl)throw Pl=0,wh=null,Error(r(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Hr={};function IR(n,a,l,s){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ln(n,a,l,s){return new IR(n,a,l,s)}function bf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function vi(n,a){var l=n.alternate;return l===null?(l=ln(n.tag,a,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=a,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,a=n.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function zv(n,a){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,a=l.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function hc(n,a,l,s,d,h){var v=0;if(s=n,typeof n=="function")bf(n)&&(v=1);else if(typeof n=="string")v=zk(n,l,re.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case _:return n=ln(31,l,a,d),n.elementType=_,n.lanes=h,n;case C:return ja(l.children,d,h,a);case O:v=8,d|=24;break;case w:return n=ln(12,l,a,d|2),n.elementType=w,n.lanes=h,n;case P:return n=ln(13,l,a,d),n.elementType=P,n.lanes=h,n;case j:return n=ln(19,l,a,d),n.elementType=j,n.lanes=h,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case N:v=10;break e;case k:v=9;break e;case M:v=11;break e;case F:v=14;break e;case Y:v=16,s=null;break e}v=29,l=Error(r(130,n===null?"null":typeof n,"")),s=null}return a=ln(v,l,a,d),a.elementType=n,a.type=s,a.lanes=h,a}function ja(n,a,l,s){return n=ln(7,n,s,a),n.lanes=l,n}function yf(n,a,l){return n=ln(6,n,null,a),n.lanes=l,n}function Dv(n){var a=ln(18,null,null,0);return a.stateNode=n,a}function xf(n,a,l){return a=ln(4,n.children!==null?n.children:[],n.key,a),a.lanes=l,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Mv=new WeakMap;function Tn(n,a){if(typeof n=="object"&&n!==null){var l=Mv.get(n);return l!==void 0?l:(a={value:n,source:a,stack:Ws(a)},Mv.set(n,a),a)}return{value:n,source:a,stack:Ws(a)}}var Fr=[],$r=0,gc=null,dl=0,On=[],wn=0,Yi=null,Gn=1,Wn="";function bi(n,a){Fr[$r++]=dl,Fr[$r++]=gc,gc=n,dl=a}function Lv(n,a,l){On[wn++]=Gn,On[wn++]=Wn,On[wn++]=Yi,Yi=n;var s=Gn;n=Wn;var d=32-rn(s)-1;s&=~(1<<d),l+=1;var h=32-rn(a)+d;if(30<h){var v=d-d%5;h=(s&(1<<v)-1).toString(32),s>>=v,d-=v,Gn=1<<32-rn(a)+d|l<<d|s,Wn=h+n}else Gn=1<<h|l<<d|s,Wn=n}function Sf(n){n.return!==null&&(bi(n,1),Lv(n,1,0))}function Cf(n){for(;n===gc;)gc=Fr[--$r],Fr[$r]=null,dl=Fr[--$r],Fr[$r]=null;for(;n===Yi;)Yi=On[--wn],On[wn]=null,Wn=On[--wn],On[wn]=null,Gn=On[--wn],On[wn]=null}function Bv(n,a){On[wn++]=Gn,On[wn++]=Wn,On[wn++]=Yi,Gn=a.id,Wn=a.overflow,Yi=n}var kt=null,Ze=null,Ae=!1,Ki=null,Rn=!1,Ef=Error(r(519));function Xi(n){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fl(Tn(a,n)),Ef}function Hv(n){var a=n.stateNode,l=n.type,s=n.memoizedProps;switch(a[Rt]=n,a[$t]=s,l){case"dialog":ke("cancel",a),ke("close",a);break;case"iframe":case"object":case"embed":ke("load",a);break;case"video":case"audio":for(l=0;l<_l.length;l++)ke(_l[l],a);break;case"source":ke("error",a);break;case"img":case"image":case"link":ke("error",a),ke("load",a);break;case"details":ke("toggle",a);break;case"input":ke("invalid",a),Jm(a,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":ke("invalid",a);break;case"textarea":ke("invalid",a),tv(a,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||s.suppressHydrationWarning===!0||i0(a.textContent,l)?(s.popover!=null&&(ke("beforetoggle",a),ke("toggle",a)),s.onScroll!=null&&ke("scroll",a),s.onScrollEnd!=null&&ke("scrollend",a),s.onClick!=null&&(a.onclick=pi),a=!0):a=!1,a||Xi(n,!0)}function Fv(n){for(kt=n.return;kt;)switch(kt.tag){case 5:case 31:case 13:Rn=!1;return;case 27:case 3:Rn=!0;return;default:kt=kt.return}}function Ur(n){if(n!==kt)return!1;if(!Ae)return Fv(n),Ae=!0,!1;var a=n.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||Fh(n.type,n.memoizedProps)),l=!l),l&&Ze&&Xi(n),Fv(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Ze=f0(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Ze=f0(n)}else a===27?(a=Ze,ua(n.type)?(n=Wh,Wh=null,Ze=n):Ze=a):Ze=kt?Nn(n.stateNode.nextSibling):null;return!0}function Ga(){Ze=kt=null,Ae=!1}function Tf(){var n=Ki;return n!==null&&(qt===null?qt=n:qt.push.apply(qt,n),Ki=null),n}function fl(n){Ki===null?Ki=[n]:Ki.push(n)}var Of=I(null),Wa=null,yi=null;function Qi(n,a,l){ne(Of,a._currentValue),a._currentValue=l}function xi(n){n._currentValue=Of.current,q(Of)}function wf(n,a,l){for(;n!==null;){var s=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,s!==null&&(s.childLanes|=a)):s!==null&&(s.childLanes&a)!==a&&(s.childLanes|=a),n===l)break;n=n.return}}function Rf(n,a,l,s){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var h=d.dependencies;if(h!==null){var v=d.child;h=h.firstContext;e:for(;h!==null;){var S=h;h=d;for(var R=0;R<a.length;R++)if(S.context===a[R]){h.lanes|=l,S=h.alternate,S!==null&&(S.lanes|=l),wf(h.return,l,n),s||(v=null);break e}h=S.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error(r(341));v.lanes|=l,h=v.alternate,h!==null&&(h.lanes|=l),wf(v,l,n),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===n){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function jr(n,a,l,s){n=null;for(var d=a,h=!1;d!==null;){if(!h){if((d.flags&524288)!==0)h=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var S=d.type;on(d.pendingProps.value,v.value)||(n!==null?n.push(S):n=[S])}}else if(d===Ve.current){if(v=d.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(Bl):n=[Bl])}d=d.return}n!==null&&Rf(a,n,l,s),a.flags|=262144}function pc(n){for(n=n.firstContext;n!==null;){if(!on(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function qa(n){Wa=n,yi=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Nt(n){return $v(Wa,n)}function mc(n,a){return Wa===null&&qa(n),$v(n,a)}function $v(n,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},yi===null){if(n===null)throw Error(r(308));yi=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else yi=yi.next=a;return l}var AR=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(l,s){n.push(s)}};this.abort=function(){a.aborted=!0,n.forEach(function(l){return l()})}},PR=e.unstable_scheduleCallback,VR=e.unstable_NormalPriority,dt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kf(){return{controller:new AR,data:new Map,refCount:0}}function hl(n){n.refCount--,n.refCount===0&&PR(VR,function(){n.controller.abort()})}var gl=null,Nf=0,Gr=0,Wr=null;function _R(n,a){if(gl===null){var l=gl=[];Nf=0,Gr=Ph(),Wr={status:"pending",value:void 0,then:function(s){l.push(s)}}}return Nf++,a.then(Uv,Uv),a}function Uv(){if(--Nf===0&&gl!==null){Wr!==null&&(Wr.status="fulfilled");var n=gl;gl=null,Gr=0,Wr=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function zR(n,a){var l=[],s={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return n.then(function(){s.status="fulfilled",s.value=a;for(var d=0;d<l.length;d++)(0,l[d])(a)},function(d){for(s.status="rejected",s.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),s}var jv=B.S;B.S=function(n,a){Ry=nn(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&_R(n,a),jv!==null&&jv(n,a)};var Ya=I(null);function If(){var n=Ya.current;return n!==null?n:We.pooledCache}function vc(n,a){a===null?ne(Ya,Ya.current):ne(Ya,a.pool)}function Gv(){var n=If();return n===null?null:{parent:dt._currentValue,pool:n}}var qr=Error(r(460)),Af=Error(r(474)),bc=Error(r(542)),yc={then:function(){}};function Wv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function qv(n,a,l){switch(l=n[l],l===void 0?n.push(a):l!==a&&(a.then(pi,pi),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Kv(n),n;default:if(typeof a.status=="string")a.then(pi,pi);else{if(n=We,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=a,n.status="pending",n.then(function(s){if(a.status==="pending"){var d=a;d.status="fulfilled",d.value=s}},function(s){if(a.status==="pending"){var d=a;d.status="rejected",d.reason=s}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Kv(n),n}throw Xa=a,qr}}function Ka(n){try{var a=n._init;return a(n._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Xa=l,qr):l}}var Xa=null;function Yv(){if(Xa===null)throw Error(r(459));var n=Xa;return Xa=null,n}function Kv(n){if(n===qr||n===bc)throw Error(r(483))}var Yr=null,pl=0;function xc(n){var a=pl;return pl+=1,Yr===null&&(Yr=[]),qv(Yr,n,a)}function ml(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Sc(n,a){throw a.$$typeof===y?Error(r(525)):(n=Object.prototype.toString.call(a),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function Xv(n){function a(V,A){if(n){var D=V.deletions;D===null?(V.deletions=[A],V.flags|=16):D.push(A)}}function l(V,A){if(!n)return null;for(;A!==null;)a(V,A),A=A.sibling;return null}function s(V){for(var A=new Map;V!==null;)V.key!==null?A.set(V.key,V):A.set(V.index,V),V=V.sibling;return A}function d(V,A){return V=vi(V,A),V.index=0,V.sibling=null,V}function h(V,A,D){return V.index=D,n?(D=V.alternate,D!==null?(D=D.index,D<A?(V.flags|=67108866,A):D):(V.flags|=67108866,A)):(V.flags|=1048576,A)}function v(V){return n&&V.alternate===null&&(V.flags|=67108866),V}function S(V,A,D,K){return A===null||A.tag!==6?(A=yf(D,V.mode,K),A.return=V,A):(A=d(A,D),A.return=V,A)}function R(V,A,D,K){var pe=D.type;return pe===C?W(V,A,D.props.children,K,D.key):A!==null&&(A.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Y&&Ka(pe)===A.type)?(A=d(A,D.props),ml(A,D),A.return=V,A):(A=hc(D.type,D.key,D.props,null,V.mode,K),ml(A,D),A.return=V,A)}function L(V,A,D,K){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=xf(D,V.mode,K),A.return=V,A):(A=d(A,D.children||[]),A.return=V,A)}function W(V,A,D,K,pe){return A===null||A.tag!==7?(A=ja(D,V.mode,K,pe),A.return=V,A):(A=d(A,D),A.return=V,A)}function X(V,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=yf(""+A,V.mode,D),A.return=V,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case x:return D=hc(A.type,A.key,A.props,null,V.mode,D),ml(D,A),D.return=V,D;case E:return A=xf(A,V.mode,D),A.return=V,A;case Y:return A=Ka(A),X(V,A,D)}if(he(A)||Z(A))return A=ja(A,V.mode,D,null),A.return=V,A;if(typeof A.then=="function")return X(V,xc(A),D);if(A.$$typeof===N)return X(V,mc(V,A),D);Sc(V,A)}return null}function H(V,A,D,K){var pe=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return pe!==null?null:S(V,A,""+D,K);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return D.key===pe?R(V,A,D,K):null;case E:return D.key===pe?L(V,A,D,K):null;case Y:return D=Ka(D),H(V,A,D,K)}if(he(D)||Z(D))return pe!==null?null:W(V,A,D,K,null);if(typeof D.then=="function")return H(V,A,xc(D),K);if(D.$$typeof===N)return H(V,A,mc(V,D),K);Sc(V,D)}return null}function U(V,A,D,K,pe){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return V=V.get(D)||null,S(A,V,""+K,pe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return V=V.get(K.key===null?D:K.key)||null,R(A,V,K,pe);case E:return V=V.get(K.key===null?D:K.key)||null,L(A,V,K,pe);case Y:return K=Ka(K),U(V,A,D,K,pe)}if(he(K)||Z(K))return V=V.get(D)||null,W(A,V,K,pe,null);if(typeof K.then=="function")return U(V,A,D,xc(K),pe);if(K.$$typeof===N)return U(V,A,D,mc(A,K),pe);Sc(A,K)}return null}function le(V,A,D,K){for(var pe=null,_e=null,ue=A,we=A=0,Ie=null;ue!==null&&we<D.length;we++){ue.index>we?(Ie=ue,ue=null):Ie=ue.sibling;var ze=H(V,ue,D[we],K);if(ze===null){ue===null&&(ue=Ie);break}n&&ue&&ze.alternate===null&&a(V,ue),A=h(ze,A,we),_e===null?pe=ze:_e.sibling=ze,_e=ze,ue=Ie}if(we===D.length)return l(V,ue),Ae&&bi(V,we),pe;if(ue===null){for(;we<D.length;we++)ue=X(V,D[we],K),ue!==null&&(A=h(ue,A,we),_e===null?pe=ue:_e.sibling=ue,_e=ue);return Ae&&bi(V,we),pe}for(ue=s(ue);we<D.length;we++)Ie=U(ue,V,we,D[we],K),Ie!==null&&(n&&Ie.alternate!==null&&ue.delete(Ie.key===null?we:Ie.key),A=h(Ie,A,we),_e===null?pe=Ie:_e.sibling=Ie,_e=Ie);return n&&ue.forEach(function(pa){return a(V,pa)}),Ae&&bi(V,we),pe}function xe(V,A,D,K){if(D==null)throw Error(r(151));for(var pe=null,_e=null,ue=A,we=A=0,Ie=null,ze=D.next();ue!==null&&!ze.done;we++,ze=D.next()){ue.index>we?(Ie=ue,ue=null):Ie=ue.sibling;var pa=H(V,ue,ze.value,K);if(pa===null){ue===null&&(ue=Ie);break}n&&ue&&pa.alternate===null&&a(V,ue),A=h(pa,A,we),_e===null?pe=pa:_e.sibling=pa,_e=pa,ue=Ie}if(ze.done)return l(V,ue),Ae&&bi(V,we),pe;if(ue===null){for(;!ze.done;we++,ze=D.next())ze=X(V,ze.value,K),ze!==null&&(A=h(ze,A,we),_e===null?pe=ze:_e.sibling=ze,_e=ze);return Ae&&bi(V,we),pe}for(ue=s(ue);!ze.done;we++,ze=D.next())ze=U(ue,V,we,ze.value,K),ze!==null&&(n&&ze.alternate!==null&&ue.delete(ze.key===null?we:ze.key),A=h(ze,A,we),_e===null?pe=ze:_e.sibling=ze,_e=ze);return n&&ue.forEach(function(Wk){return a(V,Wk)}),Ae&&bi(V,we),pe}function Ge(V,A,D,K){if(typeof D=="object"&&D!==null&&D.type===C&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case x:e:{for(var pe=D.key;A!==null;){if(A.key===pe){if(pe=D.type,pe===C){if(A.tag===7){l(V,A.sibling),K=d(A,D.props.children),K.return=V,V=K;break e}}else if(A.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Y&&Ka(pe)===A.type){l(V,A.sibling),K=d(A,D.props),ml(K,D),K.return=V,V=K;break e}l(V,A);break}else a(V,A);A=A.sibling}D.type===C?(K=ja(D.props.children,V.mode,K,D.key),K.return=V,V=K):(K=hc(D.type,D.key,D.props,null,V.mode,K),ml(K,D),K.return=V,V=K)}return v(V);case E:e:{for(pe=D.key;A!==null;){if(A.key===pe)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){l(V,A.sibling),K=d(A,D.children||[]),K.return=V,V=K;break e}else{l(V,A);break}else a(V,A);A=A.sibling}K=xf(D,V.mode,K),K.return=V,V=K}return v(V);case Y:return D=Ka(D),Ge(V,A,D,K)}if(he(D))return le(V,A,D,K);if(Z(D)){if(pe=Z(D),typeof pe!="function")throw Error(r(150));return D=pe.call(D),xe(V,A,D,K)}if(typeof D.then=="function")return Ge(V,A,xc(D),K);if(D.$$typeof===N)return Ge(V,A,mc(V,D),K);Sc(V,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(l(V,A.sibling),K=d(A,D),K.return=V,V=K):(l(V,A),K=yf(D,V.mode,K),K.return=V,V=K),v(V)):l(V,A)}return function(V,A,D,K){try{pl=0;var pe=Ge(V,A,D,K);return Yr=null,pe}catch(ue){if(ue===qr||ue===bc)throw ue;var _e=ln(29,ue,null,V.mode);return _e.lanes=K,_e.return=V,_e}finally{}}}var Qa=Xv(!0),Qv=Xv(!1),Zi=!1;function Pf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vf(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ji(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ea(n,a,l){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,(De&2)!==0){var d=s.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),s.pending=a,a=fc(n),_v(n,null,l),a}return dc(n,s,a,l),fc(n)}function vl(n,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var s=a.lanes;s&=n.pendingLanes,l|=s,a.lanes=l,$m(n,l)}}function _f(n,a){var l=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var d=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var v={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?d=h=v:h=h.next=v,l=l.next}while(l!==null);h===null?d=h=a:h=h.next=a}else d=h=a;l={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:s.shared,callbacks:s.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=a:n.next=a,l.lastBaseUpdate=a}var zf=!1;function bl(){if(zf){var n=Wr;if(n!==null)throw n}}function yl(n,a,l,s){zf=!1;var d=n.updateQueue;Zi=!1;var h=d.firstBaseUpdate,v=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var R=S,L=R.next;R.next=null,v===null?h=L:v.next=L,v=R;var W=n.alternate;W!==null&&(W=W.updateQueue,S=W.lastBaseUpdate,S!==v&&(S===null?W.firstBaseUpdate=L:S.next=L,W.lastBaseUpdate=R))}if(h!==null){var X=d.baseState;v=0,W=L=R=null,S=h;do{var H=S.lane&-536870913,U=H!==S.lane;if(U?(Ne&H)===H:(s&H)===H){H!==0&&H===Gr&&(zf=!0),W!==null&&(W=W.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var le=n,xe=S;H=a;var Ge=l;switch(xe.tag){case 1:if(le=xe.payload,typeof le=="function"){X=le.call(Ge,X,H);break e}X=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=xe.payload,H=typeof le=="function"?le.call(Ge,X,H):le,H==null)break e;X=b({},X,H);break e;case 2:Zi=!0}}H=S.callback,H!==null&&(n.flags|=64,U&&(n.flags|=8192),U=d.callbacks,U===null?d.callbacks=[H]:U.push(H))}else U={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},W===null?(L=W=U,R=X):W=W.next=U,v|=H;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;U=S,S=U.next,U.next=null,d.lastBaseUpdate=U,d.shared.pending=null}}while(!0);W===null&&(R=X),d.baseState=R,d.firstBaseUpdate=L,d.lastBaseUpdate=W,h===null&&(d.shared.lanes=0),ra|=v,n.lanes=v,n.memoizedState=X}}function Zv(n,a){if(typeof n!="function")throw Error(r(191,n));n.call(a)}function Jv(n,a){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)Zv(l[n],a)}var Kr=I(null),Cc=I(0);function eb(n,a){n=Ni,ne(Cc,n),ne(Kr,a),Ni=n|a.baseLanes}function Df(){ne(Cc,Ni),ne(Kr,Kr.current)}function Mf(){Ni=Cc.current,q(Kr),q(Cc)}var sn=I(null),kn=null;function ta(n){var a=n.alternate;ne(lt,lt.current&1),ne(sn,n),kn===null&&(a===null||Kr.current!==null||a.memoizedState!==null)&&(kn=n)}function Lf(n){ne(lt,lt.current),ne(sn,n),kn===null&&(kn=n)}function tb(n){n.tag===22?(ne(lt,lt.current),ne(sn,n),kn===null&&(kn=n)):na()}function na(){ne(lt,lt.current),ne(sn,sn.current)}function cn(n){q(sn),kn===n&&(kn=null),q(lt)}var lt=I(0);function Ec(n){for(var a=n;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||jh(l)||Gh(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Si=0,Ee=null,Ue=null,ft=null,Tc=!1,Xr=!1,Za=!1,Oc=0,xl=0,Qr=null,DR=0;function at(){throw Error(r(321))}function Bf(n,a){if(a===null)return!1;for(var l=0;l<a.length&&l<n.length;l++)if(!on(n[l],a[l]))return!1;return!0}function Hf(n,a,l,s,d,h){return Si=h,Ee=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,B.H=n===null||n.memoizedState===null?Lb:th,Za=!1,h=l(s,d),Za=!1,Xr&&(h=ib(a,l,s,d)),nb(n),h}function nb(n){B.H=El;var a=Ue!==null&&Ue.next!==null;if(Si=0,ft=Ue=Ee=null,Tc=!1,xl=0,Qr=null,a)throw Error(r(300));n===null||ht||(n=n.dependencies,n!==null&&pc(n)&&(ht=!0))}function ib(n,a,l,s){Ee=n;var d=0;do{if(Xr&&(Qr=null),xl=0,Xr=!1,25<=d)throw Error(r(301));if(d+=1,ft=Ue=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}B.H=Bb,h=a(l,s)}while(Xr);return h}function MR(){var n=B.H,a=n.useState()[0];return a=typeof a.then=="function"?Sl(a):a,n=n.useState()[0],(Ue!==null?Ue.memoizedState:null)!==n&&(Ee.flags|=1024),a}function Ff(){var n=Oc!==0;return Oc=0,n}function $f(n,a,l){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~l}function Uf(n){if(Tc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Tc=!1}Si=0,ft=Ue=Ee=null,Xr=!1,xl=Oc=0,Qr=null}function Bt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?Ee.memoizedState=ft=n:ft=ft.next=n,ft}function st(){if(Ue===null){var n=Ee.alternate;n=n!==null?n.memoizedState:null}else n=Ue.next;var a=ft===null?Ee.memoizedState:ft.next;if(a!==null)ft=a,Ue=n;else{if(n===null)throw Ee.alternate===null?Error(r(467)):Error(r(310));Ue=n,n={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},ft===null?Ee.memoizedState=ft=n:ft=ft.next=n}return ft}function wc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sl(n){var a=xl;return xl+=1,Qr===null&&(Qr=[]),n=qv(Qr,n,a),a=Ee,(ft===null?a.memoizedState:ft.next)===null&&(a=a.alternate,B.H=a===null||a.memoizedState===null?Lb:th),n}function Rc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Sl(n);if(n.$$typeof===N)return Nt(n)}throw Error(r(438,String(n)))}function jf(n){var a=null,l=Ee.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var s=Ee.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(a={data:s.data.map(function(d){return d.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=wc(),Ee.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(n),s=0;s<n;s++)l[s]=$;return a.index++,l}function Ci(n,a){return typeof a=="function"?a(n):a}function kc(n){var a=st();return Gf(a,Ue,n)}function Gf(n,a,l){var s=n.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=l;var d=n.baseQueue,h=s.pending;if(h!==null){if(d!==null){var v=d.next;d.next=h.next,h.next=v}a.baseQueue=d=h,s.pending=null}if(h=n.baseState,d===null)n.memoizedState=h;else{a=d.next;var S=v=null,R=null,L=a,W=!1;do{var X=L.lane&-536870913;if(X!==L.lane?(Ne&X)===X:(Si&X)===X){var H=L.revertLane;if(H===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),X===Gr&&(W=!0);else if((Si&H)===H){L=L.next,H===Gr&&(W=!0);continue}else X={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},R===null?(S=R=X,v=h):R=R.next=X,Ee.lanes|=H,ra|=H;X=L.action,Za&&l(h,X),h=L.hasEagerState?L.eagerState:l(h,X)}else H={lane:X,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},R===null?(S=R=H,v=h):R=R.next=H,Ee.lanes|=X,ra|=X;L=L.next}while(L!==null&&L!==a);if(R===null?v=h:R.next=S,!on(h,n.memoizedState)&&(ht=!0,W&&(l=Wr,l!==null)))throw l;n.memoizedState=h,n.baseState=v,n.baseQueue=R,s.lastRenderedState=h}return d===null&&(s.lanes=0),[n.memoizedState,s.dispatch]}function Wf(n){var a=st(),l=a.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var s=l.dispatch,d=l.pending,h=a.memoizedState;if(d!==null){l.pending=null;var v=d=d.next;do h=n(h,v.action),v=v.next;while(v!==d);on(h,a.memoizedState)||(ht=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),l.lastRenderedState=h}return[h,s]}function ab(n,a,l){var s=Ee,d=st(),h=Ae;if(h){if(l===void 0)throw Error(r(407));l=l()}else l=a();var v=!on((Ue||d).memoizedState,l);if(v&&(d.memoizedState=l,ht=!0),d=d.queue,Kf(lb.bind(null,s,d,n),[n]),d.getSnapshot!==a||v||ft!==null&&ft.memoizedState.tag&1){if(s.flags|=2048,Zr(9,{destroy:void 0},ob.bind(null,s,d,l,a),null),We===null)throw Error(r(349));h||(Si&127)!==0||rb(s,a,l)}return l}function rb(n,a,l){n.flags|=16384,n={getSnapshot:a,value:l},a=Ee.updateQueue,a===null?(a=wc(),Ee.updateQueue=a,a.stores=[n]):(l=a.stores,l===null?a.stores=[n]:l.push(n))}function ob(n,a,l,s){a.value=l,a.getSnapshot=s,sb(a)&&cb(n)}function lb(n,a,l){return l(function(){sb(a)&&cb(n)})}function sb(n){var a=n.getSnapshot;n=n.value;try{var l=a();return!on(n,l)}catch{return!0}}function cb(n){var a=Ua(n,2);a!==null&&Yt(a,n,2)}function qf(n){var a=Bt();if(typeof n=="function"){var l=n;if(n=l(),Za){Gi(!0);try{l()}finally{Gi(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:n},a}function ub(n,a,l,s){return n.baseState=l,Gf(n,Ue,typeof s=="function"?s:Ci)}function LR(n,a,l,s,d){if(Ac(n))throw Error(r(485));if(n=a.action,n!==null){var h={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){h.listeners.push(v)}};B.T!==null?l(!0):h.isTransition=!1,s(h),l=a.pending,l===null?(h.next=a.pending=h,db(a,h)):(h.next=l.next,a.pending=l.next=h)}}function db(n,a){var l=a.action,s=a.payload,d=n.state;if(a.isTransition){var h=B.T,v={};B.T=v;try{var S=l(d,s),R=B.S;R!==null&&R(v,S),fb(n,a,S)}catch(L){Yf(n,a,L)}finally{h!==null&&v.types!==null&&(h.types=v.types),B.T=h}}else try{h=l(d,s),fb(n,a,h)}catch(L){Yf(n,a,L)}}function fb(n,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){hb(n,a,s)},function(s){return Yf(n,a,s)}):hb(n,a,l)}function hb(n,a,l){a.status="fulfilled",a.value=l,gb(a),n.state=l,a=n.pending,a!==null&&(l=a.next,l===a?n.pending=null:(l=l.next,a.next=l,db(n,l)))}function Yf(n,a,l){var s=n.pending;if(n.pending=null,s!==null){s=s.next;do a.status="rejected",a.reason=l,gb(a),a=a.next;while(a!==s)}n.action=null}function gb(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function pb(n,a){return a}function mb(n,a){if(Ae){var l=We.formState;if(l!==null){e:{var s=Ee;if(Ae){if(Ze){t:{for(var d=Ze,h=Rn;d.nodeType!==8;){if(!h){d=null;break t}if(d=Nn(d.nextSibling),d===null){d=null;break t}}h=d.data,d=h==="F!"||h==="F"?d:null}if(d){Ze=Nn(d.nextSibling),s=d.data==="F!";break e}}Xi(s)}s=!1}s&&(a=l[0])}}return l=Bt(),l.memoizedState=l.baseState=a,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pb,lastRenderedState:a},l.queue=s,l=zb.bind(null,Ee,s),s.dispatch=l,s=qf(!1),h=eh.bind(null,Ee,!1,s.queue),s=Bt(),d={state:a,dispatch:null,action:n,pending:null},s.queue=d,l=LR.bind(null,Ee,d,h,l),d.dispatch=l,s.memoizedState=n,[a,l,!1]}function vb(n){var a=st();return bb(a,Ue,n)}function bb(n,a,l){if(a=Gf(n,a,pb)[0],n=kc(Ci)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var s=Sl(a)}catch(v){throw v===qr?bc:v}else s=a;a=st();var d=a.queue,h=d.dispatch;return l!==a.memoizedState&&(Ee.flags|=2048,Zr(9,{destroy:void 0},BR.bind(null,d,l),null)),[s,h,n]}function BR(n,a){n.action=a}function yb(n){var a=st(),l=Ue;if(l!==null)return bb(a,l,n);st(),a=a.memoizedState,l=st();var s=l.queue.dispatch;return l.memoizedState=n,[a,s,!1]}function Zr(n,a,l,s){return n={tag:n,create:l,deps:s,inst:a,next:null},a=Ee.updateQueue,a===null&&(a=wc(),Ee.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=n.next=n:(s=l.next,l.next=n,n.next=s,a.lastEffect=n),n}function xb(){return st().memoizedState}function Nc(n,a,l,s){var d=Bt();Ee.flags|=n,d.memoizedState=Zr(1|a,{destroy:void 0},l,s===void 0?null:s)}function Ic(n,a,l,s){var d=st();s=s===void 0?null:s;var h=d.memoizedState.inst;Ue!==null&&s!==null&&Bf(s,Ue.memoizedState.deps)?d.memoizedState=Zr(a,h,l,s):(Ee.flags|=n,d.memoizedState=Zr(1|a,h,l,s))}function Sb(n,a){Nc(8390656,8,n,a)}function Kf(n,a){Ic(2048,8,n,a)}function HR(n){Ee.flags|=4;var a=Ee.updateQueue;if(a===null)a=wc(),Ee.updateQueue=a,a.events=[n];else{var l=a.events;l===null?a.events=[n]:l.push(n)}}function Cb(n){var a=st().memoizedState;return HR({ref:a,nextImpl:n}),function(){if((De&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function Eb(n,a){return Ic(4,2,n,a)}function Tb(n,a){return Ic(4,4,n,a)}function Ob(n,a){if(typeof a=="function"){n=n();var l=a(n);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function wb(n,a,l){l=l!=null?l.concat([n]):null,Ic(4,4,Ob.bind(null,a,n),l)}function Xf(){}function Rb(n,a){var l=st();a=a===void 0?null:a;var s=l.memoizedState;return a!==null&&Bf(a,s[1])?s[0]:(l.memoizedState=[n,a],n)}function kb(n,a){var l=st();a=a===void 0?null:a;var s=l.memoizedState;if(a!==null&&Bf(a,s[1]))return s[0];if(s=n(),Za){Gi(!0);try{n()}finally{Gi(!1)}}return l.memoizedState=[s,a],s}function Qf(n,a,l){return l===void 0||(Si&1073741824)!==0&&(Ne&261930)===0?n.memoizedState=a:(n.memoizedState=l,n=Ny(),Ee.lanes|=n,ra|=n,l)}function Nb(n,a,l,s){return on(l,a)?l:Kr.current!==null?(n=Qf(n,l,s),on(n,a)||(ht=!0),n):(Si&42)===0||(Si&1073741824)!==0&&(Ne&261930)===0?(ht=!0,n.memoizedState=l):(n=Ny(),Ee.lanes|=n,ra|=n,a)}function Ib(n,a,l,s,d){var h=ee.p;ee.p=h!==0&&8>h?h:8;var v=B.T,S={};B.T=S,eh(n,!1,a,l);try{var R=d(),L=B.S;if(L!==null&&L(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var W=zR(R,s);Cl(n,a,W,fn(n))}else Cl(n,a,s,fn(n))}catch(X){Cl(n,a,{then:function(){},status:"rejected",reason:X},fn())}finally{ee.p=h,v!==null&&S.types!==null&&(v.types=S.types),B.T=v}}function FR(){}function Zf(n,a,l,s){if(n.tag!==5)throw Error(r(476));var d=Ab(n).queue;Ib(n,d,a,oe,l===null?FR:function(){return Pb(n),l(s)})}function Ab(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:oe},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ci,lastRenderedState:l},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function Pb(n){var a=Ab(n);a.next===null&&(a=n.alternate.memoizedState),Cl(n,a.next.queue,{},fn())}function Jf(){return Nt(Bl)}function Vb(){return st().memoizedState}function _b(){return st().memoizedState}function $R(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var l=fn();n=Ji(l);var s=ea(a,n,l);s!==null&&(Yt(s,a,l),vl(s,a,l)),a={cache:kf()},n.payload=a;return}a=a.return}}function UR(n,a,l){var s=fn();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ac(n)?Db(a,l):(l=vf(n,a,l,s),l!==null&&(Yt(l,n,s),Mb(l,a,s)))}function zb(n,a,l){var s=fn();Cl(n,a,l,s)}function Cl(n,a,l,s){var d={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ac(n))Db(a,d);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var v=a.lastRenderedState,S=h(v,l);if(d.hasEagerState=!0,d.eagerState=S,on(S,v))return dc(n,a,d,0),We===null&&uc(),!1}catch{}finally{}if(l=vf(n,a,d,s),l!==null)return Yt(l,n,s),Mb(l,a,s),!0}return!1}function eh(n,a,l,s){if(s={lane:2,revertLane:Ph(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ac(n)){if(a)throw Error(r(479))}else a=vf(n,l,s,2),a!==null&&Yt(a,n,2)}function Ac(n){var a=n.alternate;return n===Ee||a!==null&&a===Ee}function Db(n,a){Xr=Tc=!0;var l=n.pending;l===null?a.next=a:(a.next=l.next,l.next=a),n.pending=a}function Mb(n,a,l){if((l&4194048)!==0){var s=a.lanes;s&=n.pendingLanes,l|=s,a.lanes=l,$m(n,l)}}var El={readContext:Nt,use:Rc,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};El.useEffectEvent=at;var Lb={readContext:Nt,use:Rc,useCallback:function(n,a){return Bt().memoizedState=[n,a===void 0?null:a],n},useContext:Nt,useEffect:Sb,useImperativeHandle:function(n,a,l){l=l!=null?l.concat([n]):null,Nc(4194308,4,Ob.bind(null,a,n),l)},useLayoutEffect:function(n,a){return Nc(4194308,4,n,a)},useInsertionEffect:function(n,a){Nc(4,2,n,a)},useMemo:function(n,a){var l=Bt();a=a===void 0?null:a;var s=n();if(Za){Gi(!0);try{n()}finally{Gi(!1)}}return l.memoizedState=[s,a],s},useReducer:function(n,a,l){var s=Bt();if(l!==void 0){var d=l(a);if(Za){Gi(!0);try{l(a)}finally{Gi(!1)}}}else d=a;return s.memoizedState=s.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},s.queue=n,n=n.dispatch=UR.bind(null,Ee,n),[s.memoizedState,n]},useRef:function(n){var a=Bt();return n={current:n},a.memoizedState=n},useState:function(n){n=qf(n);var a=n.queue,l=zb.bind(null,Ee,a);return a.dispatch=l,[n.memoizedState,l]},useDebugValue:Xf,useDeferredValue:function(n,a){var l=Bt();return Qf(l,n,a)},useTransition:function(){var n=qf(!1);return n=Ib.bind(null,Ee,n.queue,!0,!1),Bt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,l){var s=Ee,d=Bt();if(Ae){if(l===void 0)throw Error(r(407));l=l()}else{if(l=a(),We===null)throw Error(r(349));(Ne&127)!==0||rb(s,a,l)}d.memoizedState=l;var h={value:l,getSnapshot:a};return d.queue=h,Sb(lb.bind(null,s,h,n),[n]),s.flags|=2048,Zr(9,{destroy:void 0},ob.bind(null,s,h,l,a),null),l},useId:function(){var n=Bt(),a=We.identifierPrefix;if(Ae){var l=Wn,s=Gn;l=(s&~(1<<32-rn(s)-1)).toString(32)+l,a="_"+a+"R_"+l,l=Oc++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=DR++,a="_"+a+"r_"+l.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:Jf,useFormState:mb,useActionState:mb,useOptimistic:function(n){var a=Bt();a.memoizedState=a.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=eh.bind(null,Ee,!0,l),l.dispatch=a,[n,a]},useMemoCache:jf,useCacheRefresh:function(){return Bt().memoizedState=$R.bind(null,Ee)},useEffectEvent:function(n){var a=Bt(),l={impl:n};return a.memoizedState=l,function(){if((De&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},th={readContext:Nt,use:Rc,useCallback:Rb,useContext:Nt,useEffect:Kf,useImperativeHandle:wb,useInsertionEffect:Eb,useLayoutEffect:Tb,useMemo:kb,useReducer:kc,useRef:xb,useState:function(){return kc(Ci)},useDebugValue:Xf,useDeferredValue:function(n,a){var l=st();return Nb(l,Ue.memoizedState,n,a)},useTransition:function(){var n=kc(Ci)[0],a=st().memoizedState;return[typeof n=="boolean"?n:Sl(n),a]},useSyncExternalStore:ab,useId:Vb,useHostTransitionStatus:Jf,useFormState:vb,useActionState:vb,useOptimistic:function(n,a){var l=st();return ub(l,Ue,n,a)},useMemoCache:jf,useCacheRefresh:_b};th.useEffectEvent=Cb;var Bb={readContext:Nt,use:Rc,useCallback:Rb,useContext:Nt,useEffect:Kf,useImperativeHandle:wb,useInsertionEffect:Eb,useLayoutEffect:Tb,useMemo:kb,useReducer:Wf,useRef:xb,useState:function(){return Wf(Ci)},useDebugValue:Xf,useDeferredValue:function(n,a){var l=st();return Ue===null?Qf(l,n,a):Nb(l,Ue.memoizedState,n,a)},useTransition:function(){var n=Wf(Ci)[0],a=st().memoizedState;return[typeof n=="boolean"?n:Sl(n),a]},useSyncExternalStore:ab,useId:Vb,useHostTransitionStatus:Jf,useFormState:yb,useActionState:yb,useOptimistic:function(n,a){var l=st();return Ue!==null?ub(l,Ue,n,a):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:jf,useCacheRefresh:_b};Bb.useEffectEvent=Cb;function nh(n,a,l,s){a=n.memoizedState,l=l(s,a),l=l==null?a:b({},a,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var ih={enqueueSetState:function(n,a,l){n=n._reactInternals;var s=fn(),d=Ji(s);d.payload=a,l!=null&&(d.callback=l),a=ea(n,d,s),a!==null&&(Yt(a,n,s),vl(a,n,s))},enqueueReplaceState:function(n,a,l){n=n._reactInternals;var s=fn(),d=Ji(s);d.tag=1,d.payload=a,l!=null&&(d.callback=l),a=ea(n,d,s),a!==null&&(Yt(a,n,s),vl(a,n,s))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var l=fn(),s=Ji(l);s.tag=2,a!=null&&(s.callback=a),a=ea(n,s,l),a!==null&&(Yt(a,n,l),vl(a,n,l))}};function Hb(n,a,l,s,d,h,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(s,h,v):a.prototype&&a.prototype.isPureReactComponent?!cl(l,s)||!cl(d,h):!0}function Fb(n,a,l,s){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,s),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,s),a.state!==n&&ih.enqueueReplaceState(a,a.state,null)}function Ja(n,a){var l=a;if("ref"in a){l={};for(var s in a)s!=="ref"&&(l[s]=a[s])}if(n=n.defaultProps){l===a&&(l=b({},l));for(var d in n)l[d]===void 0&&(l[d]=n[d])}return l}function $b(n){cc(n)}function Ub(n){console.error(n)}function jb(n){cc(n)}function Pc(n,a){try{var l=n.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(s){setTimeout(function(){throw s})}}function Gb(n,a,l){try{var s=n.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function ah(n,a,l){return l=Ji(l),l.tag=3,l.payload={element:null},l.callback=function(){Pc(n,a)},l}function Wb(n){return n=Ji(n),n.tag=3,n}function qb(n,a,l,s){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var h=s.value;n.payload=function(){return d(h)},n.callback=function(){Gb(a,l,s)}}var v=l.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(n.callback=function(){Gb(a,l,s),typeof d!="function"&&(oa===null?oa=new Set([this]):oa.add(this));var S=s.stack;this.componentDidCatch(s.value,{componentStack:S!==null?S:""})})}function jR(n,a,l,s,d){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(a=l.alternate,a!==null&&jr(a,l,d,!0),l=sn.current,l!==null){switch(l.tag){case 31:case 13:return kn===null?jc():l.alternate===null&&rt===0&&(rt=3),l.flags&=-257,l.flags|=65536,l.lanes=d,s===yc?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([s]):a.add(s),Nh(n,s,d)),!1;case 22:return l.flags|=65536,s===yc?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([s]):l.add(s)),Nh(n,s,d)),!1}throw Error(r(435,l.tag))}return Nh(n,s,d),jc(),!1}if(Ae)return a=sn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,s!==Ef&&(n=Error(r(422),{cause:s}),fl(Tn(n,l)))):(s!==Ef&&(a=Error(r(423),{cause:s}),fl(Tn(a,l))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,s=Tn(s,l),d=ah(n.stateNode,s,d),_f(n,d),rt!==4&&(rt=2)),!1;var h=Error(r(520),{cause:s});if(h=Tn(h,l),Al===null?Al=[h]:Al.push(h),rt!==4&&(rt=2),a===null)return!0;s=Tn(s,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,n=d&-d,l.lanes|=n,n=ah(l.stateNode,s,n),_f(l,n),!1;case 1:if(a=l.type,h=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(oa===null||!oa.has(h))))return l.flags|=65536,d&=-d,l.lanes|=d,d=Wb(d),qb(d,n,l,s),_f(l,d),!1}l=l.return}while(l!==null);return!1}var rh=Error(r(461)),ht=!1;function It(n,a,l,s){a.child=n===null?Qv(a,null,l,s):Qa(a,n.child,l,s)}function Yb(n,a,l,s,d){l=l.render;var h=a.ref;if("ref"in s){var v={};for(var S in s)S!=="ref"&&(v[S]=s[S])}else v=s;return qa(a),s=Hf(n,a,l,v,h,d),S=Ff(),n!==null&&!ht?($f(n,a,d),Ei(n,a,d)):(Ae&&S&&Sf(a),a.flags|=1,It(n,a,s,d),a.child)}function Kb(n,a,l,s,d){if(n===null){var h=l.type;return typeof h=="function"&&!bf(h)&&h.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=h,Xb(n,a,h,s,d)):(n=hc(l.type,null,s,a,a.mode,d),n.ref=a.ref,n.return=a,a.child=n)}if(h=n.child,!hh(n,d)){var v=h.memoizedProps;if(l=l.compare,l=l!==null?l:cl,l(v,s)&&n.ref===a.ref)return Ei(n,a,d)}return a.flags|=1,n=vi(h,s),n.ref=a.ref,n.return=a,a.child=n}function Xb(n,a,l,s,d){if(n!==null){var h=n.memoizedProps;if(cl(h,s)&&n.ref===a.ref)if(ht=!1,a.pendingProps=s=h,hh(n,d))(n.flags&131072)!==0&&(ht=!0);else return a.lanes=n.lanes,Ei(n,a,d)}return oh(n,a,l,s,d)}function Qb(n,a,l,s){var d=s.children,h=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((a.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,n!==null){for(s=a.child=n.child,d=0;s!==null;)d=d|s.lanes|s.childLanes,s=s.sibling;s=d&~h}else s=0,a.child=null;return Zb(n,a,h,l,s)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&vc(a,h!==null?h.cachePool:null),h!==null?eb(a,h):Df(),tb(a);else return s=a.lanes=536870912,Zb(n,a,h!==null?h.baseLanes|l:l,l,s)}else h!==null?(vc(a,h.cachePool),eb(a,h),na(),a.memoizedState=null):(n!==null&&vc(a,null),Df(),na());return It(n,a,d,l),a.child}function Tl(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Zb(n,a,l,s,d){var h=If();return h=h===null?null:{parent:dt._currentValue,pool:h},a.memoizedState={baseLanes:l,cachePool:h},n!==null&&vc(a,null),Df(),tb(a),n!==null&&jr(n,a,s,!0),a.childLanes=d,null}function Vc(n,a){return a=zc({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function Jb(n,a,l){return Qa(a,n.child,null,l),n=Vc(a,a.pendingProps),n.flags|=2,cn(a),a.memoizedState=null,n}function GR(n,a,l){var s=a.pendingProps,d=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(Ae){if(s.mode==="hidden")return n=Vc(a,s),a.lanes=536870912,Tl(null,n);if(Lf(a),(n=Ze)?(n=d0(n,Rn),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Yi!==null?{id:Gn,overflow:Wn}:null,retryLane:536870912,hydrationErrors:null},l=Dv(n),l.return=a,a.child=l,kt=a,Ze=null)):n=null,n===null)throw Xi(a);return a.lanes=536870912,null}return Vc(a,s)}var h=n.memoizedState;if(h!==null){var v=h.dehydrated;if(Lf(a),d)if(a.flags&256)a.flags&=-257,a=Jb(n,a,l);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(r(558));else if(ht||jr(n,a,l,!1),d=(l&n.childLanes)!==0,ht||d){if(s=We,s!==null&&(v=Um(s,l),v!==0&&v!==h.retryLane))throw h.retryLane=v,Ua(n,v),Yt(s,n,v),rh;jc(),a=Jb(n,a,l)}else n=h.treeContext,Ze=Nn(v.nextSibling),kt=a,Ae=!0,Ki=null,Rn=!1,n!==null&&Bv(a,n),a=Vc(a,s),a.flags|=4096;return a}return n=vi(n.child,{mode:s.mode,children:s.children}),n.ref=a.ref,a.child=n,n.return=a,n}function _c(n,a){var l=a.ref;if(l===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(n===null||n.ref!==l)&&(a.flags|=4194816)}}function oh(n,a,l,s,d){return qa(a),l=Hf(n,a,l,s,void 0,d),s=Ff(),n!==null&&!ht?($f(n,a,d),Ei(n,a,d)):(Ae&&s&&Sf(a),a.flags|=1,It(n,a,l,d),a.child)}function ey(n,a,l,s,d,h){return qa(a),a.updateQueue=null,l=ib(a,s,l,d),nb(n),s=Ff(),n!==null&&!ht?($f(n,a,h),Ei(n,a,h)):(Ae&&s&&Sf(a),a.flags|=1,It(n,a,l,h),a.child)}function ty(n,a,l,s,d){if(qa(a),a.stateNode===null){var h=Hr,v=l.contextType;typeof v=="object"&&v!==null&&(h=Nt(v)),h=new l(s,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=ih,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=s,h.state=a.memoizedState,h.refs={},Pf(a),v=l.contextType,h.context=typeof v=="object"&&v!==null?Nt(v):Hr,h.state=a.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(nh(a,l,v,s),h.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(v=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),v!==h.state&&ih.enqueueReplaceState(h,h.state,null),yl(a,s,h,d),bl(),h.state=a.memoizedState),typeof h.componentDidMount=="function"&&(a.flags|=4194308),s=!0}else if(n===null){h=a.stateNode;var S=a.memoizedProps,R=Ja(l,S);h.props=R;var L=h.context,W=l.contextType;v=Hr,typeof W=="object"&&W!==null&&(v=Nt(W));var X=l.getDerivedStateFromProps;W=typeof X=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=a.pendingProps!==S,W||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||L!==v)&&Fb(a,h,s,v),Zi=!1;var H=a.memoizedState;h.state=H,yl(a,s,h,d),bl(),L=a.memoizedState,S||H!==L||Zi?(typeof X=="function"&&(nh(a,l,X,s),L=a.memoizedState),(R=Zi||Hb(a,l,R,s,H,L,v))?(W||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(a.flags|=4194308)):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=s,a.memoizedState=L),h.props=s,h.state=L,h.context=v,s=R):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),s=!1)}else{h=a.stateNode,Vf(n,a),v=a.memoizedProps,W=Ja(l,v),h.props=W,X=a.pendingProps,H=h.context,L=l.contextType,R=Hr,typeof L=="object"&&L!==null&&(R=Nt(L)),S=l.getDerivedStateFromProps,(L=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==X||H!==R)&&Fb(a,h,s,R),Zi=!1,H=a.memoizedState,h.state=H,yl(a,s,h,d),bl();var U=a.memoizedState;v!==X||H!==U||Zi||n!==null&&n.dependencies!==null&&pc(n.dependencies)?(typeof S=="function"&&(nh(a,l,S,s),U=a.memoizedState),(W=Zi||Hb(a,l,W,s,H,U,R)||n!==null&&n.dependencies!==null&&pc(n.dependencies))?(L||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(s,U,R),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(s,U,R)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||v===n.memoizedProps&&H===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&H===n.memoizedState||(a.flags|=1024),a.memoizedProps=s,a.memoizedState=U),h.props=s,h.state=U,h.context=R,s=W):(typeof h.componentDidUpdate!="function"||v===n.memoizedProps&&H===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&H===n.memoizedState||(a.flags|=1024),s=!1)}return h=s,_c(n,a),s=(a.flags&128)!==0,h||s?(h=a.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:h.render(),a.flags|=1,n!==null&&s?(a.child=Qa(a,n.child,null,d),a.child=Qa(a,null,l,d)):It(n,a,l,d),a.memoizedState=h.state,n=a.child):n=Ei(n,a,d),n}function ny(n,a,l,s){return Ga(),a.flags|=256,It(n,a,l,s),a.child}var lh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sh(n){return{baseLanes:n,cachePool:Gv()}}function ch(n,a,l){return n=n!==null?n.childLanes&~l:0,a&&(n|=dn),n}function iy(n,a,l){var s=a.pendingProps,d=!1,h=(a.flags&128)!==0,v;if((v=h)||(v=n!==null&&n.memoizedState===null?!1:(lt.current&2)!==0),v&&(d=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,n===null){if(Ae){if(d?ta(a):na(),(n=Ze)?(n=d0(n,Rn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Yi!==null?{id:Gn,overflow:Wn}:null,retryLane:536870912,hydrationErrors:null},l=Dv(n),l.return=a,a.child=l,kt=a,Ze=null)):n=null,n===null)throw Xi(a);return Gh(n)?a.lanes=32:a.lanes=536870912,null}var S=s.children;return s=s.fallback,d?(na(),d=a.mode,S=zc({mode:"hidden",children:S},d),s=ja(s,d,l,null),S.return=a,s.return=a,S.sibling=s,a.child=S,s=a.child,s.memoizedState=sh(l),s.childLanes=ch(n,v,l),a.memoizedState=lh,Tl(null,s)):(ta(a),uh(a,S))}var R=n.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(h)a.flags&256?(ta(a),a.flags&=-257,a=dh(n,a,l)):a.memoizedState!==null?(na(),a.child=n.child,a.flags|=128,a=null):(na(),S=s.fallback,d=a.mode,s=zc({mode:"visible",children:s.children},d),S=ja(S,d,l,null),S.flags|=2,s.return=a,S.return=a,s.sibling=S,a.child=s,Qa(a,n.child,null,l),s=a.child,s.memoizedState=sh(l),s.childLanes=ch(n,v,l),a.memoizedState=lh,a=Tl(null,s));else if(ta(a),Gh(S)){if(v=S.nextSibling&&S.nextSibling.dataset,v)var L=v.dgst;v=L,s=Error(r(419)),s.stack="",s.digest=v,fl({value:s,source:null,stack:null}),a=dh(n,a,l)}else if(ht||jr(n,a,l,!1),v=(l&n.childLanes)!==0,ht||v){if(v=We,v!==null&&(s=Um(v,l),s!==0&&s!==R.retryLane))throw R.retryLane=s,Ua(n,s),Yt(v,n,s),rh;jh(S)||jc(),a=dh(n,a,l)}else jh(S)?(a.flags|=192,a.child=n.child,a=null):(n=R.treeContext,Ze=Nn(S.nextSibling),kt=a,Ae=!0,Ki=null,Rn=!1,n!==null&&Bv(a,n),a=uh(a,s.children),a.flags|=4096);return a}return d?(na(),S=s.fallback,d=a.mode,R=n.child,L=R.sibling,s=vi(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,L!==null?S=vi(L,S):(S=ja(S,d,l,null),S.flags|=2),S.return=a,s.return=a,s.sibling=S,a.child=s,Tl(null,s),s=a.child,S=n.child.memoizedState,S===null?S=sh(l):(d=S.cachePool,d!==null?(R=dt._currentValue,d=d.parent!==R?{parent:R,pool:R}:d):d=Gv(),S={baseLanes:S.baseLanes|l,cachePool:d}),s.memoizedState=S,s.childLanes=ch(n,v,l),a.memoizedState=lh,Tl(n.child,s)):(ta(a),l=n.child,n=l.sibling,l=vi(l,{mode:"visible",children:s.children}),l.return=a,l.sibling=null,n!==null&&(v=a.deletions,v===null?(a.deletions=[n],a.flags|=16):v.push(n)),a.child=l,a.memoizedState=null,l)}function uh(n,a){return a=zc({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function zc(n,a){return n=ln(22,n,null,a),n.lanes=0,n}function dh(n,a,l){return Qa(a,n.child,null,l),n=uh(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function ay(n,a,l){n.lanes|=a;var s=n.alternate;s!==null&&(s.lanes|=a),wf(n.return,a,l)}function fh(n,a,l,s,d,h){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:d,treeForkCount:h}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=s,v.tail=l,v.tailMode=d,v.treeForkCount=h)}function ry(n,a,l){var s=a.pendingProps,d=s.revealOrder,h=s.tail;s=s.children;var v=lt.current,S=(v&2)!==0;if(S?(v=v&1|2,a.flags|=128):v&=1,ne(lt,v),It(n,a,s,l),s=Ae?dl:0,!S&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&ay(n,l,a);else if(n.tag===19)ay(n,l,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(d){case"forwards":for(l=a.child,d=null;l!==null;)n=l.alternate,n!==null&&Ec(n)===null&&(d=l),l=l.sibling;l=d,l===null?(d=a.child,a.child=null):(d=l.sibling,l.sibling=null),fh(a,!1,d,l,h,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=a.child,a.child=null;d!==null;){if(n=d.alternate,n!==null&&Ec(n)===null){a.child=d;break}n=d.sibling,d.sibling=l,l=d,d=n}fh(a,!0,l,null,h,s);break;case"together":fh(a,!1,null,null,void 0,s);break;default:a.memoizedState=null}return a.child}function Ei(n,a,l){if(n!==null&&(a.dependencies=n.dependencies),ra|=a.lanes,(l&a.childLanes)===0)if(n!==null){if(jr(n,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(r(153));if(a.child!==null){for(n=a.child,l=vi(n,n.pendingProps),a.child=l,l.return=a;n.sibling!==null;)n=n.sibling,l=l.sibling=vi(n,n.pendingProps),l.return=a;l.sibling=null}return a.child}function hh(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&pc(n)))}function WR(n,a,l){switch(a.tag){case 3:te(a,a.stateNode.containerInfo),Qi(a,dt,n.memoizedState.cache),Ga();break;case 27:case 5:Oe(a);break;case 4:te(a,a.stateNode.containerInfo);break;case 10:Qi(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Lf(a),null;break;case 13:var s=a.memoizedState;if(s!==null)return s.dehydrated!==null?(ta(a),a.flags|=128,null):(l&a.child.childLanes)!==0?iy(n,a,l):(ta(a),n=Ei(n,a,l),n!==null?n.sibling:null);ta(a);break;case 19:var d=(n.flags&128)!==0;if(s=(l&a.childLanes)!==0,s||(jr(n,a,l,!1),s=(l&a.childLanes)!==0),d){if(s)return ry(n,a,l);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ne(lt,lt.current),s)break;return null;case 22:return a.lanes=0,Qb(n,a,l,a.pendingProps);case 24:Qi(a,dt,n.memoizedState.cache)}return Ei(n,a,l)}function oy(n,a,l){if(n!==null)if(n.memoizedProps!==a.pendingProps)ht=!0;else{if(!hh(n,l)&&(a.flags&128)===0)return ht=!1,WR(n,a,l);ht=(n.flags&131072)!==0}else ht=!1,Ae&&(a.flags&1048576)!==0&&Lv(a,dl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var s=a.pendingProps;if(n=Ka(a.elementType),a.type=n,typeof n=="function")bf(n)?(s=Ja(n,s),a.tag=1,a=ty(null,a,n,s,l)):(a.tag=0,a=oh(null,a,n,s,l));else{if(n!=null){var d=n.$$typeof;if(d===M){a.tag=11,a=Yb(null,a,n,s,l);break e}else if(d===F){a.tag=14,a=Kb(null,a,n,s,l);break e}}throw a=fe(n)||n,Error(r(306,a,""))}}return a;case 0:return oh(n,a,a.type,a.pendingProps,l);case 1:return s=a.type,d=Ja(s,a.pendingProps),ty(n,a,s,d,l);case 3:e:{if(te(a,a.stateNode.containerInfo),n===null)throw Error(r(387));s=a.pendingProps;var h=a.memoizedState;d=h.element,Vf(n,a),yl(a,s,null,l);var v=a.memoizedState;if(s=v.cache,Qi(a,dt,s),s!==h.cache&&Rf(a,[dt],l,!0),bl(),s=v.element,h.isDehydrated)if(h={element:s,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=ny(n,a,s,l);break e}else if(s!==d){d=Tn(Error(r(424)),a),fl(d),a=ny(n,a,s,l);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Ze=Nn(n.firstChild),kt=a,Ae=!0,Ki=null,Rn=!0,l=Qv(a,null,s,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ga(),s===d){a=Ei(n,a,l);break e}It(n,a,s,l)}a=a.child}return a;case 26:return _c(n,a),n===null?(l=v0(a.type,null,a.pendingProps,null))?a.memoizedState=l:Ae||(l=a.type,n=a.pendingProps,s=Qc(Te.current).createElement(l),s[Rt]=a,s[$t]=n,At(s,l,n),Ct(s),a.stateNode=s):a.memoizedState=v0(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return Oe(a),n===null&&Ae&&(s=a.stateNode=g0(a.type,a.pendingProps,Te.current),kt=a,Rn=!0,d=Ze,ua(a.type)?(Wh=d,Ze=Nn(s.firstChild)):Ze=d),It(n,a,a.pendingProps.children,l),_c(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Ae&&((d=s=Ze)&&(s=Ck(s,a.type,a.pendingProps,Rn),s!==null?(a.stateNode=s,kt=a,Ze=Nn(s.firstChild),Rn=!1,d=!0):d=!1),d||Xi(a)),Oe(a),d=a.type,h=a.pendingProps,v=n!==null?n.memoizedProps:null,s=h.children,Fh(d,h)?s=null:v!==null&&Fh(d,v)&&(a.flags|=32),a.memoizedState!==null&&(d=Hf(n,a,MR,null,null,l),Bl._currentValue=d),_c(n,a),It(n,a,s,l),a.child;case 6:return n===null&&Ae&&((n=l=Ze)&&(l=Ek(l,a.pendingProps,Rn),l!==null?(a.stateNode=l,kt=a,Ze=null,n=!0):n=!1),n||Xi(a)),null;case 13:return iy(n,a,l);case 4:return te(a,a.stateNode.containerInfo),s=a.pendingProps,n===null?a.child=Qa(a,null,s,l):It(n,a,s,l),a.child;case 11:return Yb(n,a,a.type,a.pendingProps,l);case 7:return It(n,a,a.pendingProps,l),a.child;case 8:return It(n,a,a.pendingProps.children,l),a.child;case 12:return It(n,a,a.pendingProps.children,l),a.child;case 10:return s=a.pendingProps,Qi(a,a.type,s.value),It(n,a,s.children,l),a.child;case 9:return d=a.type._context,s=a.pendingProps.children,qa(a),d=Nt(d),s=s(d),a.flags|=1,It(n,a,s,l),a.child;case 14:return Kb(n,a,a.type,a.pendingProps,l);case 15:return Xb(n,a,a.type,a.pendingProps,l);case 19:return ry(n,a,l);case 31:return GR(n,a,l);case 22:return Qb(n,a,l,a.pendingProps);case 24:return qa(a),s=Nt(dt),n===null?(d=If(),d===null&&(d=We,h=kf(),d.pooledCache=h,h.refCount++,h!==null&&(d.pooledCacheLanes|=l),d=h),a.memoizedState={parent:s,cache:d},Pf(a),Qi(a,dt,d)):((n.lanes&l)!==0&&(Vf(n,a),yl(a,null,null,l),bl()),d=n.memoizedState,h=a.memoizedState,d.parent!==s?(d={parent:s,cache:s},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),Qi(a,dt,s)):(s=h.cache,Qi(a,dt,s),s!==d.cache&&Rf(a,[dt],l,!0))),It(n,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Ti(n){n.flags|=4}function gh(n,a,l,s,d){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(d&335544128)===d)if(n.stateNode.complete)n.flags|=8192;else if(Vy())n.flags|=8192;else throw Xa=yc,Af}else n.flags&=-16777217}function ly(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!C0(a))if(Vy())n.flags|=8192;else throw Xa=yc,Af}function Dc(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Hm():536870912,n.lanes|=a,no|=a)}function Ol(n,a){if(!Ae)switch(n.tailMode){case"hidden":a=n.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:s.sibling=null}}function Je(n){var a=n.alternate!==null&&n.alternate.child===n.child,l=0,s=0;if(a)for(var d=n.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=s,n.childLanes=l,a}function qR(n,a,l){var s=a.pendingProps;switch(Cf(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(a),null;case 1:return Je(a),null;case 3:return l=a.stateNode,s=null,n!==null&&(s=n.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),xi(dt),J(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(Ur(a)?Ti(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Tf())),Je(a),null;case 26:var d=a.type,h=a.memoizedState;return n===null?(Ti(a),h!==null?(Je(a),ly(a,h)):(Je(a),gh(a,d,null,s,l))):h?h!==n.memoizedState?(Ti(a),Je(a),ly(a,h)):(Je(a),a.flags&=-16777217):(n=n.memoizedProps,n!==s&&Ti(a),Je(a),gh(a,d,n,s,l)),null;case 27:if(Pe(a),l=Te.current,d=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==s&&Ti(a);else{if(!s){if(a.stateNode===null)throw Error(r(166));return Je(a),null}n=re.current,Ur(a)?Hv(a):(n=g0(d,s,l),a.stateNode=n,Ti(a))}return Je(a),null;case 5:if(Pe(a),d=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==s&&Ti(a);else{if(!s){if(a.stateNode===null)throw Error(r(166));return Je(a),null}if(h=re.current,Ur(a))Hv(a);else{var v=Qc(Te.current);switch(h){case 1:h=v.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:h=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":h=v.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":h=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":h=v.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?h.multiple=!0:s.size&&(h.size=s.size);break;default:h=typeof s.is=="string"?v.createElement(d,{is:s.is}):v.createElement(d)}}h[Rt]=a,h[$t]=s;e:for(v=a.child;v!==null;){if(v.tag===5||v.tag===6)h.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===a)break e;for(;v.sibling===null;){if(v.return===null||v.return===a)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}a.stateNode=h;e:switch(At(h,d,s),d){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Ti(a)}}return Je(a),gh(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,l),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==s&&Ti(a);else{if(typeof s!="string"&&a.stateNode===null)throw Error(r(166));if(n=Te.current,Ur(a)){if(n=a.stateNode,l=a.memoizedProps,s=null,d=kt,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}n[Rt]=a,n=!!(n.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||i0(n.nodeValue,l)),n||Xi(a,!0)}else n=Qc(n).createTextNode(s),n[Rt]=a,a.stateNode=n}return Je(a),null;case 31:if(l=a.memoizedState,n===null||n.memoizedState!==null){if(s=Ur(a),l!==null){if(n===null){if(!s)throw Error(r(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[Rt]=a}else Ga(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Je(a),n=!1}else l=Tf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),n=!0;if(!n)return a.flags&256?(cn(a),a):(cn(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Je(a),null;case 13:if(s=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Ur(a),s!==null&&s.dehydrated!==null){if(n===null){if(!d)throw Error(r(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[Rt]=a}else Ga(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Je(a),d=!1}else d=Tf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(cn(a),a):(cn(a),null)}return cn(a),(a.flags&128)!==0?(a.lanes=l,a):(l=s!==null,n=n!==null&&n.memoizedState!==null,l&&(s=a.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==d&&(s.flags|=2048)),l!==n&&l&&(a.child.flags|=8192),Dc(a,a.updateQueue),Je(a),null);case 4:return J(),n===null&&Dh(a.stateNode.containerInfo),Je(a),null;case 10:return xi(a.type),Je(a),null;case 19:if(q(lt),s=a.memoizedState,s===null)return Je(a),null;if(d=(a.flags&128)!==0,h=s.rendering,h===null)if(d)Ol(s,!1);else{if(rt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(h=Ec(n),h!==null){for(a.flags|=128,Ol(s,!1),n=h.updateQueue,a.updateQueue=n,Dc(a,n),a.subtreeFlags=0,n=l,l=a.child;l!==null;)zv(l,n),l=l.sibling;return ne(lt,lt.current&1|2),Ae&&bi(a,s.treeForkCount),a.child}n=n.sibling}s.tail!==null&&nn()>Fc&&(a.flags|=128,d=!0,Ol(s,!1),a.lanes=4194304)}else{if(!d)if(n=Ec(h),n!==null){if(a.flags|=128,d=!0,n=n.updateQueue,a.updateQueue=n,Dc(a,n),Ol(s,!0),s.tail===null&&s.tailMode==="hidden"&&!h.alternate&&!Ae)return Je(a),null}else 2*nn()-s.renderingStartTime>Fc&&l!==536870912&&(a.flags|=128,d=!0,Ol(s,!1),a.lanes=4194304);s.isBackwards?(h.sibling=a.child,a.child=h):(n=s.last,n!==null?n.sibling=h:a.child=h,s.last=h)}return s.tail!==null?(n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=nn(),n.sibling=null,l=lt.current,ne(lt,d?l&1|2:l&1),Ae&&bi(a,s.treeForkCount),n):(Je(a),null);case 22:case 23:return cn(a),Mf(),s=a.memoizedState!==null,n!==null?n.memoizedState!==null!==s&&(a.flags|=8192):s&&(a.flags|=8192),s?(l&536870912)!==0&&(a.flags&128)===0&&(Je(a),a.subtreeFlags&6&&(a.flags|=8192)):Je(a),l=a.updateQueue,l!==null&&Dc(a,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==l&&(a.flags|=2048),n!==null&&q(Ya),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),xi(dt),Je(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function YR(n,a){switch(Cf(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return xi(dt),J(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Pe(a),null;case 31:if(a.memoizedState!==null){if(cn(a),a.alternate===null)throw Error(r(340));Ga()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(cn(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Ga()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return q(lt),null;case 4:return J(),null;case 10:return xi(a.type),null;case 22:case 23:return cn(a),Mf(),n!==null&&q(Ya),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return xi(dt),null;case 25:return null;default:return null}}function sy(n,a){switch(Cf(a),a.tag){case 3:xi(dt),J();break;case 26:case 27:case 5:Pe(a);break;case 4:J();break;case 31:a.memoizedState!==null&&cn(a);break;case 13:cn(a);break;case 19:q(lt);break;case 10:xi(a.type);break;case 22:case 23:cn(a),Mf(),n!==null&&q(Ya);break;case 24:xi(dt)}}function wl(n,a){try{var l=a.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var d=s.next;l=d;do{if((l.tag&n)===n){s=void 0;var h=l.create,v=l.inst;s=h(),v.destroy=s}l=l.next}while(l!==d)}}catch(S){$e(a,a.return,S)}}function ia(n,a,l){try{var s=a.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var h=d.next;s=h;do{if((s.tag&n)===n){var v=s.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,d=a;var R=l,L=S;try{L()}catch(W){$e(d,R,W)}}}s=s.next}while(s!==h)}}catch(W){$e(a,a.return,W)}}function cy(n){var a=n.updateQueue;if(a!==null){var l=n.stateNode;try{Jv(a,l)}catch(s){$e(n,n.return,s)}}}function uy(n,a,l){l.props=Ja(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(s){$e(n,a,s)}}function Rl(n,a){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}typeof l=="function"?n.refCleanup=l(s):l.current=s}}catch(d){$e(n,a,d)}}function qn(n,a){var l=n.ref,s=n.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(d){$e(n,a,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){$e(n,a,d)}else l.current=null}function dy(n){var a=n.type,l=n.memoizedProps,s=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(d){$e(n,n.return,d)}}function ph(n,a,l){try{var s=n.stateNode;mk(s,n.type,l,a),s[$t]=a}catch(d){$e(n,n.return,d)}}function fy(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ua(n.type)||n.tag===4}function mh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||fy(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ua(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function vh(n,a,l){var s=n.tag;if(s===5||s===6)n=n.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(n),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=pi));else if(s!==4&&(s===27&&ua(n.type)&&(l=n.stateNode,a=null),n=n.child,n!==null))for(vh(n,a,l),n=n.sibling;n!==null;)vh(n,a,l),n=n.sibling}function Mc(n,a,l){var s=n.tag;if(s===5||s===6)n=n.stateNode,a?l.insertBefore(n,a):l.appendChild(n);else if(s!==4&&(s===27&&ua(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(Mc(n,a,l),n=n.sibling;n!==null;)Mc(n,a,l),n=n.sibling}function hy(n){var a=n.stateNode,l=n.memoizedProps;try{for(var s=n.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);At(a,s,l),a[Rt]=n,a[$t]=l}catch(h){$e(n,n.return,h)}}var Oi=!1,gt=!1,bh=!1,gy=typeof WeakSet=="function"?WeakSet:Set,Et=null;function KR(n,a){if(n=n.containerInfo,Bh=au,n=wv(n),df(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var d=s.anchorOffset,h=s.focusNode;s=s.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var v=0,S=-1,R=-1,L=0,W=0,X=n,H=null;t:for(;;){for(var U;X!==l||d!==0&&X.nodeType!==3||(S=v+d),X!==h||s!==0&&X.nodeType!==3||(R=v+s),X.nodeType===3&&(v+=X.nodeValue.length),(U=X.firstChild)!==null;)H=X,X=U;for(;;){if(X===n)break t;if(H===l&&++L===d&&(S=v),H===h&&++W===s&&(R=v),(U=X.nextSibling)!==null)break;X=H,H=X.parentNode}X=U}l=S===-1||R===-1?null:{start:S,end:R}}else l=null}l=l||{start:0,end:0}}else l=null;for(Hh={focusedElem:n,selectionRange:l},au=!1,Et=a;Et!==null;)if(a=Et,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Et=n;else for(;Et!==null;){switch(a=Et,h=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l<n.length;l++)d=n[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&h!==null){n=void 0,l=a,d=h.memoizedProps,h=h.memoizedState,s=l.stateNode;try{var le=Ja(l.type,d);n=s.getSnapshotBeforeUpdate(le,h),s.__reactInternalSnapshotBeforeUpdate=n}catch(xe){$e(l,l.return,xe)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,l=n.nodeType,l===9)Uh(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Uh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=a.sibling,n!==null){n.return=a.return,Et=n;break}Et=a.return}}function py(n,a,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Ri(n,l),s&4&&wl(5,l);break;case 1:if(Ri(n,l),s&4)if(n=l.stateNode,a===null)try{n.componentDidMount()}catch(v){$e(l,l.return,v)}else{var d=Ja(l.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(d,a,n.__reactInternalSnapshotBeforeUpdate)}catch(v){$e(l,l.return,v)}}s&64&&cy(l),s&512&&Rl(l,l.return);break;case 3:if(Ri(n,l),s&64&&(n=l.updateQueue,n!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{Jv(n,a)}catch(v){$e(l,l.return,v)}}break;case 27:a===null&&s&4&&hy(l);case 26:case 5:Ri(n,l),a===null&&s&4&&dy(l),s&512&&Rl(l,l.return);break;case 12:Ri(n,l);break;case 31:Ri(n,l),s&4&&by(n,l);break;case 13:Ri(n,l),s&4&&yy(n,l),s&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=ak.bind(null,l),Tk(n,l))));break;case 22:if(s=l.memoizedState!==null||Oi,!s){a=a!==null&&a.memoizedState!==null||gt,d=Oi;var h=gt;Oi=s,(gt=a)&&!h?ki(n,l,(l.subtreeFlags&8772)!==0):Ri(n,l),Oi=d,gt=h}break;case 30:break;default:Ri(n,l)}}function my(n){var a=n.alternate;a!==null&&(n.alternate=null,my(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&qd(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var et=null,jt=!1;function wi(n,a,l){for(l=l.child;l!==null;)vy(n,a,l),l=l.sibling}function vy(n,a,l){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Qo,l)}catch{}switch(l.tag){case 26:gt||qn(l,a),wi(n,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:gt||qn(l,a);var s=et,d=jt;ua(l.type)&&(et=l.stateNode,jt=!1),wi(n,a,l),Dl(l.stateNode),et=s,jt=d;break;case 5:gt||qn(l,a);case 6:if(s=et,d=jt,et=null,wi(n,a,l),et=s,jt=d,et!==null)if(jt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(l.stateNode)}catch(h){$e(l,a,h)}else try{et.removeChild(l.stateNode)}catch(h){$e(l,a,h)}break;case 18:et!==null&&(jt?(n=et,c0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),uo(n)):c0(et,l.stateNode));break;case 4:s=et,d=jt,et=l.stateNode.containerInfo,jt=!0,wi(n,a,l),et=s,jt=d;break;case 0:case 11:case 14:case 15:ia(2,l,a),gt||ia(4,l,a),wi(n,a,l);break;case 1:gt||(qn(l,a),s=l.stateNode,typeof s.componentWillUnmount=="function"&&uy(l,a,s)),wi(n,a,l);break;case 21:wi(n,a,l);break;case 22:gt=(s=gt)||l.memoizedState!==null,wi(n,a,l),gt=s;break;default:wi(n,a,l)}}function by(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{uo(n)}catch(l){$e(a,a.return,l)}}}function yy(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{uo(n)}catch(l){$e(a,a.return,l)}}function XR(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new gy),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new gy),a;default:throw Error(r(435,n.tag))}}function Lc(n,a){var l=XR(n);a.forEach(function(s){if(!l.has(s)){l.add(s);var d=rk.bind(null,n,s);s.then(d,d)}})}function Gt(n,a){var l=a.deletions;if(l!==null)for(var s=0;s<l.length;s++){var d=l[s],h=n,v=a,S=v;e:for(;S!==null;){switch(S.tag){case 27:if(ua(S.type)){et=S.stateNode,jt=!1;break e}break;case 5:et=S.stateNode,jt=!1;break e;case 3:case 4:et=S.stateNode.containerInfo,jt=!0;break e}S=S.return}if(et===null)throw Error(r(160));vy(h,v,d),et=null,jt=!1,h=d.alternate,h!==null&&(h.return=null),d.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)xy(a,n),a=a.sibling}var Dn=null;function xy(n,a){var l=n.alternate,s=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Gt(a,n),Wt(n),s&4&&(ia(3,n,n.return),wl(3,n),ia(5,n,n.return));break;case 1:Gt(a,n),Wt(n),s&512&&(gt||l===null||qn(l,l.return)),s&64&&Oi&&(n=n.updateQueue,n!==null&&(s=n.callbacks,s!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var d=Dn;if(Gt(a,n),Wt(n),s&512&&(gt||l===null||qn(l,l.return)),s&4){var h=l!==null?l.memoizedState:null;if(s=n.memoizedState,l===null)if(s===null)if(n.stateNode===null){e:{s=n.type,l=n.memoizedProps,d=d.ownerDocument||d;t:switch(s){case"title":h=d.getElementsByTagName("title")[0],(!h||h[el]||h[Rt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=d.createElement(s),d.head.insertBefore(h,d.querySelector("head > title"))),At(h,s,l),h[Rt]=n,Ct(h),s=h;break e;case"link":var v=x0("link","href",d).get(s+(l.href||""));if(v){for(var S=0;S<v.length;S++)if(h=v[S],h.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&h.getAttribute("rel")===(l.rel==null?null:l.rel)&&h.getAttribute("title")===(l.title==null?null:l.title)&&h.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){v.splice(S,1);break t}}h=d.createElement(s),At(h,s,l),d.head.appendChild(h);break;case"meta":if(v=x0("meta","content",d).get(s+(l.content||""))){for(S=0;S<v.length;S++)if(h=v[S],h.getAttribute("content")===(l.content==null?null:""+l.content)&&h.getAttribute("name")===(l.name==null?null:l.name)&&h.getAttribute("property")===(l.property==null?null:l.property)&&h.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&h.getAttribute("charset")===(l.charSet==null?null:l.charSet)){v.splice(S,1);break t}}h=d.createElement(s),At(h,s,l),d.head.appendChild(h);break;default:throw Error(r(468,s))}h[Rt]=n,Ct(h),s=h}n.stateNode=s}else S0(d,n.type,n.stateNode);else n.stateNode=y0(d,s,n.memoizedProps);else h!==s?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,s===null?S0(d,n.type,n.stateNode):y0(d,s,n.memoizedProps)):s===null&&n.stateNode!==null&&ph(n,n.memoizedProps,l.memoizedProps)}break;case 27:Gt(a,n),Wt(n),s&512&&(gt||l===null||qn(l,l.return)),l!==null&&s&4&&ph(n,n.memoizedProps,l.memoizedProps);break;case 5:if(Gt(a,n),Wt(n),s&512&&(gt||l===null||qn(l,l.return)),n.flags&32){d=n.stateNode;try{Vr(d,"")}catch(le){$e(n,n.return,le)}}s&4&&n.stateNode!=null&&(d=n.memoizedProps,ph(n,d,l!==null?l.memoizedProps:d)),s&1024&&(bh=!0);break;case 6:if(Gt(a,n),Wt(n),s&4){if(n.stateNode===null)throw Error(r(162));s=n.memoizedProps,l=n.stateNode;try{l.nodeValue=s}catch(le){$e(n,n.return,le)}}break;case 3:if(eu=null,d=Dn,Dn=Zc(a.containerInfo),Gt(a,n),Dn=d,Wt(n),s&4&&l!==null&&l.memoizedState.isDehydrated)try{uo(a.containerInfo)}catch(le){$e(n,n.return,le)}bh&&(bh=!1,Sy(n));break;case 4:s=Dn,Dn=Zc(n.stateNode.containerInfo),Gt(a,n),Wt(n),Dn=s;break;case 12:Gt(a,n),Wt(n);break;case 31:Gt(a,n),Wt(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Lc(n,s)));break;case 13:Gt(a,n),Wt(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Hc=nn()),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Lc(n,s)));break;case 22:d=n.memoizedState!==null;var R=l!==null&&l.memoizedState!==null,L=Oi,W=gt;if(Oi=L||d,gt=W||R,Gt(a,n),gt=W,Oi=L,Wt(n),s&8192)e:for(a=n.stateNode,a._visibility=d?a._visibility&-2:a._visibility|1,d&&(l===null||R||Oi||gt||er(n)),l=null,a=n;;){if(a.tag===5||a.tag===26){if(l===null){R=l=a;try{if(h=R.stateNode,d)v=h.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{S=R.stateNode;var X=R.memoizedProps.style,H=X!=null&&X.hasOwnProperty("display")?X.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(le){$e(R,R.return,le)}}}else if(a.tag===6){if(l===null){R=a;try{R.stateNode.nodeValue=d?"":R.memoizedProps}catch(le){$e(R,R.return,le)}}}else if(a.tag===18){if(l===null){R=a;try{var U=R.stateNode;d?u0(U,!0):u0(R.stateNode,!1)}catch(le){$e(R,R.return,le)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}s&4&&(s=n.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,Lc(n,l))));break;case 19:Gt(a,n),Wt(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Lc(n,s)));break;case 30:break;case 21:break;default:Gt(a,n),Wt(n)}}function Wt(n){var a=n.flags;if(a&2){try{for(var l,s=n.return;s!==null;){if(fy(s)){l=s;break}s=s.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var d=l.stateNode,h=mh(n);Mc(n,h,d);break;case 5:var v=l.stateNode;l.flags&32&&(Vr(v,""),l.flags&=-33);var S=mh(n);Mc(n,S,v);break;case 3:case 4:var R=l.stateNode.containerInfo,L=mh(n);vh(n,L,R);break;default:throw Error(r(161))}}catch(W){$e(n,n.return,W)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Sy(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Sy(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Ri(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)py(n,a.alternate,a),a=a.sibling}function er(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:ia(4,a,a.return),er(a);break;case 1:qn(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&uy(a,a.return,l),er(a);break;case 27:Dl(a.stateNode);case 26:case 5:qn(a,a.return),er(a);break;case 22:a.memoizedState===null&&er(a);break;case 30:er(a);break;default:er(a)}n=n.sibling}}function ki(n,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var s=a.alternate,d=n,h=a,v=h.flags;switch(h.tag){case 0:case 11:case 15:ki(d,h,l),wl(4,h);break;case 1:if(ki(d,h,l),s=h,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(L){$e(s,s.return,L)}if(s=h,d=s.updateQueue,d!==null){var S=s.stateNode;try{var R=d.shared.hiddenCallbacks;if(R!==null)for(d.shared.hiddenCallbacks=null,d=0;d<R.length;d++)Zv(R[d],S)}catch(L){$e(s,s.return,L)}}l&&v&64&&cy(h),Rl(h,h.return);break;case 27:hy(h);case 26:case 5:ki(d,h,l),l&&s===null&&v&4&&dy(h),Rl(h,h.return);break;case 12:ki(d,h,l);break;case 31:ki(d,h,l),l&&v&4&&by(d,h);break;case 13:ki(d,h,l),l&&v&4&&yy(d,h);break;case 22:h.memoizedState===null&&ki(d,h,l),Rl(h,h.return);break;case 30:break;default:ki(d,h,l)}a=a.sibling}}function yh(n,a){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&hl(l))}function xh(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&hl(n))}function Mn(n,a,l,s){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Cy(n,a,l,s),a=a.sibling}function Cy(n,a,l,s){var d=a.flags;switch(a.tag){case 0:case 11:case 15:Mn(n,a,l,s),d&2048&&wl(9,a);break;case 1:Mn(n,a,l,s);break;case 3:Mn(n,a,l,s),d&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&hl(n)));break;case 12:if(d&2048){Mn(n,a,l,s),n=a.stateNode;try{var h=a.memoizedProps,v=h.id,S=h.onPostCommit;typeof S=="function"&&S(v,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(R){$e(a,a.return,R)}}else Mn(n,a,l,s);break;case 31:Mn(n,a,l,s);break;case 13:Mn(n,a,l,s);break;case 23:break;case 22:h=a.stateNode,v=a.alternate,a.memoizedState!==null?h._visibility&2?Mn(n,a,l,s):kl(n,a):h._visibility&2?Mn(n,a,l,s):(h._visibility|=2,Jr(n,a,l,s,(a.subtreeFlags&10256)!==0||!1)),d&2048&&yh(v,a);break;case 24:Mn(n,a,l,s),d&2048&&xh(a.alternate,a);break;default:Mn(n,a,l,s)}}function Jr(n,a,l,s,d){for(d=d&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var h=n,v=a,S=l,R=s,L=v.flags;switch(v.tag){case 0:case 11:case 15:Jr(h,v,S,R,d),wl(8,v);break;case 23:break;case 22:var W=v.stateNode;v.memoizedState!==null?W._visibility&2?Jr(h,v,S,R,d):kl(h,v):(W._visibility|=2,Jr(h,v,S,R,d)),d&&L&2048&&yh(v.alternate,v);break;case 24:Jr(h,v,S,R,d),d&&L&2048&&xh(v.alternate,v);break;default:Jr(h,v,S,R,d)}a=a.sibling}}function kl(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=n,s=a,d=s.flags;switch(s.tag){case 22:kl(l,s),d&2048&&yh(s.alternate,s);break;case 24:kl(l,s),d&2048&&xh(s.alternate,s);break;default:kl(l,s)}a=a.sibling}}var Nl=8192;function eo(n,a,l){if(n.subtreeFlags&Nl)for(n=n.child;n!==null;)Ey(n,a,l),n=n.sibling}function Ey(n,a,l){switch(n.tag){case 26:eo(n,a,l),n.flags&Nl&&n.memoizedState!==null&&Dk(l,Dn,n.memoizedState,n.memoizedProps);break;case 5:eo(n,a,l);break;case 3:case 4:var s=Dn;Dn=Zc(n.stateNode.containerInfo),eo(n,a,l),Dn=s;break;case 22:n.memoizedState===null&&(s=n.alternate,s!==null&&s.memoizedState!==null?(s=Nl,Nl=16777216,eo(n,a,l),Nl=s):eo(n,a,l));break;default:eo(n,a,l)}}function Ty(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function Il(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var s=a[l];Et=s,wy(s,n)}Ty(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Oy(n),n=n.sibling}function Oy(n){switch(n.tag){case 0:case 11:case 15:Il(n),n.flags&2048&&ia(9,n,n.return);break;case 3:Il(n);break;case 12:Il(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Bc(n)):Il(n);break;default:Il(n)}}function Bc(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var s=a[l];Et=s,wy(s,n)}Ty(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:ia(8,a,a.return),Bc(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Bc(a));break;default:Bc(a)}n=n.sibling}}function wy(n,a){for(;Et!==null;){var l=Et;switch(l.tag){case 0:case 11:case 15:ia(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:hl(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Et=s;else e:for(l=n;Et!==null;){s=Et;var d=s.sibling,h=s.return;if(my(s),s===l){Et=null;break e}if(d!==null){d.return=h,Et=d;break e}Et=h}}}var QR={getCacheForType:function(n){var a=Nt(dt),l=a.data.get(n);return l===void 0&&(l=n(),a.data.set(n,l)),l},cacheSignal:function(){return Nt(dt).controller.signal}},ZR=typeof WeakMap=="function"?WeakMap:Map,De=0,We=null,Re=null,Ne=0,Fe=0,un=null,aa=!1,to=!1,Sh=!1,Ni=0,rt=0,ra=0,tr=0,Ch=0,dn=0,no=0,Al=null,qt=null,Eh=!1,Hc=0,Ry=0,Fc=1/0,$c=null,oa=null,bt=0,la=null,io=null,Ii=0,Th=0,Oh=null,ky=null,Pl=0,wh=null;function fn(){return(De&2)!==0&&Ne!==0?Ne&-Ne:B.T!==null?Ph():jm()}function Ny(){if(dn===0)if((Ne&536870912)===0||Ae){var n=Xs;Xs<<=1,(Xs&3932160)===0&&(Xs=262144),dn=n}else dn=536870912;return n=sn.current,n!==null&&(n.flags|=32),dn}function Yt(n,a,l){(n===We&&(Fe===2||Fe===9)||n.cancelPendingCommit!==null)&&(ao(n,0),sa(n,Ne,dn,!1)),Jo(n,l),((De&2)===0||n!==We)&&(n===We&&((De&2)===0&&(tr|=l),rt===4&&sa(n,Ne,dn,!1)),Yn(n))}function Iy(n,a,l){if((De&6)!==0)throw Error(r(327));var s=!l&&(a&127)===0&&(a&n.expiredLanes)===0||Zo(n,a),d=s?tk(n,a):kh(n,a,!0),h=s;do{if(d===0){to&&!s&&sa(n,a,0,!1);break}else{if(l=n.current.alternate,h&&!JR(l)){d=kh(n,a,!1),h=!1;continue}if(d===2){if(h=a,n.errorRecoveryDisabledLanes&h)var v=0;else v=n.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;e:{var S=n;d=Al;var R=S.current.memoizedState.isDehydrated;if(R&&(ao(S,v).flags|=256),v=kh(S,v,!1),v!==2){if(Sh&&!R){S.errorRecoveryDisabledLanes|=h,tr|=h,d=4;break e}h=qt,qt=d,h!==null&&(qt===null?qt=h:qt.push.apply(qt,h))}d=v}if(h=!1,d!==2)continue}}if(d===1){ao(n,0),sa(n,a,0,!0);break}e:{switch(s=n,h=d,h){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:sa(s,a,dn,!aa);break e;case 2:qt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(d=Hc+300-nn(),10<d)){if(sa(s,a,dn,!aa),Zs(s,0,!0)!==0)break e;Ii=a,s.timeoutHandle=l0(Ay.bind(null,s,l,qt,$c,Eh,a,dn,tr,no,aa,h,"Throttled",-0,0),d);break e}Ay(s,l,qt,$c,Eh,a,dn,tr,no,aa,h,null,-0,0)}}break}while(!0);Yn(n)}function Ay(n,a,l,s,d,h,v,S,R,L,W,X,H,U){if(n.timeoutHandle=-1,X=a.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pi},Ey(a,h,X);var le=(h&62914560)===h?Hc-nn():(h&4194048)===h?Ry-nn():0;if(le=Mk(X,le),le!==null){Ii=h,n.cancelPendingCommit=le(By.bind(null,n,a,h,l,s,d,v,S,R,W,X,null,H,U)),sa(n,h,v,!L);return}}By(n,a,h,l,s,d,v,S,R)}function JR(n){for(var a=n;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var d=l[s],h=d.getSnapshot;d=d.value;try{if(!on(h(),d))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function sa(n,a,l,s){a&=~Ch,a&=~tr,n.suspendedLanes|=a,n.pingedLanes&=~a,s&&(n.warmLanes|=a),s=n.expirationTimes;for(var d=a;0<d;){var h=31-rn(d),v=1<<h;s[h]=-1,d&=~v}l!==0&&Fm(n,l,a)}function Uc(){return(De&6)===0?(Vl(0),!1):!0}function Rh(){if(Re!==null){if(Fe===0)var n=Re.return;else n=Re,yi=Wa=null,Uf(n),Yr=null,pl=0,n=Re;for(;n!==null;)sy(n.alternate,n),n=n.return;Re=null}}function ao(n,a){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,yk(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),Ii=0,Rh(),We=n,Re=l=vi(n.current,null),Ne=a,Fe=0,un=null,aa=!1,to=Zo(n,a),Sh=!1,no=dn=Ch=tr=ra=rt=0,qt=Al=null,Eh=!1,(a&8)!==0&&(a|=a&32);var s=n.entangledLanes;if(s!==0)for(n=n.entanglements,s&=a;0<s;){var d=31-rn(s),h=1<<d;a|=n[d],s&=~h}return Ni=a,uc(),l}function Py(n,a){Ee=null,B.H=El,a===qr||a===bc?(a=Yv(),Fe=3):a===Af?(a=Yv(),Fe=4):Fe=a===rh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,un=a,Re===null&&(rt=1,Pc(n,Tn(a,n.current)))}function Vy(){var n=sn.current;return n===null?!0:(Ne&4194048)===Ne?kn===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?n===kn:!1}function _y(){var n=B.H;return B.H=El,n===null?El:n}function zy(){var n=B.A;return B.A=QR,n}function jc(){rt=4,aa||(Ne&4194048)!==Ne&&sn.current!==null||(to=!0),(ra&134217727)===0&&(tr&134217727)===0||We===null||sa(We,Ne,dn,!1)}function kh(n,a,l){var s=De;De|=2;var d=_y(),h=zy();(We!==n||Ne!==a)&&($c=null,ao(n,a)),a=!1;var v=rt;e:do try{if(Fe!==0&&Re!==null){var S=Re,R=un;switch(Fe){case 8:Rh(),v=6;break e;case 3:case 2:case 9:case 6:sn.current===null&&(a=!0);var L=Fe;if(Fe=0,un=null,ro(n,S,R,L),l&&to){v=0;break e}break;default:L=Fe,Fe=0,un=null,ro(n,S,R,L)}}ek(),v=rt;break}catch(W){Py(n,W)}while(!0);return a&&n.shellSuspendCounter++,yi=Wa=null,De=s,B.H=d,B.A=h,Re===null&&(We=null,Ne=0,uc()),v}function ek(){for(;Re!==null;)Dy(Re)}function tk(n,a){var l=De;De|=2;var s=_y(),d=zy();We!==n||Ne!==a?($c=null,Fc=nn()+500,ao(n,a)):to=Zo(n,a);e:do try{if(Fe!==0&&Re!==null){a=Re;var h=un;t:switch(Fe){case 1:Fe=0,un=null,ro(n,a,h,1);break;case 2:case 9:if(Wv(h)){Fe=0,un=null,My(a);break}a=function(){Fe!==2&&Fe!==9||We!==n||(Fe=7),Yn(n)},h.then(a,a);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:Wv(h)?(Fe=0,un=null,My(a)):(Fe=0,un=null,ro(n,a,h,7));break;case 5:var v=null;switch(Re.tag){case 26:v=Re.memoizedState;case 5:case 27:var S=Re;if(v?C0(v):S.stateNode.complete){Fe=0,un=null;var R=S.sibling;if(R!==null)Re=R;else{var L=S.return;L!==null?(Re=L,Gc(L)):Re=null}break t}}Fe=0,un=null,ro(n,a,h,5);break;case 6:Fe=0,un=null,ro(n,a,h,6);break;case 8:Rh(),rt=6;break e;default:throw Error(r(462))}}nk();break}catch(W){Py(n,W)}while(!0);return yi=Wa=null,B.H=s,B.A=d,De=l,Re!==null?0:(We=null,Ne=0,uc(),rt)}function nk(){for(;Re!==null&&!qs();)Dy(Re)}function Dy(n){var a=oy(n.alternate,n,Ni);n.memoizedProps=n.pendingProps,a===null?Gc(n):Re=a}function My(n){var a=n,l=a.alternate;switch(a.tag){case 15:case 0:a=ey(l,a,a.pendingProps,a.type,void 0,Ne);break;case 11:a=ey(l,a,a.pendingProps,a.type.render,a.ref,Ne);break;case 5:Uf(a);default:sy(l,a),a=Re=zv(a,Ni),a=oy(l,a,Ni)}n.memoizedProps=n.pendingProps,a===null?Gc(n):Re=a}function ro(n,a,l,s){yi=Wa=null,Uf(a),Yr=null,pl=0;var d=a.return;try{if(jR(n,d,a,l,Ne)){rt=1,Pc(n,Tn(l,n.current)),Re=null;return}}catch(h){if(d!==null)throw Re=d,h;rt=1,Pc(n,Tn(l,n.current)),Re=null;return}a.flags&32768?(Ae||s===1?n=!0:to||(Ne&536870912)!==0?n=!1:(aa=n=!0,(s===2||s===9||s===3||s===6)&&(s=sn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Ly(a,n)):Gc(a)}function Gc(n){var a=n;do{if((a.flags&32768)!==0){Ly(a,aa);return}n=a.return;var l=qR(a.alternate,a,Ni);if(l!==null){Re=l;return}if(a=a.sibling,a!==null){Re=a;return}Re=a=n}while(a!==null);rt===0&&(rt=5)}function Ly(n,a){do{var l=YR(n.alternate,n);if(l!==null){l.flags&=32767,Re=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(n=n.sibling,n!==null)){Re=n;return}Re=n=l}while(n!==null);rt=6,Re=null}function By(n,a,l,s,d,h,v,S,R){n.cancelPendingCommit=null;do Wc();while(bt!==0);if((De&6)!==0)throw Error(r(327));if(a!==null){if(a===n.current)throw Error(r(177));if(h=a.lanes|a.childLanes,h|=mf,zw(n,l,h,v,S,R),n===We&&(Re=We=null,Ne=0),io=a,la=n,Ii=l,Th=h,Oh=d,ky=s,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,ok(Ys,function(){return jy(),null})):(n.callbackNode=null,n.callbackPriority=0),s=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||s){s=B.T,B.T=null,d=ee.p,ee.p=2,v=De,De|=4;try{KR(n,a,l)}finally{De=v,ee.p=d,B.T=s}}bt=1,Hy(),Fy(),$y()}}function Hy(){if(bt===1){bt=0;var n=la,a=io,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=B.T,B.T=null;var s=ee.p;ee.p=2;var d=De;De|=4;try{xy(a,n);var h=Hh,v=wv(n.containerInfo),S=h.focusedElem,R=h.selectionRange;if(v!==S&&S&&S.ownerDocument&&Ov(S.ownerDocument.documentElement,S)){if(R!==null&&df(S)){var L=R.start,W=R.end;if(W===void 0&&(W=L),"selectionStart"in S)S.selectionStart=L,S.selectionEnd=Math.min(W,S.value.length);else{var X=S.ownerDocument||document,H=X&&X.defaultView||window;if(H.getSelection){var U=H.getSelection(),le=S.textContent.length,xe=Math.min(R.start,le),Ge=R.end===void 0?xe:Math.min(R.end,le);!U.extend&&xe>Ge&&(v=Ge,Ge=xe,xe=v);var V=Tv(S,xe),A=Tv(S,Ge);if(V&&A&&(U.rangeCount!==1||U.anchorNode!==V.node||U.anchorOffset!==V.offset||U.focusNode!==A.node||U.focusOffset!==A.offset)){var D=X.createRange();D.setStart(V.node,V.offset),U.removeAllRanges(),xe>Ge?(U.addRange(D),U.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),U.addRange(D))}}}}for(X=[],U=S;U=U.parentNode;)U.nodeType===1&&X.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<X.length;S++){var K=X[S];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}au=!!Bh,Hh=Bh=null}finally{De=d,ee.p=s,B.T=l}}n.current=a,bt=2}}function Fy(){if(bt===2){bt=0;var n=la,a=io,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=B.T,B.T=null;var s=ee.p;ee.p=2;var d=De;De|=4;try{py(n,a.alternate,a)}finally{De=d,ee.p=s,B.T=l}}bt=3}}function $y(){if(bt===4||bt===3){bt=0,Xo();var n=la,a=io,l=Ii,s=ky;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?bt=5:(bt=0,io=la=null,Uy(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(oa=null),Gd(l),a=a.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(Qo,a,void 0,(a.current.flags&128)===128)}catch{}if(s!==null){a=B.T,d=ee.p,ee.p=2,B.T=null;try{for(var h=n.onRecoverableError,v=0;v<s.length;v++){var S=s[v];h(S.value,{componentStack:S.stack})}}finally{B.T=a,ee.p=d}}(Ii&3)!==0&&Wc(),Yn(n),d=n.pendingLanes,(l&261930)!==0&&(d&42)!==0?n===wh?Pl++:(Pl=0,wh=n):Pl=0,Vl(0)}}function Uy(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,hl(a)))}function Wc(){return Hy(),Fy(),$y(),jy()}function jy(){if(bt!==5)return!1;var n=la,a=Th;Th=0;var l=Gd(Ii),s=B.T,d=ee.p;try{ee.p=32>l?32:l,B.T=null,l=Oh,Oh=null;var h=la,v=Ii;if(bt=0,io=la=null,Ii=0,(De&6)!==0)throw Error(r(331));var S=De;if(De|=4,Oy(h.current),Cy(h,h.current,v,l),De=S,Vl(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(Qo,h)}catch{}return!0}finally{ee.p=d,B.T=s,Uy(n,a)}}function Gy(n,a,l){a=Tn(l,a),a=ah(n.stateNode,a,2),n=ea(n,a,2),n!==null&&(Jo(n,2),Yn(n))}function $e(n,a,l){if(n.tag===3)Gy(n,n,l);else for(;a!==null;){if(a.tag===3){Gy(a,n,l);break}else if(a.tag===1){var s=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(oa===null||!oa.has(s))){n=Tn(l,n),l=Wb(2),s=ea(a,l,2),s!==null&&(qb(l,s,a,n),Jo(s,2),Yn(s));break}}a=a.return}}function Nh(n,a,l){var s=n.pingCache;if(s===null){s=n.pingCache=new ZR;var d=new Set;s.set(a,d)}else d=s.get(a),d===void 0&&(d=new Set,s.set(a,d));d.has(l)||(Sh=!0,d.add(l),n=ik.bind(null,n,a,l),a.then(n,n))}function ik(n,a,l){var s=n.pingCache;s!==null&&s.delete(a),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,We===n&&(Ne&l)===l&&(rt===4||rt===3&&(Ne&62914560)===Ne&&300>nn()-Hc?(De&2)===0&&ao(n,0):Ch|=l,no===Ne&&(no=0)),Yn(n)}function Wy(n,a){a===0&&(a=Hm()),n=Ua(n,a),n!==null&&(Jo(n,a),Yn(n))}function ak(n){var a=n.memoizedState,l=0;a!==null&&(l=a.retryLane),Wy(n,l)}function rk(n,a){var l=0;switch(n.tag){case 31:case 13:var s=n.stateNode,d=n.memoizedState;d!==null&&(l=d.retryLane);break;case 19:s=n.stateNode;break;case 22:s=n.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(a),Wy(n,l)}function ok(n,a){return Ko(n,a)}var qc=null,oo=null,Ih=!1,Yc=!1,Ah=!1,ca=0;function Yn(n){n!==oo&&n.next===null&&(oo===null?qc=oo=n:oo=oo.next=n),Yc=!0,Ih||(Ih=!0,sk())}function Vl(n,a){if(!Ah&&Yc){Ah=!0;do for(var l=!1,s=qc;s!==null;){if(n!==0){var d=s.pendingLanes;if(d===0)var h=0;else{var v=s.suspendedLanes,S=s.pingedLanes;h=(1<<31-rn(42|n)+1)-1,h&=d&~(v&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,Xy(s,h))}else h=Ne,h=Zs(s,s===We?h:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(h&3)===0||Zo(s,h)||(l=!0,Xy(s,h));s=s.next}while(l);Ah=!1}}function lk(){qy()}function qy(){Yc=Ih=!1;var n=0;ca!==0&&bk()&&(n=ca);for(var a=nn(),l=null,s=qc;s!==null;){var d=s.next,h=Yy(s,a);h===0?(s.next=null,l===null?qc=d:l.next=d,d===null&&(oo=l)):(l=s,(n!==0||(h&3)!==0)&&(Yc=!0)),s=d}bt!==0&&bt!==5||Vl(n),ca!==0&&(ca=0)}function Yy(n,a){for(var l=n.suspendedLanes,s=n.pingedLanes,d=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var v=31-rn(h),S=1<<v,R=d[v];R===-1?((S&l)===0||(S&s)!==0)&&(d[v]=_w(S,a)):R<=a&&(n.expiredLanes|=S),h&=~S}if(a=We,l=Ne,l=Zs(n,n===a?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s=n.callbackNode,l===0||n===a&&(Fe===2||Fe===9)||n.cancelPendingCommit!==null)return s!==null&&s!==null&&wr(s),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||Zo(n,l)){if(a=l&-l,a===n.callbackPriority)return a;switch(s!==null&&wr(s),Gd(l)){case 2:case 8:l=Lm;break;case 32:l=Ys;break;case 268435456:l=Bm;break;default:l=Ys}return s=Ky.bind(null,n),l=Ko(l,s),n.callbackPriority=a,n.callbackNode=l,a}return s!==null&&s!==null&&wr(s),n.callbackPriority=2,n.callbackNode=null,2}function Ky(n,a){if(bt!==0&&bt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(Wc()&&n.callbackNode!==l)return null;var s=Ne;return s=Zs(n,n===We?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s===0?null:(Iy(n,s,a),Yy(n,nn()),n.callbackNode!=null&&n.callbackNode===l?Ky.bind(null,n):null)}function Xy(n,a){if(Wc())return null;Iy(n,a,!0)}function sk(){xk(function(){(De&6)!==0?Ko(Mm,lk):qy()})}function Ph(){if(ca===0){var n=Gr;n===0&&(n=Ks,Ks<<=1,(Ks&261888)===0&&(Ks=256)),ca=n}return ca}function Qy(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:nc(""+n)}function Zy(n,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,n.id&&l.setAttribute("form",n.id),a.parentNode.insertBefore(l,a),n=new FormData(n),l.parentNode.removeChild(l),n}function ck(n,a,l,s,d){if(a==="submit"&&l&&l.stateNode===d){var h=Qy((d[$t]||null).action),v=s.submitter;v&&(a=(a=v[$t]||null)?Qy(a.formAction):v.getAttribute("formAction"),a!==null&&(h=a,v=null));var S=new oc("action","action",null,s,d);n.push({event:S,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ca!==0){var R=v?Zy(d,v):new FormData(d);Zf(l,{pending:!0,data:R,method:d.method,action:h},null,R)}}else typeof h=="function"&&(S.preventDefault(),R=v?Zy(d,v):new FormData(d),Zf(l,{pending:!0,data:R,method:d.method,action:h},h,R))},currentTarget:d}]})}}for(var Vh=0;Vh<pf.length;Vh++){var _h=pf[Vh],uk=_h.toLowerCase(),dk=_h[0].toUpperCase()+_h.slice(1);zn(uk,"on"+dk)}zn(Nv,"onAnimationEnd"),zn(Iv,"onAnimationIteration"),zn(Av,"onAnimationStart"),zn("dblclick","onDoubleClick"),zn("focusin","onFocus"),zn("focusout","onBlur"),zn(RR,"onTransitionRun"),zn(kR,"onTransitionStart"),zn(NR,"onTransitionCancel"),zn(Pv,"onTransitionEnd"),Ar("onMouseEnter",["mouseout","mouseover"]),Ar("onMouseLeave",["mouseout","mouseover"]),Ar("onPointerEnter",["pointerout","pointerover"]),Ar("onPointerLeave",["pointerout","pointerover"]),Ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_l));function Jy(n,a){a=(a&4)!==0;for(var l=0;l<n.length;l++){var s=n[l],d=s.event;s=s.listeners;e:{var h=void 0;if(a)for(var v=s.length-1;0<=v;v--){var S=s[v],R=S.instance,L=S.currentTarget;if(S=S.listener,R!==h&&d.isPropagationStopped())break e;h=S,d.currentTarget=L;try{h(d)}catch(W){cc(W)}d.currentTarget=null,h=R}else for(v=0;v<s.length;v++){if(S=s[v],R=S.instance,L=S.currentTarget,S=S.listener,R!==h&&d.isPropagationStopped())break e;h=S,d.currentTarget=L;try{h(d)}catch(W){cc(W)}d.currentTarget=null,h=R}}}}function ke(n,a){var l=a[Wd];l===void 0&&(l=a[Wd]=new Set);var s=n+"__bubble";l.has(s)||(e0(a,n,2,!1),l.add(s))}function zh(n,a,l){var s=0;a&&(s|=4),e0(l,n,s,a)}var Kc="_reactListening"+Math.random().toString(36).slice(2);function Dh(n){if(!n[Kc]){n[Kc]=!0,qm.forEach(function(l){l!=="selectionchange"&&(fk.has(l)||zh(l,!1,n),zh(l,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Kc]||(a[Kc]=!0,zh("selectionchange",!1,a))}}function e0(n,a,l,s){switch(N0(a)){case 2:var d=Hk;break;case 8:d=Fk;break;default:d=Qh}l=d.bind(null,a,l,n),d=void 0,!tf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(d=!0),s?d!==void 0?n.addEventListener(a,l,{capture:!0,passive:d}):n.addEventListener(a,l,!0):d!==void 0?n.addEventListener(a,l,{passive:d}):n.addEventListener(a,l,!1)}function Mh(n,a,l,s,d){var h=s;if((a&1)===0&&(a&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var S=s.stateNode.containerInfo;if(S===d)break;if(v===4)for(v=s.return;v!==null;){var R=v.tag;if((R===3||R===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;S!==null;){if(v=kr(S),v===null)return;if(R=v.tag,R===5||R===6||R===26||R===27){s=h=v;continue e}S=S.parentNode}}s=s.return}rv(function(){var L=h,W=Jd(l),X=[];e:{var H=Vv.get(n);if(H!==void 0){var U=oc,le=n;switch(n){case"keypress":if(ac(l)===0)break e;case"keydown":case"keyup":U=rR;break;case"focusin":le="focus",U=of;break;case"focusout":le="blur",U=of;break;case"beforeblur":case"afterblur":U=of;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=sv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=qw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=sR;break;case Nv:case Iv:case Av:U=Xw;break;case Pv:U=uR;break;case"scroll":case"scrollend":U=Gw;break;case"wheel":U=fR;break;case"copy":case"cut":case"paste":U=Zw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=uv;break;case"toggle":case"beforetoggle":U=gR}var xe=(a&4)!==0,Ge=!xe&&(n==="scroll"||n==="scrollend"),V=xe?H!==null?H+"Capture":null:H;xe=[];for(var A=L,D;A!==null;){var K=A;if(D=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||D===null||V===null||(K=nl(A,V),K!=null&&xe.push(zl(A,K,D))),Ge)break;A=A.return}0<xe.length&&(H=new U(H,le,null,l,W),X.push({event:H,listeners:xe}))}}if((a&7)===0){e:{if(H=n==="mouseover"||n==="pointerover",U=n==="mouseout"||n==="pointerout",H&&l!==Zd&&(le=l.relatedTarget||l.fromElement)&&(kr(le)||le[Rr]))break e;if((U||H)&&(H=W.window===W?W:(H=W.ownerDocument)?H.defaultView||H.parentWindow:window,U?(le=l.relatedTarget||l.toElement,U=L,le=le?kr(le):null,le!==null&&(Ge=c(le),xe=le.tag,le!==Ge||xe!==5&&xe!==27&&xe!==6)&&(le=null)):(U=null,le=L),U!==le)){if(xe=sv,K="onMouseLeave",V="onMouseEnter",A="mouse",(n==="pointerout"||n==="pointerover")&&(xe=uv,K="onPointerLeave",V="onPointerEnter",A="pointer"),Ge=U==null?H:tl(U),D=le==null?H:tl(le),H=new xe(K,A+"leave",U,l,W),H.target=Ge,H.relatedTarget=D,K=null,kr(W)===L&&(xe=new xe(V,A+"enter",le,l,W),xe.target=D,xe.relatedTarget=Ge,K=xe),Ge=K,U&&le)t:{for(xe=hk,V=U,A=le,D=0,K=V;K;K=xe(K))D++;K=0;for(var pe=A;pe;pe=xe(pe))K++;for(;0<D-K;)V=xe(V),D--;for(;0<K-D;)A=xe(A),K--;for(;D--;){if(V===A||A!==null&&V===A.alternate){xe=V;break t}V=xe(V),A=xe(A)}xe=null}else xe=null;U!==null&&t0(X,H,U,xe,!1),le!==null&&Ge!==null&&t0(X,Ge,le,xe,!0)}}e:{if(H=L?tl(L):window,U=H.nodeName&&H.nodeName.toLowerCase(),U==="select"||U==="input"&&H.type==="file")var _e=bv;else if(mv(H))if(yv)_e=TR;else{_e=CR;var ue=SR}else U=H.nodeName,!U||U.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?L&&Qd(L.elementType)&&(_e=bv):_e=ER;if(_e&&(_e=_e(n,L))){vv(X,_e,l,W);break e}ue&&ue(n,H,L),n==="focusout"&&L&&H.type==="number"&&L.memoizedProps.value!=null&&Xd(H,"number",H.value)}switch(ue=L?tl(L):window,n){case"focusin":(mv(ue)||ue.contentEditable==="true")&&(Mr=ue,ff=L,ul=null);break;case"focusout":ul=ff=Mr=null;break;case"mousedown":hf=!0;break;case"contextmenu":case"mouseup":case"dragend":hf=!1,Rv(X,l,W);break;case"selectionchange":if(wR)break;case"keydown":case"keyup":Rv(X,l,W)}var we;if(sf)e:{switch(n){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else Dr?gv(n,l)&&(Ie="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(Ie="onCompositionStart");Ie&&(dv&&l.locale!=="ko"&&(Dr||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&Dr&&(we=ov()):(qi=W,nf="value"in qi?qi.value:qi.textContent,Dr=!0)),ue=Xc(L,Ie),0<ue.length&&(Ie=new cv(Ie,n,null,l,W),X.push({event:Ie,listeners:ue}),we?Ie.data=we:(we=pv(l),we!==null&&(Ie.data=we)))),(we=mR?vR(n,l):bR(n,l))&&(Ie=Xc(L,"onBeforeInput"),0<Ie.length&&(ue=new cv("onBeforeInput","beforeinput",null,l,W),X.push({event:ue,listeners:Ie}),ue.data=we)),ck(X,n,L,l,W)}Jy(X,a)})}function zl(n,a,l){return{instance:n,listener:a,currentTarget:l}}function Xc(n,a){for(var l=a+"Capture",s=[];n!==null;){var d=n,h=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||h===null||(d=nl(n,l),d!=null&&s.unshift(zl(n,d,h)),d=nl(n,a),d!=null&&s.push(zl(n,d,h))),n.tag===3)return s;n=n.return}return[]}function hk(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function t0(n,a,l,s,d){for(var h=a._reactName,v=[];l!==null&&l!==s;){var S=l,R=S.alternate,L=S.stateNode;if(S=S.tag,R!==null&&R===s)break;S!==5&&S!==26&&S!==27||L===null||(R=L,d?(L=nl(l,h),L!=null&&v.unshift(zl(l,L,R))):d||(L=nl(l,h),L!=null&&v.push(zl(l,L,R)))),l=l.return}v.length!==0&&n.push({event:a,listeners:v})}var gk=/\r\n?/g,pk=/\u0000|\uFFFD/g;function n0(n){return(typeof n=="string"?n:""+n).replace(gk,`
|
|
9
|
+
`).replace(pk,"")}function i0(n,a){return a=n0(a),n0(n)===a}function je(n,a,l,s,d,h){switch(l){case"children":typeof s=="string"?a==="body"||a==="textarea"&&s===""||Vr(n,s):(typeof s=="number"||typeof s=="bigint")&&a!=="body"&&Vr(n,""+s);break;case"className":ec(n,"class",s);break;case"tabIndex":ec(n,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ec(n,l,s);break;case"style":iv(n,s,h);break;case"data":if(a!=="object"){ec(n,"data",s);break}case"src":case"href":if(s===""&&(a!=="a"||l!=="href")){n.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(l);break}s=nc(""+s),n.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){n.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(l==="formAction"?(a!=="input"&&je(n,a,"name",d.name,d,null),je(n,a,"formEncType",d.formEncType,d,null),je(n,a,"formMethod",d.formMethod,d,null),je(n,a,"formTarget",d.formTarget,d,null)):(je(n,a,"encType",d.encType,d,null),je(n,a,"method",d.method,d,null),je(n,a,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(l);break}s=nc(""+s),n.setAttribute(l,s);break;case"onClick":s!=null&&(n.onclick=pi);break;case"onScroll":s!=null&&ke("scroll",n);break;case"onScrollEnd":s!=null&&ke("scrollend",n);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(r(60));n.innerHTML=l}}break;case"multiple":n.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":n.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){n.removeAttribute("xlink:href");break}l=nc(""+s),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(l,""+s):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":s===!0?n.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(l,s):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?n.setAttribute(l,s):n.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?n.removeAttribute(l):n.setAttribute(l,s);break;case"popover":ke("beforetoggle",n),ke("toggle",n),Js(n,"popover",s);break;case"xlinkActuate":gi(n,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":gi(n,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":gi(n,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":gi(n,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":gi(n,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":gi(n,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":gi(n,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":gi(n,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":gi(n,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Js(n,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Uw.get(l)||l,Js(n,l,s))}}function Lh(n,a,l,s,d,h){switch(l){case"style":iv(n,s,h);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(r(60));n.innerHTML=l}}break;case"children":typeof s=="string"?Vr(n,s):(typeof s=="number"||typeof s=="bigint")&&Vr(n,""+s);break;case"onScroll":s!=null&&ke("scroll",n);break;case"onScrollEnd":s!=null&&ke("scrollend",n);break;case"onClick":s!=null&&(n.onclick=pi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ym.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),a=l.slice(2,d?l.length-7:void 0),h=n[$t]||null,h=h!=null?h[l]:null,typeof h=="function"&&n.removeEventListener(a,h,d),typeof s=="function")){typeof h!="function"&&h!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(a,s,d);break e}l in n?n[l]=s:s===!0?n.setAttribute(l,""):Js(n,l,s)}}}function At(n,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",n),ke("load",n);var s=!1,d=!1,h;for(h in l)if(l.hasOwnProperty(h)){var v=l[h];if(v!=null)switch(h){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:je(n,a,h,v,l,null)}}d&&je(n,a,"srcSet",l.srcSet,l,null),s&&je(n,a,"src",l.src,l,null);return;case"input":ke("invalid",n);var S=h=v=d=null,R=null,L=null;for(s in l)if(l.hasOwnProperty(s)){var W=l[s];if(W!=null)switch(s){case"name":d=W;break;case"type":v=W;break;case"checked":R=W;break;case"defaultChecked":L=W;break;case"value":h=W;break;case"defaultValue":S=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(137,a));break;default:je(n,a,s,W,l,null)}}Jm(n,h,S,R,L,v,d,!1);return;case"select":ke("invalid",n),s=v=h=null;for(d in l)if(l.hasOwnProperty(d)&&(S=l[d],S!=null))switch(d){case"value":h=S;break;case"defaultValue":v=S;break;case"multiple":s=S;default:je(n,a,d,S,l,null)}a=h,l=v,n.multiple=!!s,a!=null?Pr(n,!!s,a,!1):l!=null&&Pr(n,!!s,l,!0);return;case"textarea":ke("invalid",n),h=d=s=null;for(v in l)if(l.hasOwnProperty(v)&&(S=l[v],S!=null))switch(v){case"value":s=S;break;case"defaultValue":d=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:je(n,a,v,S,l,null)}tv(n,s,d,h);return;case"option":for(R in l)if(l.hasOwnProperty(R)&&(s=l[R],s!=null))switch(R){case"selected":n.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:je(n,a,R,s,l,null)}return;case"dialog":ke("beforetoggle",n),ke("toggle",n),ke("cancel",n),ke("close",n);break;case"iframe":case"object":ke("load",n);break;case"video":case"audio":for(s=0;s<_l.length;s++)ke(_l[s],n);break;case"image":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"embed":case"source":case"link":ke("error",n),ke("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in l)if(l.hasOwnProperty(L)&&(s=l[L],s!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:je(n,a,L,s,l,null)}return;default:if(Qd(a)){for(W in l)l.hasOwnProperty(W)&&(s=l[W],s!==void 0&&Lh(n,a,W,s,l,void 0));return}}for(S in l)l.hasOwnProperty(S)&&(s=l[S],s!=null&&je(n,a,S,s,l,null))}function mk(n,a,l,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,h=null,v=null,S=null,R=null,L=null,W=null;for(U in l){var X=l[U];if(l.hasOwnProperty(U)&&X!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":R=X;default:s.hasOwnProperty(U)||je(n,a,U,null,s,X)}}for(var H in s){var U=s[H];if(X=l[H],s.hasOwnProperty(H)&&(U!=null||X!=null))switch(H){case"type":h=U;break;case"name":d=U;break;case"checked":L=U;break;case"defaultChecked":W=U;break;case"value":v=U;break;case"defaultValue":S=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,a));break;default:U!==X&&je(n,a,H,U,s,X)}}Kd(n,v,S,R,L,W,h,d);return;case"select":U=v=S=H=null;for(h in l)if(R=l[h],l.hasOwnProperty(h)&&R!=null)switch(h){case"value":break;case"multiple":U=R;default:s.hasOwnProperty(h)||je(n,a,h,null,s,R)}for(d in s)if(h=s[d],R=l[d],s.hasOwnProperty(d)&&(h!=null||R!=null))switch(d){case"value":H=h;break;case"defaultValue":S=h;break;case"multiple":v=h;default:h!==R&&je(n,a,d,h,s,R)}a=S,l=v,s=U,H!=null?Pr(n,!!l,H,!1):!!s!=!!l&&(a!=null?Pr(n,!!l,a,!0):Pr(n,!!l,l?[]:"",!1));return;case"textarea":U=H=null;for(S in l)if(d=l[S],l.hasOwnProperty(S)&&d!=null&&!s.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:je(n,a,S,null,s,d)}for(v in s)if(d=s[v],h=l[v],s.hasOwnProperty(v)&&(d!=null||h!=null))switch(v){case"value":H=d;break;case"defaultValue":U=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==h&&je(n,a,v,d,s,h)}ev(n,H,U);return;case"option":for(var le in l)if(H=l[le],l.hasOwnProperty(le)&&H!=null&&!s.hasOwnProperty(le))switch(le){case"selected":n.selected=!1;break;default:je(n,a,le,null,s,H)}for(R in s)if(H=s[R],U=l[R],s.hasOwnProperty(R)&&H!==U&&(H!=null||U!=null))switch(R){case"selected":n.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:je(n,a,R,H,s,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in l)H=l[xe],l.hasOwnProperty(xe)&&H!=null&&!s.hasOwnProperty(xe)&&je(n,a,xe,null,s,H);for(L in s)if(H=s[L],U=l[L],s.hasOwnProperty(L)&&H!==U&&(H!=null||U!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,a));break;default:je(n,a,L,H,s,U)}return;default:if(Qd(a)){for(var Ge in l)H=l[Ge],l.hasOwnProperty(Ge)&&H!==void 0&&!s.hasOwnProperty(Ge)&&Lh(n,a,Ge,void 0,s,H);for(W in s)H=s[W],U=l[W],!s.hasOwnProperty(W)||H===U||H===void 0&&U===void 0||Lh(n,a,W,H,s,U);return}}for(var V in l)H=l[V],l.hasOwnProperty(V)&&H!=null&&!s.hasOwnProperty(V)&&je(n,a,V,null,s,H);for(X in s)H=s[X],U=l[X],!s.hasOwnProperty(X)||H===U||H==null&&U==null||je(n,a,X,H,s,U)}function a0(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vk(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var d=l[s],h=d.transferSize,v=d.initiatorType,S=d.duration;if(h&&S&&a0(v)){for(v=0,S=d.responseEnd,s+=1;s<l.length;s++){var R=l[s],L=R.startTime;if(L>S)break;var W=R.transferSize,X=R.initiatorType;W&&a0(X)&&(R=R.responseEnd,v+=W*(R<S?1:(S-L)/(R-L)))}if(--s,a+=8*(h+v)/(d.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Bh=null,Hh=null;function Qc(n){return n.nodeType===9?n:n.ownerDocument}function r0(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function o0(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Fh(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var $h=null;function bk(){var n=window.event;return n&&n.type==="popstate"?n===$h?!1:($h=n,!0):($h=null,!1)}var l0=typeof setTimeout=="function"?setTimeout:void 0,yk=typeof clearTimeout=="function"?clearTimeout:void 0,s0=typeof Promise=="function"?Promise:void 0,xk=typeof queueMicrotask=="function"?queueMicrotask:typeof s0<"u"?function(n){return s0.resolve(null).then(n).catch(Sk)}:l0;function Sk(n){setTimeout(function(){throw n})}function ua(n){return n==="head"}function c0(n,a){var l=a,s=0;do{var d=l.nextSibling;if(n.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(s===0){n.removeChild(d),uo(a);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")Dl(n.ownerDocument.documentElement);else if(l==="head"){l=n.ownerDocument.head,Dl(l);for(var h=l.firstChild;h;){var v=h.nextSibling,S=h.nodeName;h[el]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=v}}else l==="body"&&Dl(n.ownerDocument.body);l=d}while(l);uo(a)}function u0(n,a){var l=n;n=0;do{var s=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(n===0)break;n--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||n++;l=s}while(l)}function Uh(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Uh(l),qd(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function Ck(n,a,l,s){for(;n.nodeType===1;){var d=l;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!s&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(s){if(!n[el])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(h=n.getAttribute("src"),(h!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var h=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=Nn(n.nextSibling),n===null)break}return null}function Ek(n,a,l){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=Nn(n.nextSibling),n===null))return null;return n}function d0(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Nn(n.nextSibling),n===null))return null;return n}function jh(n){return n.data==="$?"||n.data==="$~"}function Gh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function Tk(n,a){var l=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||l.readyState!=="loading")a();else{var s=function(){a(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),n._reactRetry=s}}function Nn(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var Wh=null;function f0(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"||l==="/&"){if(a===0)return Nn(n.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}n=n.nextSibling}return null}function h0(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return n;a--}else l!=="/$"&&l!=="/&"||a++}n=n.previousSibling}return null}function g0(n,a,l){switch(a=Qc(l),n){case"html":if(n=a.documentElement,!n)throw Error(r(452));return n;case"head":if(n=a.head,!n)throw Error(r(453));return n;case"body":if(n=a.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function Dl(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);qd(n)}var In=new Map,p0=new Set;function Zc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Ai=ee.d;ee.d={f:Ok,r:wk,D:Rk,C:kk,L:Nk,m:Ik,X:Pk,S:Ak,M:Vk};function Ok(){var n=Ai.f(),a=Uc();return n||a}function wk(n){var a=Nr(n);a!==null&&a.tag===5&&a.type==="form"?Pb(a):Ai.r(n)}var lo=typeof document>"u"?null:document;function m0(n,a,l){var s=lo;if(s&&typeof a=="string"&&a){var d=Cn(a);d='link[rel="'+n+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),p0.has(d)||(p0.add(d),n={rel:n,crossOrigin:l,href:a},s.querySelector(d)===null&&(a=s.createElement("link"),At(a,"link",n),Ct(a),s.head.appendChild(a)))}}function Rk(n){Ai.D(n),m0("dns-prefetch",n,null)}function kk(n,a){Ai.C(n,a),m0("preconnect",n,a)}function Nk(n,a,l){Ai.L(n,a,l);var s=lo;if(s&&n&&a){var d='link[rel="preload"][as="'+Cn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+Cn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+Cn(l.imageSizes)+'"]')):d+='[href="'+Cn(n)+'"]';var h=d;switch(a){case"style":h=so(n);break;case"script":h=co(n)}In.has(h)||(n=b({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:n,as:a},l),In.set(h,n),s.querySelector(d)!==null||a==="style"&&s.querySelector(Ml(h))||a==="script"&&s.querySelector(Ll(h))||(a=s.createElement("link"),At(a,"link",n),Ct(a),s.head.appendChild(a)))}}function Ik(n,a){Ai.m(n,a);var l=lo;if(l&&n){var s=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+Cn(s)+'"][href="'+Cn(n)+'"]',h=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=co(n)}if(!In.has(h)&&(n=b({rel:"modulepreload",href:n},a),In.set(h,n),l.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ll(h)))return}s=l.createElement("link"),At(s,"link",n),Ct(s),l.head.appendChild(s)}}}function Ak(n,a,l){Ai.S(n,a,l);var s=lo;if(s&&n){var d=Ir(s).hoistableStyles,h=so(n);a=a||"default";var v=d.get(h);if(!v){var S={loading:0,preload:null};if(v=s.querySelector(Ml(h)))S.loading=5;else{n=b({rel:"stylesheet",href:n,"data-precedence":a},l),(l=In.get(h))&&qh(n,l);var R=v=s.createElement("link");Ct(R),At(R,"link",n),R._p=new Promise(function(L,W){R.onload=L,R.onerror=W}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Jc(v,a,s)}v={type:"stylesheet",instance:v,count:1,state:S},d.set(h,v)}}}function Pk(n,a){Ai.X(n,a);var l=lo;if(l&&n){var s=Ir(l).hoistableScripts,d=co(n),h=s.get(d);h||(h=l.querySelector(Ll(d)),h||(n=b({src:n,async:!0},a),(a=In.get(d))&&Yh(n,a),h=l.createElement("script"),Ct(h),At(h,"link",n),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},s.set(d,h))}}function Vk(n,a){Ai.M(n,a);var l=lo;if(l&&n){var s=Ir(l).hoistableScripts,d=co(n),h=s.get(d);h||(h=l.querySelector(Ll(d)),h||(n=b({src:n,async:!0,type:"module"},a),(a=In.get(d))&&Yh(n,a),h=l.createElement("script"),Ct(h),At(h,"link",n),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},s.set(d,h))}}function v0(n,a,l,s){var d=(d=Te.current)?Zc(d):null;if(!d)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=so(l.href),l=Ir(d).hoistableStyles,s=l.get(a),s||(s={type:"style",instance:null,count:0,state:null},l.set(a,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=so(l.href);var h=Ir(d).hoistableStyles,v=h.get(n);if(v||(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,v),(h=d.querySelector(Ml(n)))&&!h._p&&(v.instance=h,v.state.loading=5),In.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},In.set(n,l),h||_k(d,n,l,v.state))),a&&s===null)throw Error(r(528,""));return v}if(a&&s!==null)throw Error(r(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=co(l),l=Ir(d).hoistableScripts,s=l.get(a),s||(s={type:"script",instance:null,count:0,state:null},l.set(a,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function so(n){return'href="'+Cn(n)+'"'}function Ml(n){return'link[rel="stylesheet"]['+n+"]"}function b0(n){return b({},n,{"data-precedence":n.precedence,precedence:null})}function _k(n,a,l,s){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?s.loading=1:(a=n.createElement("link"),s.preload=a,a.addEventListener("load",function(){return s.loading|=1}),a.addEventListener("error",function(){return s.loading|=2}),At(a,"link",l),Ct(a),n.head.appendChild(a))}function co(n){return'[src="'+Cn(n)+'"]'}function Ll(n){return"script[async]"+n}function y0(n,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var s=n.querySelector('style[data-href~="'+Cn(l.href)+'"]');if(s)return a.instance=s,Ct(s),s;var d=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(n.ownerDocument||n).createElement("style"),Ct(s),At(s,"style",d),Jc(s,l.precedence,n),a.instance=s;case"stylesheet":d=so(l.href);var h=n.querySelector(Ml(d));if(h)return a.state.loading|=4,a.instance=h,Ct(h),h;s=b0(l),(d=In.get(d))&&qh(s,d),h=(n.ownerDocument||n).createElement("link"),Ct(h);var v=h;return v._p=new Promise(function(S,R){v.onload=S,v.onerror=R}),At(h,"link",s),a.state.loading|=4,Jc(h,l.precedence,n),a.instance=h;case"script":return h=co(l.src),(d=n.querySelector(Ll(h)))?(a.instance=d,Ct(d),d):(s=l,(d=In.get(h))&&(s=b({},l),Yh(s,d)),n=n.ownerDocument||n,d=n.createElement("script"),Ct(d),At(d,"link",s),n.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(s=a.instance,a.state.loading|=4,Jc(s,l.precedence,n));return a.instance}function Jc(n,a,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,h=d,v=0;v<s.length;v++){var S=s[v];if(S.dataset.precedence===a)h=S;else if(h!==d)break}h?h.parentNode.insertBefore(n,h.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(n,a.firstChild))}function qh(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Yh(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var eu=null;function x0(n,a,l){if(eu===null){var s=new Map,d=eu=new Map;d.set(l,s)}else d=eu,s=d.get(l),s||(s=new Map,d.set(l,s));if(s.has(n))return s;for(s.set(n,null),l=l.getElementsByTagName(n),d=0;d<l.length;d++){var h=l[d];if(!(h[el]||h[Rt]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var v=h.getAttribute(a)||"";v=n+v;var S=s.get(v);S?S.push(h):s.set(v,[h])}}return s}function S0(n,a,l){n=n.ownerDocument||n,n.head.insertBefore(l,a==="title"?n.querySelector("head > title"):null)}function zk(n,a,l){if(l===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function C0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Dk(n,a,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=so(s.href),h=a.querySelector(Ml(d));if(h){a=h._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=tu.bind(n),a.then(n,n)),l.state.loading|=4,l.instance=h,Ct(h);return}h=a.ownerDocument||a,s=b0(s),(d=In.get(d))&&qh(s,d),h=h.createElement("link"),Ct(h);var v=h;v._p=new Promise(function(S,R){v.onload=S,v.onerror=R}),At(h,"link",s),l.instance=h}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=tu.bind(n),a.addEventListener("load",l),a.addEventListener("error",l))}}var Kh=0;function Mk(n,a){return n.stylesheets&&n.count===0&&iu(n,n.stylesheets),0<n.count||0<n.imgCount?function(l){var s=setTimeout(function(){if(n.stylesheets&&iu(n,n.stylesheets),n.unsuspend){var h=n.unsuspend;n.unsuspend=null,h()}},6e4+a);0<n.imgBytes&&Kh===0&&(Kh=62500*vk());var d=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&iu(n,n.stylesheets),n.unsuspend)){var h=n.unsuspend;n.unsuspend=null,h()}},(n.imgBytes>Kh?50:800)+a);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(s),clearTimeout(d)}}:null}function tu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)iu(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var nu=null;function iu(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,nu=new Map,a.forEach(Lk,n),nu=null,tu.call(n))}function Lk(n,a){if(!(a.state.loading&4)){var l=nu.get(n);if(l)var s=l.get(null);else{l=new Map,nu.set(n,l);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<d.length;h++){var v=d[h];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(l.set(v.dataset.precedence,v),s=v)}s&&l.set(null,s)}d=a.instance,v=d.getAttribute("data-precedence"),h=l.get(v)||s,h===s&&l.set(null,d),l.set(v,d),this.count++,s=tu.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),h?h.parentNode.insertBefore(d,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),a.state.loading|=4}}var Bl={$$typeof:N,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Bk(n,a,l,s,d,h,v,S,R){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ud(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ud(0),this.hiddenUpdates=Ud(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=h,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function E0(n,a,l,s,d,h,v,S,R,L,W,X){return n=new Bk(n,a,l,v,R,L,W,X,S),a=1,h===!0&&(a|=24),h=ln(3,null,null,a),n.current=h,h.stateNode=n,a=kf(),a.refCount++,n.pooledCache=a,a.refCount++,h.memoizedState={element:s,isDehydrated:l,cache:a},Pf(h),n}function T0(n){return n?(n=Hr,n):Hr}function O0(n,a,l,s,d,h){d=T0(d),s.context===null?s.context=d:s.pendingContext=d,s=Ji(a),s.payload={element:l},h=h===void 0?null:h,h!==null&&(s.callback=h),l=ea(n,s,a),l!==null&&(Yt(l,n,a),vl(l,n,a))}function w0(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<a?l:a}}function Xh(n,a){w0(n,a),(n=n.alternate)&&w0(n,a)}function R0(n){if(n.tag===13||n.tag===31){var a=Ua(n,67108864);a!==null&&Yt(a,n,67108864),Xh(n,67108864)}}function k0(n){if(n.tag===13||n.tag===31){var a=fn();a=jd(a);var l=Ua(n,a);l!==null&&Yt(l,n,a),Xh(n,a)}}var au=!0;function Hk(n,a,l,s){var d=B.T;B.T=null;var h=ee.p;try{ee.p=2,Qh(n,a,l,s)}finally{ee.p=h,B.T=d}}function Fk(n,a,l,s){var d=B.T;B.T=null;var h=ee.p;try{ee.p=8,Qh(n,a,l,s)}finally{ee.p=h,B.T=d}}function Qh(n,a,l,s){if(au){var d=Zh(s);if(d===null)Mh(n,a,s,ru,l),I0(n,s);else if(Uk(d,n,a,l,s))s.stopPropagation();else if(I0(n,s),a&4&&-1<$k.indexOf(n)){for(;d!==null;){var h=Nr(d);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var v=La(h.pendingLanes);if(v!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;v;){var R=1<<31-rn(v);S.entanglements[1]|=R,v&=~R}Yn(h),(De&6)===0&&(Fc=nn()+500,Vl(0))}}break;case 31:case 13:S=Ua(h,2),S!==null&&Yt(S,h,2),Uc(),Xh(h,2)}if(h=Zh(s),h===null&&Mh(n,a,s,ru,l),h===d)break;d=h}d!==null&&s.stopPropagation()}else Mh(n,a,s,null,l)}}function Zh(n){return n=Jd(n),Jh(n)}var ru=null;function Jh(n){if(ru=null,n=kr(n),n!==null){var a=c(n);if(a===null)n=null;else{var l=a.tag;if(l===13){if(n=u(a),n!==null)return n;n=null}else if(l===31){if(n=f(a),n!==null)return n;n=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return ru=n,null}function N0(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Rw()){case Mm:return 2;case Lm:return 8;case Ys:case kw:return 32;case Bm:return 268435456;default:return 32}default:return 32}}var eg=!1,da=null,fa=null,ha=null,Hl=new Map,Fl=new Map,ga=[],$k="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function I0(n,a){switch(n){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":ha=null;break;case"pointerover":case"pointerout":Hl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fl.delete(a.pointerId)}}function $l(n,a,l,s,d,h){return n===null||n.nativeEvent!==h?(n={blockedOn:a,domEventName:l,eventSystemFlags:s,nativeEvent:h,targetContainers:[d]},a!==null&&(a=Nr(a),a!==null&&R0(a)),n):(n.eventSystemFlags|=s,a=n.targetContainers,d!==null&&a.indexOf(d)===-1&&a.push(d),n)}function Uk(n,a,l,s,d){switch(a){case"focusin":return da=$l(da,n,a,l,s,d),!0;case"dragenter":return fa=$l(fa,n,a,l,s,d),!0;case"mouseover":return ha=$l(ha,n,a,l,s,d),!0;case"pointerover":var h=d.pointerId;return Hl.set(h,$l(Hl.get(h)||null,n,a,l,s,d)),!0;case"gotpointercapture":return h=d.pointerId,Fl.set(h,$l(Fl.get(h)||null,n,a,l,s,d)),!0}return!1}function A0(n){var a=kr(n.target);if(a!==null){var l=c(a);if(l!==null){if(a=l.tag,a===13){if(a=u(l),a!==null){n.blockedOn=a,Gm(n.priority,function(){k0(l)});return}}else if(a===31){if(a=f(l),a!==null){n.blockedOn=a,Gm(n.priority,function(){k0(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ou(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var l=Zh(n.nativeEvent);if(l===null){l=n.nativeEvent;var s=new l.constructor(l.type,l);Zd=s,l.target.dispatchEvent(s),Zd=null}else return a=Nr(l),a!==null&&R0(a),n.blockedOn=l,!1;a.shift()}return!0}function P0(n,a,l){ou(n)&&l.delete(a)}function jk(){eg=!1,da!==null&&ou(da)&&(da=null),fa!==null&&ou(fa)&&(fa=null),ha!==null&&ou(ha)&&(ha=null),Hl.forEach(P0),Fl.forEach(P0)}function lu(n,a){n.blockedOn===a&&(n.blockedOn=null,eg||(eg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,jk)))}var su=null;function V0(n){su!==n&&(su=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){su===n&&(su=null);for(var a=0;a<n.length;a+=3){var l=n[a],s=n[a+1],d=n[a+2];if(typeof s!="function"){if(Jh(s||l)===null)continue;break}var h=Nr(l);h!==null&&(n.splice(a,3),a-=3,Zf(h,{pending:!0,data:d,method:l.method,action:s},s,d))}}))}function uo(n){function a(R){return lu(R,n)}da!==null&&lu(da,n),fa!==null&&lu(fa,n),ha!==null&&lu(ha,n),Hl.forEach(a),Fl.forEach(a);for(var l=0;l<ga.length;l++){var s=ga[l];s.blockedOn===n&&(s.blockedOn=null)}for(;0<ga.length&&(l=ga[0],l.blockedOn===null);)A0(l),l.blockedOn===null&&ga.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var d=l[s],h=l[s+1],v=d[$t]||null;if(typeof h=="function")v||V0(l);else if(v){var S=null;if(h&&h.hasAttribute("formAction")){if(d=h,v=h[$t]||null)S=v.formAction;else if(Jh(d)!==null)continue}else S=v.action;typeof S=="function"?l[s+1]=S:(l.splice(s,3),s-=3),V0(l)}}}function _0(){function n(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(v){return d=v})},focusReset:"manual",scroll:"manual"})}function a(){d!==null&&(d(),d=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,d=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),d!==null&&(d(),d=null)}}}function tg(n){this._internalRoot=n}cu.prototype.render=tg.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(r(409));var l=a.current,s=fn();O0(l,s,n,a,null,null)},cu.prototype.unmount=tg.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;O0(n.current,2,null,n,null,null),Uc(),a[Rr]=null}};function cu(n){this._internalRoot=n}cu.prototype.unstable_scheduleHydration=function(n){if(n){var a=jm();n={blockedOn:null,target:n,priority:a};for(var l=0;l<ga.length&&a!==0&&a<ga[l].priority;l++);ga.splice(l,0,n),l===0&&A0(n)}};var z0=t.version;if(z0!=="19.2.0")throw Error(r(527,z0,"19.2.0"));ee.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=p(a),n=n!==null?m(n):null,n=n===null?null:n.stateNode,n};var Gk={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uu.isDisabled&&uu.supportsFiber)try{Qo=uu.inject(Gk),an=uu}catch{}}return jl.createRoot=function(n,a){if(!o(n))throw Error(r(299));var l=!1,s="",d=$b,h=Ub,v=jb;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=E0(n,1,!1,null,null,l,s,null,d,h,v,_0),n[Rr]=a.current,Dh(n),new tg(a)},jl.hydrateRoot=function(n,a,l){if(!o(n))throw Error(r(299));var s=!1,d="",h=$b,v=Ub,S=jb,R=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError),l.formState!==void 0&&(R=l.formState)),a=E0(n,1,!0,a,l??null,s,d,R,h,v,S,_0),a.context=T0(null),l=a.current,s=fn(),s=jd(s),d=Ji(s),d.callback=null,ea(l,d,s),l=s,a.current.lanes=l,Jo(a,l),Yn(a),n[Rr]=a.current,Dh(n),new cu(a)},jl.version="19.2.0",jl}var W0;function nN(){if(W0)return ag.exports;W0=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(),ag.exports=tN(),ag.exports}var iN=nN();const ZH=gC(iN);function mC(e){var t=Object.create(null);return function(i){return t[i]===void 0&&(t[i]=e(i)),t[i]}}var aN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,rN=mC(function(e){return aN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function oN(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function lN(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var sN=(function(){function e(i){var r=this;this._insertTag=function(o){var c;r.tags.length===0?r.insertionPoint?c=r.insertionPoint.nextSibling:r.prepend?c=r.container.firstChild:c=r.before:c=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,c),r.tags.push(o)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(lN(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var c=oN(o);try{c.insertRule(r,c.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Lt="-ms-",Ku="-moz-",Me="-webkit-",vC="comm",Np="rule",Ip="decl",cN="@import",bC="@keyframes",uN="@layer",dN=Math.abs,fd=String.fromCharCode,fN=Object.assign;function hN(e,t){return _t(e,0)^45?(((t<<2^_t(e,0))<<2^_t(e,1))<<2^_t(e,2))<<2^_t(e,3):0}function yC(e){return e.trim()}function gN(e,t){return(e=t.exec(e))?e[0]:e}function Le(e,t,i){return e.replace(t,i)}function Mg(e,t){return e.indexOf(t)}function _t(e,t){return e.charCodeAt(t)|0}function ms(e,t,i){return e.slice(t,i)}function Zn(e){return e.length}function Ap(e){return e.length}function du(e,t){return t.push(e),e}function pN(e,t){return e.map(t).join("")}var hd=1,Vo=1,xC=0,Jt=0,mt=0,Mo="";function gd(e,t,i,r,o,c,u){return{value:e,root:t,parent:i,type:r,props:o,children:c,line:hd,column:Vo,length:u,return:""}}function Gl(e,t){return fN(gd("",null,null,"",null,null,0),e,{length:-e.length},t)}function mN(){return mt}function vN(){return mt=Jt>0?_t(Mo,--Jt):0,Vo--,mt===10&&(Vo=1,hd--),mt}function mn(){return mt=Jt<xC?_t(Mo,Jt++):0,Vo++,mt===10&&(Vo=1,hd++),mt}function ti(){return _t(Mo,Jt)}function Au(){return Jt}function Ns(e,t){return ms(Mo,e,t)}function vs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function SC(e){return hd=Vo=1,xC=Zn(Mo=e),Jt=0,[]}function CC(e){return Mo="",e}function Pu(e){return yC(Ns(Jt-1,Lg(e===91?e+2:e===40?e+1:e)))}function bN(e){for(;(mt=ti())&&mt<33;)mn();return vs(e)>2||vs(mt)>3?"":" "}function yN(e,t){for(;--t&&mn()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return Ns(e,Au()+(t<6&&ti()==32&&mn()==32))}function Lg(e){for(;mn();)switch(mt){case e:return Jt;case 34:case 39:e!==34&&e!==39&&Lg(mt);break;case 40:e===41&&Lg(e);break;case 92:mn();break}return Jt}function xN(e,t){for(;mn()&&e+mt!==57;)if(e+mt===84&&ti()===47)break;return"/*"+Ns(t,Jt-1)+"*"+fd(e===47?e:mn())}function SN(e){for(;!vs(ti());)mn();return Ns(e,Jt)}function CN(e){return CC(Vu("",null,null,null,[""],e=SC(e),0,[0],e))}function Vu(e,t,i,r,o,c,u,f,g){for(var p=0,m=0,b=u,y=0,x=0,E=0,C=1,O=1,w=1,k=0,N="",M=o,P=c,j=r,F=N;O;)switch(E=k,k=mn()){case 40:if(E!=108&&_t(F,b-1)==58){Mg(F+=Le(Pu(k),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:F+=Pu(k);break;case 9:case 10:case 13:case 32:F+=bN(E);break;case 92:F+=yN(Au()-1,7);continue;case 47:switch(ti()){case 42:case 47:du(EN(xN(mn(),Au()),t,i),g);break;default:F+="/"}break;case 123*C:f[p++]=Zn(F)*w;case 125*C:case 59:case 0:switch(k){case 0:case 125:O=0;case 59+m:w==-1&&(F=Le(F,/\f/g,"")),x>0&&Zn(F)-b&&du(x>32?Y0(F+";",r,i,b-1):Y0(Le(F," ","")+";",r,i,b-2),g);break;case 59:F+=";";default:if(du(j=q0(F,t,i,p,m,o,f,N,M=[],P=[],b),c),k===123)if(m===0)Vu(F,t,j,j,M,c,b,f,P);else switch(y===99&&_t(F,3)===110?100:y){case 100:case 108:case 109:case 115:Vu(e,j,j,r&&du(q0(e,j,j,0,0,o,f,N,o,M=[],b),P),o,P,b,f,r?M:P);break;default:Vu(F,j,j,j,[""],P,0,f,P)}}p=m=x=0,C=w=1,N=F="",b=u;break;case 58:b=1+Zn(F),x=E;default:if(C<1){if(k==123)--C;else if(k==125&&C++==0&&vN()==125)continue}switch(F+=fd(k),k*C){case 38:w=m>0?1:(F+="\f",-1);break;case 44:f[p++]=(Zn(F)-1)*w,w=1;break;case 64:ti()===45&&(F+=Pu(mn())),y=ti(),m=b=Zn(N=F+=SN(Au())),k++;break;case 45:E===45&&Zn(F)==2&&(C=0)}}return c}function q0(e,t,i,r,o,c,u,f,g,p,m){for(var b=o-1,y=o===0?c:[""],x=Ap(y),E=0,C=0,O=0;E<r;++E)for(var w=0,k=ms(e,b+1,b=dN(C=u[E])),N=e;w<x;++w)(N=yC(C>0?y[w]+" "+k:Le(k,/&\f/g,y[w])))&&(g[O++]=N);return gd(e,t,i,o===0?Np:f,g,p,m)}function EN(e,t,i){return gd(e,t,i,vC,fd(mN()),ms(e,2,-2),0)}function Y0(e,t,i,r){return gd(e,t,i,Ip,ms(e,0,r),ms(e,r+1,-1),r)}function Ro(e,t){for(var i="",r=Ap(e),o=0;o<r;o++)i+=t(e[o],o,e,t)||"";return i}function TN(e,t,i,r){switch(e.type){case uN:if(e.children.length)break;case cN:case Ip:return e.return=e.return||e.value;case vC:return"";case bC:return e.return=e.value+"{"+Ro(e.children,r)+"}";case Np:e.value=e.props.join(",")}return Zn(i=Ro(e.children,r))?e.return=e.value+"{"+i+"}":""}function ON(e){var t=Ap(e);return function(i,r,o,c){for(var u="",f=0;f<t;f++)u+=e[f](i,r,o,c)||"";return u}}function wN(e){return function(t){t.root||(t=t.return)&&e(t)}}var RN=function(t,i,r){for(var o=0,c=0;o=c,c=ti(),o===38&&c===12&&(i[r]=1),!vs(c);)mn();return Ns(t,Jt)},kN=function(t,i){var r=-1,o=44;do switch(vs(o)){case 0:o===38&&ti()===12&&(i[r]=1),t[r]+=RN(Jt-1,i,r);break;case 2:t[r]+=Pu(o);break;case 4:if(o===44){t[++r]=ti()===58?"&\f":"",i[r]=t[r].length;break}default:t[r]+=fd(o)}while(o=mn());return t},NN=function(t,i){return CC(kN(SC(t),i))},K0=new WeakMap,IN=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var i=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&i.charCodeAt(0)!==58&&!K0.get(r))&&!o){K0.set(t,!0);for(var c=[],u=NN(i,c),f=r.props,g=0,p=0;g<u.length;g++)for(var m=0;m<f.length;m++,p++)t.props[p]=c[g]?u[g].replace(/&\f/g,f[m]):f[m]+" "+u[g]}}},AN=function(t){if(t.type==="decl"){var i=t.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(t.return="",t.value="")}};function EC(e,t){switch(hN(e,t)){case 5103:return Me+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+Ku+e+Lt+e+e;case 6828:case 4268:return Me+e+Lt+e+e;case 6165:return Me+e+Lt+"flex-"+e+e;case 5187:return Me+e+Le(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+Lt+"flex-$1$2")+e;case 5443:return Me+e+Lt+"flex-item-"+Le(e,/flex-|-self/,"")+e;case 4675:return Me+e+Lt+"flex-line-pack"+Le(e,/align-content|flex-|-self/,"")+e;case 5548:return Me+e+Lt+Le(e,"shrink","negative")+e;case 5292:return Me+e+Lt+Le(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Le(e,"-grow","")+Me+e+Lt+Le(e,"grow","positive")+e;case 4554:return Me+Le(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Le(Le(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+Lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4095:case 3583:case 4068:case 2532:return Le(e,/(.+)-inline(.+)/,Me+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zn(e)-1-t>6)switch(_t(e,t+1)){case 109:if(_t(e,t+4)!==45)break;case 102:return Le(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+Ku+(_t(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Mg(e,"stretch")?EC(Le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_t(e,t+1)!==115)break;case 6444:switch(_t(e,Zn(e)-3-(~Mg(e,"!important")&&10))){case 107:return Le(e,":",":"+Me)+e;case 101:return Le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(_t(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(_t(e,t+11)){case 114:return Me+e+Lt+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+Lt+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+Lt+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+Lt+e+e}return e}var PN=function(t,i,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ip:t.return=EC(t.value,t.length);break;case bC:return Ro([Gl(t,{value:Le(t.value,"@","@"+Me)})],o);case Np:if(t.length)return pN(t.props,function(c){switch(gN(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ro([Gl(t,{props:[Le(c,/:(read-\w+)/,":"+Ku+"$1")]})],o);case"::placeholder":return Ro([Gl(t,{props:[Le(c,/:(plac\w+)/,":"+Me+"input-$1")]}),Gl(t,{props:[Le(c,/:(plac\w+)/,":"+Ku+"$1")]}),Gl(t,{props:[Le(c,/:(plac\w+)/,Lt+"input-$1")]})],o)}return""})}},VN=[PN],_N=function(t){var i=t.key;if(i==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(C){var O=C.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var o=t.stylisPlugins||VN,c={},u,f=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(C){for(var O=C.getAttribute("data-emotion").split(" "),w=1;w<O.length;w++)c[O[w]]=!0;f.push(C)});var g,p=[IN,AN];{var m,b=[TN,wN(function(C){m.insert(C)})],y=ON(p.concat(o,b)),x=function(O){return Ro(CN(O),y)};g=function(O,w,k,N){m=k,x(O?O+"{"+w.styles+"}":w.styles),N&&(E.inserted[w.name]=!0)}}var E={key:i,sheet:new sN({key:i,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:c,registered:{},insert:g};return E.sheet.hydrate(f),E},sg={exports:{}},He={};var X0;function zN(){if(X0)return He;X0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,O=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function N(P){if(typeof P=="object"&&P!==null){var j=P.$$typeof;switch(j){case t:switch(P=P.type,P){case g:case p:case r:case c:case o:case b:return P;default:switch(P=P&&P.$$typeof,P){case f:case m:case E:case x:case u:return P;default:return j}}case i:return j}}}function M(P){return N(P)===p}return He.AsyncMode=g,He.ConcurrentMode=p,He.ContextConsumer=f,He.ContextProvider=u,He.Element=t,He.ForwardRef=m,He.Fragment=r,He.Lazy=E,He.Memo=x,He.Portal=i,He.Profiler=c,He.StrictMode=o,He.Suspense=b,He.isAsyncMode=function(P){return M(P)||N(P)===g},He.isConcurrentMode=M,He.isContextConsumer=function(P){return N(P)===f},He.isContextProvider=function(P){return N(P)===u},He.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},He.isForwardRef=function(P){return N(P)===m},He.isFragment=function(P){return N(P)===r},He.isLazy=function(P){return N(P)===E},He.isMemo=function(P){return N(P)===x},He.isPortal=function(P){return N(P)===i},He.isProfiler=function(P){return N(P)===c},He.isStrictMode=function(P){return N(P)===o},He.isSuspense=function(P){return N(P)===b},He.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===p||P===c||P===o||P===b||P===y||typeof P=="object"&&P!==null&&(P.$$typeof===E||P.$$typeof===x||P.$$typeof===u||P.$$typeof===f||P.$$typeof===m||P.$$typeof===O||P.$$typeof===w||P.$$typeof===k||P.$$typeof===C)},He.typeOf=N,He}var Q0;function DN(){return Q0||(Q0=1,sg.exports=zN()),sg.exports}var cg,Z0;function MN(){if(Z0)return cg;Z0=1;var e=DN(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[e.ForwardRef]=r,c[e.Memo]=o;function u(E){return e.isMemo(E)?o:c[E.$$typeof]||t}var f=Object.defineProperty,g=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,y=Object.prototype;function x(E,C,O){if(typeof C!="string"){if(y){var w=b(C);w&&w!==y&&x(E,w,O)}var k=g(C);p&&(k=k.concat(p(C)));for(var N=u(E),M=u(C),P=0;P<k.length;++P){var j=k[P];if(!i[j]&&!(O&&O[j])&&!(M&&M[j])&&!(N&&N[j])){var F=m(C,j);try{f(E,j,F)}catch{}}}}return E}return cg=x,cg}MN();var LN=!0;function TC(e,t,i){var r="";return i.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Pp=function(t,i,r){var o=t.key+"-"+i.name;(r===!1||LN===!1)&&t.registered[o]===void 0&&(t.registered[o]=i.styles)},Vp=function(t,i,r){Pp(t,i,r);var o=t.key+"-"+i.name;if(t.inserted[i.name]===void 0){var c=i;do t.insert(i===c?"."+o:"",c,t.sheet,!0),c=c.next;while(c!==void 0)}};function BN(e){for(var t=0,i,r=0,o=e.length;o>=4;++r,o-=4)i=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,t=(i&65535)*1540483477+((i>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var HN={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},FN=/[A-Z]|^ms/g,$N=/_EMO_([^_]+?)_([^]*?)_EMO_/g,OC=function(t){return t.charCodeAt(1)===45},J0=function(t){return t!=null&&typeof t!="boolean"},ug=mC(function(e){return OC(e)?e:e.replace(FN,"-$&").toLowerCase()}),ex=function(t,i){switch(t){case"animation":case"animationName":if(typeof i=="string")return i.replace($N,function(r,o,c){return Jn={name:o,styles:c,next:Jn},o})}return HN[t]!==1&&!OC(t)&&typeof i=="number"&&i!==0?i+"px":i};function bs(e,t,i){if(i==null)return"";var r=i;if(r.__emotion_styles!==void 0)return r;switch(typeof i){case"boolean":return"";case"object":{var o=i;if(o.anim===1)return Jn={name:o.name,styles:o.styles,next:Jn},o.name;var c=i;if(c.styles!==void 0){var u=c.next;if(u!==void 0)for(;u!==void 0;)Jn={name:u.name,styles:u.styles,next:Jn},u=u.next;var f=c.styles+";";return f}return UN(e,t,i)}case"function":{if(e!==void 0){var g=Jn,p=i(e);return Jn=g,bs(e,t,p)}break}}var m=i;if(t==null)return m;var b=t[m];return b!==void 0?b:m}function UN(e,t,i){var r="";if(Array.isArray(i))for(var o=0;o<i.length;o++)r+=bs(e,t,i[o])+";";else for(var c in i){var u=i[c];if(typeof u!="object"){var f=u;t!=null&&t[f]!==void 0?r+=c+"{"+t[f]+"}":J0(f)&&(r+=ug(c)+":"+ex(c,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var g=0;g<u.length;g++)J0(u[g])&&(r+=ug(c)+":"+ex(c,u[g])+";");else{var p=bs(e,t,u);switch(c){case"animation":case"animationName":{r+=ug(c)+":"+p+";";break}default:r+=c+"{"+p+"}"}}}return r}var tx=/label:\s*([^\s;{]+)\s*(;|$)/g,Jn;function _p(e,t,i){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Jn=void 0;var c=e[0];if(c==null||c.raw===void 0)r=!1,o+=bs(i,t,c);else{var u=c;o+=u[0]}for(var f=1;f<e.length;f++)if(o+=bs(i,t,e[f]),r){var g=c;o+=g[f]}tx.lastIndex=0;for(var p="",m;(m=tx.exec(o))!==null;)p+="-"+m[1];var b=BN(o)+p;return{name:b,styles:o,next:Jn}}var jN=function(t){return t()},wC=H0.useInsertionEffect?H0.useInsertionEffect:!1,RC=wC||jN,nx=wC||T.useLayoutEffect,kC=T.createContext(typeof HTMLElement<"u"?_N({key:"css"}):null);kC.Provider;var zp=function(t){return T.forwardRef(function(i,r){var o=T.useContext(kC);return t(i,o,r)})},Dp=T.createContext({}),Mp={}.hasOwnProperty,Bg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",GN=function(t,i){var r={};for(var o in i)Mp.call(i,o)&&(r[o]=i[o]);return r[Bg]=t,r},WN=function(t){var i=t.cache,r=t.serialized,o=t.isStringTag;return Pp(i,r,o),RC(function(){return Vp(i,r,o)}),null},qN=zp(function(e,t,i){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Bg],c=[r],u="";typeof e.className=="string"?u=TC(t.registered,c,e.className):e.className!=null&&(u=e.className+" ");var f=_p(c,void 0,T.useContext(Dp));u+=t.key+"-"+f.name;var g={};for(var p in e)Mp.call(e,p)&&p!=="css"&&p!==Bg&&(g[p]=e[p]);return g.className=u,i&&(g.ref=i),T.createElement(T.Fragment,null,T.createElement(WN,{cache:t,serialized:f,isStringTag:typeof o=="string"}),T.createElement(o,g))}),YN=qN,ix=function(t,i){var r=arguments;if(i==null||!Mp.call(i,"css"))return T.createElement.apply(void 0,r);var o=r.length,c=new Array(o);c[0]=YN,c[1]=GN(t,i);for(var u=2;u<o;u++)c[u]=r[u];return T.createElement.apply(null,c)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ix||(ix={}));var ax=zp(function(e,t){var i=e.styles,r=_p([i],void 0,T.useContext(Dp)),o=T.useRef();return nx(function(){var c=t.key+"-global",u=new t.sheet.constructor({key:c,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,g=document.querySelector('style[data-emotion="'+c+" "+r.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),g!==null&&(f=!0,g.setAttribute("data-emotion",c),u.hydrate([g])),o.current=[u,f],function(){u.flush()}},[t]),nx(function(){var c=o.current,u=c[0],f=c[1];if(f){c[1]=!1;return}if(r.next!==void 0&&Vp(t,r.next,!0),u.tags.length){var g=u.tags[u.tags.length-1].nextElementSibling;u.before=g,u.flush()}t.insert("",r,u,!1)},[t,r.name]),null});function KN(...e){return function(...i){e.forEach(r=>r?.(...i))}}const XN=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),QN=/^on[A-Z]/;function ys(...e){let t={};for(let i of e){for(let r in t){if(QN.test(r)&&typeof t[r]=="function"&&typeof i[r]=="function"){t[r]=KN(t[r],i[r]);continue}if(r==="className"||r==="class"){t[r]=XN(t[r],i[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},i[r]??{});continue}t[r]=i[r]!==void 0?i[r]:t[r]}for(let r in i)t[r]===void 0&&(t[r]=i[r])}return t}const ZN=parseInt(T.version.split(".")[0],10),JN=ZN>=19;function dg(e,t){if(e!=null){if(typeof e=="function")return e(t);try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function e2(...e){const t=e.filter(i=>i!=null);if(JN){const i=new Map;return r=>(t.forEach(o=>{const c=dg(o,r);c&&i.set(o,c)}),()=>{t.forEach(o=>{const c=i.get(o);c&&typeof c=="function"?c():dg(o,null)}),i.clear()})}else return i=>{t.forEach(r=>{dg(r,i)})}}function Is(e){const t=Object.assign({},e);for(let i in t)t[i]===void 0&&delete t[i];return t}const Ln=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function t2(e){return e.default||e}const Kt=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),ii=e=>typeof e=="string",Lp=e=>typeof e=="function";function n2(e){const t=T.version;return!ii(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const Bp=(...e)=>{const t=e.reduce((i,r)=>(r?.forEach(o=>i.add(o)),i),new Set([]));return Array.from(t)};function i2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ko(e={}){const{name:t,strict:i=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:c,defaultValue:u}=e,f=T.createContext(u);f.displayName=t;function g(){const p=T.useContext(f);if(!p&&i){const m=new Error(c??i2(r,o));throw m.name="ContextError",Error.captureStackTrace?.(m,g),m}return p}return[f.Provider,g,f]}const[a2,As]=ko({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function JH(e){const{value:t,children:i}=e;return z.jsxs(a2,{value:t,children:[!t._config.disableLayers&&z.jsx(ax,{styles:t.layers.atRule}),z.jsx(ax,{styles:t._global}),i]})}const r2=(e,t)=>{const i={},r={},o=Object.keys(e);for(const c of o)t(c)?r[c]=e[c]:i[c]=e[c];return[r,i]},No=(e,t)=>{const i=Lp(t)?t:r=>t.includes(r);return r2(e,i)},o2=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function l2(e){return typeof e=="string"&&o2.has(e)}function s2(e,t,i){const{css:r,isValidProperty:o}=As(),{children:c,...u}=e,f=T.useMemo(()=>{const[y,x]=No(u,k=>i(k,t.variantKeys)),[E,C]=No(x,t.variantKeys),[O,w]=No(C,o);return{forwardedProps:y,variantProps:E,styleProps:O,elementProps:w}},[t.variantKeys,i,u,o]),{css:g,...p}=f.styleProps,m=T.useMemo(()=>{const y={...f.variantProps},x=t.variantKeys.includes("colorPalette"),E=t.variantKeys.includes("orientation");return x||(y.colorPalette=u.colorPalette),E||(y.orientation=u.orientation),t(y)},[t,f.variantProps,u.colorPalette,u.orientation]);return{styles:T.useMemo(()=>r(m,...c2(g),p),[r,m,g,p]),props:{...f.forwardedProps,...f.elementProps,children:c}}}const c2=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),u2=t2(rN),d2=u2,f2=e=>e!=="theme",h2=(e,t,i)=>{let r;if(t){const o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?c=>e.__emotion_forwardProp(c)&&o(c):o}return typeof r!="function"&&i&&(r=e.__emotion_forwardProp),r};let g2=typeof document<"u";const rx=({cache:e,serialized:t,isStringTag:i})=>{Pp(e,t,i);const r=RC(()=>Vp(e,t,i));if(!g2&&r!==void 0){let o=t.name,c=t.next;for(;c!==void 0;)o=Ln(o,c.name),c=c.next;return z.jsx("style",{"data-emotion":Ln(e.key,o),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},ox={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},p2=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m2=(e,t={},i={})=>{if(p2(ox,e)){i.forwardProps||(i.forwardProps=[]);const p=ox[e];i.forwardProps=Bp([...i.forwardProps,...p])}const r=e.__emotion_real===e,o=r&&e.__emotion_base||e;let c,u;i!==void 0&&(c=i.label,u=i.target);let f=[];const g=zp((p,m,b)=>{const{cva:y,isValidProperty:x}=As(),E=t.__cva__?t:y(t),C=b2(e.__emotion_cva,E),O=he=>(B,ee)=>he.includes(B)?!0:!ee?.includes(B)&&!x(B);!i.shouldForwardProp&&i.forwardProps&&(i.shouldForwardProp=O(i.forwardProps));const w=(he,B)=>{const ee=typeof e=="string"&&e.charCodeAt(0)>96?d2:f2,oe=!B?.includes(he)&&!x(he);return ee(he)&&oe},k=h2(e,i,r)||w,N=T.useMemo(()=>Object.assign({},i.defaultProps,Is(p)),[p]),{props:M,styles:P}=s2(N,C,k);let j="",F=[P],Y=M;if(M.theme==null){Y={};for(let he in M)Y[he]=M[he];Y.theme=T.useContext(Dp)}typeof M.className=="string"?j=TC(m.registered,F,M.className):M.className!=null&&(j=Ln(j,M.className));const _=_p(f.concat(F),m.registered,Y);_.styles&&(j=Ln(j,`${m.key}-${_.name}`)),u!==void 0&&(j=Ln(j,u));const $=!k("as");let G=$&&M.as||o,Z={};for(let he in M)if(!($&&he==="as")){if(l2(he)){const B=he.replace("html","").toLowerCase();Z[B]=M[he];continue}k(he)&&(Z[he]=M[he])}let ce=j.trim();ce?Z.className=ce:Reflect.deleteProperty(Z,"className"),Z.ref=b;const fe=i.forwardAsChild||i.forwardProps?.includes("asChild");if(M.asChild&&!fe){const he=T.isValidElement(M.children)?T.Children.only(M.children):T.Children.toArray(M.children).find(T.isValidElement);if(!he)throw new Error("[chakra-ui > factory] No valid child found");G=he.type,Z.children=null,Reflect.deleteProperty(Z,"asChild"),Z=ys(Z,he.props),Z.ref=e2(b,n2(he))}return Z.as&&fe?(Z.as=void 0,z.jsxs(T.Fragment,{children:[z.jsx(rx,{cache:m,serialized:_,isStringTag:typeof G=="string"}),z.jsx(G,{asChild:!0,...Z,children:z.jsx(M.as,{children:Z.children})})]})):z.jsxs(T.Fragment,{children:[z.jsx(rx,{cache:m,serialized:_,isStringTag:typeof G=="string"}),z.jsx(G,{...Z})]})});return g.displayName=c!==void 0?c:`chakra(${typeof o=="string"?o:o.displayName||o.name||"Component"})`,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_forwardProp=i.shouldForwardProp,g.__emotion_cva=t,Object.defineProperty(g,"toString",{value(){return`.${u}`}}),g},fg=m2.bind(),hg=new Map,v2=new Proxy(fg,{apply(e,t,i){return fg(...i)},get(e,t){return hg.has(t)||hg.set(t,fg(t)),hg.get(t)}}),nt=v2,b2=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),y2=nt("div");y2.displayName="Box";const NC=Object.freeze({}),x2=Object.freeze({});function IC(e){const{key:t,recipe:i}=e,r=As();return T.useMemo(()=>{const o=i||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(o))},[t,i,r])}const S2=e=>e.charAt(0).toUpperCase()+e.slice(1);function Fi(e){const{key:t,recipe:i}=e,r=S2(t||i.className||"Component"),[o,c]=ko({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function u(p){const{unstyled:m,...b}=p,y=IC({key:t,recipe:b.recipe||i}),[x,E]=T.useMemo(()=>y.splitVariantProps(b),[y,b]);return{styles:m?NC:y(x),className:y.className,props:E}}const f=(p,m)=>{const b=nt(p,{},m),y=T.forwardRef((x,E)=>{const C=c(),O=T.useMemo(()=>ys(C,x),[x,C]),{styles:w,className:k,props:N}=u(O);return z.jsx(b,{...N,ref:E,css:[w,O.css],className:Ln(k,O.className)})});return y.displayName=p.displayName||p.name,y};function g(){return o}return{withContext:f,PropsProvider:o,withPropsProvider:g,usePropsContext:c,useRecipeResult:u}}const AC=T.forwardRef(function(t,i){const{templateAreas:r,column:o,row:c,autoFlow:u,autoRows:f,templateRows:g,autoColumns:p,templateColumns:m,inline:b,...y}=t;return z.jsx(nt.div,{...y,ref:i,css:[{display:b?"inline-grid":"grid",gridTemplateAreas:r,gridAutoColumns:p,gridColumn:o,gridRow:c,gridAutoFlow:u,gridAutoRows:f,gridTemplateRows:g,gridTemplateColumns:m},t.css]})});AC.displayName="Grid";function _u(e){return e==null?[]:Array.isArray(e)?e:[e]}var Io=e=>e[0],pd=e=>e[e.length-1],C2=(e,t)=>e.indexOf(t)!==-1,sr=(e,...t)=>e.concat(t),gr=(e,...t)=>e.filter(i=>!t.includes(i)),lx=(e,t)=>e.filter((i,r)=>r!==t),xa=e=>Array.from(new Set(e)),gg=(e,t)=>{const i=new Set(t);return e.filter(r=>!i.has(r))},_o=(e,t)=>C2(e,t)?gr(e,t):sr(e,t);function PC(e,t,i={}){const{step:r=1,loop:o=!0}=i,c=t+r,u=e.length,f=u-1;return t===-1?r>0?0:f:c<0?o?f:0:c>=u?o?0:t>u?u:t:c}function E2(e,t,i={}){return e[PC(e,t,i)]}function T2(e,t,i={}){const{step:r=1,loop:o=!0}=i;return PC(e,t,{step:-r,loop:o})}function O2(e,t,i={}){return e[T2(e,t,i)]}function sx(e,t){return e.reduce(([i,r],o)=>(t(o)?i.push(o):r.push(o),[i,r]),[[],[]])}var cx=e=>e?.constructor.name==="Array",w2=(e,t)=>{if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!Zt(e[i],t[i]))return!1;return!0},Zt=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(cx(e)&&cx(t))return w2(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const i=Object.keys(t??Object.create(null)),r=i.length;for(let o=0;o<r;o++)if(!Reflect.has(e,i[o]))return!1;for(let o=0;o<r;o++){const c=i[o];if(!Zt(e[c],t[c]))return!1}return!0},ss=e=>Array.isArray(e),R2=e=>e===!0||e===!1,VC=e=>e!=null&&typeof e=="object",cr=e=>VC(e)&&!ss(e),zu=e=>typeof e=="string",ur=e=>typeof e=="function",k2=e=>e==null,Sa=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),N2=e=>Object.prototype.toString.call(e),_C=Function.prototype.toString,I2=_C.call(Object),A2=e=>{if(!VC(e)||N2(e)!="[object Object]"||_2(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const i=Sa(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&_C.call(i)==I2},P2=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,V2=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,_2=e=>P2(e)||V2(e),z2=e=>e(),D2=()=>{},Xu=(...e)=>(...t)=>{e.forEach(function(i){i?.(...t)})};function Vi(e,t,...i){if(e in t){const o=t[e];return ur(o)?o(...i):o}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,Vi),r}var zC=(e,t)=>{try{return e()}catch(i){return i instanceof Error&&Error.captureStackTrace?.(i,zC),t?.()}},{floor:DC,abs:ux,round:md,min:M2,max:L2,pow:B2,sign:H2}=Math,Hg=e=>Number.isNaN(e),ka=e=>Hg(e)?0:e,MC=(e,t)=>(e%t+t)%t,F2=(e,t)=>(e%t+t)%t,$2=(e,t)=>ka(e)>=t,U2=(e,t)=>ka(e)<=t,j2=(e,t,i)=>{const r=ka(e),o=t==null||r>=t,c=i==null||r<=i;return o&&c},G2=(e,t,i)=>md((ka(e)-t)/i)*i+t,Xt=(e,t,i)=>M2(L2(ka(e),t),i),W2=(e,t,i)=>(ka(e)-t)/(i-t),q2=(e,t,i,r)=>Xt(G2(e*(i-t)+t,t,r),t,i),dx=(e,t)=>{let i=e,r=t.toString(),o=r.indexOf("."),c=o>=0?r.length-o:0;if(c>0){let u=B2(10,c);i=md(i*u)/u}return i},pg=(e,t)=>typeof t=="number"?DC(e*t+.5)/t:md(e),fx=(e,t,i,r)=>{const o=t!=null?Number(t):0,c=Number(i),u=(e-o)%r;let f=ux(u)*2>=r?e+H2(u)*(r-ux(u)):e-u;if(f=dx(f,r),!Hg(o)&&f<o)f=o;else if(!Hg(c)&&f>c){const g=DC((c-o)/r),p=o+g*r;f=g<=0||p<o?c:p}return dx(f,r)},Qe=(e,t=0,i=10)=>{const r=Math.pow(i,t);return md(e*r)/r},hx=e=>{if(!Number.isFinite(e))return 0;let t=1,i=0;for(;Math.round(e*t)/t!==e;)t*=10,i+=1;return i},LC=(e,t,i)=>{let r=t==="+"?e+i:e-i;if(e%1!==0||i%1!==0){const o=10**Math.max(hx(e),hx(i));e=Math.round(e*o),i=Math.round(i*o),r=t==="+"?e+i:e-i,r/=o}return r},Y2=(e,t)=>LC(ka(e),"+",t),K2=(e,t)=>LC(ka(e),"-",t),ma=e=>typeof e=="number"?`${e}px`:e;function Hp(e){if(!A2(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),i={};for(const r of t){const o=e[r];o!==void 0&&(i[r]=Hp(o))}return i}function X2(e,t=Object.is){let i={...e};const r=new Set,o=m=>(r.add(m),()=>r.delete(m)),c=()=>{r.forEach(m=>m())};return{subscribe:o,get:m=>i[m],set:(m,b)=>{t(i[m],b)||(i[m]=b,c())},update:m=>{let b=!1;for(const y in m){const x=m[y];x!==void 0&&!t(i[y],x)&&(i[y]=x,b=!0)}b&&c()},snapshot:()=>({...i})}}function xs(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function Fp(e,t){if(e==null)throw new Error(t())}function Q2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function zt(e={}){const{name:t,strict:i=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:c,defaultValue:u}=e,f=T.createContext(u);f.displayName=t;function g(){const p=T.useContext(f);if(!p&&i){const m=new Error(c??Q2(r,o));throw m.name="ContextError",Error.captureStackTrace?.(m,g),m}return p}return[f.Provider,g,f]}const[eF,Na]=zt({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var Z2=Object.defineProperty,J2=(e,t,i)=>t in e?Z2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,mg=(e,t,i)=>J2(e,typeof t!="symbol"?t+"":t,i);function eI(e){if(!e)return!1;try{return e.selectionStart===0&&e.selectionEnd===0}catch{return e.value===""}}function tI(e){if(!e)return;const t=e.selectionStart??0,i=e.selectionEnd??0;Math.abs(i-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var gx=e=>Math.max(0,Math.min(1,e)),nI=(e,t)=>e.map((i,r)=>e[(Math.max(t,0)+r)%e.length]),vg=(...e)=>t=>e.reduce((i,r)=>r(i),t),Eo=()=>{},vd=e=>typeof e=="object"&&e!==null,iI=2147483647,me=e=>e?"":void 0,BC=e=>e?"true":void 0,aI=1,rI=9,oI=11,xt=e=>vd(e)&&e.nodeType===aI&&typeof e.nodeName=="string",bd=e=>vd(e)&&e.nodeType===rI,lI=e=>vd(e)&&e===e.window,HC=e=>xt(e)?e.localName||"":"#document";function sI(e){return["html","body","#document"].includes(HC(e))}var cI=e=>vd(e)&&e.nodeType!==void 0,zo=e=>cI(e)&&e.nodeType===oI&&"host"in e,uI=e=>xt(e)&&e.localName==="input",FC=e=>!!e?.matches("a[href]"),dI=e=>xt(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Ca(e){if(!e)return!1;const t=e.getRootNode();return Ao(t)===e}var fI=/(textarea|select)/;function $p(e){if(e==null||!xt(e))return!1;try{return uI(e)&&e.selectionStart!=null||fI.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Bn(e,t){if(!e||!t||!xt(e)||!xt(t))return!1;const i=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(i&&zo(i)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function en(e){return bd(e)?e:lI(e)?e.document:e?.ownerDocument??document}function hI(e){return en(e).documentElement}function ot(e){return zo(e)?ot(e.host):bd(e)?e.defaultView??window:xt(e)?e.ownerDocument?.defaultView??window:window}function Ao(e){let t=e.activeElement;for(;t?.shadowRoot;){const i=t.shadowRoot.activeElement;if(!i||i===t)break;t=i}return t}function gI(e){if(HC(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zo(e)&&e.host||hI(e);return zo(t)?t.host:t}function Up(e){let t;try{if(t=e.getRootNode({composed:!0}),bd(t)||zo(t))return t}catch{}return e.ownerDocument??document}var bg=new WeakMap;function Ta(e){return bg.has(e)||bg.set(e,ot(e).getComputedStyle(e)),bg.get(e)}var jp=new Set(["menu","listbox","dialog","grid","tree","region"]),pI=e=>jp.has(e),$C=e=>e.getAttribute("aria-controls")?.split(" ")||[];function UC(e,t){const i=new Set,r=Up(e),o=c=>{const u=c.querySelectorAll("[aria-controls]");for(const f of u){if(f.getAttribute("aria-expanded")!=="true")continue;const g=$C(f);for(const p of g){if(!p||i.has(p))continue;i.add(p);const m=r.getElementById(p);if(m){const b=m.getAttribute("role"),y=m.getAttribute("aria-modal")==="true";if(b&&pI(b)&&!y&&(m===t||m.contains(t)||o(m)))return!0}}}return!1};return o(e)}function jC(e,t){const i=Up(e),r=new Set,o=c=>{const u=c.querySelectorAll("[aria-controls]");for(const f of u){if(f.getAttribute("aria-expanded")!=="true")continue;const g=$C(f);for(const p of g){if(!p||r.has(p))continue;r.add(p);const m=i.getElementById(p);if(m){const b=m.getAttribute("role"),y=m.getAttribute("aria-modal")==="true";b&&jp.has(b)&&!y&&(t(m),o(m))}}}};o(e)}function mI(e){const t=new Set;return jC(e,i=>{e.contains(i)||t.add(i)}),Array.from(t)}function vI(e){const t=e.getAttribute("role");return!!(t&&jp.has(t))}function bI(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function yI(e){return bI(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function xI(e){if(!e.id)return!1;const t=Up(e),i=CSS.escape(e.id),r=`[aria-controls~="${i}"][aria-expanded="true"], [aria-controls="${i}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&vI(e))}var yd=()=>typeof document<"u";function SI(){return navigator.userAgentData?.platform??navigator.platform}function CI(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:i})=>`${t}/${i}`).join(" "):navigator.userAgent}var Gp=e=>yd()&&e.test(SI()),GC=e=>yd()&&e.test(CI()),EI=e=>yd()&&e.test(navigator.vendor),px=()=>yd()&&!!navigator.maxTouchPoints,TI=()=>Gp(/^iPhone/i),OI=()=>Gp(/^iPad/i)||Ps()&&navigator.maxTouchPoints>1,xd=()=>TI()||OI(),wI=()=>Ps()||xd(),Ps=()=>Gp(/^Mac/i),Vs=()=>wI()&&EI(/apple/i),RI=()=>GC(/Firefox/i),kI=()=>GC(/Android/i);function NI(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function ct(e){return NI(e)?.[0]??e.target}function II(e){const t=e.currentTarget;if(!t||!t.matches("a[href], button[type='submit'], input[type='submit']"))return!1;const r=e.button===1,o=AI(e);return r||o}function WC(e){return DI(e).isComposing||e.keyCode===229}function AI(e){return Ps()?e.metaKey:e.ctrlKey}function PI(e){return e.pointerType===""&&e.isTrusted?!0:kI()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var qC=e=>e.button===0,VI=e=>e.button===2||Ps()&&e.ctrlKey&&e.button===0,_I=e=>"touches"in e&&e.touches.length>0,zI={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},mx={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function Fg(e,t={}){const{dir:i="ltr",orientation:r="horizontal"}=t;let o=e.key;return o=zI[o]??o,i==="rtl"&&r==="horizontal"&&o in mx&&(o=mx[o]),o}function DI(e){return e.nativeEvent??e}function $g(e,t="client"){const i=_I(e)?e.touches[0]||e.changedTouches[0]:e;return{x:i[`${t}X`],y:i[`${t}Y`]}}var Be=(e,t,i,r)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,i,r),()=>{o?.removeEventListener(t,i,r)}};function YC(e,t){const{type:i="HTMLInputElement",property:r="value"}=t,o=ot(e)[i].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function MI(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function mr(e,t,i="value"){if(!e)return;const r=MI(e);r&&YC(e,{type:r,property:i}).set?.call(e,t),e.setAttribute(i,t)}function Wp(e,t){if(!e)return;YC(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function KC(e,t){const{value:i,bubbles:r=!0}=t;if(!e)return;const o=ot(e);e instanceof o.HTMLInputElement&&(mr(e,`${i}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function XC(e,t){const{checked:i,bubbles:r=!0}=t;if(!e)return;const o=ot(e);e instanceof o.HTMLInputElement&&(Wp(e,i),e.dispatchEvent(new o.Event("click",{bubbles:r})))}function LI(e){return BI(e)?e.form:e.closest("form")}function BI(e){return e.matches("textarea, input, select, button")}function HI(e,t){if(!e)return;const i=LI(e),r=o=>{o.defaultPrevented||t()};return i?.addEventListener("reset",r,{passive:!0}),()=>i?.removeEventListener("reset",r)}function FI(e,t){const i=e?.closest("fieldset");if(!i)return;t(i.disabled);const r=ot(i),o=new r.MutationObserver(()=>t(i.disabled));return o.observe(i,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Lo(e,t){if(!e)return;const{onFieldsetDisabledChange:i,onFormReset:r}=t,o=[HI(e,r),FI(e,i)];return()=>o.forEach(c=>c?.())}var QC=e=>xt(e)&&e.tagName==="IFRAME",$I=/^(audio|video|details)$/;function ZC(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var UI=e=>!Number.isNaN(ZC(e)),jI=e=>ZC(e)<0;function GI(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const i=t(e);return(i===!0?e.shadowRoot:i)||null}function JC(e,t,i){const r=[...e],o=[...e],c=new Set,u=new Map;e.forEach((g,p)=>u.set(g,p));let f=0;for(;f<o.length;){const g=o[f++];if(!g||c.has(g))continue;c.add(g);const p=GI(g,t);if(p){const m=Array.from(p.querySelectorAll(Sd)).filter(i),b=u.get(g);if(b!==void 0){const y=b+1;r.splice(y,0,...m),m.forEach((x,E)=>{u.set(x,y+E)});for(let x=y+m.length;x<r.length;x++)u.set(r[x],x)}else{const y=r.length;r.push(...m),m.forEach((x,E)=>{u.set(x,y+E)})}o.push(...m)}}return r}var Sd="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",qp=(e,t={})=>{if(!e)return[];const{includeContainer:i=!1,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Sd));(i==!0||i=="if-empty"&&o.length===0)&&xt(e)&&Di(e)&&o.unshift(e);const u=[];for(const f of o)if(Di(f)){if(QC(f)&&f.contentDocument){const g=f.contentDocument.body;u.push(...qp(g,{getShadowRoot:r}));continue}u.push(f)}return r?JC(u,r,Di):u};function Di(e){return!xt(e)||e.closest("[inert]")?!1:e.matches(Sd)&&dI(e)}function Bo(e,t={}){if(!e)return[];const{includeContainer:i,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Sd));i&&dr(e)&&o.unshift(e);const c=[];for(const u of o)if(dr(u)){if(QC(u)&&u.contentDocument){const f=u.contentDocument.body;c.push(...Bo(f,{getShadowRoot:r}));continue}c.push(u)}if(r){const u=JC(c,r,dr);return!u.length&&i?o:u}return!c.length&&i?o:c}function dr(e){return xt(e)&&e.tabIndex>0?!0:Di(e)&&!jI(e)}function eE(e,t={}){const i=Bo(e,t),r=i[0]||null,o=i[i.length-1]||null;return[r,o]}function WI(e,t={}){const{current:i,getShadowRoot:r}=t,o=Bo(e,{getShadowRoot:r}),c=e?.ownerDocument||document,u=i??Ao(c);if(!u)return null;const f=o.indexOf(u);return o[f+1]||null}function Wl(e){return e.tabIndex<0&&($I.test(e.localName)||$p(e))&&!UI(e)?0:e.tabIndex}function Ss(e){const{root:t,getInitialEl:i,filter:r,enabled:o=!0}=e;if(!o)return;let c=null;if(c||(c=typeof i=="function"?i():i),c||(c=t?.querySelector("[data-autofocus],[autofocus]")),!c){const u=Bo(t);c=r?u.filter(r)[0]:u[0]}return c||t||void 0}function qI(e){const t=e.currentTarget;if(!t)return!1;const[i,r]=eE(t);return!(Ca(i)&&e.shiftKey||Ca(r)&&!e.shiftKey||!i&&!r)}var YI=class tE{constructor(){mg(this,"id",null),mg(this,"fn_cleanup"),mg(this,"cleanup",()=>{this.cancel()})}static create(){return new tE}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function ge(e){const t=YI.create();return t.request(e),t.cleanup}function _s(e){const t=new Set;function i(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return i(()=>i(e)),function(){t.forEach(o=>o())}}function KI(e,t,i){const r=ge(()=>{e.removeEventListener(t,o,!0),i()}),o=()=>{r(),i()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function XI(e,t){if(!e)return;const{attributes:i,callback:r}=t,o=e.ownerDocument.defaultView||window,c=new o.MutationObserver(u=>{for(const f of u)f.type==="attributes"&&f.attributeName&&i.includes(f.attributeName)&&r(f)});return c.observe(e,{attributes:!0,attributeFilter:i}),()=>c.disconnect()}function zs(e,t){const{defer:i}=t,r=i?ge:c=>c(),o=[];return o.push(r(()=>{const c=typeof e=="function"?e():e;o.push(XI(c,t))})),()=>{o.forEach(c=>c?.())}}function QI(e,t){const{callback:i}=t;if(!e)return;const r=e.ownerDocument.defaultView||window,o=new r.MutationObserver(i);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()}function ZI(e,t){const{defer:i}=t,r=i?ge:c=>c(),o=[];return o.push(r(()=>{const c=typeof e=="function"?e():e;o.push(QI(c,t))})),()=>{o.forEach(c=>c?.())}}function Yp(e){const t=()=>{const i=ot(e);e.dispatchEvent(new i.MouseEvent("click"))};RI()?KI(e,"keyup",t):queueMicrotask(t)}function Qu(e){const t=gI(e);return sI(t)?en(t).body:xt(t)&&Kp(t)?t:Qu(t)}function nE(e,t=[]){const i=Qu(e),r=i===e.ownerDocument.body,o=ot(i);return r?t.concat(o,o.visualViewport||[],Kp(i)?i:[]):t.concat(i,nE(i,[]))}var JI=/auto|scroll|overlay|hidden|clip/,eA=new Set(["inline","contents"]);function Kp(e){const t=ot(e),{overflow:i,overflowX:r,overflowY:o,display:c}=t.getComputedStyle(e);return JI.test(i+o+r)&&!eA.has(c)}function tA(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Cs(e,t){const{rootEl:i,...r}=t||{};!e||!i||!Kp(i)||!tA(i)||e.scrollIntoView(r)}function iE(e,t){const{left:i,top:r,width:o,height:c}=t.getBoundingClientRect(),u={x:e.x-i,y:e.y-r},f={x:gx(u.x/o),y:gx(u.y/c)};function g(p={}){const{dir:m="ltr",orientation:b="horizontal",inverted:y}=p,x=typeof y=="object"?y.x:y,E=typeof y=="object"?y.y:y;return b==="horizontal"?m==="rtl"||x?1-f.x:f.x:E?1-f.y:f.y}return{offset:u,percent:f,getPercentValue:g}}function nA(e,t){const i=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function c(){}function u(g){o(),console.error("PointerLock error occurred:",g),e.exitPointerLock()}if(!r)return;try{i.requestPointerLock()}catch{}const f=[Be(e,"pointerlockchange",c,!1),Be(e,"pointerlockerror",u,!1)];return()=>{f.forEach(g=>g()),e.exitPointerLock()}}var To="default",Ug="",Du=new WeakMap;function iA(e={}){const{target:t,doc:i}=e,r=i??document,o=r.documentElement;return xd()?(To==="default"&&(Ug=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),To="disabled"):t&&(Du.set(t,t.style.userSelect),t.style.userSelect="none"),()=>aA({target:t,doc:r})}function aA(e={}){const{target:t,doc:i}=e,o=(i??document).documentElement;if(xd()){if(To!=="disabled")return;To="restoring",setTimeout(()=>{_s(()=>{To==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=Ug||""),Ug="",To="default")})},300)}else if(t&&Du.has(t)){const c=Du.get(t);t.style.userSelect==="none"&&(t.style.userSelect=c??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Du.delete(t)}}function aE(e={}){const{defer:t,target:i,...r}=e,o=t?ge:u=>u(),c=[];return c.push(o(()=>{const u=typeof i=="function"?i():i;c.push(iA({...r,target:u}))})),()=>{c.forEach(u=>u?.())}}function rA(e,t){const{onPointerMove:i,onPointerUp:r}=t,o=f=>{const g=$g(f),p=Math.sqrt(g.x**2+g.y**2),m=f.pointerType==="touch"?10:5;if(!(p<m)){if(f.pointerType==="mouse"&&f.button===0){c(f);return}i({point:g,event:f})}},c=f=>{const g=$g(f);r({point:g,event:f})},u=[Be(e,"pointermove",o,!1),Be(e,"pointerup",c,!1),Be(e,"pointercancel",c,!1),Be(e,"contextmenu",c,!1),aE({doc:e})];return()=>{u.forEach(f=>f())}}function rE(e){const{pointerNode:t,keyboardNode:i=t,onPress:r,onPressStart:o,onPressEnd:c,isValidKey:u=k=>k.key==="Enter"}=e;if(!t)return Eo;const f=ot(t);let g=Eo,p=Eo,m=Eo;const b=k=>({point:$g(k),event:k});function y(k){o?.(b(k))}function x(k){c?.(b(k))}const C=Be(t,"pointerdown",k=>{p();const M=Be(f,"pointerup",j=>{const F=ct(j);Bn(t,F)?r?.(b(j)):c?.(b(j))},{passive:!r,once:!0}),P=Be(f,"pointercancel",x,{passive:!c,once:!0});p=vg(M,P),Ca(i)&&k.pointerType==="mouse"&&k.preventDefault(),y(k)},{passive:!o}),O=Be(i,"focus",w);g=vg(C,O);function w(){const k=j=>{if(!u(j))return;const F=_=>{if(!u(_))return;const $=new f.PointerEvent("pointerup"),G=b($);r?.(G),c?.(G)};p(),p=Be(i,"keyup",F);const Y=new f.PointerEvent("pointerdown");y(Y)},N=()=>{const j=new f.PointerEvent("pointercancel");x(j)},M=Be(i,"keydown",k),P=Be(i,"blur",N);m=vg(M,P)}return()=>{g(),p(),m()}}function oA(e,t={}){const{triggerElement:i,onFocus:r,onFocusEnter:o,getShadowRoot:c}=t,u=e?.ownerDocument||document,f=u.body;function g(p){if(p.key!=="Tab")return;let m=null;const[b,y]=eE(e,{includeContainer:!0,getShadowRoot:c}),x=WI(f,{current:i,getShadowRoot:c}),E=!b&&!y;p.shiftKey&&Ca(x)?(o?.(),m=y):p.shiftKey&&(Ca(b)||E)?m=i:!p.shiftKey&&Ca(i)?(o?.(),m=b):!p.shiftKey&&(Ca(y)||E)&&(m=x),m&&(p.preventDefault(),typeof r=="function"?r(m):m.focus())}return Be(u,"keydown",g,!0)}function lA(e,t){const{defer:i,triggerElement:r,...o}=t,c=i?ge:f=>f(),u=[];return u.push(c(()=>{const f=typeof e=="function"?e():e,g=typeof r=="function"?r():r;u.push(oA(f,{triggerElement:g,...o}))})),()=>{u.forEach(f=>f?.())}}function vr(e,t){return Array.from(e?.querySelectorAll(t)??[])}function sA(e,t){return e?.querySelector(t)??null}var Xp=e=>e.id;function oE(e,t,i=Xp){return e.find(r=>i(r)===t)}function Cd(e,t,i=Xp){const r=oE(e,t,i);return r?e.indexOf(r):-1}function Qp(e,t,i=!0){let r=Cd(e,t);return r=i?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Zp(e,t,i=!0){let r=Cd(e,t);return r===-1?i?e[e.length-1]:null:(r=i?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}function cA(e,t){const{onEntry:i,measure:r,box:o="border-box"}=t,c=(Array.isArray(e)?e:[e]).filter(xt),u=ot(c[0]),f=p=>{const m=c.map(b=>r(b));i({rects:m,entries:p})};f([]);const g=new u.ResizeObserver(f);return c.forEach(p=>g.observe(p,{box:o})),()=>g.disconnect()}var uA=e=>e.split("").map(t=>{const i=t.charCodeAt(0);return i>0&&i<128?t:i>=128&&i<=255?`/x${i.toString(16)}`.replace("/","\\"):""}).join("").trim(),dA=e=>uA(e.dataset?.valuetext??e.textContent??""),fA=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function hA(e,t,i,r=Xp){const o=i?Cd(e,i,r):-1;let c=i?nI(e,o):e;return t.length===1&&(c=c.filter(f=>r(f)!==i)),c.find(f=>fA(dA(f),t))}function gA(e,t,i){const r=e.getAttribute(t),o=r!=null;return e.setAttribute(t,i),()=>{o?e.setAttribute(t,r):e.removeAttribute(t)}}function Es(e,t){if(!e)return Eo;const i=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,i),e.style.length===0&&e.removeAttribute("style")}}function pA(e,t,i){if(!e)return Eo;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,i),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function mA(e,t){const{state:i,activeId:r,key:o,timeout:c=350,itemToId:u}=t,f=i.keysSoFar+o,p=f.length>1&&Array.from(f).every(E=>E===f[0])?f[0]:f;let m=e.slice();const b=hA(m,p,r,u);function y(){clearTimeout(i.timer),i.timer=-1}function x(E){i.keysSoFar=E,y(),E!==""&&(i.timer=+setTimeout(()=>{x(""),y()},c))}return x(f),b}var Oa=Object.assign(mA,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:vA});function vA(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var Jp={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function bA(e,t,i){const{signal:r}=t;return[new Promise((u,f)=>{const g=setTimeout(()=>{f(new Error(`Timeout of ${i}ms exceeded`))},i);r.addEventListener("abort",()=>{clearTimeout(g),f(new Error("Promise aborted"))}),e.then(p=>{r.aborted||(clearTimeout(g),u(p))}).catch(p=>{r.aborted||(clearTimeout(g),f(p))})}),()=>t.abort()]}function yA(e,t){const{timeout:i,rootNode:r}=t,o=ot(r),c=en(r),u=new o.AbortController;return bA(new Promise(f=>{const g=e();if(g){f(g);return}const p=new o.MutationObserver(()=>{const m=e();m&&m.isConnected&&(p.disconnect(),f(m))});p.observe(c.body,{childList:!0,subtree:!0})}),u,i)}var xA=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),SA=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,vx=e=>{const t={};let i;for(;i=SA.exec(e);)t[i[1]]=i[2];return t},CA=(e,t)=>{if(zu(e)){if(zu(t))return`${e};${t}`;e=vx(e)}else zu(t)&&(t=vx(t));return Object.assign({},e??{},t??{})};function ae(...e){let t={};for(let i of e){if(!i)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof i[o]=="function"){t[o]=Xu(i[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=xA(t[o],i[o]);continue}if(o==="style"){t[o]=CA(t[o],i[o]);continue}t[o]=i[o]!==void 0?i[o]:t[o]}for(let o in i)t[o]===void 0&&(t[o]=i[o]);const r=Object.getOwnPropertySymbols(i);for(let o of r)t[o]=i[o]}return t}function bx(e,t,i){let r=[],o;return c=>{const u=e(c);return(u.length!==r.length||u.some((g,p)=>!Zt(r[p],g)))&&(r=u,o=t(u,c)),o}}function jn(){return{and:(...e)=>function(i){return e.every(r=>i.guard(r))},or:(...e)=>function(i){return e.some(r=>i.guard(r))},not:e=>function(i){return!i.guard(e)}}}function Ed(){return{guards:jn(),createMachine:e=>e,choose:e=>function({choose:i}){return i(e)?.actions}}}var yo=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(yo||{}),yg="__init__";function EA(e){const t=()=>e.getRootNode?.()??document,i=()=>en(t());return{...e,getRootNode:t,getDoc:i,getWin:()=>i().defaultView??window,getActiveElement:()=>Ao(t()),isActiveElement:Ca,getById:u=>t().getElementById(u)}}function Ia(...e){return t=>{const i=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&i.push(o)}else r&&(r.current=t);if(i.length)return()=>{for(const r of i)r()}}}function TA(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}const xg=e=>{const t=T.memo(T.forwardRef((i,r)=>{const{asChild:o,children:c,...u}=i;if(!o)return T.createElement(e,{...u,ref:r},c);if(!T.isValidElement(c))return null;const f=T.Children.only(c),g=TA(f);return T.cloneElement(f,{...ae(u,f.props),ref:r?Ia(r,g):g})}));return t.displayName=e.displayName||e.name,t},OA=()=>{const e=new Map;return new Proxy(xg,{apply(t,i,r){return xg(r[0])},get(t,i){const r=i;return e.has(r)||e.set(r,xg(r)),e.get(r)}})},se=OA(),[tF,Aa]=zt({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),{withContext:wA}=Fi({key:"heading"}),RA=wA("h2");RA.displayName="Heading";const Dt=()=>(e,t)=>t.reduce((i,r)=>{const[o,c]=i,u=r;return c[u]!==void 0&&(o[u]=c[u]),delete c[u],[o,c]},[{},{...e}]),Pa=e=>Dt()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function kA(e){return new Proxy({},{get(t,i){return i==="style"?r=>e({style:r}).style:e}})}var de=()=>e=>Array.from(new Set(e));function NA(e,t){const{state:i,send:r,context:o}=e,c=i.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:c,setNode(u){u&&r({type:"NODE.SET",node:u})},unmount(){r({type:"UNMOUNT"})}}}var IA={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:i}){e([()=>t("present")],()=>{i({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Ta(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:i,prop:r})=>{const o=r("present");if(o)return i({type:"MOUNT",src:"presence.changed"});const c=t.get("node");if(!o&&c?.ownerDocument.visibilityState==="hidden")return i({type:"UNMOUNT",src:"visibilitychange"});ge(()=>{const u=fu(t.get("styles"));e.set("unmountAnimationName",u),u==="none"||u===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?i({type:"UNMOUNT",src:"presence.changed"}):i({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{ge(()=>{e.set("prevAnimationName",fu(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:i,prop:r})=>{const o=t.get("node");if(!o)return;const c=g=>{(g.composedPath?.()?.[0]??g.target)===o&&e.set("prevAnimationName",fu(t.get("styles")))},u=g=>{const p=fu(t.get("styles"));ct(g)===o&&p===e.get("unmountAnimationName")&&!r("present")&&i({type:"UNMOUNT",src:"animationend"})};o.addEventListener("animationstart",c),o.addEventListener("animationcancel",u),o.addEventListener("animationend",u);const f=Es(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",c),o.removeEventListener("animationcancel",u),o.removeEventListener("animationend",u),_s(()=>f())}}}}};function fu(e){return e?.animationName||"none"}de()(["onExitComplete","present","immediate"]);var em=pC(),lE=typeof globalThis.document<"u"?T.useLayoutEffect:T.useEffect;function Zu(e){const t=e().value??e().defaultValue,i=e().isEqual??Object.is,[r]=T.useState(t),[o,c]=T.useState(r),u=e().value!==void 0,f=T.useRef(o);f.current=u?e().value:o;const g=T.useRef(f.current);lE(()=>{g.current=f.current},[o,e().value]);const p=b=>{const y=g.current,x=ur(b)?b(y):b;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:x,prev:y}),u||c(x),i(x,y)||e().onChange?.(x,y)};function m(){return u?e().value:o}return{initial:r,ref:f,get:m,set(b){(e().sync?em.flushSync:z2)(()=>p(b))},invoke(b,y){e().onChange?.(b,y)},hash(b){return e().hash?.(b)??String(b)}}}Zu.cleanup=e=>{T.useEffect(()=>e,[])};Zu.ref=e=>{const t=T.useRef(e);return{get:()=>t.current,set:i=>{t.current=i}}};function AA(e){const t=T.useRef(e);return{get(i){return t.current[i]},set(i,r){t.current[i]=r}}}var PA=(e,t)=>{const i=T.useRef(!1),r=T.useRef(!1);T.useEffect(()=>{if(i.current&&r.current)return t();r.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),T.useEffect(()=>(i.current=!0,()=>{i.current=!1}),[])};function $i(e,t={}){const i=T.useMemo(()=>{const{id:G,ids:Z,getRootNode:ce}=t;return EA({id:G,ids:Z,getRootNode:ce})},[t]),r=(...G)=>{e.debug&&console.log(...G)},o=e.props?.({props:Hp(t),scope:i})??t,c=VA(o),u=e.context?.({prop:c,bindable:Zu,scope:i,flush:yx,getContext(){return g},getComputed(){return P},getRefs(){return C},getEvent(){return x()}}),f=sE(u),g={get(G){return f.current?.[G].ref.current},set(G,Z){f.current?.[G].set(Z)},initial(G){return f.current?.[G].initial},hash(G){const Z=f.current?.[G].get();return f.current?.[G].hash(Z)}},p=T.useRef(new Map),m=T.useRef(null),b=T.useRef(null),y=T.useRef({type:""}),x=()=>({...y.current,current(){return y.current},previous(){return b.current}}),E=()=>({...j,matches(...G){return G.includes(j.ref.current)},hasTag(G){return!!e.states[j.ref.current]?.tags?.includes(G)}}),C=AA(e.refs?.({prop:c,context:g})??{}),O=()=>({state:E(),context:g,event:x(),prop:c,send:$,action:w,guard:k,track:PA,refs:C,computed:P,flush:yx,scope:i,choose:M}),w=G=>{const Z=ur(G)?G(O()):G;if(!Z)return;const ce=Z.map(fe=>{const he=e.implementations?.actions?.[fe];return he||xs(`[zag-js] No implementation found for action "${JSON.stringify(fe)}"`),he});for(const fe of ce)fe?.(O())},k=G=>ur(G)?G(O()):e.implementations?.guards?.[G](O()),N=G=>{const Z=ur(G)?G(O()):G;if(!Z)return;const ce=Z.map(he=>{const B=e.implementations?.effects?.[he];return B||xs(`[zag-js] No implementation found for effect "${JSON.stringify(he)}"`),B}),fe=[];for(const he of ce){const B=he?.(O());B&&fe.push(B)}return()=>fe.forEach(he=>he?.())},M=G=>_u(G).find(Z=>{let ce=!Z.guard;return zu(Z.guard)?ce=!!k(Z.guard):ur(Z.guard)&&(ce=Z.guard(O())),ce}),P=G=>{Fp(e.computed,()=>"[zag-js] No computed object found on machine");const Z=e.computed[G];return Z({context:g,event:x(),prop:c,refs:C,scope:i,computed:P})},j=Zu(()=>({defaultValue:e.initialState({prop:c}),onChange(G,Z){Z&&(p.current.get(Z)?.(),p.current.delete(Z)),Z&&w(e.states[Z]?.exit),w(m.current?.actions);const ce=N(e.states[G]?.effects);if(ce&&p.current.set(G,ce),Z===yg){w(e.entry);const fe=N(e.effects);fe&&p.current.set(yg,fe)}w(e.states[G]?.entry)}})),F=T.useRef(void 0),Y=T.useRef(yo.NotStarted);lE(()=>{queueMicrotask(()=>{const ce=Y.current===yo.Started;Y.current=yo.Started,r(ce?"rehydrating...":"initializing...");const fe=F.current??j.initial;j.invoke(fe,ce?j.get():yg)});const G=p.current,Z=j.ref.current;return()=>{r("unmounting..."),F.current=Z,Y.current=yo.Stopped,G.forEach(ce=>ce?.()),p.current=new Map,m.current=null,queueMicrotask(()=>{w(e.exit)})}},[]);const _=()=>"ref"in j?j.ref.current:j.get(),$=G=>{queueMicrotask(()=>{if(Y.current!==yo.Started)return;b.current=y.current,y.current=G;let Z=_();const ce=e.states[Z].on?.[G.type]??e.on?.[G.type],fe=M(ce);if(!fe)return;m.current=fe;const he=fe.target??Z;r("transition",G.type,fe.target||Z,`(${fe.actions})`);const B=he!==Z;B?em.flushSync(()=>j.set(he)):fe.reenter&&!B?j.invoke(Z,Z):w(fe.actions??[])})};return e.watch?.(O()),{state:E(),send:$,context:g,prop:c,scope:i,refs:C,computed:P,event:x(),getStatus:()=>Y.current}}function sE(e){const t=T.useRef(e);return t.current=e,t}function VA(e){const t=sE(e);return function(r){return t.current[r]}}function yx(e){queueMicrotask(()=>{em.flushSync(()=>e())})}var Va=kA(e=>e);function cE(e,t={}){const{sync:i=!1}=t,r=_A(e);return T.useCallback((...o)=>i?queueMicrotask(()=>r.current?.(...o)):r.current?.(...o),[i,r])}function _A(e){const t=T.useRef(e);return t.current=e,t}const oi=(e={})=>{const{lazyMount:t,unmountOnExit:i,present:r,skipAnimationOnMount:o=!1,...c}=e,u=T.useRef(!1),f={...c,present:r,onExitComplete:cE(e.onExitComplete)},g=$i(IA,f),p=NA(g);p.present&&(u.current=!0);const m=!p.present&&!u.current&&t||i&&!p.present&&u.current,b=()=>({"data-state":p.skip&&o?void 0:r?"open":"closed",hidden:!p.present});return{ref:p.setNode,getPresenceProps:b,present:p.present,unmounted:m}},[Ui,li]=zt({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),cs=nt("span");cs.displayName="Span";const{withContext:zA}=Fi({key:"text"}),DA=zA("p");DA.displayName="Text";const MA=e=>Dt()(e,["collapsedHeight","collapsedWidth","defaultOpen","disabled","id","ids","lazyMount","onExitComplete","onOpenChange","open","unmountOnExit"]);var ve=(e,t=[])=>({parts:(...i)=>{if(LA(t))return ve(e,i);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...i)=>ve(e,[...t,...i]),omit:(...i)=>ve(e,t.filter(r=>!i.includes(r))),rename:i=>ve(i,t),keys:()=>t,build:()=>[...new Set(t)].reduce((i,r)=>Object.assign(i,{[r]:{selector:[`&[data-scope="${fo(e)}"][data-part="${fo(r)}"]`,`& [data-scope="${fo(e)}"][data-part="${fo(r)}"]`].join(", "),attrs:{"data-scope":fo(e),"data-part":fo(r)}}}),{})}),fo=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),LA=e=>e.length===0,uE=ve("collapsible").parts("root","trigger","content","indicator"),hu=uE.build(),BA=e=>e.ids?.root??`collapsible:${e.id}`,jg=e=>e.ids?.content??`collapsible:${e.id}:content`,HA=e=>e.ids?.trigger??`collapsible:${e.id}:trigger`,ql=e=>e.getById(jg(e));function FA(e,t){const{state:i,send:r,context:o,scope:c,prop:u}=e,f=i.matches("open")||i.matches("closing"),g=i.matches("open"),p=i.matches("closed"),{width:m,height:b}=o.get("size"),y=!!u("disabled"),x=u("collapsedHeight"),E=u("collapsedWidth"),C=x!=null,O=E!=null,w=C||O,k=!o.get("initial")&&g;return{disabled:y,visible:f,open:g,measureSize(){r({type:"size.measure"})},setOpen(N){i.matches("open")!==N&&r({type:N?"open":"close"})},getRootProps(){return t.element({...hu.root.attrs,"data-state":g?"open":"closed",dir:u("dir"),id:BA(c)})},getContentProps(){return t.element({...hu.content.attrs,id:jg(c),"data-collapsible":"","data-state":k?void 0:g?"open":"closed","data-disabled":me(y),"data-has-collapsed-size":me(w),hidden:!f&&!w,dir:u("dir"),style:{"--height":ma(b),"--width":ma(m),"--collapsed-height":ma(x),"--collapsed-width":ma(E),...p&&C&&{overflow:"hidden",minHeight:ma(x),maxHeight:ma(x)},...p&&O&&{overflow:"hidden",minWidth:ma(E),maxWidth:ma(E)}}})},getTriggerProps(){return t.element({...hu.trigger.attrs,id:HA(c),dir:u("dir"),type:"button","data-state":g?"open":"closed","data-disabled":me(y),"aria-controls":jg(c),"aria-expanded":f||!1,onClick(N){N.defaultPrevented||y||r({type:g?"close":"open"})}})},getIndicatorProps(){return t.element({...hu.indicator.attrs,dir:u("dir"),"data-state":g?"open":"closed","data-disabled":me(y)})}}}var $A={initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{size:e(()=>({defaultValue:{height:0,width:0},sync:!0})),initial:e(()=>({defaultValue:!1}))}},refs(){return{cleanup:void 0,stylesRef:void 0}},watch({track:e,prop:t,action:i}){e([()=>t("open")],()=>{i(["setInitial","computeSize","toggleVisibility"])})},exit:["clearInitial","cleanupNode"],states:{closed:{effects:["trackTabbableElements"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","computeSize","invokeOnOpen"]}]}},closing:{effects:["trackExitAnimation"],on:{"controlled.close":{target:"closed"},"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","invokeOnOpen"]}],close:[{guard:"isOpenControlled",actions:["invokeOnExitComplete"]},{target:"closed",actions:["setInitial","computeSize","invokeOnExitComplete"]}],"animation.end":{target:"closed",actions:["invokeOnExitComplete","clearInitial"]}}},open:{effects:["trackEnterAnimation"],on:{"controlled.close":{target:"closing"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closing",actions:["setInitial","computeSize","invokeOnClose"]}],"size.measure":{actions:["measureSize"]},"animation.end":{actions:["clearInitial"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackEnterAnimation:({send:e,scope:t})=>{let i;const r=ge(()=>{const o=ql(t);if(!o)return;const c=Ta(o).animationName;if(!c||c==="none"){e({type:"animation.end"});return}const f=g=>{ct(g)===o&&e({type:"animation.end"})};o.addEventListener("animationend",f),i=()=>{o.removeEventListener("animationend",f)}});return()=>{r(),i?.()}},trackExitAnimation:({send:e,scope:t})=>{let i;const r=ge(()=>{const o=ql(t);if(!o)return;const c=Ta(o).animationName;if(!c||c==="none"){e({type:"animation.end"});return}const f=p=>{ct(p)===o&&e({type:"animation.end"})};o.addEventListener("animationend",f);const g=Es(o,{animationFillMode:"forwards"});i=()=>{o.removeEventListener("animationend",f),_s(()=>g())}});return()=>{r(),i?.()}},trackTabbableElements:({scope:e,prop:t})=>{if(!t("collapsedHeight")&&!t("collapsedWidth"))return;const i=ql(e);if(!i)return;const r=()=>{const f=Bo(i).map(g=>gA(g,"inert",""));return()=>{f.forEach(g=>g())}};let o=r();const c=ZI(i,{callback(){o(),o=r()}});return()=>{o(),c()}}},actions:{setInitial:({context:e,flush:t})=>{t(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("stylesRef",null)},measureSize:({context:e,scope:t})=>{const i=ql(t);if(!i)return;const{height:r,width:o}=i.getBoundingClientRect();e.set("size",{height:r,width:o})},computeSize:({refs:e,scope:t,context:i})=>{e.get("cleanup")?.();const r=ge(()=>{const o=ql(t);if(!o)return;const c=o.hidden;o.style.animationName="none",o.style.animationDuration="0s",o.hidden=!1;const u=o.getBoundingClientRect();i.set("size",{height:u.height,width:u.width}),i.get("initial")&&(o.style.animationName="",o.style.animationDuration=""),o.hidden=c});e.set("cleanup",r)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},toggleVisibility:({prop:e,send:t})=>{t({type:e("open")?"controlled.open":"controlled.close"})}}}};de()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]);const UA=(e={})=>{const{lazyMount:t,unmountOnExit:i,...r}=e,o=T.useId(),c=T.useRef(!1),{dir:u}=Aa(),{getRootNode:f}=Na(),g={id:o,dir:u,getRootNode:f,...r},p=$i($A,g),m=FA(p,Va);m.visible&&(c.current=!0);const b=!m.visible&&!c.current&&t||i&&!m.visible&&c.current;return{...m,isUnmounted:b}},[dE,tm]=zt({name:"CollapsibleContext",hookName:"useCollapsibleContext",providerName:"<CollapsibleProvider />"}),fE=T.forwardRef((e,t)=>{const[i,r]=MA(e),o=UA(i),c=ae(o.getRootProps(),r);return z.jsx(dE,{value:o,children:z.jsx(se.div,{...c,ref:t})})});fE.displayName="CollapsibleRoot";var jA=Object.defineProperty,GA=(e,t,i)=>t in e?jA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,nm=(e,t,i)=>GA(e,t+"",i),WA=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(e[i]!==t[i])return!1;return!0},im=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const i=t??this.getChannelValue(e),{minValue:r,maxValue:o}=this.getChannelRange(e);return W2(i,r,o)}getChannelPercentValue(e,t){const{minValue:i,maxValue:r,step:o}=this.getChannelRange(e),c=q2(t,i,r,o);return fx(c,i,r,o)}withChannelValue(e,t){const{minValue:i,maxValue:r}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=Xt(t,i,r),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:i}=e,r=t||this.getChannels().find(u=>u!==i),o=i||this.getChannels().find(u=>u!==r),c=this.getChannels().find(u=>u!==r&&u!==o);return{xChannel:r,yChannel:o,zChannel:c}}incrementChannel(e,t){const{minValue:i,maxValue:r,step:o}=this.getChannelRange(e),c=fx(Xt(this.getChannelValue(e)+t,i,r),i,r,o);return this.withChannelValue(e,c)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return WA(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},qA=/^#[\da-f]+$/i,YA=/^rgba?\((.*)\)$/,KA=/[^#]/gi,hE=class Mu extends im{constructor(t,i,r,o){super(),this.red=t,this.green=i,this.blue=r,this.alpha=o}static parse(t){let i=[];if(qA.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(KA,"$&$&"):t).slice(1).split("");for(;o.length>0;)i.push(parseInt(o.splice(0,2).join(""),16));i[3]=i[3]!==void 0?i[3]/255:void 0}const r=t.match(YA);return r?.[1]&&(i=r[1].split(",").map(o=>Number(o.trim())).map((o,c)=>Xt(o,0,c<3?255:1))),i.length<3?void 0:new Mu(i[0],i[1],i[2],i[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,i=this.green/255,r=this.blue/255,o=Math.min(t,i,r),c=Math.max(t,i,r),u=c-o,f=c===0?0:u/c;let g=0;if(u!==0){switch(c){case t:g=(i-r)/u+(i<r?6:0);break;case i:g=(r-t)/u+2;break;case r:g=(t-i)/u+4;break}g/=6}return new om(Qe(g*360,2),Qe(f*100,2),Qe(c*100,2),Qe(this.alpha,2))}toHSL(){const t=this.red/255,i=this.green/255,r=this.blue/255,o=Math.min(t,i,r),c=Math.max(t,i,r),u=(c+o)/2,f=c-o;let g=-1,p=-1;if(f===0)g=p=0;else{switch(p=f/(u<.5?c+o:2-c-o),c){case t:g=(i-r)/f+(i<r?6:0);break;case i:g=(r-t)/f+2;break;case r:g=(t-i)/f+4;break}g/=6}return new rm(Qe(g*360,2),Qe(p*100,2),Qe(u*100,2),Qe(this.alpha,2))}clone(){return new Mu(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(t){switch(t){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,i){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return new Intl.NumberFormat(i,r).format(o)}getChannelRange(t){switch(t){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return Mu.colorChannels}};nm(hE,"colorChannels",["red","green","blue"]);var am=hE,XA=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,gE=class Lu extends im{constructor(t,i,r,o){super(),this.hue=t,this.saturation=i,this.lightness=r,this.alpha=o}static parse(t){let i;if(i=t.match(XA)){const[r,o,c,u]=(i[1]??i[2]).split(",").map(f=>Number(f.trim().replace("%","")));return new Lu(MC(r,360),Xt(o,0,100),Xt(c,0,100),Xt(u??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${Qe(this.saturation,2)}%, ${Qe(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Qe(this.saturation,2)}%, ${Qe(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,i=this.lightness/100,r=i+t*Math.min(i,1-i);return t=r===0?0:2*(1-i/r),new om(Qe(this.hue,2),Qe(t*100,2),Qe(r*100,2),Qe(this.alpha,2))}toRGB(){let t=this.hue,i=this.saturation/100,r=this.lightness/100,o=i*Math.min(r,1-r),c=(u,f=(u+t/30)%12)=>r-o*Math.max(Math.min(f-3,9-f,1),-1);return new am(Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255),Qe(this.alpha,2))}clone(){return new Lu(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,i){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(i,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Lu.colorChannels}};nm(gE,"colorChannels",["hue","saturation","lightness"]);var rm=gE,QA=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,pE=class Bu extends im{constructor(t,i,r,o){super(),this.hue=t,this.saturation=i,this.brightness=r,this.alpha=o}static parse(t){let i;if(i=t.match(QA)){const[r,o,c,u]=(i[1]??i[2]).split(",").map(f=>Number(f.trim().replace("%","")));return new Bu(MC(r,360),Xt(o,0,100),Xt(c,0,100),Xt(u??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${Qe(this.saturation,2)}%, ${Qe(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Qe(this.saturation,2)}%, ${Qe(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,i=this.brightness/100,r=i*(1-t/2);return t=r===0||r===1?0:(i-r)/Math.min(r,1-r),new rm(Qe(this.hue,2),Qe(t*100,2),Qe(r*100,2),Qe(this.alpha,2))}toRGB(){let t=this.hue,i=this.saturation/100,r=this.brightness/100,o=(c,u=(c+t/60)%6)=>r-i*r*Math.max(Math.min(u,4-u,1),0);return new am(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),Qe(this.alpha,2))}clone(){return new Bu(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,i){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(i,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Bu.colorChannels}};nm(pE,"colorChannels",["hue","saturation","brightness"]);var om=pE,ZA="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",JA=e=>{const t=new Map,i=e.split(",");for(let r=0;r<i.length;r++){const[o,c]=i[r].split(":");t.set(o,`#${c}`),o.includes("gray")&&t.set(o.replace("gray","grey"),`#${c}`)}return t},xx=JA(ZA),Ju=e=>{if(xx.has(e))return Ju(xx.get(e));const t=am.parse(e)||om.parse(e)||rm.parse(e);if(!t){const i=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(i,Ju),i}return t};const eP=["top","right","bottom","left"],wa=Math.min,pn=Math.max,ed=Math.round,gu=Math.floor,ni=e=>({x:e,y:e}),tP={left:"right",right:"left",bottom:"top",top:"bottom"},nP={start:"end",end:"start"};function Gg(e,t,i){return pn(e,wa(t,i))}function Li(e,t){return typeof e=="function"?e(t):e}function Bi(e){return e.split("-")[0]}function Ho(e){return e.split("-")[1]}function lm(e){return e==="x"?"y":"x"}function sm(e){return e==="y"?"height":"width"}const iP=new Set(["top","bottom"]);function ei(e){return iP.has(Bi(e))?"y":"x"}function cm(e){return lm(ei(e))}function aP(e,t,i){i===void 0&&(i=!1);const r=Ho(e),o=cm(e),c=sm(o);let u=o==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(u=td(u)),[u,td(u)]}function rP(e){const t=td(e);return[Wg(e),t,Wg(t)]}function Wg(e){return e.replace(/start|end/g,t=>nP[t])}const Sx=["left","right"],Cx=["right","left"],oP=["top","bottom"],lP=["bottom","top"];function sP(e,t,i){switch(e){case"top":case"bottom":return i?t?Cx:Sx:t?Sx:Cx;case"left":case"right":return t?oP:lP;default:return[]}}function cP(e,t,i,r){const o=Ho(e);let c=sP(Bi(e),i==="start",r);return o&&(c=c.map(u=>u+"-"+o),t&&(c=c.concat(c.map(Wg)))),c}function td(e){return e.replace(/left|right|bottom|top/g,t=>tP[t])}function uP(e){return{top:0,right:0,bottom:0,left:0,...e}}function mE(e){return typeof e!="number"?uP(e):{top:e,right:e,bottom:e,left:e}}function nd(e){const{x:t,y:i,width:r,height:o}=e;return{width:r,height:o,top:i,left:t,right:t+r,bottom:i+o,x:t,y:i}}function Ex(e,t,i){let{reference:r,floating:o}=e;const c=ei(t),u=cm(t),f=sm(u),g=Bi(t),p=c==="y",m=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,y=r[f]/2-o[f]/2;let x;switch(g){case"top":x={x:m,y:r.y-o.height};break;case"bottom":x={x:m,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:b};break;case"left":x={x:r.x-o.width,y:b};break;default:x={x:r.x,y:r.y}}switch(Ho(t)){case"start":x[u]-=y*(i&&p?-1:1);break;case"end":x[u]+=y*(i&&p?-1:1);break}return x}const dP=async(e,t,i)=>{const{placement:r="bottom",strategy:o="absolute",middleware:c=[],platform:u}=i,f=c.filter(Boolean),g=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:b}=Ex(p,r,g),y=r,x={},E=0;for(let C=0;C<f.length;C++){const{name:O,fn:w}=f[C],{x:k,y:N,data:M,reset:P}=await w({x:m,y:b,initialPlacement:r,placement:y,strategy:o,middlewareData:x,rects:p,platform:u,elements:{reference:e,floating:t}});m=k??m,b=N??b,x={...x,[O]:{...x[O],...M}},P&&E<=50&&(E++,typeof P=="object"&&(P.placement&&(y=P.placement),P.rects&&(p=P.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:m,y:b}=Ex(p,y,g)),C=-1)}return{x:m,y:b,placement:y,strategy:o,middlewareData:x}};async function Ts(e,t){var i;t===void 0&&(t={});const{x:r,y:o,platform:c,rects:u,elements:f,strategy:g}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:b="floating",altBoundary:y=!1,padding:x=0}=Li(t,e),E=mE(x),O=f[y?b==="floating"?"reference":"floating":b],w=nd(await c.getClippingRect({element:(i=await(c.isElement==null?void 0:c.isElement(O)))==null||i?O:O.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:p,rootBoundary:m,strategy:g})),k=b==="floating"?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),M=await(c.isElement==null?void 0:c.isElement(N))?await(c.getScale==null?void 0:c.getScale(N))||{x:1,y:1}:{x:1,y:1},P=nd(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:k,offsetParent:N,strategy:g}):k);return{top:(w.top-P.top+E.top)/M.y,bottom:(P.bottom-w.bottom+E.bottom)/M.y,left:(w.left-P.left+E.left)/M.x,right:(P.right-w.right+E.right)/M.x}}const fP=e=>({name:"arrow",options:e,async fn(t){const{x:i,y:r,placement:o,rects:c,platform:u,elements:f,middlewareData:g}=t,{element:p,padding:m=0}=Li(e,t)||{};if(p==null)return{};const b=mE(m),y={x:i,y:r},x=cm(o),E=sm(x),C=await u.getDimensions(p),O=x==="y",w=O?"top":"left",k=O?"bottom":"right",N=O?"clientHeight":"clientWidth",M=c.reference[E]+c.reference[x]-y[x]-c.floating[E],P=y[x]-c.reference[x],j=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let F=j?j[N]:0;(!F||!await(u.isElement==null?void 0:u.isElement(j)))&&(F=f.floating[N]||c.floating[E]);const Y=M/2-P/2,_=F/2-C[E]/2-1,$=wa(b[w],_),G=wa(b[k],_),Z=$,ce=F-C[E]-G,fe=F/2-C[E]/2+Y,he=Gg(Z,fe,ce),B=!g.arrow&&Ho(o)!=null&&fe!==he&&c.reference[E]/2-(fe<Z?$:G)-C[E]/2<0,ee=B?fe<Z?fe-Z:fe-ce:0;return{[x]:y[x]+ee,data:{[x]:he,centerOffset:fe-he-ee,...B&&{alignmentOffset:ee}},reset:B}}}),hP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,r;const{placement:o,middlewareData:c,rects:u,initialPlacement:f,platform:g,elements:p}=t,{mainAxis:m=!0,crossAxis:b=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:C=!0,...O}=Li(e,t);if((i=c.arrow)!=null&&i.alignmentOffset)return{};const w=Bi(o),k=ei(f),N=Bi(f)===f,M=await(g.isRTL==null?void 0:g.isRTL(p.floating)),P=y||(N||!C?[td(f)]:rP(f)),j=E!=="none";!y&&j&&P.push(...cP(f,C,E,M));const F=[f,...P],Y=await Ts(t,O),_=[];let $=((r=c.flip)==null?void 0:r.overflows)||[];if(m&&_.push(Y[w]),b){const fe=aP(o,u,M);_.push(Y[fe[0]],Y[fe[1]])}if($=[...$,{placement:o,overflows:_}],!_.every(fe=>fe<=0)){var G,Z;const fe=(((G=c.flip)==null?void 0:G.index)||0)+1,he=F[fe];if(he&&(!(b==="alignment"?k!==ei(he):!1)||$.every(oe=>ei(oe.placement)===k?oe.overflows[0]>0:!0)))return{data:{index:fe,overflows:$},reset:{placement:he}};let B=(Z=$.filter(ee=>ee.overflows[0]<=0).sort((ee,oe)=>ee.overflows[1]-oe.overflows[1])[0])==null?void 0:Z.placement;if(!B)switch(x){case"bestFit":{var ce;const ee=(ce=$.filter(oe=>{if(j){const ie=ei(oe.placement);return ie===k||ie==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(ie=>ie>0).reduce((ie,be)=>ie+be,0)]).sort((oe,ie)=>oe[1]-ie[1])[0])==null?void 0:ce[0];ee&&(B=ee);break}case"initialPlacement":B=f;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Tx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ox(e){return eP.some(t=>e[t]>=0)}const gP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:i}=t,{strategy:r="referenceHidden",...o}=Li(e,t);switch(r){case"referenceHidden":{const c=await Ts(t,{...o,elementContext:"reference"}),u=Tx(c,i.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Ox(u)}}}case"escaped":{const c=await Ts(t,{...o,altBoundary:!0}),u=Tx(c,i.floating);return{data:{escapedOffsets:u,escaped:Ox(u)}}}default:return{}}}}},vE=new Set(["left","top"]);async function pP(e,t){const{placement:i,platform:r,elements:o}=e,c=await(r.isRTL==null?void 0:r.isRTL(o.floating)),u=Bi(i),f=Ho(i),g=ei(i)==="y",p=vE.has(u)?-1:1,m=c&&g?-1:1,b=Li(t,e);let{mainAxis:y,crossAxis:x,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return f&&typeof E=="number"&&(x=f==="end"?E*-1:E),g?{x:x*m,y:y*p}:{x:y*p,y:x*m}}const mP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var i,r;const{x:o,y:c,placement:u,middlewareData:f}=t,g=await pP(t,e);return u===((i=f.offset)==null?void 0:i.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:o+g.x,y:c+g.y,data:{...g,placement:u}}}}},vP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:r,placement:o}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:f={fn:O=>{let{x:w,y:k}=O;return{x:w,y:k}}},...g}=Li(e,t),p={x:i,y:r},m=await Ts(t,g),b=ei(Bi(o)),y=lm(b);let x=p[y],E=p[b];if(c){const O=y==="y"?"top":"left",w=y==="y"?"bottom":"right",k=x+m[O],N=x-m[w];x=Gg(k,x,N)}if(u){const O=b==="y"?"top":"left",w=b==="y"?"bottom":"right",k=E+m[O],N=E-m[w];E=Gg(k,E,N)}const C=f.fn({...t,[y]:x,[b]:E});return{...C,data:{x:C.x-i,y:C.y-r,enabled:{[y]:c,[b]:u}}}}}},bP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:i,y:r,placement:o,rects:c,middlewareData:u}=t,{offset:f=0,mainAxis:g=!0,crossAxis:p=!0}=Li(e,t),m={x:i,y:r},b=ei(o),y=lm(b);let x=m[y],E=m[b];const C=Li(f,t),O=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(g){const N=y==="y"?"height":"width",M=c.reference[y]-c.floating[N]+O.mainAxis,P=c.reference[y]+c.reference[N]-O.mainAxis;x<M?x=M:x>P&&(x=P)}if(p){var w,k;const N=y==="y"?"width":"height",M=vE.has(Bi(o)),P=c.reference[b]-c.floating[N]+(M&&((w=u.offset)==null?void 0:w[b])||0)+(M?0:O.crossAxis),j=c.reference[b]+c.reference[N]+(M?0:((k=u.offset)==null?void 0:k[b])||0)-(M?O.crossAxis:0);E<P?E=P:E>j&&(E=j)}return{[y]:x,[b]:E}}}},yP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var i,r;const{placement:o,rects:c,platform:u,elements:f}=t,{apply:g=()=>{},...p}=Li(e,t),m=await Ts(t,p),b=Bi(o),y=Ho(o),x=ei(o)==="y",{width:E,height:C}=c.floating;let O,w;b==="top"||b==="bottom"?(O=b,w=y===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(w=b,O=y==="end"?"top":"bottom");const k=C-m.top-m.bottom,N=E-m.left-m.right,M=wa(C-m[O],k),P=wa(E-m[w],N),j=!t.middlewareData.shift;let F=M,Y=P;if((i=t.middlewareData.shift)!=null&&i.enabled.x&&(Y=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(F=k),j&&!y){const $=pn(m.left,0),G=pn(m.right,0),Z=pn(m.top,0),ce=pn(m.bottom,0);x?Y=E-2*($!==0||G!==0?$+G:pn(m.left,m.right)):F=C-2*(Z!==0||ce!==0?Z+ce:pn(m.top,m.bottom))}await g({...t,availableWidth:Y,availableHeight:F});const _=await u.getDimensions(f.floating);return E!==_.width||C!==_.height?{reset:{rects:!0}}:{}}}};function Td(){return typeof window<"u"}function Fo(e){return bE(e)?(e.nodeName||"").toLowerCase():"#document"}function vn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function si(e){var t;return(t=(bE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bE(e){return Td()?e instanceof Node||e instanceof vn(e).Node:!1}function Fn(e){return Td()?e instanceof Element||e instanceof vn(e).Element:!1}function ai(e){return Td()?e instanceof HTMLElement||e instanceof vn(e).HTMLElement:!1}function wx(e){return!Td()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vn(e).ShadowRoot}const xP=new Set(["inline","contents"]);function Ds(e){const{overflow:t,overflowX:i,overflowY:r,display:o}=$n(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&!xP.has(o)}const SP=new Set(["table","td","th"]);function CP(e){return SP.has(Fo(e))}const EP=[":popover-open",":modal"];function Od(e){return EP.some(t=>{try{return e.matches(t)}catch{return!1}})}const TP=["transform","translate","scale","rotate","perspective"],OP=["transform","translate","scale","rotate","perspective","filter"],wP=["paint","layout","strict","content"];function um(e){const t=dm(),i=Fn(e)?$n(e):e;return TP.some(r=>i[r]?i[r]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!t&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!t&&(i.filter?i.filter!=="none":!1)||OP.some(r=>(i.willChange||"").includes(r))||wP.some(r=>(i.contain||"").includes(r))}function RP(e){let t=Ra(e);for(;ai(t)&&!Do(t);){if(um(t))return t;if(Od(t))return null;t=Ra(t)}return null}function dm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kP=new Set(["html","body","#document"]);function Do(e){return kP.has(Fo(e))}function $n(e){return vn(e).getComputedStyle(e)}function wd(e){return Fn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ra(e){if(Fo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wx(e)&&e.host||si(e);return wx(t)?t.host:t}function yE(e){const t=Ra(e);return Do(t)?e.ownerDocument?e.ownerDocument.body:e.body:ai(t)&&Ds(t)?t:yE(t)}function Os(e,t,i){var r;t===void 0&&(t=[]),i===void 0&&(i=!0);const o=yE(e),c=o===((r=e.ownerDocument)==null?void 0:r.body),u=vn(o);if(c){const f=qg(u);return t.concat(u,u.visualViewport||[],Ds(o)?o:[],f&&i?Os(f):[])}return t.concat(o,Os(o,[],i))}function qg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xE(e){const t=$n(e);let i=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ai(e),c=o?e.offsetWidth:i,u=o?e.offsetHeight:r,f=ed(i)!==c||ed(r)!==u;return f&&(i=c,r=u),{width:i,height:r,$:f}}function fm(e){return Fn(e)?e:e.contextElement}function Po(e){const t=fm(e);if(!ai(t))return ni(1);const i=t.getBoundingClientRect(),{width:r,height:o,$:c}=xE(t);let u=(c?ed(i.width):i.width)/r,f=(c?ed(i.height):i.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const NP=ni(0);function SE(e){const t=vn(e);return!dm()||!t.visualViewport?NP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function IP(e,t,i){return t===void 0&&(t=!1),!i||t&&i!==vn(e)?!1:t}function br(e,t,i,r){t===void 0&&(t=!1),i===void 0&&(i=!1);const o=e.getBoundingClientRect(),c=fm(e);let u=ni(1);t&&(r?Fn(r)&&(u=Po(r)):u=Po(e));const f=IP(c,i,r)?SE(c):ni(0);let g=(o.left+f.x)/u.x,p=(o.top+f.y)/u.y,m=o.width/u.x,b=o.height/u.y;if(c){const y=vn(c),x=r&&Fn(r)?vn(r):r;let E=y,C=qg(E);for(;C&&r&&x!==E;){const O=Po(C),w=C.getBoundingClientRect(),k=$n(C),N=w.left+(C.clientLeft+parseFloat(k.paddingLeft))*O.x,M=w.top+(C.clientTop+parseFloat(k.paddingTop))*O.y;g*=O.x,p*=O.y,m*=O.x,b*=O.y,g+=N,p+=M,E=vn(C),C=qg(E)}}return nd({width:m,height:b,x:g,y:p})}function Rd(e,t){const i=wd(e).scrollLeft;return t?t.left+i:br(si(e)).left+i}function CE(e,t){const i=e.getBoundingClientRect(),r=i.left+t.scrollLeft-Rd(e,i),o=i.top+t.scrollTop;return{x:r,y:o}}function AP(e){let{elements:t,rect:i,offsetParent:r,strategy:o}=e;const c=o==="fixed",u=si(r),f=t?Od(t.floating):!1;if(r===u||f&&c)return i;let g={scrollLeft:0,scrollTop:0},p=ni(1);const m=ni(0),b=ai(r);if((b||!b&&!c)&&((Fo(r)!=="body"||Ds(u))&&(g=wd(r)),ai(r))){const x=br(r);p=Po(r),m.x=x.x+r.clientLeft,m.y=x.y+r.clientTop}const y=u&&!b&&!c?CE(u,g):ni(0);return{width:i.width*p.x,height:i.height*p.y,x:i.x*p.x-g.scrollLeft*p.x+m.x+y.x,y:i.y*p.y-g.scrollTop*p.y+m.y+y.y}}function PP(e){return Array.from(e.getClientRects())}function VP(e){const t=si(e),i=wd(e),r=e.ownerDocument.body,o=pn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=pn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-i.scrollLeft+Rd(e);const f=-i.scrollTop;return $n(r).direction==="rtl"&&(u+=pn(t.clientWidth,r.clientWidth)-o),{width:o,height:c,x:u,y:f}}const Rx=25;function _P(e,t){const i=vn(e),r=si(e),o=i.visualViewport;let c=r.clientWidth,u=r.clientHeight,f=0,g=0;if(o){c=o.width,u=o.height;const m=dm();(!m||m&&t==="fixed")&&(f=o.offsetLeft,g=o.offsetTop)}const p=Rd(r);if(p<=0){const m=r.ownerDocument,b=m.body,y=getComputedStyle(b),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,E=Math.abs(r.clientWidth-b.clientWidth-x);E<=Rx&&(c-=E)}else p<=Rx&&(c+=p);return{width:c,height:u,x:f,y:g}}const zP=new Set(["absolute","fixed"]);function DP(e,t){const i=br(e,!0,t==="fixed"),r=i.top+e.clientTop,o=i.left+e.clientLeft,c=ai(e)?Po(e):ni(1),u=e.clientWidth*c.x,f=e.clientHeight*c.y,g=o*c.x,p=r*c.y;return{width:u,height:f,x:g,y:p}}function kx(e,t,i){let r;if(t==="viewport")r=_P(e,i);else if(t==="document")r=VP(si(e));else if(Fn(t))r=DP(t,i);else{const o=SE(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return nd(r)}function EE(e,t){const i=Ra(e);return i===t||!Fn(i)||Do(i)?!1:$n(i).position==="fixed"||EE(i,t)}function MP(e,t){const i=t.get(e);if(i)return i;let r=Os(e,[],!1).filter(f=>Fn(f)&&Fo(f)!=="body"),o=null;const c=$n(e).position==="fixed";let u=c?Ra(e):e;for(;Fn(u)&&!Do(u);){const f=$n(u),g=um(u);!g&&f.position==="fixed"&&(o=null),(c?!g&&!o:!g&&f.position==="static"&&!!o&&zP.has(o.position)||Ds(u)&&!g&&EE(e,u))?r=r.filter(m=>m!==u):o=f,u=Ra(u)}return t.set(e,r),r}function LP(e){let{element:t,boundary:i,rootBoundary:r,strategy:o}=e;const u=[...i==="clippingAncestors"?Od(t)?[]:MP(t,this._c):[].concat(i),r],f=u[0],g=u.reduce((p,m)=>{const b=kx(t,m,o);return p.top=pn(b.top,p.top),p.right=wa(b.right,p.right),p.bottom=wa(b.bottom,p.bottom),p.left=pn(b.left,p.left),p},kx(t,f,o));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function BP(e){const{width:t,height:i}=xE(e);return{width:t,height:i}}function HP(e,t,i){const r=ai(t),o=si(t),c=i==="fixed",u=br(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const g=ni(0);function p(){g.x=Rd(o)}if(r||!r&&!c)if((Fo(t)!=="body"||Ds(o))&&(f=wd(t)),r){const x=br(t,!0,c,t);g.x=x.x+t.clientLeft,g.y=x.y+t.clientTop}else o&&p();c&&!r&&o&&p();const m=o&&!r&&!c?CE(o,f):ni(0),b=u.left+f.scrollLeft-g.x-m.x,y=u.top+f.scrollTop-g.y-m.y;return{x:b,y,width:u.width,height:u.height}}function Sg(e){return $n(e).position==="static"}function Nx(e,t){if(!ai(e)||$n(e).position==="fixed")return null;if(t)return t(e);let i=e.offsetParent;return si(e)===i&&(i=i.ownerDocument.body),i}function TE(e,t){const i=vn(e);if(Od(e))return i;if(!ai(e)){let o=Ra(e);for(;o&&!Do(o);){if(Fn(o)&&!Sg(o))return o;o=Ra(o)}return i}let r=Nx(e,t);for(;r&&CP(r)&&Sg(r);)r=Nx(r,t);return r&&Do(r)&&Sg(r)&&!um(r)?i:r||RP(e)||i}const FP=async function(e){const t=this.getOffsetParent||TE,i=this.getDimensions,r=await i(e.floating);return{reference:HP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $P(e){return $n(e).direction==="rtl"}const UP={convertOffsetParentRelativeRectToViewportRelativeRect:AP,getDocumentElement:si,getClippingRect:LP,getOffsetParent:TE,getElementRects:FP,getClientRects:PP,getDimensions:BP,getScale:Po,isElement:Fn,isRTL:$P};function OE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jP(e,t){let i=null,r;const o=si(e);function c(){var f;clearTimeout(r),(f=i)==null||f.disconnect(),i=null}function u(f,g){f===void 0&&(f=!1),g===void 0&&(g=1),c();const p=e.getBoundingClientRect(),{left:m,top:b,width:y,height:x}=p;if(f||t(),!y||!x)return;const E=gu(b),C=gu(o.clientWidth-(m+y)),O=gu(o.clientHeight-(b+x)),w=gu(m),N={rootMargin:-E+"px "+-C+"px "+-O+"px "+-w+"px",threshold:pn(0,wa(1,g))||1};let M=!0;function P(j){const F=j[0].intersectionRatio;if(F!==g){if(!M)return u();F?u(!1,F):r=setTimeout(()=>{u(!1,1e-7)},1e3)}F===1&&!OE(p,e.getBoundingClientRect())&&u(),M=!1}try{i=new IntersectionObserver(P,{...N,root:o.ownerDocument})}catch{i=new IntersectionObserver(P,N)}i.observe(e)}return u(!0),c}function GP(e,t,i,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:g=!1}=r,p=fm(e),m=o||c?[...p?Os(p):[],...Os(t)]:[];m.forEach(w=>{o&&w.addEventListener("scroll",i,{passive:!0}),c&&w.addEventListener("resize",i)});const b=p&&f?jP(p,i):null;let y=-1,x=null;u&&(x=new ResizeObserver(w=>{let[k]=w;k&&k.target===p&&x&&(x.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var N;(N=x)==null||N.observe(t)})),i()}),p&&!g&&x.observe(p),x.observe(t));let E,C=g?br(e):null;g&&O();function O(){const w=br(e);C&&!OE(C,w)&&i(),C=w,E=requestAnimationFrame(O)}return i(),()=>{var w;m.forEach(k=>{o&&k.removeEventListener("scroll",i),c&&k.removeEventListener("resize",i)}),b?.(),(w=x)==null||w.disconnect(),x=null,g&&cancelAnimationFrame(E)}}const WP=mP,qP=vP,YP=hP,KP=yP,XP=gP,QP=fP,ZP=bP,JP=(e,t,i)=>{const r=new Map,o={platform:UP,...i},c={...o.platform,_c:r};return dP(e,t,{...o,platform:c})};function Ix(e=0,t=0,i=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,i,r);const o={x:e,y:t,width:i,height:r,top:t,right:e+i,bottom:t+r,left:e};return{...o,toJSON:()=>o}}function eV(e){if(!e)return Ix();const{x:t,y:i,width:r,height:o}=e;return Ix(t,i,r,o)}function tV(e,t){return{contextElement:xt(e)?e:void 0,getBoundingClientRect:()=>{const i=e,r=t?.(i);return r||!i?eV(r):i.getBoundingClientRect()}}}var Yl=e=>({variable:e,reference:`var(${e})`}),_i={arrowSize:Yl("--arrow-size"),arrowSizeHalf:Yl("--arrow-size-half"),arrowBg:Yl("--arrow-background"),transformOrigin:Yl("--transform-origin"),arrowOffset:Yl("--arrow-offset")},nV=e=>e==="top"||e==="bottom"?"y":"x";function iV(e,t){return{name:"transformOrigin",fn(i){const{elements:r,middlewareData:o,placement:c,rects:u,y:f}=i,g=c.split("-")[0],p=nV(g),m=o.arrow?.x||0,b=o.arrow?.y||0,y=t?.clientWidth||0,x=t?.clientHeight||0,E=m+y/2,C=b+x/2,O=Math.abs(o.shift?.y||0),w=u.reference.height/2,k=x/2,N=e.offset?.mainAxis??e.gutter,M=typeof N=="number"?N+k:N??k,P=O>M,j={top:`${E}px calc(100% + ${M}px)`,bottom:`${E}px ${-M}px`,left:`calc(100% + ${M}px) ${C}px`,right:`${-M}px ${C}px`}[g],F=`${E}px ${u.reference.y+w-f}px`,Y=!!e.overlap&&p==="y"&&P;return r.floating.style.setProperty(_i.transformOrigin.variable,Y?F:j),{data:{transformOrigin:Y?F:j}}}}}var aV={name:"rects",fn({rects:e}){return{data:e}}},rV=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:i}){if(!i.arrow)return{};const{x:r,y:o}=i.arrow,c=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[c]:`calc(100% + ${_i.arrowOffset.reference})`}),{}}}};function oV(e){const[t,i]=e.split("-");return{side:t,align:i,hasAlign:i!=null}}function lV(e){return e.split("-")[0]}var sV={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Ax(e,t){const i=e.devicePixelRatio||1;return Math.round(t*i)/i}function hm(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function cV(e,t,i){const r=e||t.createElement("div");return QP({element:r,padding:i.arrowPadding})}function uV(e,t){if(!k2(t.offset??t.gutter))return WP(({placement:i})=>{const r=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,c=typeof o=="number"?o+r:o??r,{hasAlign:u}=oV(i),f=u?void 0:t.shift,g=t.offset?.crossAxis??f;return Hp({crossAxis:g,mainAxis:c,alignmentAxis:t.shift})})}function dV(e){if(!e.flip)return;const t=hm(e.boundary);return YP({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function fV(e){if(!e.slide&&!e.overlap)return;const t=hm(e.boundary);return qP({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:ZP()})}function hV(e){return KP({padding:e.overflowPadding,apply({elements:t,rects:i,availableHeight:r,availableWidth:o}){const c=t.floating,u=Math.round(i.reference.width),f=Math.round(i.reference.height);o=Math.floor(o),r=Math.floor(r),c.style.setProperty("--reference-width",`${u}px`),c.style.setProperty("--reference-height",`${f}px`),c.style.setProperty("--available-width",`${o}px`),c.style.setProperty("--available-height",`${r}px`)}})}function gV(e){if(e.hideWhenDetached)return XP({strategy:"referenceHidden",boundary:hm(e.boundary)??"clippingAncestors"})}function pV(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function mV(e,t,i={}){const r=tV(e,i.getAnchorRect);if(!t||!r)return;const o=Object.assign({},sV,i),c=t.querySelector("[data-part=arrow]"),u=[uV(c,o),dV(o),fV(o),cV(c,t.ownerDocument,o),rV(c),iV({gutter:o.gutter,offset:o.offset,overlap:o.overlap},c),hV(o),gV(o),aV],{placement:f,strategy:g,onComplete:p,onPositioned:m}=o,b=async()=>{if(!r||!t)return;const C=await JP(r,t,{placement:f,middleware:u,strategy:g});p?.(C),m?.({placed:!0});const O=ot(t),w=Ax(O,C.x),k=Ax(O,C.y);t.style.setProperty("--x",`${w}px`),t.style.setProperty("--y",`${k}px`),o.hideWhenDetached&&(C.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const N=t.firstElementChild;if(N){const M=Ta(N);t.style.setProperty("--z-index",M.zIndex)}},y=async()=>{i.updatePosition?(await i.updatePosition({updatePosition:b,floatingElement:t}),m?.({placed:!0})):await b()},x=pV(o.listeners),E=o.listeners?GP(r,t,y,x):D2;return y(),()=>{E?.(),m?.({placed:!1})}}function bn(e,t,i={}){const{defer:r,...o}=i,c=r?ge:f=>f(),u=[];return u.push(c(()=>{const f=typeof e=="function"?e():e,g=typeof t=="function"?t():t;u.push(mV(f,g,o))})),()=>{u.forEach(f=>f?.())}}var vV={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function gm(e={}){const{placement:t,sameWidth:i,fitViewport:r,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:_i.arrowSize.reference,height:_i.arrowSize.reference,[_i.arrowSizeHalf.variable]:`calc(${_i.arrowSize.reference} / 2)`,[_i.arrowOffset.variable]:`calc(${_i.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?vV[t.split("-")[0]]:void 0,background:_i.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:i?void 0:"max-content",width:i?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}function bV(e){const t={each(i){for(let r=0;r<e.frames?.length;r+=1){const o=e.frames[r];o&&i(o)}},addEventListener(i,r,o){return t.each(c=>{try{c.document.addEventListener(i,r,o)}catch{}}),()=>{try{t.removeEventListener(i,r,o)}catch{}}},removeEventListener(i,r,o){t.each(c=>{try{c.document.removeEventListener(i,r,o)}catch{}})}};return t}function yV(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(i,r,o)=>{try{t?.addEventListener(i,r,o)}catch{}return()=>{try{t?.removeEventListener(i,r,o)}catch{}}},removeEventListener:(i,r,o)=>{try{t?.removeEventListener(i,r,o)}catch{}}}}var Px="pointerdown.outside",Vx="focus.outside";function xV(e){for(const t of e)if(xt(t)&&Di(t))return!0;return!1}var wE=e=>"clientY"in e;function SV(e,t){if(!wE(t)||!e)return!1;const i=e.getBoundingClientRect();return i.width===0||i.height===0?!1:i.top<=t.clientY&&t.clientY<=i.top+i.height&&i.left<=t.clientX&&t.clientX<=i.left+i.width}function CV(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function _x(e,t){if(!t||!wE(e))return!1;const i=t.scrollHeight>t.clientHeight,r=i&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,c=o&&e.clientY>t.offsetTop+t.clientHeight,u={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(i?16:0),height:t.clientHeight+(o?16:0)},f={x:e.clientX,y:e.clientY};return CV(u,f)?r||c:!1}function EV(e,t){const{exclude:i,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:c,defer:u,followControlledElements:f=!0}=t;if(!e)return;const g=en(e),p=ot(e),m=bV(p),b=yV(p);function y(N,M){if(!xt(M)||!M.isConnected||Bn(e,M)||SV(e,N)||f&&UC(e,M))return!1;const P=g.querySelector(`[aria-controls="${e.id}"]`);if(P){const F=Qu(P);if(_x(N,F))return!1}const j=Qu(e);return _x(N,j)?!1:!i?.(M)}const x=new Set,E=zo(e?.getRootNode());function C(N){function M(P){const j=u&&!px()?ge:_=>_(),F=P??N,Y=F?.composedPath?.()??[F?.target];j(()=>{const _=E?Y[0]:ct(N);if(!(!e||!y(N,_))){if(o||c){const $=Xu(o,c);e.addEventListener(Px,$,{once:!0})}zx(e,Px,{bubbles:!1,cancelable:!0,detail:{originalEvent:F,contextmenu:VI(F),focusable:xV(Y),target:_}})}})}N.pointerType==="touch"?(x.forEach(P=>P()),x.add(Be(g,"click",M,{once:!0})),x.add(b.addEventListener("click",M,{once:!0})),x.add(m.addEventListener("click",M,{once:!0}))):M()}const O=new Set,w=setTimeout(()=>{O.add(Be(g,"pointerdown",C,!0)),O.add(b.addEventListener("pointerdown",C,!0)),O.add(m.addEventListener("pointerdown",C,!0))},0);function k(N){(u?ge:P=>P())(()=>{const P=N?.composedPath?.()??[N?.target],j=E?P[0]:ct(N);if(!(!e||!y(N,j))){if(r||c){const F=Xu(r,c);e.addEventListener(Vx,F,{once:!0})}zx(e,Vx,{bubbles:!1,cancelable:!0,detail:{originalEvent:N,contextmenu:!1,focusable:Di(j),target:j}})}})}return px()||(O.add(Be(g,"focusin",k,!0)),O.add(b.addEventListener("focusin",k,!0)),O.add(m.addEventListener("focusin",k,!0))),()=>{clearTimeout(w),x.forEach(N=>N()),O.forEach(N=>N())}}function RE(e,t){const{defer:i}=t,r=i?ge:c=>c(),o=[];return o.push(r(()=>{const c=typeof e=="function"?e():e;o.push(EV(c,t))})),()=>{o.forEach(c=>c?.())}}function zx(e,t,i){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,i);return e.dispatchEvent(o)}function TV(e,t){const i=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return Be(en(e),"keydown",i,{capture:!0})}var Dx="layer:request-dismiss",Pn={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),i=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<i},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){const i=this.indexOf(e);return i===-1?[]:this.layers.slice(i+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){const i=this.indexOf(e);if(!(i<=0))return this.layers.slice(0,i).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(i=>Bn(i.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Bn(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>Pn.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const r=this.countNestedLayersOfType(e.node,e.type);r>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${r}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const i=this.indexOf(e);if(i===-1)return;const r=this.layers[i];wV(e,Dx,o=>{r.requestDismiss?.(o),o.defaultPrevented||r?.dismiss()}),OV(e,Dx,{originalLayer:e,targetLayer:t,originalIndex:i,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function OV(e,t,i){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:i});return e.dispatchEvent(o)}function wV(e,t,i){e.addEventListener(t,i,{once:!0})}var Mx;function Lx(){Pn.layers.forEach(({node:e})=>{e.style.pointerEvents=Pn.isBelowPointerBlockingLayer(e)?"none":"auto"})}function RV(e){e.style.pointerEvents=""}function kV(e,t){const i=en(e),r=[];return Pn.hasPointerBlockingLayer()&&!i.body.hasAttribute("data-inert")&&(Mx=document.body.style.pointerEvents,queueMicrotask(()=>{i.body.style.pointerEvents="none",i.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[c,u]=yA(()=>{const f=o();return xt(f)?f:null},{timeout:1e3});c.then(f=>r.push(Es(f,{pointerEvents:"auto"}))),r.push(u)}),()=>{Pn.hasPointerBlockingLayer()||(queueMicrotask(()=>{i.body.style.pointerEvents=Mx,i.body.removeAttribute("data-inert"),i.body.style.length===0&&i.body.removeAttribute("style")}),r.forEach(o=>o()))}}function NV(e,t){const{warnOnMissingNode:i=!0}=t;if(i&&!e){xs("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:c,exclude:u,debug:f,type:g="dialog"}=t,p={dismiss:r,node:e,type:g,pointerBlocking:c,requestDismiss:o};Pn.add(p),Lx();function m(C){const O=ct(C.detail.originalEvent);Pn.isBelowPointerBlockingLayer(e)||Pn.isInBranch(O)||(t.onPointerDownOutside?.(C),t.onInteractOutside?.(C),!C.defaultPrevented&&(f&&console.log("onPointerDownOutside:",C.detail.originalEvent),r?.()))}function b(C){const O=ct(C.detail.originalEvent);Pn.isInBranch(O)||(t.onFocusOutside?.(C),t.onInteractOutside?.(C),!C.defaultPrevented&&(f&&console.log("onFocusOutside:",C.detail.originalEvent),r?.()))}function y(C){Pn.isTopMost(e)&&(t.onEscapeKeyDown?.(C),!C.defaultPrevented&&r&&(C.preventDefault(),r()))}function x(C){if(!e)return!1;const O=typeof u=="function"?u():u,w=Array.isArray(O)?O:[O],k=t.persistentElements?.map(N=>N()).filter(xt);return k&&w.push(...k),w.some(N=>Bn(N,C))||Pn.isInNestedLayer(e,C)}const E=[c?kV(e,t.persistentElements):void 0,TV(e,y),RE(e,{exclude:x,onFocusOutside:b,onPointerDownOutside:m,defer:t.defer})];return()=>{Pn.remove(e),Lx(),RV(e),E.forEach(C=>C?.())}}function Er(e,t){const{defer:i}=t,r=i?ge:c=>c(),o=[];return o.push(r(()=>{const c=ur(e)?e():e;o.push(NV(c,t))})),()=>{o.forEach(c=>c?.())}}var kE=ve("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);kE.build();var IV=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,AV=e=>e.ids?.control??`color-picker:${e.id}:control`,PV=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,VV=e=>e.ids?.content??`color-picker:${e.id}:content`,_V=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,zV=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,DV=e=>e.ids?.area??`color-picker:${e.id}:area`,MV=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,LV=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,BV=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,Hu=e=>e.getById(VV(e)),HV=e=>e.getById(MV(e)),FV=(e,t)=>e.getById(BV(e,t)),$V=e=>e.getById(zV(e)),Bx=e=>e.getById(IV(e)),UV=e=>e.getById(DV(e)),jV=(e,t,i)=>{const r=UV(e);if(!r)return;const{getPercentValue:o}=iE(t,r);return{x:o({dir:i,orientation:"horizontal"}),y:o({orientation:"vertical"})}},GV=e=>e.getById(AV(e)),Cg=e=>e.getById(PV(e)),WV=e=>e.getById(_V(e)),qV=(e,t)=>e.getById(LV(e,t)),YV=(e,t,i,r)=>{const o=qV(e,i);if(!o)return;const{getPercentValue:c}=iE(t,o);return{x:c({dir:r,orientation:"horizontal"}),y:c({orientation:"vertical"})}},KV=e=>[...vr(Hu(e),"input[data-channel]"),...vr(GV(e),"input[data-channel]")];function XV(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const i=e.getFormat()==="hsla";switch(t){case"hue":return i?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return i?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var Hx=e=>Ju(e),QV=/^[0-9a-fA-F]{3,8}$/;function ZV(e){return QV.test(e)}function JV(e){return e.startsWith("#")?e:ZV(e)?`#${e}`:e}var{and:e_}=jn();e_("isOpenControlled","closeOnSelect");function Fx(e,t,i){const r=KV(e);ge(()=>{r.forEach(o=>{const c=o.dataset.channel;mr(o,XV(i||t,c))})})}function t_(e,t){const i=$V(e);i&&ge(()=>mr(i,t))}de()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);de()(["xChannel","yChannel"]);de()(["channel","orientation"]);de()(["value","disabled"]);de()(["value","respectAlpha"]);de()(["size"]);var pu="__live-region__";function n_(e={}){const{level:t="polite",document:i=document,root:r,delay:o=0}=e,c=i.defaultView??window,u=r??i.body;function f(p,m){i.getElementById(pu)?.remove(),m=m??o;const y=i.createElement("span");y.id=pu,y.dataset.liveAnnouncer="true";const x=t!=="assertive"?"status":"alert";y.setAttribute("aria-live",t),y.setAttribute("role",x),Object.assign(y.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),u.appendChild(y),c.setTimeout(()=>{y.textContent=p},m)}function g(){i.getElementById(pu)?.remove()}return{announce:f,destroy:g,toJSON(){return pu}}}const[kd,NE]=zt({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),Nd=e=>Dt()(e,["lazyMount","unmountOnExit"]),IE=T.forwardRef((e,t)=>{const i=tm();if(i.isUnmounted)return null;const r=ae(i.getContentProps(),e);return z.jsx(se.div,{...r,ref:t})});IE.displayName="CollapsibleContent";var AE=ve("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");AE.build();var PE=e=>e.ids?.root??`accordion:${e.id}`,VE=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,i_=e=>e.getById(PE(e)),Id=e=>{const i=`[aria-controls][data-ownedby='${CSS.escape(PE(e))}']:not([disabled])`;return vr(i_(e),i)},a_=e=>Io(Id(e)),r_=e=>pd(Id(e)),o_=(e,t)=>Qp(Id(e),VE(e,t)),l_=(e,t)=>Zp(Id(e),VE(e,t)),{and:s_,not:c_}=jn();s_("isExpanded","canToggle"),c_("isExpanded");de()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);de()(["value","disabled"]);var us=(e,t)=>({x:e,y:t});function u_(e){const{x:t,y:i,width:r,height:o}=e,c=t+r/2,u=i+o/2;return{x:t,y:i,width:r,height:o,minX:t,minY:i,maxX:t+r,maxY:i+o,midX:c,midY:u,center:us(c,u)}}function d_(e){const t=us(e.minX,e.minY),i=us(e.maxX,e.minY),r=us(e.maxX,e.maxY),o=us(e.minX,e.maxY);return{top:t,right:i,bottom:r,left:o}}function f_(e,t){const i=u_(e),{top:r,right:o,left:c,bottom:u}=d_(i),[f]=t.split("-");return{top:[c,r,o,u],right:[r,o,u,c],bottom:[r,c,u,o],left:[o,r,c,u]}[f]}function h_(e,t){const{x:i,y:r}=t;let o=!1;for(let c=0,u=e.length-1;c<e.length;u=c++){const f=e[c].x,g=e[c].y,p=e[u].x,m=e[u].y;g>r!=m>r&&i<(p-f)*(r-g)/(m-g)+f&&(o=!o)}return o}var _E=ve("avatar").parts("root","image","fallback");_E.build();de()(["dir","id","ids","onStatusChange","getRootNode"]);var ho=new WeakMap,mu=new WeakMap,vu={},Eg=0,zE=e=>e&&(e.host||zE(e.parentNode)),g_=(e,t)=>t.map(i=>{if(e.contains(i))return i;const r=zE(i);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",i,"in not contained inside",e,". Doing nothing"),null)}).filter(i=>!!i),p_=new Set(["script","output","status","next-route-announcer"]),m_=e=>p_.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),v_=(e,t)=>{const{parentNode:i,markerName:r,controlAttribute:o,followControlledElements:c=!0}=t,u=g_(i,Array.isArray(e)?e:[e]);vu[r]||(vu[r]=new WeakMap);const f=vu[r],g=[],p=new Set,m=new Set(u),b=x=>{!x||p.has(x)||(p.add(x),b(x.parentNode))};u.forEach(x=>{b(x),c&&xt(x)&&jC(x,E=>{b(E)})});const y=x=>{!x||m.has(x)||Array.prototype.forEach.call(x.children,E=>{if(p.has(E))y(E);else try{if(m_(E))return;const O=E.getAttribute(o)==="true",w=(ho.get(E)||0)+1,k=(f.get(E)||0)+1;ho.set(E,w),f.set(E,k),g.push(E),w===1&&O&&mu.set(E,!0),k===1&&E.setAttribute(r,""),O||E.setAttribute(o,"true")}catch(C){console.error("[zag-js > ariaHidden] cannot operate on ",E,C)}})};return y(i),p.clear(),Eg++,()=>{g.forEach(x=>{const E=ho.get(x)-1,C=f.get(x)-1;ho.set(x,E),f.set(x,C),E||(mu.has(x)||x.removeAttribute(o),mu.delete(x)),C||x.removeAttribute(r)}),Eg--,Eg||(ho=new WeakMap,ho=new WeakMap,mu=new WeakMap,vu={})}},b_=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,y_=(e,t=b_(e),i="data-aria-hidden",r=!0)=>{if(t)return v_(e,{parentNode:t,markerName:i,controlAttribute:"aria-hidden",followControlledElements:r})},x_=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function pm(e,t={}){const{defer:i=!0}=t,r=i?x_:c=>c(),o=[];return o.push(r(()=>{const u=(typeof e=="function"?e():e).filter(Boolean);u.length!==0&&o.push(y_(u))})),()=>{o.forEach(c=>c?.())}}var S_=Object.defineProperty,C_=(e,t,i)=>t in e?S_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,tt=(e,t,i)=>C_(e,typeof t!="symbol"?t+"":t,i),$x={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap(e,t){const i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},E_=[],T_=class{constructor(e,t){tt(this,"trapStack"),tt(this,"config"),tt(this,"doc"),tt(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),tt(this,"portalContainers",new Set),tt(this,"listenerCleanups",[]),tt(this,"handleFocus",r=>{const o=ct(r),c=this.findContainerIndex(o,r)>=0;if(c||bd(o))c&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let u,f=!0;if(this.state.mostRecentlyFocusedNode)if(Wl(this.state.mostRecentlyFocusedNode)>0){const g=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:p}=this.state.containerGroups[g];if(p.length>0){const m=p.findIndex(b=>b===this.state.mostRecentlyFocusedNode);m>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?m+1<p.length&&(u=p[m+1],f=!1):m-1>=0&&(u=p[m-1],f=!1))}}else this.state.containerGroups.some(g=>g.tabbableNodes.some(p=>Wl(p)>0))||(f=!1);else f=!1;f&&(u=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),u?this.tryFocus(u):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),tt(this,"handlePointerDown",r=>{const o=ct(r);if(!(this.findContainerIndex(o,r)>=0)){if(Xl(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Xl(this.config.allowOutsideClick,r)||r.preventDefault()}}),tt(this,"handleClick",r=>{const o=ct(r);this.findContainerIndex(o,r)>=0||Xl(this.config.clickOutsideDeactivates,r)||Xl(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),tt(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),c=this.findNextNavNode({event:r,isBackward:o});if(!c)return;Kl(r)&&r.preventDefault(),this.tryFocus(c)}}),tt(this,"handleEscapeKey",r=>{O_(r)&&Xl(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),tt(this,"_mutationObserver"),tt(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(f=>Array.from(f.removedNodes).some(p=>p===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),o.some(f=>f.type==="attributes"&&(f.attributeName==="aria-controls"||f.attributeName==="aria-expanded")?!0:f.type==="childList"&&f.addedNodes.length>0?Array.from(f.addedNodes).some(g=>{if(g.nodeType!==Node.ELEMENT_NODE)return!1;const p=g;return yI(p)?!0:p.id&&!this.state.containers.some(m=>m.contains(p))?xI(p):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),tt(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(r=>{this._mutationObserver?.observe(r,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(r=>{this.observePortalContainer(r)}))}),tt(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Di(r)){const o=Ao(this.doc);if(o&&this.findContainerIndex(o)>=0)r=o;else{const c=this.state.tabbableGroups[0];r=c&&c.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),tt(this,"tryFocus",r=>{if(r!==!1&&r!==Ao(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,w_(r)&&r.select()}}),tt(this,"deactivate",r=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),$x.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const c=this.getOption(o,"onDeactivate"),u=this.getOption(o,"onPostDeactivate"),f=this.getOption(o,"checkCanReturnFocus"),g=this.getOption(o,"returnFocus","returnFocusOnDeactivate");c?.();const p=()=>{Ux(()=>{if(g){const m=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(m)}u?.()})};if(g&&f){const m=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return f(m).then(p,p),this}return p(),this}),tt(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),c=this.getOption(r,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),c?.(),this}),tt(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),c=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),c?.(),this}),tt(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),tt(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),tt(this,"getOption",(r,o,c)=>r&&r[o]!==void 0?r[o]:this.config[c||o]),tt(this,"getNodeForOption",(r,{hasFallback:o=!1,params:c=[]}={})=>{let u=this.config[r];if(typeof u=="function"&&(u=u(...c)),u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let f=u;if(typeof u=="string"){try{f=this.doc.querySelector(u)}catch(g){throw new Error(`\`${r}\` appears to be an invalid selector; error="${g.message}"`)}if(!f&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return f}),tt(this,"findNextNavNode",r=>{const{event:o,isBackward:c=!1}=r,u=r.target||ct(o);this.updateTabbableNodes();let f=null;if(this.state.tabbableGroups.length>0){const g=this.findContainerIndex(u,o),p=g>=0?this.state.containerGroups[g]:void 0;if(g<0)c?f=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:f=this.state.tabbableGroups[0].firstTabbableNode;else if(c){let m=this.state.tabbableGroups.findIndex(({firstTabbableNode:b})=>u===b);if(m<0&&(p?.container===u||Di(u)&&!dr(u)&&!p?.nextTabbableNode(u,!1))&&(m=g),m>=0){const b=m===0?this.state.tabbableGroups.length-1:m-1,y=this.state.tabbableGroups[b];f=Wl(u)>=0?y.lastTabbableNode:y.lastDomTabbableNode}else Kl(o)||(f=p?.nextTabbableNode(u,!1))}else{let m=this.state.tabbableGroups.findIndex(({lastTabbableNode:b})=>u===b);if(m<0&&(p?.container===u||Di(u)&&!dr(u)&&!p?.nextTabbableNode(u))&&(m=g),m>=0){const b=m===this.state.tabbableGroups.length-1?0:m+1,y=this.state.tabbableGroups[b];f=Wl(u)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else Kl(o)||(f=p?.nextTabbableNode(u))}}else f=this.getNodeForOption("fallbackFocus");return f}),this.trapStack=t.trapStack||E_;const i={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward(r){return Kl(r)&&!r.shiftKey},isKeyBackward(r){return Kl(r)&&r.shiftKey},...t};this.doc=i.document||en(Array.isArray(e)?e[0]:e),this.config=i,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{mI(e).forEach(i=>{this.addPortalContainer(i)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const i=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||i?.includes(r)||o.find(c=>c===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?UC(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Bo(e,{getShadowRoot:this.config.getShadowRoot}),i=qp(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],o=t[t.length-1],c=r,u=o;let f=!1;for(let p=0;p<t.length;p++)if(Wl(t[p])>0){f=!0;break}function g(p,m=!0){const b=t.indexOf(p);if(b>=0)return t[b+(m?1:-1)];const y=i.indexOf(p);if(!(y<0)){if(m){for(let x=y+1;x<i.length;x++)if(dr(i[x]))return i[x]}else for(let x=y-1;x>=0;x--)if(dr(i[x]))return i[x]}}return{container:e,tabbableNodes:t,focusableNodes:i,posTabIndexesFound:f,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:c,lastDomTabbableNode:u,nextTabbableNode:g}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return $x.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Ux(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(Be(this.doc,"focusin",this.handleFocus,!0),Be(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),Be(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),Be(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),Be(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),Be(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),i=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=Ao(this.doc),t?.();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},Kl=e=>e.key==="Tab",Xl=(e,...t)=>typeof e=="function"?e(...t):e,O_=e=>!e.isComposing&&e.key==="Escape",Ux=e=>setTimeout(e,0),w_=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function DE(e,t={}){let i;const r=ge(()=>{const o=typeof e=="function"?e():e;if(o){i=new T_(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:en(o)});try{i.activate()}catch{}}});return function(){i?.deactivate(),r()}}var Tg="data-scroll-lock";function R_(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function jx(e){const i=Ta(e)?.scrollbarGutter;return i==="stable"||i?.startsWith("stable ")===!0}function ME(e){const t=e??document,i=t.defaultView??window,{documentElement:r,body:o}=t;if(o.hasAttribute(Tg))return;const u=jx(r)||jx(o),f=i.innerWidth-r.clientWidth;o.setAttribute(Tg,"");const g=()=>pA(r,"--scrollbar-width",`${f}px`),p=R_(r),m=()=>{const x={overflow:"hidden"};return!u&&f>0&&(x[p]=`${f}px`),Es(o,x)},b=()=>{const{scrollX:x,scrollY:E,visualViewport:C}=i,O=C?.offsetLeft??0,w=C?.offsetTop??0,k={position:"fixed",overflow:"hidden",top:`${-(E-Math.floor(w))}px`,left:`${-(x-Math.floor(O))}px`,right:"0"};!u&&f>0&&(k[p]=`${f}px`);const N=Es(o,k);return()=>{N?.(),i.scrollTo({left:x,top:E,behavior:"instant"})}},y=[g(),xd()?b():m()];return()=>{y.forEach(x=>x?.()),o.removeAttribute(Tg)}}var LE=ve("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger");LE.build();de()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","onDragStatusChange","onAutoplayStatusChange"]);de()(["index","readOnly"]);de()(["index","snapAlign"]);const[BE,Ad]=zt({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),HE=T.forwardRef((e,t)=>{const i=Ad(),r=ae(i.getControlProps(),e);return z.jsx(se.div,{...r,ref:t})});HE.displayName="CheckboxControl";function k_(e){return!(e.metaKey||!Ps()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var N_=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function I_(e,t,i){const r=i?ct(i):null,o=ot(r);return e=e||r instanceof o.HTMLInputElement&&!N_.has(r?.type)||r instanceof o.HTMLTextAreaElement||r instanceof o.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&i instanceof o.KeyboardEvent&&!Reflect.has(A_,i.key))}var _a=null,Yg=new Set,id=new Map,yr=!1,Kg=!1,A_={Tab:!0,Escape:!0};function Pd(e,t){for(let i of Yg)i(e,t)}function ad(e){yr=!0,k_(e)&&(_a="keyboard",Pd("keyboard",e))}function _n(e){_a="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(yr=!0,Pd("pointer",e))}function FE(e){PI(e)&&(yr=!0,_a="virtual")}function $E(e){const t=ct(e);t===ot(t)||t===en(t)||(!yr&&!Kg&&(_a="virtual",Pd("virtual",e)),yr=!1,Kg=!1)}function UE(){yr=!1,Kg=!0}function P_(e){if(typeof window>"u"||id.get(ot(e)))return;const t=ot(e),i=en(e);let r=t.HTMLElement.prototype.focus;function o(){_a="virtual",Pd("virtual",null),yr=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o})}catch{}i.addEventListener("keydown",ad,!0),i.addEventListener("keyup",ad,!0),i.addEventListener("click",FE,!0),t.addEventListener("focus",$E,!0),t.addEventListener("blur",UE,!1),typeof t.PointerEvent<"u"?(i.addEventListener("pointerdown",_n,!0),i.addEventListener("pointermove",_n,!0),i.addEventListener("pointerup",_n,!0)):(i.addEventListener("mousedown",_n,!0),i.addEventListener("mousemove",_n,!0),i.addEventListener("mouseup",_n,!0)),t.addEventListener("beforeunload",()=>{V_(e)},{once:!0}),id.set(t,{focus:r})}var V_=(e,t)=>{const i=ot(e),r=en(e),o=id.get(i);if(o){try{Object.defineProperty(i.HTMLElement.prototype,"focus",{configurable:!0,value:o.focus})}catch{}r.removeEventListener("keydown",ad,!0),r.removeEventListener("keyup",ad,!0),r.removeEventListener("click",FE,!0),i.removeEventListener("focus",$E,!0),i.removeEventListener("blur",UE,!1),typeof i.PointerEvent<"u"?(r.removeEventListener("pointerdown",_n,!0),r.removeEventListener("pointermove",_n,!0),r.removeEventListener("pointerup",_n,!0)):(r.removeEventListener("mousedown",_n,!0),r.removeEventListener("mousemove",_n,!0),r.removeEventListener("mouseup",_n,!0)),id.delete(i)}};function __(){return _a}function ws(){return _a==="keyboard"}function Vd(e={}){const{isTextInput:t,autoFocus:i,onChange:r,root:o}=e;P_(o),r?.({isFocusVisible:i||ws(),modality:_a});const c=(u,f)=>{I_(!!t,u,f)&&r?.({isFocusVisible:ws(),modality:u})};return Yg.add(c),()=>{Yg.delete(c)}}var jE=ve("checkbox").parts("root","label","control","indicator"),bu=jE.build(),GE=e=>e.ids?.root??`checkbox:${e.id}`,Gx=e=>e.ids?.label??`checkbox:${e.id}:label`,z_=e=>e.ids?.control??`checkbox:${e.id}:control`,Xg=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,D_=e=>e.getById(GE(e)),ds=e=>e.getById(Xg(e));function M_(e,t){const{send:i,context:r,prop:o,computed:c,scope:u}=e,f=!!o("disabled"),g=!!o("readOnly"),p=!!o("required"),m=!!o("invalid"),b=!f&&r.get("focused"),y=!f&&r.get("focusVisible"),x=c("checked"),E=c("indeterminate"),C=r.get("checked"),O={"data-active":me(r.get("active")),"data-focus":me(b),"data-focus-visible":me(y),"data-readonly":me(g),"data-hover":me(r.get("hovered")),"data-disabled":me(f),"data-state":E?"indeterminate":x?"checked":"unchecked","data-invalid":me(m),"data-required":me(p)};return{checked:x,disabled:f,indeterminate:E,focused:b,checkedState:C,setChecked(w){i({type:"CHECKED.SET",checked:w,isTrusted:!1})},toggleChecked(){i({type:"CHECKED.TOGGLE",checked:x,isTrusted:!1})},getRootProps(){return t.label({...bu.root.attrs,...O,dir:o("dir"),id:GE(u),htmlFor:Xg(u),onPointerMove(){f||i({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){f||i({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(w){ct(w)===ds(u)&&w.stopPropagation()}})},getLabelProps(){return t.element({...bu.label.attrs,...O,dir:o("dir"),id:Gx(u)})},getControlProps(){return t.element({...bu.control.attrs,...O,dir:o("dir"),id:z_(u),"aria-hidden":!0})},getIndicatorProps(){return t.element({...bu.indicator.attrs,...O,dir:o("dir"),hidden:!E&&!x})},getHiddenInputProps(){return t.input({id:Xg(u),type:"checkbox",required:o("required"),defaultChecked:x,disabled:f,"aria-labelledby":Gx(u),"aria-invalid":m,name:o("name"),form:o("form"),value:o("value"),style:Jp,onFocus(){const w=ws();i({type:"CONTEXT.SET",context:{focused:!0,focusVisible:w}})},onBlur(){i({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(w){if(g){w.preventDefault();return}const k=w.currentTarget.checked;i({type:"CHECKED.SET",checked:k,isTrusted:!0})}})}}}var{not:Wx}=jn(),L_={props({props:e}){return{value:"on",...e,defaultChecked:e.defaultChecked??!1}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(i){e("onCheckedChange")?.({checked:i})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,prop:i,action:r}){e([()=>i("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:Wx("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Wx("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>Fu(e.get("checked")),checked:({context:e})=>B_(e.get("checked")),disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:i}){if(!t("disabled"))return rE({pointerNode:D_(i),keyboardNode:ds(i),isValidKey:r=>r.key===" ",onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return Vd({root:t.getRootNode?.()})},trackFormControlState({context:e,scope:t}){return Lo(ds(t),{onFieldsetDisabledChange(i){e.set("fieldsetDisabled",i)},onFormReset(){e.set("checked",e.initial("checked"))}})}},actions:{setContext({context:e,event:t}){for(const i in t.context)e.set(i,t.context[i])},syncInputElement({context:e,computed:t,scope:i}){const r=ds(i);r&&(Wp(r,t("checked")),r.indeterminate=Fu(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){const i=Fu(t("checked"))?!0:!t("checked");e.set("checked",i)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{const i=ds(t);XC(i,{checked:e("checked")})})}}}};function Fu(e){return e==="indeterminate"}function B_(e){return Fu(e)?!1:!!e}de()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const WE=jE.extendWith("group");function H_(e){const{value:t,onChange:i,defaultValue:r}=e,[o,c]=T.useState(r),u=t!==void 0,f=u?t:o,g=T.useCallback(p=>(u||c(p),i?.(p)),[u,i]);return[f,g]}function F_(e={}){const{defaultValue:t,value:i,onValueChange:r,disabled:o,readOnly:c,name:u,invalid:f}=e,g=!(o||c),p=cE(r,{sync:!0}),[m,b]=H_({value:i,defaultValue:t||[],onChange:p}),y=w=>m.some(k=>String(k)===String(w)),x=w=>{y(w)?C(w):E(w)},E=w=>{g&&(y(w)||b(m.concat(w)))},C=w=>{g&&b(m.filter(k=>String(k)!==String(w)))};return{isChecked:y,value:m,name:u,disabled:!!o,readOnly:!!c,invalid:!!f,setValue:b,addValue:E,toggleValue:x,getItemProps:w=>({checked:w.value!=null?y(w.value):void 0,onCheckedChange(){w.value!=null&&x(w.value)},name:u,disabled:o,readOnly:c,invalid:f})}}const[$_,U_]=zt({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),qE=T.forwardRef((e,t)=>{const[i,r]=Dt()(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),o=F_(i);return z.jsx($_,{value:o,children:z.jsx(se.div,{ref:t,role:"group",...r,...WE.build().group.attrs})})});qE.displayName="CheckboxGroup";const[nF,Tr]=zt({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),YE=T.forwardRef((e,t)=>{const i=Ad(),r=ae(i.getHiddenInputProps(),e),o=Tr();return z.jsx(se.input,{"aria-describedby":o?.ariaDescribedby,...r,ref:t})});YE.displayName="CheckboxHiddenInput";const KE=T.forwardRef((e,t)=>{const i=Ad(),r=ae(i.getLabelProps(),e);return z.jsx(se.span,{...r,ref:t})});KE.displayName="CheckboxLabel";const j_=(e={})=>{const t=U_(),i=Tr(),r=T.useMemo(()=>ae(e,t?.getItemProps({value:e.value})??{}),[e,t]),o=T.useId(),{getRootNode:c}=Na(),{dir:u}=Aa(),f={id:o,ids:{label:i?.ids.label,hiddenInput:i?.ids.control},dir:u,disabled:i?.disabled,readOnly:i?.readOnly,invalid:i?.invalid,required:i?.required,getRootNode:c,...r},g=$i(L_,f);return M_(g,Va)},XE=T.forwardRef((e,t)=>{const[i,r]=Dt()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),o=j_(i),c=ae(o.getRootProps(),r);return z.jsx(BE,{value:o,children:z.jsx(se.label,{...c,ref:t})})});XE.displayName="CheckboxRoot";const QE=T.forwardRef((e,t)=>{const[{value:i},r]=Dt()(e,["value"]),o=ae(i.getRootProps(),r);return z.jsx(BE,{value:i,children:z.jsx(se.label,{...o,ref:t})})});QE.displayName="CheckboxRootProvider";var ZE=ve("clipboard").parts("root","control","trigger","indicator","input","label");ZE.build();de()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);de()(["copied"]);const JE=T.forwardRef((e,t)=>{const i=tm(),r=ae(i.getIndicatorProps(),e);return z.jsx(se.div,{...r,ref:t})});JE.displayName="CollapsibleIndicator";const e1=T.forwardRef((e,t)=>{const[{value:i},r]=Dt()(e,["value"]),o=ae(i.getRootProps(),r);return z.jsx(dE,{value:i,children:z.jsx(se.div,{...o,ref:t})})});e1.displayName="CollapsibleRootProvider";const t1=T.forwardRef((e,t)=>{const i=tm(),r=ae(i.getTriggerProps(),e);return z.jsx(se.button,{...r,ref:t})});t1.displayName="CollapsibleTrigger";const G_=kE.extendWith("view");var W_=Object.defineProperty,q_=(e,t,i)=>t in e?W_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Q=(e,t,i)=>q_(e,typeof t!="symbol"?t+"":t,i),$u={itemToValue(e){return typeof e=="string"?e:cr(e)&&Sa(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:cr(e)&&Sa(e,"label")?e.label:$u.itemToValue(e)},isItemDisabled(e){return cr(e)&&Sa(e,"disabled")?!!e.disabled:!1}},$o=class n1{constructor(t){this.options=t,Q(this,"items"),Q(this,"indexMap",null),Q(this,"copy",i=>new n1({...this.options,items:i??[...this.items]})),Q(this,"isEqual",i=>Zt(this.items,i.items)),Q(this,"setItems",i=>this.copy(i)),Q(this,"getValues",(i=this.items)=>{const r=[];for(const o of i){const c=this.getItemValue(o);c!=null&&r.push(c)}return r}),Q(this,"find",i=>{if(i==null)return null;const r=this.indexOf(i);return r!==-1?this.at(r):null}),Q(this,"findMany",i=>{const r=[];for(const o of i){const c=this.find(o);c!=null&&r.push(c)}return r}),Q(this,"at",i=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[i]??null;let r=0;const o=this.group();for(const[,c]of o)for(const u of c){if(r===i)return u;r++}return null}),Q(this,"sortFn",(i,r)=>{const o=this.indexOf(i),c=this.indexOf(r);return(o??0)-(c??0)}),Q(this,"sort",i=>[...i].sort(this.sortFn.bind(this))),Q(this,"getItemValue",i=>i==null?null:this.options.itemToValue?.(i)??$u.itemToValue(i)),Q(this,"getItemDisabled",i=>i==null?!1:this.options.isItemDisabled?.(i)??$u.isItemDisabled(i)),Q(this,"stringifyItem",i=>i==null?null:this.options.itemToString?.(i)??$u.itemToString(i)),Q(this,"stringify",i=>i==null?null:this.stringifyItem(this.find(i))),Q(this,"stringifyItems",(i,r=", ")=>{const o=[];for(const c of i){const u=this.stringifyItem(c);u!=null&&o.push(u)}return o.join(r)}),Q(this,"stringifyMany",(i,r)=>this.stringifyItems(this.findMany(i),r)),Q(this,"has",i=>this.indexOf(i)!==-1),Q(this,"hasItem",i=>i==null?!1:this.has(this.getItemValue(i))),Q(this,"group",()=>{const{groupBy:i,groupSort:r}=this.options;if(!i)return[["",[...this.items]]];const o=new Map;this.items.forEach((u,f)=>{const g=i(u,f);o.has(g)||o.set(g,[]),o.get(g).push(u)});let c=Array.from(o.entries());return r&&c.sort(([u],[f])=>{if(typeof r=="function")return r(u,f);if(Array.isArray(r)){const g=r.indexOf(u),p=r.indexOf(f);return g===-1?1:p===-1?-1:g-p}return r==="asc"?u.localeCompare(f):r==="desc"?f.localeCompare(u):0}),c}),Q(this,"getNextValue",(i,r=1,o=!1)=>{let c=this.indexOf(i);if(c===-1)return null;for(c=o?Math.min(c+r,this.size-1):c+r;c<=this.size&&this.getItemDisabled(this.at(c));)c++;return this.getItemValue(this.at(c))}),Q(this,"getPreviousValue",(i,r=1,o=!1)=>{let c=this.indexOf(i);if(c===-1)return null;for(c=o?Math.max(c-r,0):c-r;c>=0&&this.getItemDisabled(this.at(c));)c--;return this.getItemValue(this.at(c))}),Q(this,"indexOf",i=>{if(i==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===i);if(!this.indexMap){this.indexMap=new Map;let r=0;const o=this.group();for(const[,c]of o)for(const u of c){const f=this.getItemValue(u);f!=null&&this.indexMap.set(f,r),r++}}return this.indexMap.get(i)??-1}),Q(this,"getByText",(i,r)=>{const o=r!=null?this.indexOf(r):-1,c=i.length===1;for(let u=0;u<this.items.length;u++){const f=this.items[(o+u+1)%this.items.length];if(!(c&&this.getItemValue(f)===r)&&!this.getItemDisabled(f)&&Y_(this.stringifyItem(f),i))return f}}),Q(this,"search",(i,r)=>{const{state:o,currentValue:c,timeout:u=350}=r,f=o.keysSoFar+i,p=f.length>1&&Array.from(f).every(E=>E===f[0])?f[0]:f,m=this.getByText(p,c),b=this.getItemValue(m);function y(){clearTimeout(o.timer),o.timer=-1}function x(E){o.keysSoFar=E,y(),E!==""&&(o.timer=+setTimeout(()=>{x(""),y()},u))}return x(f),b}),Q(this,"update",(i,r)=>{let o=this.indexOf(i);return o===-1?this:this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),Q(this,"upsert",(i,r,o="append")=>{let c=this.indexOf(i);return c===-1?(o==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,c),r,...this.items.slice(c+1)])}),Q(this,"insert",(i,...r)=>this.copy(Ql(this.items,i,...r))),Q(this,"insertBefore",(i,...r)=>{let o=this.indexOf(i);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Ql(this.items,o,...r))}),Q(this,"insertAfter",(i,...r)=>{let o=this.indexOf(i);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Ql(this.items,o+1,...r))}),Q(this,"prepend",(...i)=>this.copy(Ql(this.items,0,...i))),Q(this,"append",(...i)=>this.copy(Ql(this.items,this.items.length,...i))),Q(this,"filter",i=>{const r=this.items.filter((o,c)=>i(this.stringifyItem(o),c,o));return this.copy(r)}),Q(this,"remove",(...i)=>{const r=i.map(o=>typeof o=="string"?o:this.getItemValue(o));return this.copy(this.items.filter(o=>{const c=this.getItemValue(o);return c==null?!1:!r.includes(c)}))}),Q(this,"move",(i,r)=>{const o=this.indexOf(i);return o===-1?this:this.copy(yu(this.items,[o],r))}),Q(this,"moveBefore",(i,...r)=>{let o=this.items.findIndex(u=>this.getItemValue(u)===i);if(o===-1)return this;let c=r.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(yu(this.items,c,o))}),Q(this,"moveAfter",(i,...r)=>{let o=this.items.findIndex(u=>this.getItemValue(u)===i);if(o===-1)return this;let c=r.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(yu(this.items,c,o+1))}),Q(this,"reorder",(i,r)=>this.copy(yu(this.items,[i],r))),Q(this,"compareValue",(i,r)=>{const o=this.indexOf(i),c=this.indexOf(r);return o<c?-1:o>c?1:0}),Q(this,"range",(i,r)=>{let o=[],c=i;for(;c!=null;){if(this.find(c)&&o.push(c),c===r)return o;c=this.getNextValue(c)}return[]}),Q(this,"getValueRange",(i,r)=>i&&r?this.compareValue(i,r)<=0?this.range(i,r):this.range(r,i):[]),Q(this,"toString",()=>{let i="";for(const r of this.items){const o=this.getItemValue(r),c=this.stringifyItem(r),u=this.getItemDisabled(r),f=[o,c,u].filter(Boolean).join(":");i+=f+","}return i}),Q(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},Y_=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Ql(e,t,...i){return[...e.slice(0,t),...i,...e.slice(t)]}function yu(e,t,i){t=[...t].sort((o,c)=>o-c);const r=t.map(o=>e[o]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return i=Math.max(0,i-t.filter(o=>o<i).length),[...e.slice(0,i),...r,...e.slice(i)]}var K_=class Uu extends Set{constructor(t=[]){super(t),Q(this,"selectionMode","single"),Q(this,"deselectable",!0),Q(this,"copy",()=>{const i=new Uu([...this]);return this.sync(i)}),Q(this,"sync",i=>(i.selectionMode=this.selectionMode,i.deselectable=this.deselectable,i)),Q(this,"isEmpty",()=>this.size===0),Q(this,"isSelected",i=>this.selectionMode==="none"||i==null?!1:this.has(i)),Q(this,"canSelect",(i,r)=>this.selectionMode!=="none"||!i.getItemDisabled(i.find(r))),Q(this,"firstSelectedValue",i=>{let r=null;for(let o of this)(!r||i.compareValue(o,r)<0)&&(r=o);return r}),Q(this,"lastSelectedValue",i=>{let r=null;for(let o of this)(!r||i.compareValue(o,r)>0)&&(r=o);return r}),Q(this,"extendSelection",(i,r,o)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single")return this.replaceSelection(i,o);const c=this.copy(),u=Array.from(this).pop();for(let f of i.getValueRange(r,u??o))c.delete(f);for(let f of i.getValueRange(o,r))this.canSelect(i,f)&&c.add(f);return c}),Q(this,"toggleSelection",(i,r)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single"&&!this.isSelected(r))return this.replaceSelection(i,r);const o=this.copy();return o.has(r)?o.delete(r):o.canSelect(i,r)&&o.add(r),o}),Q(this,"replaceSelection",(i,r)=>{if(this.selectionMode==="none")return this;if(r==null)return this;if(!this.canSelect(i,r))return this;const o=new Uu([r]);return this.sync(o)}),Q(this,"setSelection",i=>{if(this.selectionMode==="none")return this;let r=new Uu;for(let o of i)if(o!=null&&(r.add(o),this.selectionMode==="single"))break;return this.sync(r)}),Q(this,"clearSelection",()=>{const i=this.copy();return i.deselectable&&i.size>0&&i.clear(),i}),Q(this,"select",(i,r,o)=>this.selectionMode==="none"?this:this.selectionMode==="single"?this.isSelected(r)&&this.deselectable?this.toggleSelection(i,r):this.replaceSelection(i,r):this.selectionMode==="multiple"||o?this.toggleSelection(i,r):this.replaceSelection(i,r)),Q(this,"deselect",i=>{const r=this.copy();return r.delete(i),r}),Q(this,"isEqual",i=>Zt(Array.from(this),Array.from(i)))}};function i1(e,t,i){for(let r=0;r<t.length;r++)e=i.getChildren(e,t.slice(r+1))[t[r]];return e}function X_(e){const t=Q_(e),i=[],r=new Set;for(const o of t){const c=o.join();r.has(c)||(r.add(c),i.push(o))}return i}function a1(e,t){for(let i=0;i<Math.min(e.length,t.length);i++){if(e[i]<t[i])return-1;if(e[i]>t[i])return 1}return e.length-t.length}function Q_(e){return e.sort(a1)}function Z_(e,t){let i;return gn(e,{...t,onEnter:(r,o)=>{if(t.predicate(r,o))return i=r,"stop"}}),i}function J_(e,t){const i=[];return gn(e,{onEnter:(r,o)=>{t.predicate(r,o)&&i.push(r)},getChildren:t.getChildren}),i}function qx(e,t){let i;return gn(e,{onEnter:(r,o)=>{if(t.predicate(r,o))return i=[...o],"stop"},getChildren:t.getChildren}),i}function ez(e,t){let i=t.initialResult;return gn(e,{...t,onEnter:(r,o)=>{i=t.nextResult(i,r,o)}}),i}function tz(e,t){return ez(e,{...t,initialResult:[],nextResult:(i,r,o)=>(i.push(...t.transform(r,o)),i)})}function nz(e,t){const{predicate:i,create:r,getChildren:o}=t,c=(u,f)=>{const g=o(u,f),p=[];g.forEach((x,E)=>{const C=[...f,E],O=c(x,C);O&&p.push(O)});const m=f.length===0,b=i(u,f),y=p.length>0;return m||b||y?r(u,p,f):null};return c(e,[])||r(e,[],[])}function iz(e,t){const i=[];let r=0;const o=new Map,c=new Map;return gn(e,{getChildren:t.getChildren,onEnter:(u,f)=>{o.has(u)||o.set(u,r++);const g=t.getChildren(u,f);g.forEach(x=>{c.has(x)||c.set(x,u),o.has(x)||o.set(x,r++)});const p=g.length>0?g.map(x=>o.get(x)):void 0,m=c.get(u),b=m?o.get(m):void 0,y=o.get(u);i.push({...u,_children:p,_parent:b,_index:y})}}),i}function az(e,t){return{type:"insert",index:e,nodes:t}}function rz(e){return{type:"remove",indexes:e}}function mm(){return{type:"replace"}}function r1(e){return[e.slice(0,-1),e[e.length-1]]}function o1(e,t,i=new Map){const[r,o]=r1(e);for(let u=r.length-1;u>=0;u--){const f=r.slice(0,u).join();switch(i.get(f)?.type){case"remove":continue}i.set(f,mm())}const c=i.get(r.join());switch(c?.type){case"remove":i.set(r.join(),{type:"removeThenInsert",removeIndexes:c.indexes,insertIndex:o,insertNodes:t});break;default:i.set(r.join(),az(o,t))}return i}function l1(e){const t=new Map,i=new Map;for(const r of e){const o=r.slice(0,-1).join(),c=i.get(o)??[];c.push(r[r.length-1]),i.set(o,c.sort((u,f)=>u-f))}for(const r of e)for(let o=r.length-2;o>=0;o--){const c=r.slice(0,o).join();t.has(c)||t.set(c,mm())}for(const[r,o]of i)t.set(r,rz(o));return t}function oz(e,t){const i=new Map,[r,o]=r1(e);for(let c=r.length-1;c>=0;c--){const u=r.slice(0,c).join();i.set(u,mm())}return i.set(r.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),i}function _d(e,t,i){return lz(e,{...i,getChildren:(r,o)=>{const c=o.join();switch(t.get(c)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return i.getChildren(r,o);default:return[]}},transform:(r,o,c)=>{const u=c.join(),f=t.get(u);switch(f?.type){case"remove":return i.create(r,o.filter((m,b)=>!f.indexes.includes(b)),c);case"removeThenInsert":const g=o.filter((m,b)=>!f.removeIndexes.includes(b)),p=f.removeIndexes.reduce((m,b)=>b<m?m-1:m,f.insertIndex);return i.create(r,Yx(g,p,0,...f.insertNodes),c);case"insert":return i.create(r,Yx(o,f.index,0,...f.nodes),c);case"replace":return i.create(r,o,c);default:return r}}})}function Yx(e,t,i,...r){return[...e.slice(0,t),...r,...e.slice(t+i)]}function lz(e,t){const i={};return gn(e,{...t,onLeave:(r,o)=>{const c=[0,...o],u=c.join(),f=t.transform(r,i[u]??[],o),g=c.slice(0,-1).join(),p=i[g]??[];p.push(f),i[g]=p}}),i[""][0]}function sz(e,t){const{nodes:i,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const o=o1(r,i);return _d(e,o,t)}function cz(e,t){if(t.at.length===0)return t.node;const i=oz(t.at,t.node);return _d(e,i,t)}function uz(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const i=l1(t.indexPaths);return _d(e,i,t)}function dz(e,t){if(t.indexPaths.length===0)return e;for(const c of t.indexPaths)if(c.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const i=X_(t.indexPaths),r=i.map(c=>i1(e,c,t)),o=o1(t.to,r,l1(i));return _d(e,o,t)}function gn(e,t){const{onEnter:i,onLeave:r,getChildren:o}=t;let c=[],u=[{node:e}];const f=t.reuseIndexPath?()=>c:()=>c.slice();for(;u.length>0;){let g=u[u.length-1];if(g.state===void 0){const m=i?.(g.node,f());if(m==="stop")return;g.state=m==="skip"?-1:0}const p=g.children||o(g.node,f());if(g.children||(g.children=p),g.state!==-1){if(g.state<p.length){let b=g.state;c.push(b),u.push({node:p[b]}),g.state=b+1;continue}if(r?.(g.node,f())==="stop")return}c.pop(),u.pop()}}var s1=class c1{constructor(t){this.options=t,Q(this,"rootNode"),Q(this,"isEqual",i=>Zt(this.rootNode,i.rootNode)),Q(this,"getNodeChildren",i=>this.options.nodeToChildren?.(i)??xo.nodeToChildren(i)??[]),Q(this,"resolveIndexPath",i=>typeof i=="string"?this.getIndexPath(i):i),Q(this,"resolveNode",i=>{const r=this.resolveIndexPath(i);return r?this.at(r):void 0}),Q(this,"getNodeChildrenCount",i=>this.options.nodeToChildrenCount?.(i)??xo.nodeToChildrenCount(i)),Q(this,"getNodeValue",i=>this.options.nodeToValue?.(i)??xo.nodeToValue(i)),Q(this,"getNodeDisabled",i=>this.options.isNodeDisabled?.(i)??xo.isNodeDisabled(i)),Q(this,"stringify",i=>{const r=this.findNode(i);return r?this.stringifyNode(r):null}),Q(this,"stringifyNode",i=>this.options.nodeToString?.(i)??xo.nodeToString(i)),Q(this,"getFirstNode",(i=this.rootNode)=>{let r;return gn(i,{getChildren:this.getNodeChildren,onEnter:(o,c)=>{if(!r&&c.length>0&&!this.getNodeDisabled(o))return r=o,"stop"}}),r}),Q(this,"getLastNode",(i=this.rootNode,r={})=>{let o;return gn(i,{getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(!this.isSameNode(c,i)){if(r.skip?.({value:this.getNodeValue(c),node:c,indexPath:u}))return"skip";u.length>0&&!this.getNodeDisabled(c)&&(o=c)}}}),o}),Q(this,"at",i=>i1(this.rootNode,i,{getChildren:this.getNodeChildren})),Q(this,"findNode",(i,r=this.rootNode)=>Z_(r,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===i})),Q(this,"findNodes",(i,r=this.rootNode)=>{const o=new Set(i.filter(c=>c!=null));return J_(r,{getChildren:this.getNodeChildren,predicate:c=>o.has(this.getNodeValue(c))})}),Q(this,"sort",i=>i.reduce((r,o)=>{const c=this.getIndexPath(o);return c&&r.push({value:o,indexPath:c}),r},[]).sort((r,o)=>a1(r.indexPath,o.indexPath)).map(({value:r})=>r)),Q(this,"getIndexPath",i=>qx(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===i})),Q(this,"getValue",i=>{const r=this.at(i);return r?this.getNodeValue(r):void 0}),Q(this,"getValuePath",i=>{if(!i)return[];const r=[];let o=[...i];for(;o.length>0;){const c=this.at(o);c&&r.unshift(this.getNodeValue(c)),o.pop()}return r}),Q(this,"getDepth",i=>qx(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===i})?.length??0),Q(this,"isSameNode",(i,r)=>this.getNodeValue(i)===this.getNodeValue(r)),Q(this,"isRootNode",i=>this.isSameNode(i,this.rootNode)),Q(this,"contains",(i,r)=>!i||!r?!1:r.slice(0,i.length).every((o,c)=>i[c]===r[c])),Q(this,"getNextNode",(i,r={})=>{let o=!1,c;return gn(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(this.isRootNode(u))return;const g=this.getNodeValue(u);if(r.skip?.({value:g,node:u,indexPath:f}))return g===i&&(o=!0),"skip";if(o&&!this.getNodeDisabled(u))return c=u,"stop";g===i&&(o=!0)}}),c}),Q(this,"getPreviousNode",(i,r={})=>{let o,c=!1;return gn(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(this.isRootNode(u))return;const g=this.getNodeValue(u);if(r.skip?.({value:g,node:u,indexPath:f}))return"skip";if(g===i)return c=!0,"stop";this.getNodeDisabled(u)||(o=u)}}),c?o:void 0}),Q(this,"getParentNodes",i=>{const r=this.resolveIndexPath(i)?.slice();if(!r)return[];const o=[];for(;r.length>0;){r.pop();const c=this.at(r);c&&!this.isRootNode(c)&&o.unshift(c)}return o}),Q(this,"getDescendantNodes",(i,r)=>{const o=this.resolveNode(i);if(!o)return[];const c=[];return gn(o,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{f.length!==0&&(!r?.withBranch&&this.isBranchNode(u)||c.push(u))}}),c}),Q(this,"getDescendantValues",(i,r)=>this.getDescendantNodes(i,r).map(c=>this.getNodeValue(c))),Q(this,"getParentIndexPath",i=>i.slice(0,-1)),Q(this,"getParentNode",i=>{const r=this.resolveIndexPath(i);return r?this.at(this.getParentIndexPath(r)):void 0}),Q(this,"visit",i=>{const{skip:r,...o}=i;gn(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(!this.isRootNode(c))return r?.({value:this.getNodeValue(c),node:c,indexPath:u})?"skip":o.onEnter?.(c,u)}})}),Q(this,"getPreviousSibling",i=>{const r=this.getParentNode(i);if(!r)return;const o=this.getNodeChildren(r);let c=i[i.length-1];for(;--c>=0;){const u=o[c];if(!this.getNodeDisabled(u))return u}}),Q(this,"getNextSibling",i=>{const r=this.getParentNode(i);if(!r)return;const o=this.getNodeChildren(r);let c=i[i.length-1];for(;++c<o.length;){const u=o[c];if(!this.getNodeDisabled(u))return u}}),Q(this,"getSiblingNodes",i=>{const r=this.getParentNode(i);return r?this.getNodeChildren(r):[]}),Q(this,"getValues",(i=this.rootNode)=>tz(i,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),Q(this,"isValidDepth",(i,r)=>r==null?!0:typeof r=="function"?r(i.length):i.length===r),Q(this,"isBranchNode",i=>this.getNodeChildren(i).length>0||this.getNodeChildrenCount(i)!=null),Q(this,"getBranchValues",(i=this.rootNode,r={})=>{let o=[];return gn(i,{getChildren:this.getNodeChildren,onEnter:(c,u)=>{if(u.length===0)return;const f=this.getNodeValue(c);if(r.skip?.({value:f,node:c,indexPath:u}))return"skip";this.isBranchNode(c)&&this.isValidDepth(u,r.depth)&&o.push(this.getNodeValue(c))}}),o}),Q(this,"flatten",(i=this.rootNode)=>iz(i,{getChildren:this.getNodeChildren})),Q(this,"_create",(i,r)=>this.getNodeChildren(i).length>0||r.length>0?{...i,children:r}:{...i}),Q(this,"_insert",(i,r,o)=>this.copy(sz(i,{at:r,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),Q(this,"copy",i=>new c1({...this.options,rootNode:i})),Q(this,"_replace",(i,r,o)=>this.copy(cz(i,{at:r,node:o,getChildren:this.getNodeChildren,create:this._create}))),Q(this,"_move",(i,r,o)=>this.copy(dz(i,{indexPaths:r,to:o,getChildren:this.getNodeChildren,create:this._create}))),Q(this,"_remove",(i,r)=>this.copy(uz(i,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),Q(this,"replace",(i,r)=>this._replace(this.rootNode,i,r)),Q(this,"remove",i=>this._remove(this.rootNode,i)),Q(this,"insertBefore",(i,r)=>this.getParentNode(i)?this._insert(this.rootNode,i,r):void 0),Q(this,"insertAfter",(i,r)=>{if(!this.getParentNode(i))return;const c=[...i.slice(0,-1),i[i.length-1]+1];return this._insert(this.rootNode,c,r)}),Q(this,"move",(i,r)=>this._move(this.rootNode,i,r)),Q(this,"filter",i=>{const r=nz(this.rootNode,{predicate:i,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),Q(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},xo={nodeToValue(e){return typeof e=="string"?e:cr(e)&&Sa(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:cr(e)&&Sa(e,"label")?e.label:xo.nodeToValue(e)},isNodeDisabled(e){return cr(e)&&Sa(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(cr(e)&&Sa(e,"childrenCount"))return e.childrenCount}},u1=ve("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");u1.build();var d1=e=>new $o(e);d1.empty=()=>new $o({items:[]});var fz=e=>e.ids?.control??`combobox:${e.id}:control`,hz=e=>e.ids?.input??`combobox:${e.id}:input`,gz=e=>e.ids?.content??`combobox:${e.id}:content`,pz=e=>e.ids?.positioner??`combobox:${e.id}:popper`,mz=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,vz=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,ba=e=>e.getById(gz(e)),So=e=>e.getById(hz(e)),Kx=e=>e.getById(pz(e)),Xx=e=>e.getById(fz(e)),fs=e=>e.getById(mz(e)),Qx=e=>e.getById(vz(e)),Zl=(e,t)=>{if(t==null)return null;const i=`[role=option][data-value="${CSS.escape(t)}"]`;return sA(ba(e),i)},Zx=e=>{const t=So(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},bz=e=>{const t=fs(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:yz,createMachine:xz,choose:Sz}=Ed(),{and:Tt,not:hn}=yz;xz({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){Yp(t)},collection:d1.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:i,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Zt,hash(o){return o.join(",")},onChange(o){const c=i(),u=c.get("selectedItems"),f=e("collection"),g=o.map(p=>u.find(b=>f.getItemValue(b)===p)||f.find(p));c.set("selectedItems",g),e("onValueChange")?.({value:o,items:g})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(o){const c=e("collection").find(o);e("onHighlightChange")?.({highlightedValue:o,highlightedItem:c})}})),inputValue:t(()=>{let o=e("inputValue")||e("defaultInputValue");const c=e("value")||e("defaultValue");if(!o.trim()&&!e("multiple")){const u=e("collection").stringifyMany(c);o=Vi(e("selectionBehavior"),{preserve:o||u,replace:u,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(u){const f=r(),g=(f.previousEvent||f).src;e("onInputValueChange")?.({inputValue:u,reason:g})}}}),highlightedItem:t(()=>{const o=e("highlightedValue");return{defaultValue:e("collection").find(o)}}),selectedItems:t(()=>{const o=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(o)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:i,action:r,send:o}){i([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),i([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),i([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),i([()=>t("open")],()=>{r(["toggleVisibility"])}),i([()=>t("collection").toString()],()=>{o({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:Sz([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:Tt("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Tt("isCustomValue",hn("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:Tt("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Tt("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Tt("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Tt("isOpenControlled","isCustomValue",hn("hasHighlightedItem"),hn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Tt("isCustomValue",hn("hasHighlightedItem"),hn("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Tt("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:Tt("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Tt("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:Tt("isOpenControlled","isCustomValue",hn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Tt("isCustomValue",hn("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:Tt("isOpenControlled","isCustomValue",hn("hasHighlightedItem"),hn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Tt("isCustomValue",hn("hasHighlightedItem"),hn("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Tt("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:Tt("isOpenControlled","isCustomValue",hn("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Tt("isCustomValue",hn("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:Tt("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const i=e("openOnChange");return R2(i)?i:!!i?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:i}){return t("disableLayer")?void 0:Er(()=>ba(i),{type:"listbox",defer:!0,exclude:()=>[So(i),fs(i),Qx(i)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(o){o.preventDefault(),o.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return pm([So(e),ba(e),fs(e),Qx(e)])},trackPlacement({context:e,prop:t,scope:i}){const r=()=>Xx(i)||fs(i),o=()=>Kx(i);return e.set("currentPlacement",t("positioning").placement),bn(r,o,{...t("positioning"),defer:!0,onComplete(c){e.set("currentPlacement",c.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:i,event:r}){const o=So(i);let c=[];const u=p=>{const m=r.current().type.includes("POINTER"),b=e.get("highlightedValue");if(m||!b)return;const y=ba(i),x=t("scrollToIndexFn");if(x){const O=t("collection").indexOf(b);x({index:O,immediate:p,getElement:()=>Zl(i,b)});return}const E=Zl(i,b),C=ge(()=>{Cs(E,{rootEl:y,block:"nearest"})});c.push(C)},f=ge(()=>u(!0));c.push(f);const g=zs(o,{attributes:["aria-activedescendant"],callback:()=>u(!1)});return c.push(g),()=>{c.forEach(p=>p())}}},actions:{reposition({context:e,prop:t,scope:i,event:r}){bn(()=>Xx(i),()=>Kx(i),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(u){e.set("currentPlacement",u.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:i}=e,r=i("collection"),o=t.get("highlightedValue");if(!o||!r.has(o))return;const c=i("multiple")?_o(t.get("value"),o):[o];i("onSelect")?.({value:c,itemValue:o}),t.set("value",c);const u=Vi(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(c),clear:""});t.set("inputValue",u)},scrollToHighlightedItem({context:e,prop:t,scope:i}){_s(()=>{const r=e.get("highlightedValue");if(r==null)return;const o=Zl(i,r),c=ba(i),u=t("scrollToIndexFn");if(u){const f=t("collection").indexOf(r);u({index:f,immediate:!0,getElement:()=>Zl(i,r)});return}Cs(o,{rootEl:c,block:"nearest"})})},selectItem(e){const{context:t,event:i,flush:r,prop:o}=e;i.value!=null&&r(()=>{const c=o("multiple")?_o(t.get("value"),i.value):[i.value];o("onSelect")?.({value:c,itemValue:i.value}),t.set("value",c);const u=Vi(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(c),clear:""});t.set("inputValue",u)})},clearItem(e){const{context:t,event:i,flush:r,prop:o}=e;i.value!=null&&r(()=>{const c=gr(t.get("value"),i.value);t.set("value",c);const u=Vi(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(c),clear:""});t.set("inputValue",u)})},setInitialFocus({scope:e}){ge(()=>{Zx(e)})},setFinalFocus({scope:e}){ge(()=>{fs(e)?.dataset.focusable==null?Zx(e):bz(e)})},syncInputValue({context:e,scope:t,event:i}){const r=So(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{i.current().type!=="INPUT.CHANGE"&&tI(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:i}){const r=t("selectionBehavior"),o=Vi(r,{replace:i("hasSelectedItems")?i("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:i,event:r,prop:o}=e;i(()=>{t.set("value",r.value);const c=Vi(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(r.value),clear:""});t.set("inputValue",c)})},clearSelectedItems(e){const{context:t,flush:i,prop:r}=e;i(()=>{t.set("value",[]);const o=Vi(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const i=e("scrollToIndexFn");if(i){const r=e("collection").firstValue;i({index:0,immediate:!0,getElement:()=>Zl(t,r)})}else{const r=ba(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){const i=Jx(t);e("onOpenChange")?.({open:!0,reason:i})},invokeOnClose({prop:e,event:t}){const i=Jx(t);e("onOpenChange")?.({open:!1,reason:i})},highlightFirstItem({context:e,prop:t,scope:i}){(ba(i)?queueMicrotask:ge)(()=>{const o=t("collection").firstValue;o&&e.set("highlightedValue",o)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:i}){(ba(i)?queueMicrotask:ge)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let i=null;const r=e.get("highlightedValue"),o=t("collection");r?(i=o.getNextValue(r),!i&&t("loopFocus")&&(i=o.firstValue)):i=o.firstValue,i&&e.set("highlightedValue",i)},highlightPrevItem({context:e,prop:t}){let i=null;const r=e.get("highlightedValue"),o=t("collection");r?(i=o.getPreviousValue(r),!i&&t("loopFocus")&&(i=o.lastValue)):i=o.lastValue,i&&e.set("highlightedValue",i)},highlightFirstSelectedItem({context:e,prop:t}){ge(()=>{const[i]=t("collection").sort(e.get("value"));i&&e.set("highlightedValue",i)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:i}){ge(()=>{let r=null;i("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:i}){ge(()=>{const r=t("collection");let o=null;i("hasSelectedItems")?o=r.sort(e.get("value"))[0]:o=r.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:i,event:r,scope:o}){const c=So(o),u=i("collection");if(!t("autoComplete")||!c||!r.keypress)return;const f=u.stringify(e.get("highlightedValue"));ge(()=>{c.value=f||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:i}=e,r=i("collection"),o=t.get("value"),c=o.map(f=>t.get("selectedItems").find(p=>r.getItemValue(p)===f)||r.find(f));t.set("selectedItems",c);const u=Vi(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",u)})},syncHighlightedItem({context:e,prop:t}){const i=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",i)},toggleVisibility({event:e,send:t,prop:i}){t({type:i("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function Jx(e){return(e.previousEvent||e).src}de()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]);de()(["htmlFor"]);de()(["id"]);de()(["item","persistFocus"]);const Cz=u1.extendWith("empty"),[f1,za]=zt({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),h1=T.forwardRef((e,t)=>{const i=za(),r=NE(),o=oi({...r,present:i.open}),c=ae(i.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:z.jsx(se.div,{...c,ref:Ia(o.ref,t)})});h1.displayName="DialogBackdrop";const g1=T.forwardRef((e,t)=>{const i=za(),r=ae(i.getCloseTriggerProps(),e);return z.jsx(se.button,{...r,ref:t})});g1.displayName="DialogCloseTrigger";const p1=T.forwardRef((e,t)=>{const i=za(),r=li(),o=ae(i.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:z.jsx(se.div,{...o,ref:Ia(r.ref,t)})});p1.displayName="DialogContent";const m1=T.forwardRef((e,t)=>{const i=za(),r=ae(i.getDescriptionProps(),e);return z.jsx(se.div,{...r,ref:t})});m1.displayName="DialogDescription";const v1=T.forwardRef((e,t)=>{const i=za(),r=ae(i.getPositionerProps(),e);return li().unmounted?null:z.jsx(se.div,{...r,ref:t})});v1.displayName="DialogPositioner";var vm=ve("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),nr=vm.build(),b1=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,y1=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,Qg=e=>e.ids?.content??`dialog:${e.id}:content`,x1=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,Zg=e=>e.ids?.title??`dialog:${e.id}:title`,Jg=e=>e.ids?.description??`dialog:${e.id}:description`,S1=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,xu=e=>e.getById(Qg(e)),Ez=e=>e.getById(b1(e)),Tz=e=>e.getById(y1(e)),Oz=e=>e.getById(x1(e)),wz=e=>e.getById(Zg(e)),Rz=e=>e.getById(Jg(e)),kz=e=>e.getById(S1(e));function Nz(e,t){const{state:i,send:r,context:o,prop:c,scope:u}=e,f=c("aria-label"),g=i.matches("open");return{open:g,setOpen(p){i.matches("open")!==p&&r({type:p?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...nr.trigger.attrs,dir:c("dir"),id:x1(u),"aria-haspopup":"dialog",type:"button","aria-expanded":g,"data-state":g?"open":"closed","aria-controls":Qg(u),onClick(p){p.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...nr.backdrop.attrs,dir:c("dir"),hidden:!g,id:y1(u),"data-state":g?"open":"closed"})},getPositionerProps(){return t.element({...nr.positioner.attrs,dir:c("dir"),id:b1(u),style:{pointerEvents:g?void 0:"none"}})},getContentProps(){const p=o.get("rendered");return t.element({...nr.content.attrs,dir:c("dir"),role:c("role"),hidden:!g,id:Qg(u),tabIndex:-1,"data-state":g?"open":"closed","aria-modal":!0,"aria-label":f||void 0,"aria-labelledby":f||!p.title?void 0:Zg(u),"aria-describedby":p.description?Jg(u):void 0})},getTitleProps(){return t.element({...nr.title.attrs,dir:c("dir"),id:Zg(u)})},getDescriptionProps(){return t.element({...nr.description.attrs,dir:c("dir"),id:Jg(u)})},getCloseTriggerProps(){return t.button({...nr.closeTrigger.attrs,dir:c("dir"),id:S1(u),type:"button",onClick(p){p.defaultPrevented||(p.stopPropagation(),r({type:"CLOSE"}))}})}}}var Iz={props({props:e,scope:t}){const i=e.role==="alertdialog",r=i?()=>kz(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!i,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:i}){e([()=>i("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:i}){return Er(()=>xu(e),{type:"dialog",defer:!0,pointerBlocking:i("modal"),exclude:[Oz(e)],onInteractOutside(o){i("onInteractOutside")?.(o),i("closeOnInteractOutside")||o.preventDefault()},persistentElements:i("persistentElements"),onFocusOutside:i("onFocusOutside"),onPointerDownOutside:i("onPointerDownOutside"),onRequestDismiss:i("onRequestDismiss"),onEscapeKeyDown(o){i("onEscapeKeyDown")?.(o),i("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return ME(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?DE(()=>xu(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>t("finalFocusEl")?.()??r,getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?pm(()=>[xu(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){ge(()=>{e.set("rendered",{title:!!wz(t),description:!!Rz(t)})})},syncZIndex({scope:e}){ge(()=>{const t=xu(e);if(!t)return;const i=Ta(t);[Ez(e),Tz(e)].forEach(o=>{o?.style.setProperty("--z-index",i.zIndex),o?.style.setProperty("--layer-index",i.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:i}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:i})}}}};de()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const Az=e=>{const t=T.useId(),{getRootNode:i}=Na(),{dir:r}=Aa(),o={id:t,getRootNode:i,dir:r,...e},c=$i(Iz,o);return Nz(c,Va)},Pz=e=>{const[t,{children:i,...r}]=Pa(e),[o]=Nd(t),c=Az(r),u=oi(ae({present:c.open},t));return z.jsx(f1,{value:c,children:z.jsx(kd,{value:o,children:z.jsx(Ui,{value:u,children:i})})})},Vz=e=>{const[t,{value:i,children:r}]=Pa(e),[o]=Nd(t),c=oi(ae({present:i.open},t));return z.jsx(f1,{value:i,children:z.jsx(kd,{value:o,children:z.jsx(Ui,{value:c,children:r})})})},C1=T.forwardRef((e,t)=>{const i=za(),r=ae(i.getTitleProps(),e);return z.jsx(se.h2,{...r,ref:t})});C1.displayName="DialogTitle";const E1=T.forwardRef((e,t)=>{const i=za(),r=li(),o=ae({...i.getTriggerProps(),"aria-controls":r.unmounted?void 0:i.getTriggerProps()["aria-controls"]},e);return z.jsx(se.button,{...o,ref:t})});E1.displayName="DialogTrigger";var T1=ve("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");T1.build();de()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const O1=T.forwardRef((e,t)=>{const i=Tr(),r=ae(i?.getInputProps(),e);return z.jsx(se.input,{...r,ref:t})});O1.displayName="FieldInput";const w1=ve("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");w1.build();function _z(e){if(!e)return;const t=Ta(e);return"box-sizing:"+t.boxSizing+";border-left:"+t.borderLeftWidth+" solid red;border-right:"+t.borderRightWidth+" solid red;font-family:"+t.fontFamily+";font-feature-settings:"+t.fontFeatureSettings+";font-kerning:"+t.fontKerning+";font-size:"+t.fontSize+";font-stretch:"+t.fontStretch+";font-style:"+t.fontStyle+";font-variant:"+t.fontVariant+";font-variant-caps:"+t.fontVariantCaps+";font-variant-ligatures:"+t.fontVariantLigatures+";font-variant-numeric:"+t.fontVariantNumeric+";font-weight:"+t.fontWeight+";letter-spacing:"+t.letterSpacing+";margin-left:"+t.marginLeft+";margin-right:"+t.marginRight+";padding-left:"+t.paddingLeft+";padding-right:"+t.paddingRight+";text-indent:"+t.textIndent+";text-transform:"+t.textTransform}function zz(e){var t=e.createElement("div");return t.id="ghost",t.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",e.body.appendChild(t),t}function Dz(e){if(!e)return;const t=en(e),i=ot(e),r=zz(t),o=_z(e);o&&(r.style.cssText+=o);function c(){i.requestAnimationFrame(()=>{r.innerHTML=e.value;const u=i.getComputedStyle(r);e?.style.setProperty("width",u.width)})}return c(),e?.addEventListener("input",c),e?.addEventListener("change",c),()=>{t.body.removeChild(r),e?.removeEventListener("input",c),e?.removeEventListener("change",c)}}var Mz=e=>{if(!e)return;const t=Ta(e),i=ot(e),r=en(e),o=()=>{requestAnimationFrame(()=>{e.style.height="auto";let p;t.boxSizing==="content-box"?p=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):p=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&p>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),p=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${p}px`})};e.addEventListener("input",o),e.form?.addEventListener("reset",o);const c=Object.getPrototypeOf(e),u=Object.getOwnPropertyDescriptor(c,"value");Object.defineProperty(e,"value",{...u,set(){u?.set?.apply(this,arguments),o()}});const f=new i.ResizeObserver(()=>{requestAnimationFrame(()=>o())});f.observe(e);const g=new i.MutationObserver(()=>o());return g.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",o),()=>{e.removeEventListener("input",o),e.form?.removeEventListener("reset",o),r.fonts?.removeEventListener("loadingdone",o),f.disconnect(),g.disconnect()}};const R1=T.forwardRef((e,t)=>{const{autoresize:i,...r}=e,o=T.useRef(null),c=Tr(),u=ae(c?.getTextareaProps(),{style:{resize:i?"none":void 0}},r);return T.useEffect(()=>{if(i)return Mz(o.current)},[i]),z.jsx(se.textarea,{...u,ref:Ia(t,o)})});R1.displayName="FieldTextarea";const k1=ve("fieldset").parts("root","errorText","helperText","legend");k1.build();var N1=ve("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");N1.build();de()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]);de()(["file","type"]);var I1=ve("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");I1.build();var Lz=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,Bz=e=>e.ids?.content??`hover-card:${e.id}:content`,Hz=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Og=e=>e.getById(Lz(e)),Fz=e=>e.getById(Bz(e)),eS=e=>e.getById(Hz(e)),{not:Su,and:tS}=jn();tS("isOpenControlled",Su("isPointer")),Su("isPointer"),tS("isOpenControlled",Su("isPointer")),Su("isPointer");de()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var A1=ve("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");A1.build();var P1=e=>new s1(e);P1.empty=()=>new s1({rootNode:{children:[]}});var $z=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,Kn=(e,t)=>{t!=null&&e.getById($z(e,t))?.focus()},Uz=(e,t)=>`tree:${e.id}:rename-input:${t}`,nS=(e,t)=>e.getById(Uz(e,t));function jz(e,t,i){const r=e.getDescendantValues(t),o=r.every(c=>i.includes(c));return xa(o?gr(i,...r):sr(i,...r))}function Cu(e,t){const{context:i,prop:r,refs:o}=e;if(!r("loadChildren")){i.set("expandedValue",C=>xa(sr(C,...t)));return}const c=i.get("loadingStatus"),[u,f]=sx(t,C=>c[C]==="loaded");if(u.length>0&&i.set("expandedValue",C=>xa(sr(C,...u))),f.length===0)return;const g=r("collection"),[p,m]=sx(f,C=>{const O=g.findNode(C);return g.getNodeChildren(O).length>0});if(p.length>0&&i.set("expandedValue",C=>xa(sr(C,...p))),m.length===0)return;i.set("loadingStatus",C=>({...C,...m.reduce((O,w)=>({...O,[w]:"loading"}),{})}));const b=m.map(C=>{const O=g.getIndexPath(C),w=g.getValuePath(O),k=g.findNode(C);return{id:C,indexPath:O,valuePath:w,node:k}}),y=o.get("pendingAborts"),x=r("loadChildren");Fp(x,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const E=b.map(({id:C,indexPath:O,valuePath:w,node:k})=>{const N=y.get(C);N&&(N.abort(),y.delete(C));const M=new AbortController;return y.set(C,M),x({valuePath:w,indexPath:O,node:k,signal:M.signal})});Promise.allSettled(E).then(C=>{const O=[],w=[],k=i.get("loadingStatus");let N=r("collection");C.forEach((M,P)=>{const{id:j,indexPath:F,node:Y,valuePath:_}=b[P];M.status==="fulfilled"?(k[j]="loaded",O.push(j),N=N.replace(F,{...Y,children:M.value})):(y.delete(j),Reflect.deleteProperty(k,j),w.push({node:Y,error:M.reason,indexPath:F,valuePath:_}))}),i.set("loadingStatus",k),O.length&&(i.set("expandedValue",M=>xa(sr(M,...O))),r("onLoadChildrenComplete")?.({collection:N})),w.length&&r("onLoadChildrenError")?.({nodes:w})})}function va(e){const{prop:t,context:i}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(u=>!i.get("expandedValue").includes(u))}}var{and:Xn}=jn();Xn("isMultipleSelection","moveFocus"),Xn("isShiftKey","isMultipleSelection"),Xn("isShiftKey","isMultipleSelection"),Xn("isBranchFocused","isBranchExpanded"),Xn("isShiftKey","isMultipleSelection"),Xn("isShiftKey","isMultipleSelection"),Xn("isCtrlKey","isMultipleSelection"),Xn("isShiftKey","isMultipleSelection"),Xn("isCtrlKey","isMultipleSelection"),Xn("isShiftKey","isMultipleSelection");de()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren","canRename","onRenameStart","onBeforeRename","onRenameComplete"]);de()(["node","indexPath"]);var V1=ve("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");V1.build();var _1=e=>new $o(e);_1.empty=()=>new $o({items:[]});var Gz=e=>e.ids?.content??`select:${e.id}:content`,Wz=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,iS=e=>e.getById(Gz(e)),aS=(e,t)=>e.getById(Wz(e,t)),{guards:qz,createMachine:Yz}=Ed(),{or:Kz}=qz;Yz({props({props:e}){return{loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:_1.empty(),orientation:"vertical",selectionMode:"single",...e}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Zt,onChange(i){const r=e("collection").findMany(i);return e("onValueChange")?.({value:i,items:r})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(i){e("onHighlightChange")?.({highlightedValue:i,highlightedItem:e("collection").find(i),highlightedIndex:e("collection").indexOf(i)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const i=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(i)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}},refs(){return{typeahead:{...Oa.defaultOptions},focusVisible:!1}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isInteractive:({prop:e})=>!e("disabled"),selection:({context:e,prop:t})=>{const i=new K_(e.get("value"));return i.selectionMode=t("selectionMode"),i.deselectable=!!t("deselectable"),i},multiple:({prop:e})=>e("selectionMode")==="multiple"||e("selectionMode")==="extended",valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState(){return"idle"},watch({context:e,prop:t,track:i,action:r}){i([()=>e.get("value").toString()],()=>{r(["syncSelectedItems"])}),i([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem"])}),i([()=>t("collection").toString()],()=>{r(["syncHighlightedValue"])})},effects:["trackFocusVisible"],on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]}},states:{idle:{effects:["scrollToHighlightedItem"],on:{"INPUT.FOCUS":{actions:["setFocused"]},"CONTENT.FOCUS":[{guard:Kz("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused"]},"ITEM.CLICK":{actions:["setHighlightedItem","selectHighlightedItem"]},"CONTENT.TYPEAHEAD":{actions:["setFocused","highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},NAVIGATE:{actions:["setFocused","setHighlightedItem","selectWithKeyboard"]}}}},implementations:{guards:{hasSelectedValue:({context:e})=>e.get("value").length>0,hasHighlightedValue:({context:e})=>e.get("highlightedValue")!=null},effects:{trackFocusVisible:({scope:e,refs:t})=>Vd({root:e.getRootNode?.(),onChange(i){t.set("focusVisible",i.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:i}){const r=c=>{const u=e.get("highlightedValue");if(u==null||__()!=="keyboard")return;const g=iS(i),p=t("scrollToIndexFn");if(p){const b=t("collection").indexOf(u);p?.({index:b,immediate:c,getElement(){return aS(i,u)}});return}const m=aS(i,u);Cs(m,{rootEl:g,block:"nearest"})};return ge(()=>r(!0)),zs(()=>iS(i),{defer:!0,attributes:["data-activedescendant"],callback(){r(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:i,computed:r}){const o=i.value??e.get("highlightedValue"),c=t("collection");if(o==null||!c.has(o))return;const u=r("selection");if(i.shiftKey&&r("multiple")&&i.anchorValue){const f=u.extendSelection(c,i.anchorValue,o);Jl(u,f,t("onSelect")),e.set("value",Array.from(f))}else{const f=u.select(c,o,i.metaKey);Jl(u,f,t("onSelect")),e.set("value",Array.from(f))}},selectWithKeyboard({context:e,prop:t,event:i,computed:r}){const o=r("selection"),c=t("collection");if(i.shiftKey&&r("multiple")&&i.anchorValue){const u=o.extendSelection(c,i.anchorValue,i.value);Jl(o,u,t("onSelect")),e.set("value",Array.from(u));return}if(t("selectOnHighlight")){const u=o.replaceSelection(c,i.value);Jl(o,u,t("onSelect")),e.set("value",Array.from(u))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:i,refs:r}){const o=t("collection").search(i.key,{state:r.get("typeahead"),currentValue:e.get("highlightedValue")});o!=null&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:i,computed:r}){const o=t("collection"),c=r("selection"),u=c.select(o,i.value);Jl(c,u,t("onSelect")),e.set("value",Array.from(u))},clearItem({context:e,event:t,computed:i}){const o=i("selection").deselect(t.value);e.set("value",Array.from(o))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},syncSelectedItems({context:e,prop:t}){const i=t("collection"),r=e.get("selectedItems"),c=e.get("value").map(u=>r.find(g=>i.getItemValue(g)===u)||i.find(u));e.set("selectedItems",c)},syncHighlightedItem({context:e,prop:t}){const i=t("collection"),r=e.get("highlightedValue"),o=r?i.find(r):null;e.set("highlightedItem",o)},syncHighlightedValue({context:e,prop:t}){const i=t("collection"),r=e.get("highlightedValue");r!=null&&!i.has(r)&&e.set("highlightedValue",null)},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){const r=t("collection").firstValue;r!=null&&e.set("highlightedValue",r)},clearFocused({context:e}){e.set("focused",!1)}}}});var Xz=(e,t)=>{const i=new Set(e);for(const r of t)i.delete(r);return i};function Jl(e,t,i){const r=Xz(t,e);for(const o of r)i?.({value:o})}de()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]);de()(["item","highlightOnHover"]);de()(["id"]);de()(["htmlFor"]);const Qz=V1.extendWith("empty");var z1=ve("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");z1.build();var D1=e=>e.ids?.trigger??`menu:${e.id}:trigger`,Zz=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,M1=e=>e.ids?.content??`menu:${e.id}:content`,Jz=e=>e.ids?.positioner??`menu:${e.id}:popper`,ep=(e,t)=>`${e.id}/${t}`,ir=e=>e?.dataset.value??null,ya=e=>e.getById(M1(e)),rS=e=>e.getById(Jz(e)),Eu=e=>e.getById(D1(e)),eD=(e,t)=>t?e.getById(ep(e,t)):null,wg=e=>e.getById(Zz(e)),Ms=e=>{const i=`[role^="menuitem"][data-ownedby=${CSS.escape(M1(e))}]:not([data-disabled])`;return vr(ya(e),i)},tD=e=>Io(Ms(e)),nD=e=>pd(Ms(e)),bm=(e,t)=>t?e.id===t||e.dataset.value===t:!1,iD=(e,t)=>{const i=Ms(e),r=i.findIndex(o=>bm(o,t.value));return E2(i,r,{loop:t.loop??t.loopFocus})},aD=(e,t)=>{const i=Ms(e),r=i.findIndex(o=>bm(o,t.value));return O2(i,r,{loop:t.loop??t.loopFocus})},rD=(e,t)=>{const i=Ms(e),r=i.find(o=>bm(o,t.value));return Oa(i,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},oD=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),lD="menu:select";function sD(e,t){if(!e)return;const i=ot(e),r=new i.CustomEvent(lD,{detail:{value:t}});e.dispatchEvent(r)}var{not:An,and:go,or:cD}=jn();An("isSubmenu"),cD("isOpenAutoFocusEvent","isArrowDownEvent"),go(An("isTriggerItem"),"isOpenControlled"),An("isTriggerItem"),go("isSubmenu","isOpenControlled"),An("isPointerSuspended"),go(An("isPointerSuspended"),An("isTriggerItem")),go(An("isTriggerItemHighlighted"),An("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),go(An("isTriggerItemHighlighted"),An("isHighlightedItemEditable"),"closeOnSelect"),go(An("isTriggerItemHighlighted"),An("isHighlightedItemEditable"));function oS(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function uD(e,t){return e?h_(e,t):!1}function dD(e,t,i){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return ep(i,t);for(const o in e){const c=e[o],u=D1(c.scope);if(u===t)return u}return ep(i,t)}de()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]);de()(["closeOnSelect","disabled","value","valueText"]);de()(["htmlFor"]);de()(["id"]);de()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let Rg=new Map,tp=!1;try{tp=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let rd=!1;try{rd=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const L1={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class fD{format(t){let i="";if(!tp&&this.options.signDisplay!=null?i=gD(this.numberFormatter,this.options.signDisplay,t):i=this.numberFormatter.format(t),this.options.style==="unit"&&!rd){var r;let{unit:o,unitDisplay:c="short",locale:u}=this.resolvedOptions();if(!o)return i;let f=(r=L1[o])===null||r===void 0?void 0:r[c];i+=f[u]||f.default}return i}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,i){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,i);if(i<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(i)}`}formatRangeToParts(t,i){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,i);if(i<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(i);return[...r.map(c=>({...c,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(c=>({...c,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!tp&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!rd&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,i={}){this.numberFormatter=hD(t,i),this.options=i}}function hD(e,t={}){let{numberingSystem:i}=t;if(i&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${i}`),t.style==="unit"&&!rd){var r;let{unit:u,unitDisplay:f="short"}=t;if(!u)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=L1[u])===null||r===void 0)&&r[f]))throw new Error(`Unsupported unit ${u} with unitDisplay = ${f}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((u,f)=>u[0]<f[0]?-1:1).join():"");if(Rg.has(o))return Rg.get(o);let c=new Intl.NumberFormat(e,t);return Rg.set(o,c),c}function gD(e,t,i){if(t==="auto")return e.format(i);if(t==="never")return e.format(Math.abs(i));{let r=!1;if(t==="always"?r=i>0||Object.is(i,0):t==="exceptZero"&&(Object.is(i,-0)||Object.is(i,0)?i=Math.abs(i):r=i>0),r){let o=e.format(-i),c=e.format(i),u=o.replace(c,"").replace(/\u200e|\u061C/,"");return[...u].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(c,"!!!").replace(u,"+").replace("!!!",c)}else return e.format(i)}}const pD=new RegExp("^.*\\(.*\\).*$"),mD=["latn","arab","hanidec","deva","beng","fullwide"];class B1{parse(t){return kg(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,i,r){return kg(this.locale,this.options,t).isValidPartialNumber(t,i,r)}getNumberingSystem(t){return kg(this.locale,this.options,t).options.numberingSystem}constructor(t,i={}){this.locale=t,this.options=i}}const lS=new Map;function kg(e,t,i){let r=sS(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(i)){for(let o of mD)if(o!==r.options.numberingSystem){let c=sS(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(c.isValidPartialNumber(i))return c}}return r}function sS(e,t){let i=e+(t?Object.entries(t).sort((o,c)=>o[0]<c[0]?-1:1).join():""),r=lS.get(i);return r||(r=new vD(e,t),lS.set(i,r)),r}class vD{parse(t){let i=this.sanitize(t);if(this.symbols.group&&(i=po(i,this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let u=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let f=i.indexOf(".");f===-1&&(f=i.length),i=i.replace(".",""),f-2===0?i=`0.${i}`:f-2===-1?i=`0.0${i}`:f-2===-2?i="0.00":i=`${i.slice(0,f-2)}.${i.slice(f-2)}`,u>-1&&(i=`-${i}`)}let r=i?+i:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,c;let u={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((c=this.options.maximumFractionDigits)!==null&&c!==void 0?c:0)+2,20)};return new B1(this.locale,u).parse(new fD(this.locale,u).format(r))}return this.options.currencySign==="accounting"&&pD.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=po(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=po(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=po(t," ",this.symbols.group),t=po(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,i=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&i<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=po(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,i={}){this.locale=t,i.roundingIncrement!==1&&i.roundingIncrement!=null&&(i.maximumFractionDigits==null&&i.minimumFractionDigits==null?(i.maximumFractionDigits=0,i.minimumFractionDigits=0):i.maximumFractionDigits==null?i.maximumFractionDigits=i.minimumFractionDigits:i.minimumFractionDigits==null&&(i.minimumFractionDigits=i.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,i),this.options=this.formatter.resolvedOptions(),this.symbols=yD(t,this.formatter,this.options,i);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const cS=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),bD=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function yD(e,t,i,r){var o,c,u,f;let g=new Intl.NumberFormat(e,{...i,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),p=g.formatToParts(-10000.111),m=g.formatToParts(10000.111),b=bD.map($=>g.formatToParts($));var y;let x=(y=(o=p.find($=>$.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&y!==void 0?y:"-",E=(c=m.find($=>$.type==="plusSign"))===null||c===void 0?void 0:c.value;!E&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(E="+");let O=(u=new Intl.NumberFormat(e,{...i,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find($=>$.type==="decimal"))===null||u===void 0?void 0:u.value,w=(f=p.find($=>$.type==="group"))===null||f===void 0?void 0:f.value,k=p.filter($=>!cS.has($.type)).map($=>uS($.value)),N=b.flatMap($=>$.filter(G=>!cS.has(G.type)).map(G=>uS(G.value))),M=[...new Set([...k,...N])].sort(($,G)=>G.length-$.length),P=M.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${M.join("|")}|[\\p{White_Space}]`,"gu"),j=[...new Intl.NumberFormat(i.locale,{useGrouping:!1}).format(9876543210)].reverse(),F=new Map(j.map(($,G)=>[$,G])),Y=new RegExp(`[${j.join("")}]`,"g");return{minusSign:x,plusSign:E,decimal:O,group:w,literals:P,numeral:Y,index:$=>String(F.get($))}}function po(e,t,i){return e.replaceAll?e.replaceAll(t,i):e.split(t).join(i)}function uS(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var H1=ve("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");H1.build();var xD=e=>e.ids?.input??`number-input:${e.id}:input`,SD=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,CD=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,F1=e=>`number-input:${e.id}:cursor`,Tu=e=>e.getById(xD(e)),ED=e=>e.getById(SD(e)),TD=e=>e.getById(CD(e)),$1=e=>e.getDoc().getElementById(F1(e)),OD=(e,t)=>{let i=null;return t==="increment"&&(i=ED(e)),t==="decrement"&&(i=TD(e)),i},wD=(e,t)=>{if(!Vs())return ND(e,t),()=>{$1(e)?.remove()}},RD=e=>{const t=e.getDoc(),i=t.documentElement,r=t.body;return r.style.pointerEvents="none",i.style.userSelect="none",i.style.cursor="ew-resize",()=>{r.style.pointerEvents="",i.style.userSelect="",i.style.cursor="",i.style.length||i.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},kD=(e,t)=>{const{point:i,isRtl:r,event:o}=t,c=e.getWin(),u=pg(o.movementX,c.devicePixelRatio),f=pg(o.movementY,c.devicePixelRatio);let g=u>0?"increment":u<0?"decrement":null;r&&g==="increment"&&(g="decrement"),r&&g==="decrement"&&(g="increment");const p={x:i.x+u,y:i.y+f},m=c.innerWidth,b=pg(7.5,c.devicePixelRatio);return p.x=F2(p.x+b,m)-b,{hint:g,point:p}},ND=(e,t)=>{const i=e.getDoc(),r=i.createElement("div");r.className="scrubber--cursor",r.id=F1(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:iI,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=`
|
|
10
|
+
<svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
|
|
11
|
+
<g transform="translate(2 3)">
|
|
12
|
+
<path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
|
|
13
|
+
<path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
|
|
14
|
+
</g>
|
|
15
|
+
</svg>`,i.body.appendChild(r)};function ID(e,t,i){if(!(!e||!i.isActiveElement(e))){if(!t){const r=e.value.length;e.setSelectionRange(r,r);return}try{const r=e.value,{start:o,end:c,value:u}=t;if(r===u){e.setSelectionRange(o,c);return}const f=dS(u,r,o),g=o===c?f:dS(u,r,c),p=Math.max(0,Math.min(f,r.length)),m=Math.max(p,Math.min(g,r.length));e.setSelectionRange(p,m)}catch{const r=e.value.length;e.setSelectionRange(r,r)}}}function dS(e,t,i){const r=e.slice(0,i),o=e.slice(i);let c=0;const u=Math.min(r.length,t.length);for(let p=0;p<u&&r[p]===t[p];p++)c=p+1;let f=0;const g=Math.min(o.length,t.length-c);for(let p=0;p<g;p++){const m=o.length-1-p,b=t.length-1-p;if(o[m]===t[b])f=p+1;else break}if(c>=r.length)return c;if(f>=o.length)return t.length-f;if(c>0)return c;if(f>0)return t.length-f;if(e.length>0){const p=i/e.length;return Math.round(p*t.length)}return t.length}var AD=(e,t={})=>new Intl.NumberFormat(e,t),PD=(e,t={})=>new B1(e,t),Ng=(e,t)=>{const{prop:i,computed:r}=t;return i("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},ar=(e,t)=>{const{prop:i,computed:r}=t;return Number.isNaN(e)?"":i("formatOptions")?r("formatter").format(e):e.toString()},VD=(e,t)=>{let i=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(i=.01),i},{choose:_D,guards:zD,createMachine:DD}=Ed(),{not:fS,and:hS}=zD;DD({props({props:e}){const t=VD(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:i}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){const o=i(),c=Ng(r,{computed:o,prop:e});e("onValueChange")?.({value:r,valueAsNumber:c})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:i})=>Ng(e.get("value"),{computed:t,prop:i}),formattedValue:({computed:e,prop:t})=>ar(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>U2(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>$2(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!j2(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:bx(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>AD(e,t)),parser:bx(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>PD(e,t))},watch({track:e,action:t,context:i,computed:r,prop:o}){e([()=>i.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>i.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:hS("clampValueOnBlur",fS("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:fS("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:_D([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:hS("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const i=Tu(t);return Lo(i,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const i=e.get("scrubberCursorPoint");return wD(t,i)},preventTextSelection({scope:e}){return RD(e)},trackButtonDisabled({context:e,scope:t,send:i}){const r=e.get("hint"),o=OD(t,r);return zs(o,{attributes:["disabled"],callback(){i({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:i}){const r=Tu(e);if(!r||!e.isActiveElement(r)||!i("allowMouseWheel"))return;function o(c){c.preventDefault();const u=Math.sign(c.deltaY)*-1;u===1?t({type:"VALUE.INCREMENT"}):u===-1&&t({type:"VALUE.DECREMENT"})}return Be(r,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!Vs())return nA(e.getDoc())},trackMousemove({scope:e,send:t,context:i,computed:r}){const o=e.getDoc();function c(f){const g=i.get("scrubberCursorPoint"),p=r("isRtl"),m=kD(e,{point:g,isRtl:p,event:f});m.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:m.hint,point:m.point})}function u(){t({type:"SCRUBBER.POINTER_UP"})}return Xu(Be(o,"mousemove",c,!1),Be(o,"mouseup",u,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const i=Tu(e);e.isActiveElement(i)||ge(()=>i?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:i,computed:r}){let o=Y2(r("valueAsNumber"),t.step??i("step"));i("allowOverflow")||(o=Xt(o,i("min"),i("max"))),e.set("value",ar(o,{computed:r,prop:i}))},decrement({context:e,event:t,prop:i,computed:r}){let o=K2(r("valueAsNumber"),t.step??i("step"));i("allowOverflow")||(o=Xt(o,i("min"),i("max"))),e.set("value",ar(o,{computed:r,prop:i}))},setClampedValue({context:e,prop:t,computed:i}){const r=Xt(i("valueAsNumber"),t("min"),t("max"));e.set("value",ar(r,{computed:i,prop:t}))},setRawValue({context:e,event:t,prop:i,computed:r}){let o=Ng(t.value,{computed:r,prop:i});i("allowOverflow")||(o=Xt(o,i("min"),i("max"))),e.set("value",ar(o,{computed:r,prop:i}))},setValue({context:e,event:t}){const i=t.target?.value??t.value;e.set("value",i)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:i}){const r=ar(t("max"),{computed:i,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:i}){const r=ar(t("min"),{computed:i,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:i}){if(i.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:i,scope:r}){const o=t.type.endsWith("CHANGE")?e.get("value"):i("formattedValue"),c=Tu(r),u=t.selection;ge(()=>{mr(c,o),ID(c,u,r)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const i=$1(t),r=e.get("scrubberCursorPoint");!i||!r||(i.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}});de()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var U1=ve("pinInput").parts("root","label","input","control");U1.build();de()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);const[j1,ci]=zt({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),G1=T.forwardRef((e,t)=>{const i=ci(),r=ae(i.getAnchorProps(),e);return z.jsx(se.div,{...r,ref:t})});G1.displayName="PopoverAnchor";const W1=T.forwardRef((e,t)=>{const i=ci(),r=ae(i.getArrowProps(),e);return z.jsx(se.div,{...r,ref:t})});W1.displayName="PopoverArrow";const q1=T.forwardRef((e,t)=>{const i=ci(),r=ae(i.getArrowTipProps(),e);return z.jsx(se.div,{...r,ref:t})});q1.displayName="PopoverArrowTip";const Y1=T.forwardRef((e,t)=>{const i=ci(),r=ae(i.getCloseTriggerProps(),e);return z.jsx(se.button,{...r,ref:t})});Y1.displayName="PopoverCloseTrigger";const K1=T.forwardRef((e,t)=>{const i=ci(),r=li(),o=ae(i.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:z.jsx(se.div,{...o,ref:Ia(r.ref,t)})});K1.displayName="PopoverContent";const X1=T.forwardRef((e,t)=>{const i=ci(),r=ae(i.getDescriptionProps(),e);return z.jsx(se.div,{...r,ref:t})});X1.displayName="PopoverDescription";const Q1=T.forwardRef((e,t)=>{const i=ci(),r=ae(i.getIndicatorProps(),e);return z.jsx(se.div,{...r,ref:t})});Q1.displayName="PopoverIndicator";const Z1=T.forwardRef((e,t)=>{const i=ci(),r=li(),o=ae(i.getPositionerProps(),e);return r.unmounted?null:z.jsx(se.div,{...o,ref:t})});Z1.displayName="PopoverPositioner";var J1=ve("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),Qn=J1.build(),eT=e=>e.ids?.anchor??`popover:${e.id}:anchor`,tT=e=>e.ids?.trigger??`popover:${e.id}:trigger`,np=e=>e.ids?.content??`popover:${e.id}:content`,nT=e=>e.ids?.positioner??`popover:${e.id}:popper`,MD=e=>e.ids?.arrow??`popover:${e.id}:arrow`,ip=e=>e.ids?.title??`popover:${e.id}:title`,ap=e=>e.ids?.description??`popover:${e.id}:desc`,LD=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,gS=e=>e.getById(eT(e)),mo=e=>e.getById(tT(e)),vo=e=>e.getById(np(e)),pS=e=>e.getById(nT(e)),BD=e=>e.getById(ip(e)),HD=e=>e.getById(ap(e));function FD(e,t){const{state:i,context:r,send:o,computed:c,prop:u,scope:f}=e,g=i.matches("open"),p=r.get("currentPlacement"),m=c("currentPortalled"),b=r.get("renderedElements"),y=gm({...u("positioning"),placement:p});return{portalled:m,open:g,setOpen(x){i.matches("open")!==x&&o({type:x?"OPEN":"CLOSE"})},reposition(x={}){o({type:"POSITIONING.SET",options:x})},getArrowProps(){return t.element({id:MD(f),...Qn.arrow.attrs,dir:u("dir"),style:y.arrow})},getArrowTipProps(){return t.element({...Qn.arrowTip.attrs,dir:u("dir"),style:y.arrowTip})},getAnchorProps(){return t.element({...Qn.anchor.attrs,dir:u("dir"),id:eT(f)})},getTriggerProps(){return t.button({...Qn.trigger.attrs,dir:u("dir"),type:"button","data-placement":p,id:tT(f),"aria-haspopup":"dialog","aria-expanded":g,"data-state":g?"open":"closed","aria-controls":np(f),onPointerDown(x){qC(x)&&Vs()&&x.currentTarget.focus()},onClick(x){x.defaultPrevented||o({type:"TOGGLE"})},onBlur(x){o({type:"TRIGGER_BLUR",target:x.relatedTarget})}})},getIndicatorProps(){return t.element({...Qn.indicator.attrs,dir:u("dir"),"data-state":g?"open":"closed"})},getPositionerProps(){return t.element({id:nT(f),...Qn.positioner.attrs,dir:u("dir"),style:y.floating})},getContentProps(){return t.element({...Qn.content.attrs,dir:u("dir"),id:np(f),tabIndex:-1,role:"dialog","aria-modal":BC(u("modal")),hidden:!g,"data-state":g?"open":"closed","data-expanded":me(g),"aria-labelledby":b.title?ip(f):void 0,"aria-describedby":b.description?ap(f):void 0,"data-placement":p})},getTitleProps(){return t.element({...Qn.title.attrs,id:ip(f),dir:u("dir")})},getDescriptionProps(){return t.element({...Qn.description.attrs,id:ap(f),dir:u("dir")})},getCloseTriggerProps(){return t.button({...Qn.closeTrigger.attrs,dir:u("dir"),id:LD(f),type:"button","aria-label":"close",onClick(x){x.defaultPrevented||(x.stopPropagation(),o({type:"CLOSE"}))}})}}}var $D={props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,...e,positioning:{placement:"bottom",...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:i}){e([()=>t("open")],()=>{i(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:i}){e.set("currentPlacement",t("positioning").placement);const r=gS(i)??mo(i);return bn(r,()=>pS(i),{...t("positioning"),defer:!0,onComplete(c){e.set("currentPlacement",c.placement)}})},trackDismissableElement({send:e,prop:t,scope:i}){const r=()=>vo(i);let o=!0;return Er(r,{type:"popover",pointerBlocking:t("modal"),exclude:mo(i),defer:!0,onEscapeKeyDown(c){t("onEscapeKeyDown")?.(c),!t("closeOnEscape")&&c.preventDefault()},onInteractOutside(c){t("onInteractOutside")?.(c),!c.defaultPrevented&&(o=!(c.detail.focusable||c.detail.contextmenu),t("closeOnInteractOutside")||c.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},proxyTabFocus({prop:e,scope:t}){return e("modal")||!e("portalled")?void 0:lA(()=>vo(t),{triggerElement:mo(t),defer:!0,getShadowRoot:!0,onFocus(r){r.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){return e("modal")?pm(()=>[vo(t),mo(t)],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return ME(t.getDoc())},trapFocus({prop:e,scope:t}){return e("modal")?DE(()=>vo(t),{initialFocus:()=>Ss({root:vo(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:i,context:r}){const o=gS(i)??mo(i);bn(o,()=>pS(i),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(u){r.set("currentPlacement",u.placement)}})},checkRenderedElements({context:e,scope:t}){ge(()=>{Object.assign(e.get("renderedElements"),{title:!!BD(t),description:!!HD(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||ge(()=>{Ss({root:vo(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})?.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){const i=e.restoreFocus??e.previousEvent?.restoreFocus;i!=null&&!i||ge(()=>{mo(t)?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:i}){t({type:i("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}};de()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const UD=e=>{const t=T.useId(),{getRootNode:i}=Na(),{dir:r}=Aa(),o={id:t,dir:r,getRootNode:i,...e},c=$i($D,o);return FD(c,Va)},jD=e=>{const[t,{children:i,...r}]=Pa(e),o=UD(r),c=oi(ae({present:o.open},t));return z.jsx(j1,{value:o,children:z.jsx(Ui,{value:c,children:i})})},GD=e=>{const[t,{value:i,children:r}]=Pa(e),o=oi(ae({present:i.open},t));return z.jsx(j1,{value:i,children:z.jsx(Ui,{value:o,children:r})})},iT=T.forwardRef((e,t)=>{const i=ci(),r=ae(i.getTitleProps(),e);return z.jsx(se.div,{...r,ref:t})});iT.displayName="PopoverTitle";const aT=T.forwardRef((e,t)=>{const i=ci(),r=li(),o=ae({...i.getTriggerProps(),"aria-controls":r.unmounted?void 0:i.getTriggerProps()["aria-controls"]},e);return z.jsx(se.button,{...o,ref:t})});aT.displayName="PopoverTrigger";var ym=ve("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");ym.build();de()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var rT=ve("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");rT.build();de()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var xm=ve("radio-group").parts("root","label","item","itemText","itemControl","indicator");xm.build();de()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);de()(["value","disabled","invalid"]);var oT=ve("rating-group").parts("root","label","item","control");oT.build();de()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);de()(["index"]);var lT=ve("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");lT.build();de()(["dir","getRootNode","ids","id"]);const sT=xm.rename("segment-group");sT.build();const[cT,yn]=zt({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"}),uT=T.forwardRef((e,t)=>{const i=yn(),r=ae(i.getClearTriggerProps(),e);return z.jsx(se.button,{...r,ref:t})});uT.displayName="SelectClearTrigger";const dT=T.forwardRef((e,t)=>{const i=yn(),r=li(),o=ae(i.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:z.jsx(se.div,{...o,ref:Ia(r.ref,t)})});dT.displayName="SelectContent";const fT=T.forwardRef((e,t)=>{const i=yn(),r=ae(i.getControlProps(),e);return z.jsx(se.div,{...r,ref:t})});fT.displayName="SelectControl";const hT=T.forwardRef((e,t)=>{const i=yn(),r=ae(i.getIndicatorProps(),e);return z.jsx(se.div,{...r,ref:t})});hT.displayName="SelectIndicator";const[WD]=zt({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[qD,gT]=zt({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),pT=T.forwardRef((e,t)=>{const[i,r]=Dt()(e,["item","persistFocus"]),o=yn(),c=ae(o.getItemProps(i),r),u=o.getItemState(i);return z.jsx(qD,{value:i,children:z.jsx(WD,{value:u,children:z.jsx(se.div,{...c,ref:t})})})});pT.displayName="SelectItem";const[YD,KD]=zt({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),mT=T.forwardRef((e,t)=>{const i=T.useId(),[r,o]=Dt()(e,["id"]),c={id:i,...r},u=yn(),f=ae(u.getItemGroupProps(c),o);return z.jsx(YD,{value:c,children:z.jsx(se.div,{...f,ref:t})})});mT.displayName="SelectItemGroup";const vT=T.forwardRef((e,t)=>{const i=yn(),r=KD(),o=ae(i.getItemGroupLabelProps({htmlFor:r.id}),e);return z.jsx(se.div,{...o,ref:t})});vT.displayName="SelectItemGroupLabel";const bT=T.forwardRef((e,t)=>{const i=yn(),r=gT(),o=ae(i.getItemIndicatorProps(r),e);return z.jsx(se.div,{...o,ref:t})});bT.displayName="SelectItemIndicator";const yT=T.forwardRef((e,t)=>{const i=yn(),r=gT(),o=ae(i.getItemTextProps(r),e);return z.jsx(se.span,{...o,ref:t})});yT.displayName="SelectItemText";const xT=T.forwardRef((e,t)=>{const i=yn(),r=ae(i.getLabelProps(),e);return z.jsx(se.label,{...r,ref:t})});xT.displayName="SelectLabel";const ST=T.forwardRef((e,t)=>{const i=yn(),r=ae(i.getPositionerProps(),e);return li().unmounted?null:z.jsx(se.div,{...r,ref:t})});ST.displayName="SelectPositioner";var CT=ve("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText"),Ht=CT.build(),ET=e=>new $o(e);ET.empty=()=>new $o({items:[]});var XD=e=>e.ids?.root??`select:${e.id}`,rp=e=>e.ids?.content??`select:${e.id}:content`,op=e=>e.ids?.trigger??`select:${e.id}:trigger`,TT=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,Ou=e=>e.ids?.label??`select:${e.id}:label`,QD=e=>e.ids?.control??`select:${e.id}:control`,lp=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,sp=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,OT=e=>e.ids?.positioner??`select:${e.id}:positioner`,ZD=(e,t)=>e.ids?.itemGroup?.(t)??`select:${e.id}:optgroup:${t}`,mS=(e,t)=>e.ids?.itemGroupLabel?.(t)??`select:${e.id}:optgroup-label:${t}`,Ig=e=>e.getById(sp(e)),es=e=>e.getById(rp(e)),fr=e=>e.getById(op(e)),JD=e=>e.getById(TT(e)),vS=e=>e.getById(OT(e)),Ag=(e,t)=>t==null?null:e.getById(lp(e,t));function e5(e,t){const{context:i,prop:r,scope:o,state:c,computed:u,send:f}=e,g=r("disabled")||i.get("fieldsetDisabled"),p=!!r("invalid"),m=!!r("required"),b=!!r("readOnly"),y=r("composite"),x=r("collection"),E=c.hasTag("open"),C=c.matches("focused"),O=i.get("highlightedValue"),w=i.get("highlightedItem"),k=i.get("selectedItems"),N=i.get("currentPlacement"),M=u("isTypingAhead"),P=u("isInteractive"),j=O?lp(o,O):void 0;function F(_){const $=x.getItemDisabled(_.item),G=x.getItemValue(_.item);return Fp(G,()=>`[zag-js] No value found for item ${JSON.stringify(_.item)}`),{value:G,disabled:!!(g||$),highlighted:O===G,selected:i.get("value").includes(G)}}const Y=gm({...r("positioning"),placement:N});return{open:E,focused:C,empty:i.get("value").length===0,highlightedItem:w,highlightedValue:O,selectedItems:k,hasSelectedItems:u("hasSelectedItems"),value:i.get("value"),valueAsString:u("valueAsString"),collection:x,multiple:!!r("multiple"),disabled:!!g,reposition(_={}){f({type:"POSITIONING.SET",options:_})},focus(){fr(o)?.focus({preventScroll:!0})},setOpen(_){c.hasTag("open")!==_&&f({type:_?"OPEN":"CLOSE"})},selectValue(_){f({type:"ITEM.SELECT",value:_})},setValue(_){f({type:"VALUE.SET",value:_})},selectAll(){f({type:"VALUE.SET",value:x.getValues()})},setHighlightValue(_){f({type:"HIGHLIGHTED_VALUE.SET",value:_})},clearHighlightValue(){f({type:"HIGHLIGHTED_VALUE.CLEAR"})},clearValue(_){f(_?{type:"ITEM.CLEAR",value:_}:{type:"VALUE.CLEAR"})},getItemState:F,getRootProps(){return t.element({...Ht.root.attrs,dir:r("dir"),id:XD(o),"data-invalid":me(p),"data-readonly":me(b)})},getLabelProps(){return t.label({dir:r("dir"),id:Ou(o),...Ht.label.attrs,"data-disabled":me(g),"data-invalid":me(p),"data-readonly":me(b),"data-required":me(m),htmlFor:sp(o),onClick(_){_.defaultPrevented||g||fr(o)?.focus({preventScroll:!0})}})},getControlProps(){return t.element({...Ht.control.attrs,dir:r("dir"),id:QD(o),"data-state":E?"open":"closed","data-focus":me(C),"data-disabled":me(g),"data-invalid":me(p)})},getValueTextProps(){return t.element({...Ht.valueText.attrs,dir:r("dir"),"data-disabled":me(g),"data-invalid":me(p),"data-focus":me(C)})},getTriggerProps(){return t.button({id:op(o),disabled:g,dir:r("dir"),type:"button",role:"combobox","aria-controls":rp(o),"aria-expanded":E,"aria-haspopup":"listbox","data-state":E?"open":"closed","aria-invalid":p,"aria-required":m,"aria-labelledby":Ou(o),...Ht.trigger.attrs,"data-disabled":me(g),"data-invalid":me(p),"data-readonly":me(b),"data-placement":N,"data-placeholder-shown":me(!u("hasSelectedItems")),onClick(_){P&&(_.defaultPrevented||f({type:"TRIGGER.CLICK"}))},onFocus(){f({type:"TRIGGER.FOCUS"})},onBlur(){f({type:"TRIGGER.BLUR"})},onKeyDown(_){if(_.defaultPrevented||!P)return;const G={ArrowUp(){f({type:"TRIGGER.ARROW_UP"})},ArrowDown(Z){f({type:Z.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){f({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){f({type:"TRIGGER.ARROW_RIGHT"})},Home(){f({type:"TRIGGER.HOME"})},End(){f({type:"TRIGGER.END"})},Enter(){f({type:"TRIGGER.ENTER"})},Space(Z){f(M?{type:"TRIGGER.TYPEAHEAD",key:Z.key}:{type:"TRIGGER.ENTER"})}}[Fg(_,{dir:r("dir"),orientation:"vertical"})];if(G){G(_),_.preventDefault();return}Oa.isValidEvent(_)&&(f({type:"TRIGGER.TYPEAHEAD",key:_.key}),_.preventDefault())}})},getIndicatorProps(){return t.element({...Ht.indicator.attrs,dir:r("dir"),"aria-hidden":!0,"data-state":E?"open":"closed","data-disabled":me(g),"data-invalid":me(p),"data-readonly":me(b)})},getItemProps(_){const $=F(_);return t.element({id:lp(o,$.value),role:"option",...Ht.item.attrs,dir:r("dir"),"data-value":$.value,"aria-selected":$.selected,"data-state":$.selected?"checked":"unchecked","data-highlighted":me($.highlighted),"data-disabled":me($.disabled),"aria-disabled":BC($.disabled),onPointerMove(G){$.disabled||G.pointerType!=="mouse"||$.value!==O&&f({type:"ITEM.POINTER_MOVE",value:$.value})},onClick(G){G.defaultPrevented||$.disabled||f({type:"ITEM.CLICK",src:"pointerup",value:$.value})},onPointerLeave(G){$.disabled||_.persistFocus||G.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER")||f({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(_){const $=F(_);return t.element({...Ht.itemText.attrs,"data-state":$.selected?"checked":"unchecked","data-disabled":me($.disabled),"data-highlighted":me($.highlighted)})},getItemIndicatorProps(_){const $=F(_);return t.element({"aria-hidden":!0,...Ht.itemIndicator.attrs,"data-state":$.selected?"checked":"unchecked",hidden:!$.selected})},getItemGroupLabelProps(_){const{htmlFor:$}=_;return t.element({...Ht.itemGroupLabel.attrs,id:mS(o,$),dir:r("dir"),role:"presentation"})},getItemGroupProps(_){const{id:$}=_;return t.element({...Ht.itemGroup.attrs,"data-disabled":me(g),id:ZD(o,$),"aria-labelledby":mS(o,$),role:"group",dir:r("dir")})},getClearTriggerProps(){return t.button({...Ht.clearTrigger.attrs,id:TT(o),type:"button","aria-label":"Clear value","data-invalid":me(p),disabled:g,hidden:!u("hasSelectedItems"),dir:r("dir"),onClick(_){_.defaultPrevented||f({type:"CLEAR.CLICK"})}})},getHiddenSelectProps(){const _=i.get("value"),$=r("multiple")?_:_?.[0];return t.select({name:r("name"),form:r("form"),disabled:g,multiple:r("multiple"),required:r("required"),"aria-hidden":!0,id:sp(o),defaultValue:$,style:Jp,tabIndex:-1,onFocus(){fr(o)?.focus({preventScroll:!0})},"aria-labelledby":Ou(o)})},getPositionerProps(){return t.element({...Ht.positioner.attrs,dir:r("dir"),id:OT(o),style:Y.floating})},getContentProps(){return t.element({hidden:!E,dir:r("dir"),id:rp(o),role:y?"listbox":"dialog",...Ht.content.attrs,"data-state":E?"open":"closed","data-placement":N,"data-activedescendant":j,"aria-activedescendant":y?j:void 0,"aria-multiselectable":r("multiple")&&y?!0:void 0,"aria-labelledby":Ou(o),tabIndex:0,onKeyDown(_){if(!P||!Bn(_.currentTarget,ct(_)))return;if(_.key==="Tab"&&!qI(_)){_.preventDefault();return}const $={ArrowUp(){f({type:"CONTENT.ARROW_UP"})},ArrowDown(){f({type:"CONTENT.ARROW_DOWN"})},Home(){f({type:"CONTENT.HOME"})},End(){f({type:"CONTENT.END"})},Enter(){f({type:"ITEM.CLICK",src:"keydown.enter"})},Space(ce){M?f({type:"CONTENT.TYPEAHEAD",key:ce.key}):$.Enter?.(ce)}},G=$[Fg(_)];if(G){G(_),_.preventDefault();return}const Z=ct(_);$p(Z)||Oa.isValidEvent(_)&&(f({type:"CONTENT.TYPEAHEAD",key:_.key}),_.preventDefault())}})},getListProps(){return t.element({...Ht.list.attrs,tabIndex:0,role:y?void 0:"listbox","aria-labelledby":op(o),"aria-activedescendant":y?void 0:j,"aria-multiselectable":!y&&r("multiple")?!0:void 0})}}}var{and:ts,not:rr,or:t5}=jn(),n5={props({props:e}){return{loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??ET.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Zt,onChange(i){const r=e("collection").findMany(i);return e("onValueChange")?.({value:i,items:r})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(i){e("onHighlightChange")?.({highlightedValue:i,highlightedItem:e("collection").find(i),highlightedIndex:e("collection").indexOf(i)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const i=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(i)}})}},refs(){return{typeahead:{...Oa.defaultOptions}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},entry:["syncSelectElement"],watch({context:e,prop:t,track:i,action:r}){i([()=>e.get("value").toString()],()=>{r(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),i([()=>t("open")],()=>{r(["toggleVisibility"])}),i([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem"])}),i([()=>t("collection").toString()],()=>{r(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:t5("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:ts(rr("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:rr("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:ts(rr("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:rr("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:rr("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:rr("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:rr("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:ts("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:ts("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:ts("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>bS(e),isOpenControlled:({prop:e})=>e("open")!==void 0,isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFormControlState({context:e,scope:t}){return Lo(Ig(t),{onFieldsetDisabledChange(i){e.set("fieldsetDisabled",i)},onFormReset(){const i=e.initial("value");e.set("value",i)}})},trackDismissableElement({scope:e,send:t,prop:i}){const r=()=>es(e);let o=!0;return Er(r,{type:"listbox",defer:!0,exclude:[fr(e),JD(e)],onFocusOutside:i("onFocusOutside"),onPointerDownOutside:i("onPointerDownOutside"),onInteractOutside(c){i("onInteractOutside")?.(c),o=!(c.detail.focusable||c.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},computePlacement({context:e,prop:t,scope:i}){const r=t("positioning");return e.set("currentPlacement",r.placement),bn(()=>fr(i),()=>vS(i),{defer:!0,...r,onComplete(u){e.set("currentPlacement",u.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:i,event:r}){const o=u=>{const f=e.get("highlightedValue");if(f==null||r.current().type.includes("POINTER"))return;const g=es(i),p=t("scrollToIndexFn");if(p){const b=t("collection").indexOf(f);p?.({index:b,immediate:u,getElement:()=>Ag(i,f)});return}const m=Ag(i,f);Cs(m,{rootEl:g,block:"nearest"})};return ge(()=>o(!0)),zs(()=>es(i),{defer:!0,attributes:["data-activedescendant"],callback(){o(!1)}})}},actions:{reposition({context:e,prop:t,scope:i,event:r}){const o=()=>vS(i);bn(fr(i),o,{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(c){e.set("currentPlacement",c.placement)}})},toggleVisibility({send:e,prop:t,event:i}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:i})},highlightPreviousItem({context:e,prop:t}){const i=e.get("highlightedValue");if(i==null)return;const r=t("collection").getPreviousValue(i,1,t("loopFocus"));r!=null&&e.set("highlightedValue",r)},highlightNextItem({context:e,prop:t}){const i=e.get("highlightedValue");if(i==null)return;const r=t("collection").getNextValue(i,1,t("loopFocus"));r!=null&&e.set("highlightedValue",r)},highlightFirstItem({context:e,prop:t}){const i=t("collection").firstValue;e.set("highlightedValue",i)},highlightLastItem({context:e,prop:t}){const i=t("collection").lastValue;e.set("highlightedValue",i)},setInitialFocus({scope:e}){ge(()=>{Ss({root:es(e)})?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){bS(e)&&ge(()=>{fr(t)?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:i}){let r=i.value??e.get("highlightedValue");if(r==null||!t("collection").has(r))return;t("onSelect")?.({value:r}),r=t("deselectable")&&!t("multiple")&&e.get("value").includes(r)?null:r,e.set("value",c=>r==null?[]:t("multiple")?_o(c,r):[r])},highlightComputedFirstItem({context:e,prop:t,computed:i}){const r=t("collection"),o=i("hasSelectedItems")?r.sort(e.get("value"))[0]:r.firstValue;e.set("highlightedValue",o)},highlightComputedLastItem({context:e,prop:t,computed:i}){const r=t("collection"),o=i("hasSelectedItems")?r.sort(e.get("value"))[0]:r.lastValue;e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t,computed:i}){if(!i("hasSelectedItems"))return;const r=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",r)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:i,refs:r}){const o=t("collection").search(i.key,{state:r.get("typeahead"),currentValue:e.get("highlightedValue")});o!=null&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:i}){t("onSelect")?.({value:i.value});const o=t("deselectable")&&!t("multiple")&&e.get("value").includes(i.value)?null:i.value;e.set("value",c=>o==null?[]:t("multiple")?_o(c,o):[o])},clearItem({context:e,event:t}){e.set("value",i=>i.filter(r=>r!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){const[i]=e.get("value"),r=t("collection").getPreviousValue(i);r&&e.set("value",[r])},selectNextItem({context:e,prop:t}){const[i]=e.get("value"),r=t("collection").getNextValue(i);r&&e.set("value",[r])},selectFirstItem({context:e,prop:t}){const i=t("collection").firstValue;i&&e.set("value",[i])},selectLastItem({context:e,prop:t}){const i=t("collection").lastValue;i&&e.set("value",[i])},selectMatchingItem({context:e,prop:t,event:i,refs:r}){const o=t("collection").search(i.key,{state:r.get("typeahead"),currentValue:e.get("value")[0]});o!=null&&e.set("value",[o])},scrollContentToTop({prop:e,scope:t}){if(e("scrollToIndexFn")){const i=e("collection").firstValue;e("scrollToIndexFn")?.({index:0,immediate:!0,getElement:()=>Ag(t,i)})}else es(t)?.scrollTo(0,0)},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},syncSelectElement({context:e,prop:t,scope:i}){const r=Ig(i);if(r){if(e.get("value").length===0&&!t("multiple")){r.selectedIndex=-1;return}for(const o of r.options)o.selected=e.get("value").includes(o.value)}},syncCollection({context:e,prop:t}){const i=t("collection"),r=i.find(e.get("highlightedValue"));r&&e.set("highlightedItem",r);const o=i.findMany(e.get("value"));e.set("selectedItems",o)},syncSelectedItems({context:e,prop:t}){const i=t("collection"),r=e.get("selectedItems"),c=e.get("value").map(u=>r.find(g=>i.getItemValue(g)===u)||i.find(u));e.set("selectedItems",c)},syncHighlightedItem({context:e,prop:t}){const i=t("collection"),r=e.get("highlightedValue"),o=r?i.find(r):null;e.set("highlightedItem",o)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{const t=Ig(e);if(!t)return;const i=e.getWin(),r=new i.Event("change",{bubbles:!0,composed:!0});t.dispatchEvent(r)})}}}};function bS(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}de()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);de()(["item","persistFocus"]);de()(["id"]);de()(["htmlFor"]);const i5=e=>{const t=T.useId(),{dir:i}=Aa(),{getRootNode:r}=Na(),o=Tr(),c={id:t,ids:{label:o?.ids.label,hiddenSelect:o?.ids.control},disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,dir:i,getRootNode:r,...e},u=$i(n5,c);return e5(u,Va)},a5=(e,t)=>{const[i,r]=Pa(e),[o,c]=Dt()(r,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),u=i5(o),f=oi(ae({present:u.open},i)),g=ae(u.getRootProps(),c);return z.jsx(cT,{value:u,children:z.jsx(Ui,{value:f,children:z.jsx(se.div,{...g,ref:t})})})},r5=T.forwardRef(a5),o5=(e,t)=>{const[i,r]=Pa(e),[{value:o},c]=Dt()(r,["value"]),u=oi(ae({present:o.open},i)),f=ae(o.getRootProps(),c);return z.jsx(cT,{value:o,children:z.jsx(Ui,{value:u,children:z.jsx(se.div,{...f,ref:t})})})},l5=T.forwardRef(o5),wT=T.forwardRef((e,t)=>{const i=yn(),r=ae(i.getTriggerProps(),e);return z.jsx(se.button,{...r,ref:t})});wT.displayName="SelectTrigger";const RT=T.forwardRef((e,t)=>{const{children:i,placeholder:r,...o}=e,c=yn(),u=ae(c.getValueTextProps(),o);return z.jsx(se.span,{...u,ref:t,children:i||c.valueAsString||r})});RT.displayName="SelectValueText";var kT=ve("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");kT.build();de()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);de()(["index","name"]);de()(["value"]);const[NT,Uo]=zt({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),IT=T.forwardRef((e,t)=>{const i=Uo(),r=ae(i.getControlProps(),e);return z.jsx(se.span,{...r,ref:t})});IT.displayName="SwitchControl";const AT=T.forwardRef((e,t)=>{const i=Uo(),r=ae(i.getHiddenInputProps(),e),o=Tr();return z.jsx(se.input,{"aria-describedby":o?.ariaDescribedby,...r,ref:t})});AT.displayName="SwitchHiddenInput";const PT=T.forwardRef((e,t)=>{const i=Uo(),r=ae(i.getLabelProps(),e);return z.jsx(se.span,{...r,ref:t})});PT.displayName="SwitchLabel";var VT=ve("switch").parts("root","label","control","thumb"),wu=VT.build(),_T=e=>e.ids?.root??`switch:${e.id}`,yS=e=>e.ids?.label??`switch:${e.id}:label`,s5=e=>e.ids?.thumb??`switch:${e.id}:thumb`,c5=e=>e.ids?.control??`switch:${e.id}:control`,cp=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,u5=e=>e.getById(_T(e)),Oo=e=>e.getById(cp(e));function d5(e,t){const{context:i,send:r,prop:o,scope:c}=e,u=!!o("disabled"),f=!!o("readOnly"),g=!!o("required"),p=!!i.get("checked"),m=!u&&i.get("focused"),b=!u&&i.get("focusVisible"),y=!u&&i.get("active"),x={"data-active":me(y),"data-focus":me(m),"data-focus-visible":me(b),"data-readonly":me(f),"data-hover":me(i.get("hovered")),"data-disabled":me(u),"data-state":p?"checked":"unchecked","data-invalid":me(o("invalid")),"data-required":me(g)};return{checked:p,disabled:u,focused:m,setChecked(E){r({type:"CHECKED.SET",checked:E,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:p,isTrusted:!1})},getRootProps(){return t.label({...wu.root.attrs,...x,dir:o("dir"),id:_T(c),htmlFor:cp(c),onPointerMove(){u||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){u||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(E){if(u)return;ct(E)===Oo(c)&&E.stopPropagation(),Vs()&&Oo(c)?.focus()}})},getLabelProps(){return t.element({...wu.label.attrs,...x,dir:o("dir"),id:yS(c)})},getThumbProps(){return t.element({...wu.thumb.attrs,...x,dir:o("dir"),id:s5(c),"aria-hidden":!0})},getControlProps(){return t.element({...wu.control.attrs,...x,dir:o("dir"),id:c5(c),"aria-hidden":!0})},getHiddenInputProps(){return t.input({id:cp(c),type:"checkbox",required:o("required"),defaultChecked:p,disabled:u,"aria-labelledby":yS(c),"aria-invalid":o("invalid"),name:o("name"),form:o("form"),value:o("value"),style:Jp,onFocus(){const E=ws();r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:E}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(E){if(f){E.preventDefault();return}const C=E.currentTarget.checked;r({type:"CHECKED.SET",checked:C,isTrusted:!0})}})}}}var{not:xS}=jn(),f5={props({props:e}){return{defaultChecked:!1,label:"switch",value:"on",...e}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(i){e("onCheckedChange")?.({checked:i})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:i,action:r}){e([()=>t("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>i.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:xS("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:xS("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:i}){if(!e("isDisabled"))return rE({pointerNode:u5(t),keyboardNode:Oo(t),isValidKey:r=>r.key===" ",onPress:()=>i.set("active",!1),onPressStart:()=>i.set("active",!0),onPressEnd:()=>i.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return Vd({root:t.getRootNode()})},trackFormControlState({context:e,send:t,scope:i}){return Lo(Oo(i),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){const r=e.initial("checked");t({type:"CHECKED.SET",checked:!!r,src:"form-reset"})}})}},actions:{setContext({context:e,event:t}){for(const i in t.context)e.set(i,t.context[i])},syncInputElement({context:e,scope:t}){const i=Oo(t);i&&Wp(i,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){const i=Oo(t);XC(i,{checked:e.get("checked")})}}}};de()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);const h5=e=>{const t=T.useId(),{getRootNode:i}=Na(),{dir:r}=Aa(),o=Tr(),c={id:t,ids:{label:o?.ids.label,hiddenInput:o?.ids.control},dir:r,disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,getRootNode:i,...e},u=$i(f5,c);return d5(u,Va)},zT=T.forwardRef((e,t)=>{const[i,r]=Dt()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),o=h5(i),c=ae(o.getRootProps(),r);return z.jsx(NT,{value:o,children:z.jsx(se.label,{...c,ref:t})})});zT.displayName="SwitchRoot";const DT=T.forwardRef((e,t)=>{const[{value:i},r]=Dt()(e,["value"]),o=ae(i.getRootProps(),r);return z.jsx(NT,{value:i,children:z.jsx(se.label,{...o,ref:t})})});DT.displayName="SwitchRootProvider";const MT=T.forwardRef((e,t)=>{const i=Uo(),r=ae(i.getThumbProps(),e);return z.jsx(se.span,{...r,ref:t})});MT.displayName="SwitchThumb";const[LT,zd]=zt({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),BT=T.forwardRef((e,t)=>{const[i,r]=Dt()(e,["value"]),o=zd(),c=NE(),u=oi({...c,present:o.value===e.value,immediate:!0}),f=ae(o.getContentProps(i),u.getPresenceProps(),r);return z.jsx(Ui,{value:u,children:u.unmounted?null:z.jsx(se.div,{...f,ref:Ia(u.ref,t)})})});BT.displayName="TabContent";const HT=T.forwardRef((e,t)=>{const i=zd(),r=ae(i.getIndicatorProps(),e);return z.jsx(se.div,{...r,ref:t})});HT.displayName="TabIndicator";const FT=T.forwardRef((e,t)=>{const i=zd(),r=ae(i.getListProps(),e);return z.jsx(se.div,{...r,ref:t})});FT.displayName="TabList";const $T=T.forwardRef((e,t)=>{const[i,r]=Dt()(e,["disabled","value"]),o=zd(),c=ae(o.getTriggerProps(i),r);return z.jsx(se.button,{...c,ref:t})});$T.displayName="TabTrigger";var g5=ve("tabs").parts("root","list","trigger","content","indicator"),ns=g5.build(),p5=e=>e.ids?.root??`tabs:${e.id}`,gs=e=>e.ids?.list??`tabs:${e.id}:list`,up=(e,t)=>e.ids?.content?.(t)??`tabs:${e.id}:content-${t}`,pr=(e,t)=>e.ids?.trigger?.(t)??`tabs:${e.id}:trigger-${t}`,UT=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,m5=e=>e.getById(gs(e)),v5=(e,t)=>e.getById(up(e,t)),ju=(e,t)=>e.getById(pr(e,t)),SS=e=>e.getById(UT(e)),Ls=e=>{const i=`[role=tab][data-ownedby='${CSS.escape(gs(e))}']:not([disabled])`;return vr(m5(e),i)},b5=e=>Io(Ls(e)),y5=e=>pd(Ls(e)),x5=(e,t)=>Qp(Ls(e),pr(e,t.value),t.loopFocus),S5=(e,t)=>Zp(Ls(e),pr(e,t.value),t.loopFocus),jT=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),C5=(e,t)=>{const i=oE(Ls(e),pr(e,t));return GT(jT(i))},GT=e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`});function E5(e,t){const{state:i,send:r,context:o,prop:c,scope:u}=e,f=c("translations"),g=i.matches("focused"),p=c("orientation")==="vertical",m=c("orientation")==="horizontal",b=c("composite");function y(x){return{selected:o.get("value")===x.value,focused:o.get("focusedValue")===x.value,disabled:!!x.disabled}}return{value:o.get("value"),focusedValue:o.get("focusedValue"),setValue(x){r({type:"SET_VALUE",value:x})},clearValue(){r({type:"CLEAR_VALUE"})},setIndicatorRect(x){const E=pr(u,x);r({type:"SET_INDICATOR_RECT",id:E})},syncTabIndex(){r({type:"SYNC_TAB_INDEX"})},selectNext(x){r({type:"TAB_FOCUS",value:x,src:"selectNext"}),r({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(x){r({type:"TAB_FOCUS",value:x,src:"selectPrev"}),r({type:"ARROW_PREV",src:"selectPrev"})},focus(){const x=o.get("value");x&&ju(u,x)?.focus()},getRootProps(){return t.element({...ns.root.attrs,id:p5(u),"data-orientation":c("orientation"),"data-focus":me(g),dir:c("dir")})},getListProps(){return t.element({...ns.list.attrs,id:gs(u),role:"tablist",dir:c("dir"),"data-focus":me(g),"aria-orientation":c("orientation"),"data-orientation":c("orientation"),"aria-label":f?.listLabel,onKeyDown(x){if(x.defaultPrevented||WC(x)||!Bn(x.currentTarget,ct(x)))return;const E={ArrowDown(){m||r({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){m||r({type:"ARROW_PREV",key:"ArrowUp"})},ArrowLeft(){p||r({type:"ARROW_PREV",key:"ArrowLeft"})},ArrowRight(){p||r({type:"ARROW_NEXT",key:"ArrowRight"})},Home(){r({type:"HOME"})},End(){r({type:"END"})}};let C=Fg(x,{dir:c("dir"),orientation:c("orientation")});const O=E[C];if(O){x.preventDefault(),O(x);return}}})},getTriggerState:y,getTriggerProps(x){const{value:E,disabled:C}=x,O=y(x);return t.button({...ns.trigger.attrs,role:"tab",type:"button",disabled:C,dir:c("dir"),"data-orientation":c("orientation"),"data-disabled":me(C),"aria-disabled":C,"data-value":E,"aria-selected":O.selected,"data-selected":me(O.selected),"data-focus":me(O.focused),"aria-controls":O.selected?up(u,E):void 0,"data-ownedby":gs(u),"data-ssr":me(o.get("ssr")),id:pr(u,E),tabIndex:O.selected&&b?0:-1,onFocus(){r({type:"TAB_FOCUS",value:E})},onBlur(w){w.relatedTarget?.getAttribute("role")!=="tab"&&r({type:"TAB_BLUR"})},onClick(w){w.defaultPrevented||II(w)||C||(Vs()&&w.currentTarget.focus(),r({type:"TAB_CLICK",value:E}))}})},getContentProps(x){const{value:E}=x,C=o.get("value")===E;return t.element({...ns.content.attrs,dir:c("dir"),id:up(u,E),tabIndex:b?0:-1,"aria-labelledby":pr(u,E),role:"tabpanel","data-ownedby":gs(u),"data-selected":me(C),"data-orientation":c("orientation"),hidden:!C})},getIndicatorProps(){const x=o.get("indicatorRect"),E=o.get("indicatorTransition");return t.element({id:UT(u),...ns.indicator.attrs,dir:c("dir"),"data-orientation":c("orientation"),style:{"--transition-property":"left, right, top, bottom, width, height","--left":x.left,"--top":x.top,"--width":x.width,"--height":x.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:E?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[m?"left":"top"]:m?"var(--left)":"var(--top)"}})}}}var{createMachine:T5}=Ed(),O5=T5({props({props:e}){return{dir:"ltr",orientation:"horizontal",activationMode:"automatic",loopFocus:!0,composite:!0,navigate(t){Yp(t.node)},defaultValue:null,...e}},initialState(){return"idle"},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(i){e("onValueChange")?.({value:i})}})),focusedValue:t(()=>({defaultValue:e("value")||e("defaultValue"),sync:!0,onChange(i){e("onFocusChange")?.({focusedValue:i})}})),ssr:t(()=>({defaultValue:!0})),indicatorTransition:t(()=>({defaultValue:!1})),indicatorRect:t(()=>({defaultValue:{left:"0px",top:"0px",width:"0px",height:"0px"}}))}},watch({context:e,prop:t,track:i,action:r}){i([()=>e.get("value")],()=>{r(["allowIndicatorTransition","syncIndicatorRect","syncTabIndex","navigateIfNeeded"])}),i([()=>t("dir"),()=>t("orientation")],()=>{r(["syncIndicatorRect"])})},on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]},SET_INDICATOR_RECT:{actions:["setIndicatorRect"]},SYNC_TAB_INDEX:{actions:["syncTabIndex"]}},entry:["syncIndicatorRect","syncTabIndex","syncSsr"],exit:["cleanupObserver"],states:{idle:{on:{TAB_FOCUS:{target:"focused",actions:["setFocusedValue"]},TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{actions:["setFocusedValue","setValue"]},ARROW_PREV:[{guard:"selectOnFocus",actions:["focusPrevTab","selectFocusedTab"]},{actions:["focusPrevTab"]}],ARROW_NEXT:[{guard:"selectOnFocus",actions:["focusNextTab","selectFocusedTab"]},{actions:["focusNextTab"]}],HOME:[{guard:"selectOnFocus",actions:["focusFirstTab","selectFocusedTab"]},{actions:["focusFirstTab"]}],END:[{guard:"selectOnFocus",actions:["focusLastTab","selectFocusedTab"]},{actions:["focusLastTab"]}],TAB_FOCUS:{actions:["setFocusedValue"]},TAB_BLUR:{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>e("activationMode")==="automatic"},actions:{selectFocusedTab({context:e,prop:t}){ge(()=>{const i=e.get("focusedValue");if(!i)return;const o=t("deselectable")&&e.get("value")===i?null:i;e.set("value",o)})},setFocusedValue({context:e,event:t,flush:i}){t.value!=null&&i(()=>{e.set("focusedValue",t.value)})},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t,prop:i}){const r=i("deselectable")&&e.get("value")===e.get("focusedValue");e.set("value",r?null:t.value)},clearValue({context:e}){e.set("value",null)},focusFirstTab({scope:e}){ge(()=>{b5(e)?.focus()})},focusLastTab({scope:e}){ge(()=>{y5(e)?.focus()})},focusNextTab({context:e,prop:t,scope:i,event:r}){const o=r.value??e.get("focusedValue");if(!o)return;const c=x5(i,{value:o,loopFocus:t("loopFocus")});ge(()=>{t("composite")?c?.focus():c?.dataset.value!=null&&e.set("focusedValue",c.dataset.value)})},focusPrevTab({context:e,prop:t,scope:i,event:r}){const o=r.value??e.get("focusedValue");if(!o)return;const c=S5(i,{value:o,loopFocus:t("loopFocus")});ge(()=>{t("composite")?c?.focus():c?.dataset.value!=null&&e.set("focusedValue",c.dataset.value)})},syncTabIndex({context:e,scope:t}){ge(()=>{const i=e.get("value");if(!i)return;const r=v5(t,i);if(!r)return;qp(r).length>0?r.removeAttribute("tabindex"):r.setAttribute("tabindex","0")})},cleanupObserver({refs:e}){const t=e.get("indicatorCleanup");t&&t()},allowIndicatorTransition({context:e}){e.set("indicatorTransition",!0)},setIndicatorRect({context:e,event:t,scope:i}){const r=t.id??e.get("value");if(!SS(i))return;if(!r){e.set("indicatorTransition",!1);return}ju(i,r)&&(e.set("indicatorRect",C5(i,r)),_s(()=>{e.set("indicatorTransition",!1)}))},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,refs:t,scope:i}){const r=t.get("indicatorCleanup");r&&r();const o=e.get("value");if(!o){e.set("indicatorTransition",!1);return}const c=ju(i,o),u=SS(i);if(!c||!u)return;const f=cA([c],{measure(g){return jT(g)},onEntry({rects:g}){const[p]=g;e.set("indicatorRect",GT(p))}});t.set("indicatorCleanup",f)},navigateIfNeeded({context:e,prop:t,scope:i}){const r=e.get("value");if(!r)return;const o=ju(i,r);FC(o)&&t("navigate")?.({value:r,node:o,href:o.href})}}}});de()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value","defaultValue"]);de()(["disabled","value"]);de()(["value"]);const w5=e=>{const t=T.useId(),{getRootNode:i}=Na(),{dir:r}=Aa(),o={id:t,dir:r,getRootNode:i,...e},c=$i(O5,o);return E5(c,Va)},WT=T.forwardRef((e,t)=>{const[i,r]=Nd(e),[o,c]=Dt()(r,["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]),u=w5(o),f=ae(u.getRootProps(),c);return z.jsx(LT,{value:u,children:z.jsx(kd,{value:i,children:z.jsx(se.div,{...f,ref:t})})})});WT.displayName="TabsRoot";const qT=T.forwardRef((e,t)=>{const[i,r]=Nd(e),[{value:o},c]=Dt()(r,["value"]),u=ae(o.getRootProps(),c);return z.jsx(LT,{value:o,children:z.jsx(kd,{value:i,children:z.jsx(se.div,{...u,ref:t})})})});qT.displayName="TabsRootProvider";var YT=ve("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");YT.build();var R5=e=>e.ids?.root??`tags-input:${e.id}`,k5=e=>e.ids?.input??`tags-input:${e.id}:input`,N5=e=>e.ids?.hiddenInput??`tags-input:${e.id}:hidden-input`,dp=(e,t)=>e.ids?.item?.(t)??`tags-input:${e.id}:tag:${t.value}:${t.index}`,I5=(e,t)=>e.ids?.itemInput?.(t)??`${dp(e,t)}:input`,A5=e=>`${e}:input`,CS=(e,t)=>e.getById(A5(t)),P5=e=>vr(KT(e),"[data-part=item]"),V5=(e,t)=>e.getById(I5(e,t)),KT=e=>e.getById(R5(e)),is=e=>e.getById(k5(e)),XT=e=>e.getById(N5(e)),xr=e=>vr(KT(e),"[data-part=item-preview]:not([data-disabled])"),_5=e=>xr(e)[0],z5=e=>xr(e)[xr(e).length-1],D5=(e,t)=>Zp(xr(e),t,!1),M5=(e,t)=>Qp(xr(e),t,!1),L5=(e,t)=>xr(e)[t],as=(e,t)=>Cd(xr(e),t),B5=(e,t)=>{const i=XT(e);i&&KC(i,{value:t})},{and:rs,not:or,or:H5}=jn();rs(H5(or("isAtMax"),"allowOverflow"),or("isInputValueEmpty")),or("hasHighlightedTag"),rs("hasTags","isCaretAtStart"),rs("hasTags","isCaretAtStart"),rs("hasTags","isCaretAtStart",or("isLastTagHighlighted")),or("isCaretAtStart"),rs("isTagEditable","hasHighlightedTag"),or("isCaretAtStart"),or("isCaretAtStart");de()(["addOnPaste","allowOverflow","autoFocus","blurBehavior","delimiter","dir","disabled","editable","form","getRootNode","id","ids","inputValue","invalid","max","maxLength","name","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onPointerDownOutside","onValueChange","onValueInvalid","required","readOnly","translations","validate","value","defaultValue","defaultInputValue"]);de()(["index","disabled","value"]);const[QT,Bs]=zt({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"}),ZT=T.forwardRef((e,t)=>{const i=Bs(),r=ae(i.getArrowProps(),e);return z.jsx(se.div,{...r,ref:t})});ZT.displayName="TooltipArrow";const JT=T.forwardRef((e,t)=>{const i=Bs(),r=ae(i.getArrowTipProps(),e);return z.jsx(se.div,{...r,ref:t})});JT.displayName="TooltipArrowTip";const eO=T.forwardRef((e,t)=>{const i=Bs(),r=li(),o=ae(i.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:z.jsx(se.div,{...o,ref:Ia(r.ref,t)})});eO.displayName="TooltipContent";const tO=T.forwardRef((e,t)=>{const i=Bs(),r=ae(i.getPositionerProps(),e);return li().unmounted?null:z.jsx(se.div,{...r,ref:t})});tO.displayName="TooltipPositioner";var nO=ve("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),os=nO.build(),iO=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,F5=e=>e.ids?.content??`tooltip:${e.id}:content`,$5=e=>e.ids?.arrow??`tooltip:${e.id}:arrow`,aO=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,Pg=e=>e.getById(iO(e)),ES=e=>e.getById(aO(e)),zi=X2({id:null});function U5(e,t){const{state:i,context:r,send:o,scope:c,prop:u,event:f}=e,g=u("id"),p=!!u("aria-label"),m=i.matches("open","closing"),b=iO(c),y=F5(c),x=u("disabled"),E=gm({...u("positioning"),placement:r.get("currentPlacement")});return{open:m,setOpen(C){i.matches("open","closing")!==C&&o({type:C?"open":"close"})},reposition(C={}){o({type:"positioning.set",options:C})},getTriggerProps(){return t.button({...os.trigger.attrs,id:b,dir:u("dir"),"data-expanded":me(m),"data-state":m?"open":"closed","aria-describedby":m?y:void 0,onClick(C){C.defaultPrevented||x||u("closeOnClick")&&o({type:"close",src:"trigger.click"})},onFocus(C){queueMicrotask(()=>{C.defaultPrevented||x||f.src!=="trigger.pointerdown"&&ws()&&o({type:"open",src:"trigger.focus"})})},onBlur(C){C.defaultPrevented||x||g===zi.get("id")&&o({type:"close",src:"trigger.blur"})},onPointerDown(C){C.defaultPrevented||x||qC(C)&&u("closeOnPointerDown")&&g===zi.get("id")&&o({type:"close",src:"trigger.pointerdown"})},onPointerMove(C){C.defaultPrevented||x||C.pointerType!=="touch"&&o({type:"pointer.move"})},onPointerLeave(){x||o({type:"pointer.leave"})},onPointerCancel(){x||o({type:"pointer.leave"})}})},getArrowProps(){return t.element({id:$5(c),...os.arrow.attrs,dir:u("dir"),style:E.arrow})},getArrowTipProps(){return t.element({...os.arrowTip.attrs,dir:u("dir"),style:E.arrowTip})},getPositionerProps(){return t.element({id:aO(c),...os.positioner.attrs,dir:u("dir"),style:E.floating})},getContentProps(){return t.element({...os.content.attrs,dir:u("dir"),hidden:!m,"data-state":m?"open":"closed",role:p?void 0:"tooltip",id:p?void 0:y,"data-placement":r.get("currentPlacement"),onPointerEnter(){o({type:"content.pointer.move"})},onPointerLeave(){o({type:"content.pointer.leave"})},style:{pointerEvents:u("interactive")?"auto":"none"}})}}}var{and:j5,not:TS}=jn(),G5={initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props({props:e}){const t=e.closeOnClick??!0,i=e.closeOnPointerDown??t;return{id:"x",openDelay:400,closeDelay:150,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,disabled:!1,...e,closeOnPointerDown:i,closeOnClick:t,positioning:{placement:"bottom",...e.positioning}}},effects:["trackFocusVisible","trackStore"],context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:i}){e([()=>i("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>i("open")],()=>{t(["toggleVisibility"])})},states:{closed:{entry:["clearGlobalId"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":{actions:["clearPointerMoveOpened"]},"pointer.move":[{guard:j5("noVisibleTooltip",TS("hasPointerMoveOpened")),target:"opening"},{guard:TS("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]}},opening:{effects:["trackScroll","trackPointerlockChange","waitForOpenDelay"],on:{"after.openDelay":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"controlled.open":{target:"open"},"controlled.close":{target:"closed"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],close:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{effects:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"controlled.close":{target:"closed"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.leave":[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"content.pointer.leave":{guard:"isInteractive",target:"closing"},"positioning.set":{actions:["reposition"]}}},closing:{effects:["trackPositioning","waitForCloseDelay"],on:{"after.closeDelay":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"controlled.close":{target:"closed"},"controlled.open":{target:"open"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.move":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"content.pointer.move":{guard:"isInteractive",target:"open"},"positioning.set":{actions:["reposition"]}}}},implementations:{guards:{noVisibleTooltip:()=>zi.get("id")===null,isVisible:({prop:e})=>e("id")===zi.get("id"),isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>e("open")!==void 0},actions:{setGlobalId:({prop:e})=>{zi.set("id",e("id"))},clearGlobalId:({prop:e})=>{e("id")===zi.get("id")&&zi.set("id",null)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e("disabled")&&t({type:"close",src:"disabled.change"})},reposition:({context:e,event:t,prop:i,scope:r})=>{if(t.type!=="positioning.set")return;const o=()=>ES(r);return bn(Pg(r),o,{...i("positioning"),...t.options,defer:!0,listeners:!1,onComplete(c){e.set("currentPlacement",c.placement)}})},toggleVisibility:({prop:e,event:t,send:i})=>{queueMicrotask(()=>{i({type:e("open")?"controlled.open":"controlled.close",previousEvent:t})})},setPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!0)},clearPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!1)}},effects:{trackFocusVisible:({scope:e})=>Vd({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:i})=>{e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement);const r=()=>ES(i);return bn(Pg(i),r,{...t("positioning"),defer:!0,onComplete(o){e.set("currentPlacement",o.placement)}})},trackPointerlockChange:({send:e,scope:t})=>{const i=t.getDoc();return Be(i,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:i})=>{if(!t("closeOnScroll"))return;const r=Pg(i);if(!r)return;const c=nE(r).map(u=>Be(u,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{c.forEach(u=>u?.())}},trackStore:({prop:e,send:t})=>{let i;return queueMicrotask(()=>{i=zi.subscribe(()=>{zi.get("id")!==e("id")&&t({type:"close",src:"id.change"})})}),()=>i?.()},trackEscapeKey:({send:e,prop:t})=>t("closeOnEscape")?Be(document,"keydown",r=>{WC(r)||r.key==="Escape"&&(r.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0):void 0,waitForOpenDelay:({send:e,prop:t})=>{const i=setTimeout(()=>{e({type:"after.openDelay"})},t("openDelay"));return()=>clearTimeout(i)},waitForCloseDelay:({send:e,prop:t})=>{const i=setTimeout(()=>{e({type:"after.closeDelay"})},t("closeDelay"));return()=>clearTimeout(i)}}}};de()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const W5=e=>{const t=T.useId(),{getRootNode:i}=Na(),{dir:r}=Aa(),o={id:t,dir:r,getRootNode:i,...e},c=$i(G5,o);return U5(c,Va)},q5=e=>{const[t,{children:i,...r}]=Pa(e),o=W5(r),c=oi(ae({present:o.open},t));return z.jsx(QT,{value:o,children:z.jsx(Ui,{value:c,children:i})})},Y5=e=>{const[t,{value:i,children:r}]=Pa(e),o=oi(ae({present:i.open},t));return z.jsx(QT,{value:i,children:z.jsx(Ui,{value:o,children:r})})},rO=T.forwardRef((e,t)=>{const i=Bs(),r=ae(i.getTriggerProps(),e);return z.jsx(se.button,{...r,ref:t})});rO.displayName="TooltipTrigger";function oO(e,t=[]){const i=Object.assign({},e);for(const r of t)r in i&&delete i[r];return i}const K5=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[i,r]=e.split("/");if(!i||!r||i==="currentBg")return{invalid:!0,value:i};const o=t(`colors.${i}`),c=t.raw(`opacity.${r}`)?.value;if(!c&&isNaN(Number(r)))return{invalid:!0,value:i};const u=c?Number(c)*100+"%":`${r}%`,f=o??i;return{invalid:!1,color:f,value:`color-mix(in srgb, ${f} ${u}, transparent)`}},Ye=e=>(t,i)=>{const r=i.utils.colorMix(t);if(r.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:r.value,[e]:`var(${o}, ${r.color})`}};function fp(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(i=>fp(i));const t=Object.create(Object.getPrototypeOf(e));for(const i of Object.keys(e))t[i]=fp(e[i]);return t}function hp(e,t){if(t==null)return e;for(const i of Object.keys(t))if(!(t[i]===void 0||i==="__proto__"))if(!Kt(e[i])&&Kt(t[i]))Object.assign(e,{[i]:t[i]});else if(e[i]&&Kt(t[i]))hp(e[i],t[i]);else if(Array.isArray(t[i])&&Array.isArray(e[i])){let r=0;for(;r<t[i].length;r++)Kt(e[i][r])&&Kt(t[i][r])?hp(e[i][r],t[i][r]):e[i][r]=t[i][r]}else Object.assign(e,{[i]:t[i]});return e}function jo(e,...t){for(const i of t)hp(e,i);return e}const gp=e=>e!=null;function ri(e,t,i={}){const{stop:r,getKey:o}=i;function c(u,f=[]){if(Kt(u)||Array.isArray(u)){const g={};for(const[p,m]of Object.entries(u)){const b=o?.(p,m)??p,y=[...f,b];if(r?.(u,y))return t(u,f);const x=c(m,y);gp(x)&&(g[b]=x)}return g}return t(u,f)}return c(e)}function Dd(e,t){return Array.isArray(e)?e.map(i=>gp(i)?t(i):i):Kt(e)?ri(e,i=>t(i)):gp(e)?t(e):e}const Ru=["value","type","description"],X5=e=>e&&typeof e=="object"&&!Array.isArray(e),lO=(...e)=>{const t=jo({},...e.map(fp));return t.theme?.tokens&&ri(t.theme.tokens,i=>{const c=Object.keys(i).filter(f=>!Ru.includes(f)).length>0,u=Ru.some(f=>i[f]!=null);return c&&u&&(i.DEFAULT||(i.DEFAULT={}),Ru.forEach(f=>{var g;i[f]!=null&&((g=i.DEFAULT)[f]||(g[f]=i[f]),delete i[f])})),i},{stop(i){return X5(i)&&Object.keys(i).some(r=>Ru.includes(r)||r!==r.toLowerCase()&&r!==r.toUpperCase())}}),t},Q5=e=>e,St=e=>e,ye=e=>e,Z5=e=>e,J5=e=>e,Go=e=>e,eM=e=>e,tM=e=>e,nM=e=>e;function sO(){const e=t=>t;return new Proxy(e,{get(){return e}})}const vt=sO(),Sm=sO(),cO=e=>e,iM=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function aM(e){return`${e}`.replace(iM,t=>`\\${t}`)}const rM=/[A-Z]/g;function oM(e){return e.replace(rM,t=>`-${t.toLowerCase()}`)}function uO(e,t={}){const{fallback:i="",prefix:r=""}=t,o=oM(["-",r,aM(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${i?`, ${i}`:""})`}}const lM=e=>/^var\(--.+\)$/.test(e),Ot=(e,t)=>t!=null?`${e}(${t})`:t,lr=e=>{if(lM(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},OS=e=>({values:["outside","inside","mixed","none"],transform(t,{token:i}){const r=i("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),sM=Ye("borderColor"),Pi=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),cM=Q5({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),wo=uO("bg-currentcolor"),wS=e=>e===wo.ref||e==="currentBg",qe=e=>({...e("colors"),currentBg:wo}),uM=cO({conditions:cM,utilities:{background:{values:qe,shorthand:["bg"],transform(e,t){if(wS(t.raw))return{background:wo.ref};const i=Ye("background")(e,t);return{...i,[wo.var]:i?.background}}},backgroundColor:{values:qe,shorthand:["bgColor"],transform(e,t){if(wS(t.raw))return{backgroundColor:wo.ref};const i=Ye("backgroundColor")(e,t);return{...i,[wo.var]:i?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:qe,transform:Ye("--gradient-from")},gradientTo:{values:qe,transform:Ye("--gradient-to")},gradientVia:{values:qe,transform(e,t){return{...Ye("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:qe,transform:Ye("borderColor")},borderTopColor:{values:qe,transform:Ye("borderTopColor")},borderBlockStartColor:{values:qe,transform:Ye("borderBlockStartColor")},borderBottomColor:{values:qe,transform:Ye("borderBottomColor")},borderBlockEndColor:{values:qe,transform:Ye("borderBlockEndColor")},borderLeftColor:{values:qe,transform:Ye("borderLeftColor")},borderInlineStartColor:{values:qe,shorthand:["borderStartColor"],transform:Ye("borderInlineStartColor")},borderRightColor:{values:qe,transform:Ye("borderRightColor")},borderInlineEndColor:{values:qe,shorthand:["borderEndColor"],transform:Ye("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:qe,transform:Ye("color")},fill:{values:qe,transform:Ye("fill")},stroke:{values:qe,transform:Ye("stroke")},accentColor:{values:qe,transform:Ye("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:qe,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":sM(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:qe,transform:Ye("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":Ot("blur",e)})},brightness:{transform:e=>({"--brightness":Ot("brightness",e)})},contrast:{transform:e=>({"--contrast":Ot("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Ot("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Ot("hue-rotate",lr(e))})},invert:{transform:e=>({"--invert":Ot("invert",e)})},saturate:{transform:e=>({"--saturate":Ot("saturate",e)})},sepia:{transform:e=>({"--sepia":Ot("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Ot("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Ot("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Ot("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Ot("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Ot("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Ot("hue-rotate",lr(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Ot("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Ot("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Ot("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Ot("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:qe,transform:Ye("outlineColor")},focusRing:OS("&:is(:focus, [data-focus])"),focusVisibleRing:OS("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:qe,transform:Ye("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:i})=>({[i.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:i}){return{[i.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:qe,transform:Ye("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:qe,transform:Ye("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:qe,transform:Ye("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:qe,transform:Ye("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":lr(e)})},skewY:{transform:e=>({"--skew-y":lr(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:lr(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":lr(e)}}},rotateY:{transform(e){return{"--rotate-y":lr(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Pi("all");case"position":return Pi("left, right, top, bottom, inset-inline, inset-block");case"colors":return Pi("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Pi("opacity");case"shadow":return Pi("box-shadow");case"transform":return Pi("transform");case"size":return Pi("width, height");case"backgrounds":return Pi("background, background-color, background-image, background-position");case"common":return Pi("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return dM[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:qe,transform:Ye("caretColor")},cursor:{values:"cursor"}}}),dM={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var fM="",hM=fM.split(","),gM="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",pM=gM.split(",").concat(hM),mM=new Map(pM.map(e=>[e,!0]));function vM(e){const t=Object.create(null);return i=>(t[i]===void 0&&(t[i]=e(i)),t[i])}var bM=/&|@/,yM=vM(e=>mM.has(e)||e.startsWith("--")||bM.test(e));function Hn(e,t){const i={};for(const r in e){const o=t(r,e[r]);i[o[0]]=o[1]}return i}function dO(e,t){const i={};return ri(e,(r,o)=>{r&&(i[o.join(".")]=r.value)},{stop:t}),i}var xM=Object.defineProperty,SM=(e,t,i)=>t in e?xM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,RS=(e,t,i)=>SM(e,typeof t!="symbol"?t+"":t,i);function od(e){if(e===null)return"null";if(e===void 0)return"undefined";const t=typeof e;return t==="string"?`s:${e}`:t==="number"?`n:${e}`:t==="boolean"?`b:${e}`:t==="function"?`f:${e.name||"anonymous"}`:Array.isArray(e)?`a:[${e.map(od).join(",")}]`:t==="object"?`o:{${Object.keys(e).sort().map(r=>`${r}:${od(e[r])}`).join(",")}}`:String(e)}class CM{constructor(t=500){RS(this,"cache",new Map),RS(this,"maxSize"),this.maxSize=t}get(t){const i=this.cache.get(t);return i!==void 0&&(this.cache.delete(t),this.cache.set(t,i)),i}set(t,i){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){const r=this.cache.keys().next().value;r!==void 0&&this.cache.delete(r)}this.cache.set(t,i)}clear(){this.cache.clear()}}const Qt=e=>{const t=new CM;function i(...r){const o=r.length===1?od(r[0]):r.map(od).join("|");let c=t.get(o);return c===void 0&&(c=e.apply(this,r),t.set(o,c)),c}return i},fO=16,ld="px",Cm="em",ps="rem";function hO(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),i=new RegExp(`${ld}|${Cm}|${ps}`);return e.match(new RegExp(`${t.source}(${i.source})`))?.[1]}function gO(e=""){if(typeof e=="number")return`${e}px`;const t=hO(e);if(!t||t===ld)return e;if(t===Cm||t===ps)return`${parseFloat(e)*fO}${ld}`}function pO(e=""){const t=hO(e);if(!t||t===ps)return e;if(t===Cm)return`${parseFloat(e)}${ps}`;if(t===ld)return`${parseFloat(e)/fO}${ps}`}const EM=e=>e.charAt(0).toUpperCase()+e.slice(1);function TM(e){const t=OM(e),i=Object.fromEntries(t);function r(y){return i[y]}function o(y){return bo(r(y))}function c(){const y=Object.keys(i),x=wM(y),E=y.flatMap(C=>{const O=r(C),w=[`${C}Down`,bo({max:Gu(O.min)})],k=[C,bo({min:O.min})],N=[`${C}Only`,o(C)];return[k,N,w]}).filter(([,C])=>C!=="").concat(x.map(([C,O])=>{const w=r(C),k=r(O);return[`${C}To${EM(O)}`,bo({min:w.min,max:Gu(k.min)})]}));return Object.fromEntries(E)}function u(){const y=c();return Object.fromEntries(Object.entries(y))}const f=u(),g=y=>f[y];function p(){return Bp(["base",...Object.keys(i)])}function m(y){return bo({min:r(y).min})}function b(y){return bo({max:Gu(r(y).min)})}return{values:Object.values(i),only:o,keys:p,conditions:f,getCondition:g,up:m,down:b}}function Gu(e){const t=parseFloat(gO(e)??"")-.04;return pO(`${t}px`)}function OM(e){return Object.entries(e).sort(([,i],[,r])=>parseInt(i,10)<parseInt(r,10)?-1:1).map(([i,r],o,c)=>{let u=null;return o<=c.length-1&&(u=c[o+1]?.[1]),u!=null&&(u=Gu(u)),[i,{name:i,min:pO(r),max:u}]})}function wM(e){const t=[];return e.forEach((i,r)=>{let o=r;o++;let c=e[o];for(;c;)t.push([i,c]),o++,c=e[o]}),t}function bo({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const RM=/^@|&|&$/,kM=e=>{const{breakpoints:t,conditions:i={}}=e,r=Hn(i,(m,b)=>[`_${m}`,b]),o=Object.assign({},r,t.conditions);function c(){return Object.keys(o)}function u(m){return c().includes(m)||RM.test(m)||m.startsWith("_")}const f=Qt(m=>m.filter(b=>b!=="base").sort((b,y)=>{const x=u(b),E=u(y);return x&&!E?1:!x&&E?-1:0}));function g(m){return m.startsWith("@breakpoint")?t.getCondition(m.replace("@breakpoint ","")):m}function p(m){return Reflect.get(o,m)||m}return{keys:c,sort:f,has:u,resolve:p,breakpoints:t.keys(),expandAtRule:g}},Xe=Object.freeze(Object.create(null)),NM=Object.freeze([]);function Md(){return Object.create(null)}const mO=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
|
|
16
|
+
)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
|
|
17
|
+
)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),IM=mO("width"),AM=mO("height"),vO=e=>({isMin:VS(e.minMax,e.maxMin,e.min),isMax:VS(e.maxMin,e.minMax,e.max)}),{isMin:pp,isMax:kS}=vO(IM),{isMin:mp,isMax:NS}=vO(AM),IS=/print/i,AS=/^print$/i,PM=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,VM=/(\d)/,hs=Number.MAX_VALUE,_M={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function PS(e){const t=PM.exec(e)||(pp(e)||mp(e)?VM.exec(e):null);if(!t)return hs;if(t[0]==="0")return 0;const i=parseFloat(t[1]),r=t[2];return i*(_M[r]||1)}function VS(e,t,i){return r=>e.test(r)||!t.test(r)&&i.test(r)}function zM(e,t){const i=IS.test(e),r=AS.test(e),o=IS.test(t),c=AS.test(t);return i&&o?!r&&c?1:r&&!c?-1:e.localeCompare(t):i?1:o?-1:null}const DM=Qt((e,t)=>{const i=zM(e,t);if(i!==null)return i;const r=pp(e)||mp(e),o=kS(e)||NS(e),c=pp(t)||mp(t),u=kS(t)||NS(t);if(r&&u)return-1;if(o&&c)return 1;const f=PS(e),g=PS(t);return f===hs&&g===hs?e.localeCompare(t):f===hs?1:g===hs?-1:f!==g?f>g?o?-1:1:o?1:-1:e.localeCompare(t)});function _S(e){return e.sort(([t],[i])=>DM(t,i))}function bO(e){const t=[],i=[],r={};for(const[u,f]of Object.entries(e))u.startsWith("@media")?t.push([u,f]):u.startsWith("@container")?i.push([u,f]):Kt(f)?r[u]=bO(f):r[u]=f;const o=_S(t),c=_S(i);return{...r,...Object.fromEntries(o),...Object.fromEntries(c)}}const yO=/\s*!(important)?/i,MM=Qt(e=>ii(e)?yO.test(e):!1),LM=Qt(e=>ii(e)?e.replace(yO,"").trim():e);function xO(e){const{transform:t,conditions:i,normalize:r}=e,o=FM(e);return Qt(function(...u){const f=o(...u),g=r(f),p=Md();return ri(g,(m,b)=>{const y=MM(m);if(m==null)return;const[x,...E]=i.sort(b).map(i.resolve);y&&(m=LM(m));let C=t(x,m)??Xe;C=ri(C,O=>ii(O)&&y?`${O} !important`:O,{getKey:O=>i.expandAtRule(O)}),BM(p,E.flat(),C)}),bO(p)})}function BM(e,t,i){let r=e;for(const o of t)o&&(r[o]||(r[o]=Md()),r=r[o]);jo(r,i)}function HM(...e){return e.filter(t=>{if(!Kt(t))return!1;const i=Is(t);return Object.keys(i).length>0})}function FM(e){function t(i){const r=HM(...i);return r.length===1?r:r.map(o=>e.normalize(o))}return Qt(function(...r){return jo({},...t(r))})}const SO=e=>({base:Xe,variants:Xe,defaultVariants:Xe,compoundVariants:[],...e});function $M(e){const{css:t,conditions:i,normalize:r,layers:o}=e;function c(f={}){const g=SO(f),{base:p,defaultVariants:m,compoundVariants:b}=g,y=Hn(g.variants,(N,M)=>[N,Hn(M,(P,j)=>[P,r(j)])]),x=xO({conditions:i,normalize:r,transform(N,M){return y[N]?.[M]}}),E=(N={})=>{const M=r({...m,...Is(N)});let P={...p};jo(P,x(M));const j=u(b,M);return o.wrap("recipes",t(P,j))},C=Object.keys(y),O=N=>{const M=oO(N,["recipe"]),[P,j]=No(M,C),F=C.includes("colorPalette"),Y=C.includes("orientation");return F||(P.colorPalette=N.colorPalette||m.colorPalette),Y&&(j.orientation=N.orientation),[P,j]},w=Hn(y,(N,M)=>[N,Object.keys(M)]);return Object.assign(N=>t(E(N)),{className:f.className,__cva__:!0,variantMap:w,variantKeys:C,raw:E,config:f,splitVariantProps:O,merge(N){return c(UM(e)(this,N))}})}function u(f,g){let p=Xe;return f.forEach(m=>{Object.entries(m).every(([y,x])=>y==="css"?!0:(Array.isArray(x)?x:[x]).some(C=>g[y]===C))&&(p=t(p,m.css))}),p}return c}function UM(e){const{css:t}=e;return function(r,o){const c=SO(o.config),u=Bp(r.variantKeys,Object.keys(o.variants)),f=t(r.base,c.base),g=Object.fromEntries(u.map(y=>[y,t(r.config.variants[y],c.variants[y])])),p=jo(r.config.defaultVariants,c.defaultVariants),m=[...r.compoundVariants,...c.compoundVariants];return{className:Ln(r.className,o.className),base:f,variants:g,defaultVariants:p,compoundVariants:m}}}const jM={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},zS={reset:0,base:1,tokens:2,recipes:3};function GM(e){const t=e.layers??jM,r=Object.values(t).sort((o,c)=>zS[o]-zS[c]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(o,c){return e.disableLayers?c:{[`@layer ${t[o]}`]:c}}}}function WM(e){const{utility:t,normalize:i}=e,{hasShorthand:r,resolveShorthand:o}=t;return function(c){return ri(c,i,{stop:u=>Array.isArray(u),getKey:r?o:void 0})}}function qM(e){const{preflight:t}=e;if(!t)return{};const{scope:i="",level:r="parent"}=Kt(t)?t:{};let o="";i&&r==="parent"?o=`${i} `:i&&r==="element"&&(o=`&${i}`);const c={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},u={[i||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const f=Object.entries(c).reduce((g,[p,m])=>(g[p]={[o]:m},g),{});Object.assign(u,f)}else o?u[o]=c:Object.assign(u,c);return u}function YM(e){const{conditions:t,isValidProperty:i}=e;return function(o){return ri(o,c=>c,{getKey:(c,u)=>Kt(u)&&!t.has(c)&&!i(c)?XM(c).map(f=>{const g=f.startsWith("&")?f.slice(1):f;return KM(g)?`${g} &`:`&${g}`}).join(", "):c})}}function KM(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}function XM(e){const t=[];let i=0,r="",o=!1;for(let c=0;c<e.length;c++){const u=e[c];if(u==="\\"&&!o){o=!0,r+=u;continue}if(o){o=!1,r+=u;continue}u==="("?i++:u===")"&&i--,u===","&&i===0?(t.push(r.trim()),r=""):r+=u}return r&&t.push(r.trim()),t}const QM=(e=Xe)=>{const t=o=>({base:e.base?.[o]??Xe,variants:Md(),defaultVariants:e.defaultVariants??Xe,compoundVariants:e.compoundVariants?ZM(e.compoundVariants,o):NM}),r=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,c]of Object.entries(e.variants??{}))for(const[u,f]of Object.entries(c))r.forEach(([g,p])=>{var m;(m=p.variants)[o]??(m[o]={}),p.variants[o][u]=f[g]??Xe});return Object.fromEntries(r)},ZM=(e,t)=>e.filter(i=>i.css[t]).map(i=>({...i,css:i.css[t]}));function JM(e){const{cva:t}=e;return function(r=Xe){const o=Object.entries(QM(r)).map(([b,y])=>[b,t(y)]);function c(b){const y=o.map(([x,E])=>[x,E(b)]);return Object.fromEntries(y)}const u=r.variants??Xe,f=Object.keys(u);function g(b){const y=oO(b,["recipe"]),[x,E]=No(y,f),C=f.includes("colorPalette"),O=f.includes("orientation");return C||(x.colorPalette=b.colorPalette||r.defaultVariants?.colorPalette),O&&(E.orientation=b.orientation),[x,E]}const p=Hn(u,(b,y)=>[b,Object.keys(y)]);let m={};return r.className&&(m=Object.fromEntries(r.slots.map(b=>[b,`${r.className}__${b}`]))),Object.assign(c,{variantMap:p,variantKeys:f,splitVariantProps:g,classNameMap:m})}}const eL=()=>e=>Array.from(new Set(e)),tL=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,nL=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},CO=e=>(e+"").replace(tL,nL),EO=(e,t)=>{let i="",r=0,o="char",c="",u="";const f=[];for(;r<e.length;){const g=e[r];if(g==="{"){const m=e.indexOf("}",r);if(m===-1)break;const b=e.slice(r+1,m),y=t(b);i+=y??b,r=m+1;continue}if(o==="token"&&g===","){e[r]===""&&r++,o="fallback",f.push(o);const m=t(c);m?.endsWith(")")&&(i+=m.slice(0,-1)),c="",u="";continue}if(o==="fallback"&&u+g===", var("){const y=iL(e.slice(r+1))+r+1,x=e.slice(r+1,y);if(y===-1)break;i+=", var("+x+")",r=y+1,o=f.pop()??o,u="";continue}if(o==="token"||o==="fallback"){if(r++,g===")"){o=f.pop()??o??"char",u+=g;const m=c&&(t(c)??CO(c));if(u){if(u=u.slice(1).trim(),!u.startsWith("token(")&&u.endsWith(")")&&(u=u.slice(0,-1)),u.includes("token(")){const y=EO(u,t);y&&(u=y.slice(0,-1))}else if(u){const y=t(u);y&&(u=y)}}const b=i.at(-1);u?b?.trim()?i+=m.slice(0,-1)+(", "+u+")"):i+=u:i+=m||")",c="",u="",o="char";continue}o==="token"&&(c+=g),o==="fallback"&&(u+=g);continue}const p=e.indexOf("token(",r);if(p!==-1){const m=p+6;i+=e.slice(r,p),r=m,o="token",f.push(o);continue}i+=g,r++}return i},iL=e=>{let t=0;const i=["("];for(;t<e.length;){const r=e[t];if(r==="(")i.push(r);else if(r===")"&&(i.pop(),i.length===0))return t;t++}return t};function TO(e){const t={};return e.forEach((i,r)=>{i instanceof Map?t[r]=Object.fromEntries(i):t[r]=i}),t}const OO=/({([^}]*)})/g,aL=/[{}]/g,rL=/\w+\.\w+/,wO=e=>{if(!ii(e))return[];const t=e.match(OO);return t?t.map(i=>i.replace(aL,"").trim()):[]},oL=e=>OO.test(e);function RO(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let i=e.value;const r=Object.keys(t);for(let o=0;o<r.length;o++){const c=r[o],u=t[c];if(u.extensions.conditions)continue;const f=RO(u);i=i.replace(`{${c}}`,f)}return e.value=i,delete e.extensions.references,e.value}const lL=/calc/g;function kO(e){return Kt(e)&&e.reference?e.reference:String(e)}const Ld=(e,...t)=>t.map(kO).join(` ${e} `).replace(lL,""),DS=(...e)=>`calc(${Ld("+",...e)})`,MS=(...e)=>`calc(${Ld("-",...e)})`,vp=(...e)=>`calc(${Ld("*",...e)})`,LS=(...e)=>`calc(${Ld("/",...e)})`,BS=e=>{const t=kO(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:vp(t,-1)},Co=Object.assign(e=>({add:(...t)=>Co(DS(e,...t)),subtract:(...t)=>Co(MS(e,...t)),multiply:(...t)=>Co(vp(e,...t)),divide:(...t)=>Co(LS(e,...t)),negate:()=>Co(BS(e)),toString:()=>e.toString()}),{add:DS,subtract:MS,multiply:vp,divide:LS,negate:BS}),sL={enforce:"pre",transform(e){const{prefix:t,allTokens:i,formatCssVar:r,formatTokenName:o,registerToken:c}=e;i.filter(({extensions:f})=>f.category==="spacing").forEach(f=>{const g=f.path.slice(),p=r(g,t);if(ii(f.value)&&f.value==="0rem")return;const m=[...f.path],b=m[m.length-1];b!=null&&(m[m.length-1]=`-${b}`);const y={...f,value:Co.negate(p.ref),name:o(m),path:m,extensions:{...f.extensions,negative:!0,prop:`-${f.extensions.prop}`,originalPath:g}};c(y)})}},cL=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),uL={enforce:"post",transform(e){e.allTokens.filter(i=>cL.has(i.extensions.category)&&!i.extensions.negative).forEach(i=>{Object.assign(i.extensions,{pixelValue:gO(i.value)})})}},dL={enforce:"post",transform(e){const{allTokens:t,registerToken:i,formatTokenName:r}=e,o=t.filter(({extensions:f})=>f.category==="colors"),c=new Map,u=new Map;o.forEach(f=>{const{colorPalette:g}=f.extensions;g&&(g.keys.forEach(p=>{c.set(r(p),p)}),g.roots.forEach(p=>{const m=r(p),b=u.get(m)||[];if(b.push(f),u.set(m,b),f.extensions.default&&p.length===1){const y=g.keys[0]?.filter(Boolean);if(!y.length)return;const x=p.concat(y);c.set(r(x),[])}}))}),c.forEach(f=>{const g=["colors","colorPalette",...f].filter(Boolean),p=r(g),m=r(g.slice(1));i({name:p,value:p,originalValue:p,path:g,extensions:{condition:"base",originalPath:g,category:"colors",prop:m,virtual:!0}},"pre")})}},fL={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},hL=[sL,dL,uL,fL],gL={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:i,formatCssVar:r}=t,{negative:o,originalPath:c}=e.extensions,u=o?c:e.path;return{cssVar:r(u.filter(Boolean),i)}}},pL={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:i,formatCssVar:r}=t,o=wO(e.value);return o.length&&o.forEach(c=>{const u=r(c.split("."),i);e.value=e.value.replace(`{${u.ref}}`,u)}),e.value}},mL={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let i=e.path.slice();if(i.pop(),i.shift(),i.length===0){const f=[...e.path];f.shift(),i=f}if(i.length===0)return{};const r=i.reduce((f,g,p,m)=>{const b=m.slice(0,p+1);return f.push(b),f},[]),o=i[0],c=t.formatTokenName(i),u=e.path.slice(e.path.indexOf(o)+1).reduce((f,g,p,m)=>(f.push(m.slice(p)),f),[]);return u.length===0&&u.push([""]),{colorPalette:{value:c,roots:r,keys:u}}}},vL=[gL,pL,mL],HS=e=>Kt(e)&&Object.prototype.hasOwnProperty.call(e,"value");function bL(e){return e?{breakpoints:Dd(e,t=>({value:t})),sizes:Hn(e,(t,i)=>[`breakpoint-${t}`,{value:i}])}:{breakpoints:{},sizes:{}}}function yL(e){const{prefix:t="",tokens:i={},semanticTokens:r={},breakpoints:o={}}=e,c=te=>te.join("."),u=(te,J)=>uO(te.join("-"),{prefix:J}),f=[],g=new Map,p=new Map,m=new Map,b=new Map,y=new Map,x=new Map,E=new Map,C=new Map,O=[];function w(te,J){f.push(te),g.set(te.name,te),J&&C.forEach(Oe=>{Oe.enforce===J&&be(Oe,te)})}const k=bL(o),N=Is({...i,breakpoints:k.breakpoints,sizes:{...i.sizes,...k.sizes}});function M(){ri(N,(te,J)=>{const Oe=J.includes("DEFAULT");J=FS(J);const Pe=J[0],Ke=c(J),ut=ii(te)?{value:te}:te,wt={value:ut.value,originalValue:ut.value,name:Ke,path:J,extensions:{condition:"base",originalPath:J,category:Pe,prop:c(J.slice(1))}};Oe&&(wt.extensions.default=!0),w(wt)},{stop:HS}),ri(r,(te,J)=>{const Oe=J.includes("DEFAULT");J=NO(FS(J));const Pe=J[0],Ke=c(J),ut=ii(te.value)?{value:{base:te.value}}:te,wt={value:ut.value.base||"",originalValue:ut.value.base||"",name:Ke,path:J,extensions:{originalPath:J,category:Pe,conditions:ut.value,condition:"base",prop:c(J.slice(1))}};Oe&&(wt.extensions.default=!0),w(wt)},{stop:HS})}function P(te){return g.get(te)}function j(te){const{condition:J}=te.extensions;J&&(p.has(J)||p.set(J,new Set),p.get(J).add(te))}function F(te){const{category:J,prop:Oe}=te.extensions;J&&(E.has(J)||E.set(J,new Map),E.get(J).set(Oe,te))}function Y(te){const{condition:J,negative:Oe,virtual:Pe,cssVar:Ke}=te.extensions;Oe||Pe||!J||!Ke||(m.has(J)||m.set(J,new Map),m.get(J).set(Ke.var,te.value))}function _(te){const{category:J,prop:Oe,cssVar:Pe,negative:Ke}=te.extensions;if(!J)return;x.has(J)||x.set(J,new Map);const ut=Ke?te.extensions.conditions?te.originalValue:te.value:Pe.ref;x.get(J).set(Oe,ut),y.set([J,Oe].join("."),ut)}function $(te){const{colorPalette:J,virtual:Oe,default:Pe}=te.extensions;!J||Oe||J.roots.forEach(Ke=>{const ut=c(Ke);b.has(ut)||b.set(ut,new Map);const wt=SL([...te.path],[...Ke]),ji=c(wt),Ma=P(ji);if(!Ma||!Ma.extensions.cssVar)return;const{var:$d}=Ma.extensions.cssVar;if(b.get(ut).set($d,te.extensions.cssVar.ref),Pe&&Ke.length===1){const Ws=c(["colors","colorPalette"]),Or=P(Ws);if(!Or)return;const Ko=c(te.path),wr=P(Ko);if(!wr)return;const qs=J.keys[0]?.filter(Boolean);if(!qs.length)return;const Xo=c(Ke.concat(qs));b.has(Xo)||b.set(Xo,new Map),b.get(Xo).set(Or.extensions.cssVar.var,wr.extensions.cssVar.ref)}})}let G={};function Z(){f.forEach(te=>{j(te),F(te),Y(te),_(te),$(te)}),G=TO(x)}const ce=(te,J)=>{if(!te||typeof te!="string")return{invalid:!0,value:te};const[Oe,Pe]=te.split("/");if(!Oe||!Pe)return{invalid:!0,value:Oe};const Ke=J(Oe),ut=P(`opacity.${Pe}`)?.value;if(!ut&&isNaN(Number(Pe)))return{invalid:!0,value:Oe};const wt=ut?Number(ut)*100+"%":`${Pe}%`,ji=Ke??Oe;return{invalid:!1,color:ji,value:`color-mix(in srgb, ${ji} ${wt}, transparent)`}},fe=Qt((te,J)=>y.get(te)??J),he=Qt(te=>G[te]||null),B=Qt(te=>EO(te,J=>{if(!J)return;if(J.includes("/")){const Pe=ce(J,Ke=>fe(Ke));if(Pe.invalid)throw new Error("Invalid color mix at "+J+": "+Pe.value);return Pe.value}const Oe=fe(J);return Oe||(rL.test(J)?CO(J):J)})),ee={prefix:t,allTokens:f,tokenMap:g,registerToken:w,getByName:P,formatTokenName:c,formatCssVar:u,flatMap:y,cssVarMap:m,categoryMap:E,colorPaletteMap:b,getVar:fe,getCategoryValues:he,expandReferenceInValue:B};function oe(...te){te.forEach(J=>{C.set(J.name,J)})}function ie(...te){O.push(...te)}function be(te,J){if(J.extensions.references||Lp(te.match)&&!te.match(J))return;const Pe=(Ke=>te.transform(Ke,ee))(J);switch(!0){case te.type==="extensions":Object.assign(J.extensions,Pe);break;case te.type==="value":J.value=Pe;break;default:J[te.type]=Pe;break}}function I(te){O.forEach(J=>{J.enforce===te&&J.transform(ee)})}function q(te){C.forEach(J=>{J.enforce===te&&f.forEach(Oe=>{be(J,Oe)})})}function ne(){f.forEach(te=>{const J=xL(te);!J||J.length===0||J.forEach(Oe=>{w(Oe)})})}function re(te){const J=wO(te),Oe=[];for(let Pe=0;Pe<J.length;Pe++){const Ke=P(J[Pe]);Ke&&Oe.push(Ke)}return Oe}function Se(){f.forEach(te=>{if(!oL(te.value))return;const J=re(te.value);te.extensions.references=J.reduce((Oe,Pe)=>(Oe[Pe.name]=Pe,Oe),{})})}function Te(){f.forEach(te=>{RO(te)})}function Ve(){I("pre"),q("pre"),ne(),Se(),Te(),I("post"),q("post"),Z()}return M(),oe(...vL),ie(...hL),Ve(),ee}function FS(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function NO(e){return e.filter(t=>t!=="base")}function xL(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,i=[];return ri(t,(r,o)=>{const c=NO(o);if(!c.length)return;const u={...e,value:r,extensions:{...e.extensions,condition:c.join(":")}};i.push(u)}),i}function SL(e,t){const i=e.findIndex((r,o)=>t.every((c,u)=>e[o+u]===c));return i===-1||(e.splice(i,t.length),e.splice(i,0,"colorPalette")),e}eL()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function CL(e){return Hn(e,(t,i)=>[t,i])}function EL(e){const t=CL(e.config),i=e.tokens,r=new Map,o=new Map;function c(Y,_){t[Y]=_,u(Y,_)}const u=(Y,_)=>{const $=C(_);$&&(o.set(Y,$),b(Y,_))},f=()=>{for(const[Y,_]of Object.entries(t))_&&u(Y,_)},g=()=>{for(const[Y,_]of Object.entries(t)){const{shorthand:$}=_??{};if(!$)continue;(Array.isArray($)?$:[$]).forEach(Z=>r.set(Z,Y))}},p=()=>{const Y=TO(i.colorPaletteMap);c("colorPalette",{values:Object.keys(Y),transform:Qt(_=>Y[_])})},m=new Map,b=(Y,_)=>{if(!_)return;const $=C(_,Z=>`type:Tokens["${Z}"]`);if(typeof $=="object"&&$.type){m.set(Y,new Set([`type:${$.type}`]));return}if($){const Z=new Set(Object.keys($));m.set(Y,Z)}const G=m.get(Y)??new Set;_.property&&m.set(Y,G.add(`CssProperties["${_.property}"]`))},y=()=>{for(const[Y,_]of Object.entries(t))_&&b(Y,_)},x=(Y,_)=>{const $=m.get(Y)??new Set;m.set(Y,new Set([...$,..._]))},E=()=>{const Y=new Map;for(const[_,$]of m.entries()){if($.size===0){Y.set(_,["string"]);continue}const G=Array.from($).map(Z=>Z.startsWith("CssProperties")?Z:Z.startsWith("type:")?Z.replace("type:",""):JSON.stringify(Z));Y.set(_,G)}return Y},C=(Y,_)=>{const{values:$}=Y,G=Z=>{const ce=_?.(Z);return ce?{[ce]:ce}:void 0};if(ii($))return G?.($)??i.getCategoryValues($)??Xe;if(Array.isArray($)){const Z={};for(let ce=0;ce<$.length;ce++)Z[$[ce]]=$[ce];return Z}return Lp($)?$(_?G:i.getCategoryValues):$},O=Qt((Y,_)=>({[Y]:Y.startsWith("--")?i.getVar(_,_):_})),w=Object.assign(i.getVar,{raw:Y=>i.getByName(Y)}),k=Qt((Y,_)=>{const $=P(Y);ii(_)&&!_.includes("_EMO_")&&(_=i.expandReferenceInValue(_));const G=t[$];if(!G)return O($,_);const Z=o.get($)?.[_];if(!G.transform)return O(Y,Z??_);const ce=fe=>K5(fe,w);return G.transform(Z??_,{raw:_,token:w,utils:{colorMix:ce}})});function N(){g(),p(),f(),y()}N();const M=r.size>0,P=Qt(Y=>r.get(Y)??Y);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:M,transform:k,shorthands:r,resolveShorthand:P,register:c,getTypes:E,addPropertyType:x}}function TL(...e){const t=lO(...e),{theme:i={},utilities:r={},globalCss:o={},cssVarsRoot:c=":where(:root, :host)",cssVarsPrefix:u="chakra",preflight:f}=t,g=GM(t),p=yL({breakpoints:i.breakpoints,tokens:i.tokens,semanticTokens:i.semanticTokens,prefix:u}),m=TM(i.breakpoints??Xe),b=kM({conditions:t.conditions??Xe,breakpoints:m}),y=EL({config:r,tokens:p});function x(){const{textStyles:ie,layerStyles:be,animationStyles:I}=i,q=Is({textStyle:ie,layerStyle:be,animationStyle:I});for(const[ne,re]of Object.entries(q)){const Se=dO(re??Xe,IO);y.register(ne,{values:Object.keys(Se),transform(Te){return N(Se[Te])}})}}x(),y.addPropertyType("animationName",Object.keys(i.keyframes??Xe));const E=new Set(["css",...y.keys(),...b.keys()]),C=Qt(ie=>E.has(ie)||yM(ie)),O=ie=>{if(Array.isArray(ie)){const be=Md();for(let I=0;I<ie.length;I++){const q=ie[I];if(q!=null){const ne=b.breakpoints[I];be[ne]=q}}return be}return ie},w=WM({utility:y,normalize:O}),k=YM({conditions:b,isValidProperty:C}),N=xO({transform:y.transform,conditions:b,normalize:w}),M=$M({css:N,conditions:b,normalize:w,layers:g}),P=JM({cva:M});function j(){const ie={};for(const[be,I]of p.cssVarMap.entries()){const q=Object.fromEntries(I);if(Object.keys(q).length===0)continue;const ne=be==="base"?c:b.resolve(be),re=ne.startsWith("@"),Se=N(k({[ne]:re?{[c]:q}:q}));jo(ie,Se)}return g.wrap("tokens",ie)}function F(){const ie=Hn(i.keyframes??Xe,(I,q)=>[`@keyframes ${I}`,q]),be=Object.assign({},ie,N(k(o)));return g.wrap("base",be)}function Y(ie){return No(ie,C)}function _(){const ie=qM({preflight:f});return g.wrap("reset",ie)}const $=OL(p),G=(ie,be)=>$.get(ie)?.value||be;G.var=(ie,be)=>$.get(ie)?.variable||be;function Z(ie,be){return i.recipes?.[ie]??be}function ce(ie,be){return i.slotRecipes?.[ie]??be}function fe(ie){return Object.hasOwnProperty.call(i.recipes??Xe,ie)}function he(ie){return Object.hasOwnProperty.call(i.slotRecipes??Xe,ie)}function B(ie){return fe(ie)||he(ie)}const ee=[_(),F(),j()],oe={layerStyles:Vg(i.layerStyles??Xe),textStyles:Vg(i.textStyles??Xe),animationStyles:Vg(i.animationStyles??Xe),tokens:$S(p,Object.keys(i.tokens??Xe),(ie,be)=>!ie.extensions.conditions&&!be.includes("colorPalette")),semanticTokens:$S(p,Object.keys(i.semanticTokens??Xe),ie=>!!ie.extensions.conditions),keyframes:US(i.keyframes??Xe),breakpoints:US(i.breakpoints??Xe)};return{$$chakra:!0,_config:t,_global:ee,breakpoints:m,tokens:p,conditions:b,utility:y,token:G,properties:E,layers:g,isValidProperty:C,splitCssProps:Y,normalizeValue:O,getTokenCss:j,getGlobalCss:F,getPreflightCss:_,css:N,cva:M,sva:P,getRecipe:Z,getSlotRecipe:ce,hasRecipe:B,isRecipe:fe,isSlotRecipe:he,query:oe}}function OL(e){const t=new Map;return e.allTokens.forEach(i=>{const{cssVar:r,virtual:o,conditions:c}=i.extensions,u=c||o?r.ref:i.value;t.set(i.name,{value:u,variable:r.ref})}),t}const IO=e=>Kt(e)&&"value"in e,Vg=e=>({list(){return Object.keys(dO(e,IO))},search(t){return this.list().filter(i=>i.includes(t))}}),$S=(e,t,i)=>({categoryKeys:t,list(r){const o=e.categoryMap.get(r),c=o?[...o.entries()]:[],u=[];for(let f=0;f<c.length;f++){const[g,p]=c[f];i(p,g)&&u.push(g)}return u},search(r,o){return this.list(r).filter(c=>c.includes(o))}}),US=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(i=>i.includes(t))}}),wL={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},_g="var(--chakra-empty,/*!*/ /*!*/)",RL=J5({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":_g,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,_g])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,_g])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),kL=nM({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),NL=tM({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),Em=St({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),IL=St({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Pt=St({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:AL,defaultVariants:PL}=Em,VL=St({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:AL,defaultVariants:PL}),AO=St({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),_L=St({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),zL=St({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),DL=St({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),pt=St({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),ML=St({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:pt.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),LL=St({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),BL=St({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),HL=St({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),Vt=St({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),FL=St({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),$L=St({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),UL=St({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),jL=St({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),GL=St({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),WL={badge:Em,button:IL,code:VL,container:_L,heading:zL,input:pt,inputAddon:ML,kbd:LL,link:BL,mark:HL,separator:FL,skeleton:$L,skipNavLink:UL,spinner:jL,textarea:GL,icon:DL,checkmark:Pt,radiomark:Vt,colorSwatch:AO},qL=Sm.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),YL=Sm.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),KL=Sm.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),XL=AE.extendWith("itemBody"),QL=ve("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),ZL=ve("alert").parts("title","description","root","indicator","content"),JL=ve("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),e3=ve("blockquote").parts("root","icon","content","caption"),t3=ve("card").parts("root","header","body","footer","title","description"),n3=ve("checkbox-card",["root","control","label","description","addon","indicator","content"]),i3=ve("data-list").parts("root","item","itemLabel","itemValue"),a3=vm.extendWith("header","body","footer","backdrop"),r3=vm.extendWith("header","body","footer","backdrop"),o3=T1.extendWith("textarea"),l3=ve("empty-state",["root","content","indicator","title","description"]),s3=w1.extendWith("requiredIndicator"),c3=k1.extendWith("content"),u3=N1.extendWith("itemContent","dropzoneContent","fileText"),d3=ve("list").parts("root","item","indicator"),f3=z1.extendWith("itemCommand"),h3=ve("select").parts("root","field","indicator"),g3=J1.extendWith("header","body","footer"),PO=xm.extendWith("itemAddon","itemIndicator"),p3=PO.extendWith("itemContent","itemDescription"),m3=oT.extendWith("itemIndicator"),v3=CT.extendWith("indicatorGroup"),b3=Cz.extendWith("indicatorGroup","empty"),y3=kT.extendWith("markerIndicator"),x3=ve("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),S3=ve("status").parts("root","indicator"),C3=ve("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),E3=VT.extendWith("indicator"),T3=ve("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),O3=ve("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),w3=ve("tabs").parts("root","trigger","list","content","contentGroup","indicator"),R3=ve("tag").parts("root","label","closeTrigger","startElement","endElement"),k3=ve("timeline").parts("root","item","content","separator","indicator","connector","title","description"),N3=G_.extendWith("channelText"),I3=ve("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);ZE.extendWith("valueText");const A3=Qz,P3=ye({className:"chakra-accordion",slots:XL.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),V3=ye({className:"chakra-action-bar",slots:QL.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),_3=ye({slots:ZL.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),z3=ye({slots:_E.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),D3=ye({className:"chakra-blockquote",slots:e3.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),M3=ye({className:"chakra-breadcrumb",slots:JL.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),L3=ye({className:"chakra-card",slots:t3.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),B3=ye({className:"carousel",slots:LE.keys(),base:{root:{position:"relative",display:"flex",gap:"2",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},item:{_horizontal:{width:"100%"},_vertical:{height:"100%"}},control:{display:"flex",alignItems:"center",_horizontal:{flexDirection:"row",width:"100%"},_vertical:{flexDirection:"column",height:"100%"}},indicatorGroup:{display:"flex",justifyContent:"center",gap:"3",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},indicator:{width:"2.5",height:"2.5",borderRadius:"full",bg:"colorPalette.subtle",cursor:"button",_current:{bg:"colorPalette.solid"}}},defaultVariants:{}}),H3=ye({slots:WE.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Pt.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Pt.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Pt.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Pt.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Pt.variants?.size?.lg}},variant:{outline:{control:Pt.variants?.variant?.outline},solid:{control:Pt.variants?.variant?.solid},subtle:{control:Pt.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),F3=ye({slots:n3.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Pt.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:Pt.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Pt.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Pt.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:Pt.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Pt.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:Pt.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Pt.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),$3=ye({slots:I3.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative",paddingInlineEnd:"var(--code-block-padding)","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",top:"0",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),U3=ye({slots:uE.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"expand-height"}},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"collapse-height"}}}}}),j3=ye({className:"colorPicker",slots:N3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...AO.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...pt.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:pt.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:pt.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:pt.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:pt.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:pt.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:pt.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:pt.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:pt.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:pt.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),G3=ye({className:"chakra-combobox",slots:b3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},control:{pos:"relative","--padding-factor":"1","--combobox-input-padding-end":"var(--combobox-input-padding-x)","&:has([data-part=trigger]), &:has([data-part=clear-trigger])":{"--combobox-input-padding-end":"calc(var(--combobox-input-height) * var(--padding-factor))"},"&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))":{"--padding-factor":"1.5"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",ps:"var(--combobox-input-padding-x)",pe:"var(--combobox-input-padding-end)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),W3=ye({slots:i3.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),q3=ye({slots:a3.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),Y3=ye({slots:r3.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),jS=Go({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),K3=ye({slots:o3.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...jS,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...jS,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),X3=ye({slots:l3.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),Q3=ye({className:"chakra-field",slots:s3.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),Z3=ye({className:"fieldset",slots:c3.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),J3=ye({className:"chakra-file-upload",slots:u3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),e4=ye({className:"chakra-hover-card",slots:I1.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),t4=ye({className:"chakra-list",slots:d3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),n4=ye({className:"chakra-listbox",slots:A3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),i4=ye({className:"chakra-menu",slots:f3.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),Wu=ye({className:"chakra-select",slots:v3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),a4=ye({className:"chakra-native-select",slots:h3.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:Wu.variants?.variant.outline.trigger},subtle:{field:Wu.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:Wu.defaultVariants}),GS=Go({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),r4=ye({className:"chakra-number-input",slots:H1.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...pt.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...GS,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...GS,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:pt.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:pt.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:pt.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:pt.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Hn(pt.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:WS,defaultVariants:o4}=pt,l4=ye({className:"chakra-pin-input",slots:U1.keys(),base:{input:{...pt.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Hn(WS.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Hn(WS.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:o4}),s4=ye({className:"chakra-popover",slots:g3.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),c4=ye({slots:ym.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),u4=ye({className:"chakra-progress-circle",slots:ym.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),d4=ye({slots:rT.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),f4=ye({className:"chakra-radio-card",slots:p3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:Vt.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:Vt.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Vt.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Vt.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:Vt.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:Vt.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:Vt.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:Vt.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),h4=ye({className:"chakra-radio-group",slots:PO.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Vt.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:Vt.variants?.variant?.outline},subtle:{itemControl:Vt.variants?.variant?.subtle},solid:{itemControl:Vt.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:Vt.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:Vt.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:Vt.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:Vt.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),g4=ye({className:"chakra-rating-group",slots:m3.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),p4=ye({className:"chakra-scroll-area",slots:lT.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),m4=ye({className:"chakra-segment-group",slots:sT.keys(),base:{root:{"--segment-radius":"radii.l2","--segment-indicator-bg":{_light:"colors.bg",_dark:"colors.bg.emphasized"},"--segment-indicator-shadow":"shadows.sm",borderRadius:"var(--segment-radius)",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"var(--segment-indicator-shadow)",pos:"absolute",bg:"var(--segment-indicator-bg)",width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),v4=ye({className:"chakra-slider",slots:y3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),b4=ye({className:"chakra-stat",slots:x3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),y4=ye({className:"chakra-status",slots:S3.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),x4=ye({className:"chakra-steps",slots:C3.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),S4=ye({slots:E3.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),C4=ye({className:"chakra-table",slots:T3.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),E4=ye({slots:w3.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-trigger-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-trigger-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),ku=Em.variants?.variant,T4=ye({slots:R3.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:ku?.subtle},solid:{root:ku?.solid},outline:{root:ku?.outline},surface:{root:ku?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),O4=ye({slots:YT.keys(),className:"tags-input",base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},control:{"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",minH:"var(--tags-input-height)","--input-height":"var(--tags-input-height)",px:"var(--tags-input-px)",py:"var(--tags-input-py)",gap:"var(--tags-input-gap)",display:"flex",flexWrap:"wrap",alignItems:"center",borderRadius:"l2",pos:"relative",transitionProperty:"border-color, box-shadow",transitionDuration:"normal",_disabled:{opacity:"0.5"},_invalid:{borderColor:"var(--error-color)"}},input:{flex:"1",minWidth:"20",outline:"none",bg:"transparent",color:"fg",px:"calc(var(--tags-input-item-px) / 1.25)",height:"var(--tags-input-item-height)",_readOnly:{display:"none"}},itemText:{lineClamp:"1"},itemInput:{outline:"none",bg:"transparent",minWidth:"2ch",color:"inherit",px:"var(--tags-input-item-px)",height:"var(--tags-input-item-height)"},itemPreview:{height:"var(--tags-input-item-height)",userSelect:"none",display:"inline-flex",alignItems:"center",gap:"1",rounded:"l1",px:"var(--tags-input-item-px)"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},me:"-1",opacity:"0.4",_hover:{opacity:"1"},"[data-highlighted] &":{opacity:"1"},_icon:{boxSize:"80%"}},clearTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},color:"fg.muted",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1",_icon:{boxSize:"5"}}},variants:{size:{xs:{root:{"--tags-input-height":"sizes.8","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"xs"}},sm:{root:{"--tags-input-height":"sizes.9","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"sm"}},md:{root:{"--tags-input-height":"sizes.10","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.7","--tags-input-item-px":"spacing.2",textStyle:"sm"}},lg:{root:{"--tags-input-height":"sizes.11","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.8","--tags-input-item-px":"spacing.2",textStyle:"md"}}},variant:{outline:{control:{borderWidth:"1px",bg:"bg",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}},subtle:{control:{bg:"bg.muted",borderWidth:"1px",borderColor:"transparent",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"bg",borderWidth:"1px",_highlighted:{bg:"colorPalette.subtle",borderColor:"colorPalette.emphasized"}}},flushed:{control:{borderRadius:"0",px:"0",bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",_focus:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}}}},defaultVariants:{size:"md",variant:"outline"}}),w4=ye({slots:k3.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"var(--timeline-content-gap)",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid",showLastSeparator:!1}}),R4=ye({slots:O3.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),k4=ye({slots:nO.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),qS=Go({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),YS=Go({flex:"1"}),KS=Go({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),XS=Go({_selected:{layerStyle:"fill.solid"}}),N4=ye({slots:A1.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:qS,item:qS,itemText:YS,branchText:YS,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:KS,item:KS},solid:{branchControl:XS,item:XS}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),I4={accordion:P3,actionBar:V3,alert:_3,avatar:z3,blockquote:D3,breadcrumb:M3,card:L3,carousel:B3,checkbox:H3,checkboxCard:F3,codeBlock:$3,collapsible:U3,dataList:W3,dialog:q3,drawer:Y3,editable:K3,emptyState:X3,field:Q3,fieldset:Z3,fileUpload:J3,hoverCard:e4,list:t4,listbox:n4,menu:i4,nativeSelect:a4,numberInput:r4,pinInput:l4,popover:s4,progress:c4,progressCircle:u4,radioCard:f4,radioGroup:h4,ratingGroup:g4,scrollArea:p4,segmentGroup:m4,select:Wu,combobox:G3,slider:v4,stat:b4,steps:x4,switch:S4,table:C4,tabs:E4,tag:T4,tagsInput:O4,toast:R4,tooltip:k4,status:y4,timeline:w4,colorPicker:j3,qrCode:d4,treeView:N4},A4=eM({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),P4=vt.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),V4=vt.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),_4=vt.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),z4=vt.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),D4=vt.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),M4=vt.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),L4=vt.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),B4=vt.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),H4=vt.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),F4=vt.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),QS='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',$4=vt.fonts({heading:{value:`Inter, ${QS}`},body:{value:`Inter, ${QS}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),U4=Z5({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"var(--collapsed-height, 0)"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"var(--collapsed-height, 0)"}},"expand-width":{from:{width:"var(--collapsed-width, 0)"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"var(--collapsed-width, 0)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),j4=vt.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),G4=vt.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),W4=vt.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),VO=vt.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),q4=vt.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),Y4=vt.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),K4=vt.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),X4=vt.sizes({...q4,...VO,...K4,...Y4}),Q4=vt.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),Z4={aspectRatios:V4,animations:P4,blurs:_4,borders:z4,colors:D4,durations:L4,easings:B4,fonts:$4,fontSizes:H4,fontWeights:F4,letterSpacings:j4,lineHeights:G4,radii:W4,spacing:VO,sizes:X4,zIndex:Q4,cursor:M4},J4={colors:qL,shadows:KL,radii:YL},e6="chakra",t6=":where(html, .chakra-theme)",n6=cO({preflight:!0,cssVarsPrefix:e6,cssVarsRoot:t6,globalCss:RL,theme:{breakpoints:wL,keyframes:U4,tokens:Z4,semanticTokens:J4,recipes:WL,slotRecipes:I4,textStyles:A4,layerStyles:kL,animationStyles:NL}}),i6=lO(uM,n6),iF=TL(i6);function a6(e){const{key:t,recipe:i}=e,r=As();return T.useMemo(()=>{const o=i||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(o))},[t,i,r])}const r6=e=>e.charAt(0).toUpperCase()+e.slice(1),ui=e=>{const{key:t,recipe:i}=e,r=r6(t||i.className||"Component"),[o,c]=ko({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[u,f]=ko({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[g,p]=ko({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function m(E){const{unstyled:C,...O}=E,w=a6({key:t,recipe:O.recipe||i}),[k,N]=T.useMemo(()=>w.splitVariantProps(O),[O,w]);return{styles:T.useMemo(()=>C?x2:w(k),[C,k,w]),classNames:w.classNameMap,props:N}}function b(E,C={}){const{defaultProps:O}=C,w=k=>{const N=p(),M=T.useMemo(()=>ys(O,N,k),[N,k]),{styles:P,classNames:j,props:F}=m(M);return z.jsx(o,{value:P,children:z.jsx(u,{value:j,children:z.jsx(E,{...F})})})};return w.displayName=E.displayName||E.name,w}return{StylesProvider:o,ClassNamesProvider:u,PropsProvider:g,usePropsContext:p,useRecipeResult:m,withProvider:(E,C,O)=>{const{defaultProps:w,...k}=O??{},N=nt(E,{},k),M=T.forwardRef((P,j)=>{const F=p(),Y=T.useMemo(()=>ys(w??{},F,P),[F,P]),{styles:_,props:$,classNames:G}=m(Y),Z=G[C],ce=z.jsx(o,{value:_,children:z.jsx(u,{value:G,children:z.jsx(N,{ref:j,...$,css:[_[C],Y.css],className:Ln(Y.className,Z)})})});return O?.wrapElement?.(ce,Y)??ce});return M.displayName=E.displayName||E.name,M},withContext:(E,C,O)=>{const w=nt(E,{},O),k=T.forwardRef((N,M)=>{const{unstyled:P,...j}=N,F=c(),_=f()?.[C];return z.jsx(w,{...j,css:[!P&&C?F[C]:void 0,N.css],ref:M,className:Ln(N.className,_)})});return k.displayName=E.displayName||E.name,k},withRootProvider:b,useStyles:c,useClassNames:f}},_O=nt("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});_O.displayName="AbsoluteCenter";const o6=e=>z.jsx(nt.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:z.jsx("path",{d:"M20 6 9 17l-5-5"})}),l6=e=>z.jsx(nt.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:z.jsx("path",{d:"m6 9 6 6 6-6"})}),s6=e=>z.jsx(nt.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:z.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),ZS=e=>z.jsx(nt.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:z.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),JS=e=>z.jsx(nt.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:z.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),c6=e=>z.jsx(nt.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:z.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),[u6,d6]=ko({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:f6,withContext:Tm,useStyles:h6,PropsProvider:g6}=ui({key:"alert"}),p6=f6("div","root",{forwardAsChild:!0,wrapElement(e,t){return z.jsx(u6,{value:{status:t.status||"info"},children:e})}}),m6=g6,v6=Tm("div","title"),b6=Tm("div","description"),y6=Tm("div","content"),x6={info:JS,warning:ZS,success:s6,error:ZS,neutral:JS},S6=T.forwardRef(function(t,i){const r=d6(),o=h6(),c=typeof r.status=="string"?x6[r.status]:T.Fragment,{children:u=z.jsx(c,{}),...f}=t;return z.jsx(nt.span,{ref:i,...f,css:[o.indicator,t.css],children:u})}),aF=Object.freeze(Object.defineProperty({__proto__:null,Content:y6,Description:b6,Indicator:S6,Root:p6,RootPropsProvider:m6,Title:v6},Symbol.toStringTag,{value:"Module"})),Bd=e=>e?"":void 0,{withContext:C6}=Fi({key:"badge"}),E6=C6("span");E6.displayName="Badge";const{withContext:T6}=Fi({key:"spinner"}),zO=T6("span");zO.displayName="Spinner";const DO=T.forwardRef(function(t,i){const{spinner:r=z.jsx(zO,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:c,text:u,visible:f=!0,...g}=t;return f?u?z.jsxs(cs,{ref:i,display:"contents",...g,children:[o==="start"&&r,u,o==="end"&&r]}):r?z.jsxs(cs,{ref:i,display:"contents",...g,children:[z.jsx(_O,{display:"inline-flex",children:r}),z.jsx(cs,{visibility:"hidden",display:"contents",children:c})]}):z.jsx(cs,{ref:i,display:"contents",...g,children:c}):c});DO.displayName="Loader";const{useRecipeResult:O6,usePropsContext:w6}=Fi({key:"button"}),MO=T.forwardRef(function(t,i){const r=w6(),o=T.useMemo(()=>ys(r,t),[r,t]),c=O6(o),{loading:u,loadingText:f,children:g,spinner:p,spinnerPlacement:m,...b}=c.props;return z.jsx(nt.button,{type:"button",ref:i,...b,"data-loading":Bd(u),disabled:u||b.disabled,className:Ln(c.className,o.className),css:[c.styles,o.css],children:!o.asChild&&u?z.jsx(DO,{spinner:p,text:f,spinnerPlacement:m,children:g}):g})});MO.displayName="Button";const R6=T.forwardRef(function(t,i){return z.jsx(MO,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:i,...t})});R6.displayName="IconButton";const{withProvider:k6,withContext:Hs}=ui({key:"card"}),rF=k6("div","root"),oF=Hs("div","body");Hs("div","header");Hs("div","footer");Hs("h3","title");Hs("p","description");const LO=T.forwardRef(function(t,i){const r=IC({key:"checkmark",recipe:t.recipe}),[o,c]=r.splitVariantProps(t),{checked:u,indeterminate:f,disabled:g,unstyled:p,children:m,...b}=c,y=p?NC:r(o);return z.jsx(nt.svg,{ref:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":f?"indeterminate":u?"checked":"unchecked","data-disabled":Bd(g),css:[y,t.css],...b,children:f?z.jsx("path",{d:"M5 12h14"}):u?z.jsx("polyline",{points:"20 6 9 17 4 12"}):null})});LO.displayName="Checkmark";const{withProvider:BO,withContext:HO,useStyles:N6}=ui({key:"checkbox"});BO(QE,"root",{forwardAsChild:!0});const lF=BO(XE,"root",{forwardAsChild:!0});HO(KE,"label",{forwardAsChild:!0});const I6=T.forwardRef(function(t,i){const{checked:r,indeterminate:o,...c}=t,u=Ad(),f=N6();return r&&u.checked?z.jsx(nt.svg,{ref:i,asChild:!0,...c,css:[f.indicator,t.css],children:r}):o&&u.indeterminate?z.jsx(nt.svg,{ref:i,asChild:!0,...c,css:[f.indicator,t.css],children:o}):z.jsx(LO,{ref:i,checked:u.checked,indeterminate:u.indeterminate,disabled:u.disabled,unstyled:!0,...c,css:[f.indicator,t.css]})}),sF=HO(HE,"control",{forwardAsChild:!0,defaultProps:{children:z.jsx(I6,{})}});nt(qE,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0});const cF=YE,{withProvider:FO,withContext:Om}=ui({key:"collapsible"});FO(e1,"root",{forwardAsChild:!0});const uF=FO(fE,"root",{forwardAsChild:!0}),dF=Om(t1,"trigger",{forwardAsChild:!0}),fF=Om(IE,"content",{forwardAsChild:!0});Om(JE,"indicator",{forwardAsChild:!0});function A6(e){const{gap:t,direction:i}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":Dd(i,o=>r[o])}}function P6(e){return T.Children.toArray(e).filter(t=>T.isValidElement(t))}const wm=T.forwardRef(function(t,i){const{direction:r="column",align:o,justify:c,gap:u="0.5rem",wrap:f,children:g,separator:p,className:m,...b}=t,y=T.useMemo(()=>A6({gap:u,direction:r}),[u,r]),x=T.useMemo(()=>T.isValidElement(p)?P6(g).map((E,C,O)=>{const w=typeof E.key<"u"?E.key:C,k=p,N=T.cloneElement(k,{css:[y,k.props.css]});return z.jsxs(T.Fragment,{children:[E,C===O.length-1?null:N]},w)}):g,[g,p,y]);return z.jsx(nt.div,{ref:i,display:"flex",alignItems:o,justifyContent:c,flexDirection:r,flexWrap:f,gap:p?void 0:u,className:Ln("chakra-stack",m),...b,children:x})});wm.displayName="Stack";const{withContext:V6}=Fi({key:"container"}),_6=V6("div");_6.displayName="Container";const{withRootProvider:$O,withContext:di}=ui({key:"dialog"});$O(Vz,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const hF=$O(Pz,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});di(E1,"trigger",{forwardAsChild:!0});const gF=di(v1,"positioner",{forwardAsChild:!0}),pF=di(p1,"content",{forwardAsChild:!0});di(m1,"description",{forwardAsChild:!0});const mF=di(C1,"title",{forwardAsChild:!0}),vF=di(g1,"closeTrigger",{forwardAsChild:!0});T.forwardRef(function(t,i){const r=za();return z.jsx(nt.button,{...t,ref:i,onClick:()=>r.setOpen(!1)})});const bF=di(h1,"backdrop",{forwardAsChild:!0}),yF=di("div","body");di("div","footer");const xF=di("div","header"),z6=T.forwardRef(function(t,i){const{direction:r,align:o,justify:c,wrap:u,basis:f,grow:g,shrink:p,inline:m,...b}=t;return z.jsx(nt.div,{ref:i,...b,css:{display:m?"inline-flex":"flex",flexDirection:r,alignItems:o,justifyContent:c,flexWrap:u,flexBasis:f,flexGrow:g,flexShrink:p,...t.css}})});z6.displayName="Flex";const{withContext:D6}=Fi({key:"input"}),SF=D6(O1),{withContext:M6}=Fi({key:"link"}),L6=M6("a");L6.displayName="Link";const{withRootProvider:UO,withContext:xn}=ui({key:"popover"});UO(GD);const CF=UO(jD),EF=xn(aT,"trigger",{forwardAsChild:!0}),TF=xn(Z1,"positioner",{forwardAsChild:!0}),OF=xn(K1,"content",{forwardAsChild:!0}),B6=xn(q1,"arrowTip",{forwardAsChild:!0}),wF=xn(W1,"arrow",{forwardAsChild:!0,defaultProps:{children:z.jsx(B6,{})}});xn(Y1,"closeTrigger",{forwardAsChild:!0});xn(Q1,"indicator",{forwardAsChild:!0});xn(iT,"title",{forwardAsChild:!0});xn(X1,"description",{forwardAsChild:!0});xn("footer","footer");const RF=xn("header","header"),kF=xn("div","body");xn(G1,void 0,{forwardAsChild:!0});const{withProvider:jO,withContext:tn}=ui({key:"select"});jO(l5,"root",{forwardAsChild:!0});const NF=jO(r5,"root",{forwardAsChild:!0,defaultProps:{positioning:{sameWidth:!0}}}),IF=tn(wT,"trigger",{forwardAsChild:!0}),AF=tn(ST,"positioner",{forwardAsChild:!0}),PF=tn(dT,"content",{forwardAsChild:!0});tn(RT,"valueText",{forwardAsChild:!0});tn(uT,"clearTrigger",{forwardAsChild:!0,defaultProps:{children:z.jsx(c6,{boxSize:"1em"})}});tn(mT,"itemGroup",{forwardAsChild:!0});tn(vT,"itemGroupLabel",{forwardAsChild:!0});const VF=tn(pT,"item",{forwardAsChild:!0}),_F=tn(yT,"itemText",{forwardAsChild:!0}),zF=tn(bT,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:z.jsx(o6,{})}});tn("div","indicatorGroup");const DF=tn(hT,"indicator",{forwardAsChild:!0,defaultProps:{children:z.jsx(l6,{})}});tn(fT,"control",{forwardAsChild:!0});tn(xT,"label",{forwardAsChild:!0});const H6=T.forwardRef(function(t,i){const{columns:r,minChildWidth:o,...c}=t,u=As(),f=o?$6(o,u):U6(r);return z.jsx(AC,{ref:i,templateColumns:f,...c})});H6.displayName="SimpleGrid";function F6(e){return typeof e=="number"?`${e}px`:e}function $6(e,t){return Dd(e,i=>{const r=t.tokens.getVar(`sizes.${i}`,F6(i));return i===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function U6(e){return Dd(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const j6=T.forwardRef(function(t,i){return z.jsx(wm,{align:"center",...t,direction:"row",ref:i})});j6.displayName="HStack";const G6=T.forwardRef(function(t,i){return z.jsx(wm,{align:"center",...t,direction:"column",ref:i})});G6.displayName="VStack";const{withProvider:GO,withContext:Rm,useStyles:W6}=ui({key:"switch"});GO(DT,"root",{forwardAsChild:!0});const MF=GO(zT,"root",{forwardAsChild:!0}),LF=Rm(PT,"label",{forwardAsChild:!0}),q6=Rm(MT,"thumb",{forwardAsChild:!0}),BF=Rm(IT,"control",{forwardAsChild:!0,defaultProps:{children:z.jsx(q6,{})}});T.forwardRef(function(t,i){const r=Uo(),o=W6(),{fallback:c,children:u,unstyled:f,...g}=t;return z.jsx(nt.span,{ref:i,"data-checked":Bd(r.checked),...g,css:[f?void 0:o.indicator,t.css],children:r.checked?u:c})});T.forwardRef(function(t,i){const r=Uo(),{fallback:o,children:c,...u}=t;return z.jsx(nt.span,{ref:i,"data-checked":Bd(r.checked),...u,children:r.checked?c:o})});const HF=AT,{withProvider:WO,withContext:Fs}=ui({key:"tabs"});WO(qT,"root",{forwardAsChild:!0});const FF=WO(WT,"root",{forwardAsChild:!0}),$F=Fs($T,"trigger",{forwardAsChild:!0}),UF=Fs(BT,"content",{forwardAsChild:!0});Fs("div","contentGroup");const jF=Fs(FT,"list",{forwardAsChild:!0});Fs(HT,"indicator",{forwardAsChild:!0});const{withContext:Y6}=Fi({key:"textarea"}),K6=Y6(R1);K6.displayName="Textarea";const{withRootProvider:qO,withContext:$s}=ui({key:"tooltip"});qO(Y5);const GF=qO(q5,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),WF=$s(rO,"trigger",{forwardAsChild:!0}),qF=$s(tO,"positioner",{forwardAsChild:!0}),YF=$s(eO,"content",{forwardAsChild:!0}),X6=$s(JT,"arrowTip",{forwardAsChild:!0}),KF=$s(ZT,"arrow",{forwardAsChild:!0,defaultProps:{children:z.jsx(X6,{})}});var eC="popstate";function Q6(e={}){function t(r,o){let{pathname:c,search:u,hash:f}=r.location;return bp("",{pathname:c,search:u,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function i(r,o){return typeof o=="string"?o:Rs(o)}return J6(t,i,null,e)}function it(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Un(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Z6(){return Math.random().toString(36).substring(2,10)}function tC(e,t){return{usr:e.state,key:e.key,idx:t}}function bp(e,t,i=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Wo(t):t,state:i,key:t&&t.key||r||Z6()}}function Rs({pathname:e="/",search:t="",hash:i=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Wo(e){let t={};if(e){let i=e.indexOf("#");i>=0&&(t.hash=e.substring(i),e=e.substring(0,i));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function J6(e,t,i,r={}){let{window:o=document.defaultView,v5Compat:c=!1}=r,u=o.history,f="POP",g=null,p=m();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function m(){return(u.state||{idx:null}).idx}function b(){f="POP";let O=m(),w=O==null?null:O-p;p=O,g&&g({action:f,location:C.location,delta:w})}function y(O,w){f="PUSH";let k=bp(C.location,O,w);p=m()+1;let N=tC(k,p),M=C.createHref(k);try{u.pushState(N,"",M)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(M)}c&&g&&g({action:f,location:C.location,delta:1})}function x(O,w){f="REPLACE";let k=bp(C.location,O,w);p=m();let N=tC(k,p),M=C.createHref(k);u.replaceState(N,"",M),c&&g&&g({action:f,location:C.location,delta:0})}function E(O){return eB(O)}let C={get action(){return f},get location(){return e(o,u)},listen(O){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(eC,b),g=O,()=>{o.removeEventListener(eC,b),g=null}},createHref(O){return t(o,O)},createURL:E,encodeLocation(O){let w=E(O);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:y,replace:x,go(O){return u.go(O)}};return C}function eB(e,t=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),it(i,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Rs(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function YO(e,t,i="/"){return tB(e,t,i,!1)}function tB(e,t,i,r){let o=typeof t=="string"?Wo(t):t,c=Hi(o.pathname||"/",i);if(c==null)return null;let u=KO(e);nB(u);let f=null;for(let g=0;f==null&&g<u.length;++g){let p=hB(c);f=dB(u[g],p,r)}return f}function KO(e,t=[],i=[],r="",o=!1){let c=(u,f,g=o,p)=>{let m={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&g)return;it(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let b=Mi([r,m.relativePath]),y=i.concat(m);u.children&&u.children.length>0&&(it(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),KO(u.children,t,y,b,g)),!(u.path==null&&!u.index)&&t.push({path:b,score:cB(b,u.index),routesMeta:y})};return e.forEach((u,f)=>{if(u.path===""||!u.path?.includes("?"))c(u,f);else for(let g of XO(u.path))c(u,f,!0,g)}),t}function XO(e){let t=e.split("/");if(t.length===0)return[];let[i,...r]=t,o=i.endsWith("?"),c=i.replace(/\?$/,"");if(r.length===0)return o?[c,""]:[c];let u=XO(r.join("/")),f=[];return f.push(...u.map(g=>g===""?c:[c,g].join("/"))),o&&f.push(...u),f.map(g=>e.startsWith("/")&&g===""?"/":g)}function nB(e){e.sort((t,i)=>t.score!==i.score?i.score-t.score:uB(t.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var iB=/^:[\w-]+$/,aB=3,rB=2,oB=1,lB=10,sB=-2,nC=e=>e==="*";function cB(e,t){let i=e.split("/"),r=i.length;return i.some(nC)&&(r+=sB),t&&(r+=rB),i.filter(o=>!nC(o)).reduce((o,c)=>o+(iB.test(c)?aB:c===""?oB:lB),r)}function uB(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function dB(e,t,i=!1){let{routesMeta:r}=e,o={},c="/",u=[];for(let f=0;f<r.length;++f){let g=r[f],p=f===r.length-1,m=c==="/"?t:t.slice(c.length)||"/",b=sd({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},m),y=g.route;if(!b&&p&&i&&!r[r.length-1].route.index&&(b=sd({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},m)),!b)return null;Object.assign(o,b.params),u.push({params:o,pathname:Mi([c,b.pathname]),pathnameBase:vB(Mi([c,b.pathnameBase])),route:y}),b.pathnameBase!=="/"&&(c=Mi([c,b.pathnameBase]))}return u}function sd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,r]=fB(e.path,e.caseSensitive,e.end),o=t.match(i);if(!o)return null;let c=o[0],u=c.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:r.reduce((p,{paramName:m,isOptional:b},y)=>{if(m==="*"){let E=f[y]||"";u=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const x=f[y];return b&&!x?p[m]=void 0:p[m]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:u,pattern:e}}function fB(e,t=!1,i=!0){Un(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,g)=>(r.push({paramName:f,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function hB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Un(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Hi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let i=t.endsWith("/")?t.length-1:t.length,r=e.charAt(i);return r&&r!=="/"?null:e.slice(i)||"/"}function gB(e,t="/"){let{pathname:i,search:r="",hash:o=""}=typeof e=="string"?Wo(e):e;return{pathname:i?i.startsWith("/")?i:pB(i,t):t,search:bB(r),hash:yB(o)}}function pB(e,t){let i=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function zg(e,t,i,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function mB(e){return e.filter((t,i)=>i===0||t.route.path&&t.route.path.length>0)}function QO(e){let t=mB(e);return t.map((i,r)=>r===t.length-1?i.pathname:i.pathnameBase)}function ZO(e,t,i,r=!1){let o;typeof e=="string"?o=Wo(e):(o={...e},it(!o.pathname||!o.pathname.includes("?"),zg("?","pathname","search",o)),it(!o.pathname||!o.pathname.includes("#"),zg("#","pathname","hash",o)),it(!o.search||!o.search.includes("#"),zg("#","search","hash",o)));let c=e===""||o.pathname==="",u=c?"/":o.pathname,f;if(u==null)f=i;else{let b=t.length-1;if(!r&&u.startsWith("..")){let y=u.split("/");for(;y[0]==="..";)y.shift(),b-=1;o.pathname=y.join("/")}f=b>=0?t[b]:"/"}let g=gB(o,f),p=u&&u!=="/"&&u.endsWith("/"),m=(c||u===".")&&i.endsWith("/");return!g.pathname.endsWith("/")&&(p||m)&&(g.pathname+="/"),g}var Mi=e=>e.join("/").replace(/\/\/+/g,"/"),vB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,yB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var JO=["POST","PUT","PATCH","DELETE"];new Set(JO);var SB=["GET",...JO];new Set(SB);var qo=T.createContext(null);qo.displayName="DataRouter";var Hd=T.createContext(null);Hd.displayName="DataRouterState";T.createContext(!1);var ew=T.createContext({isTransitioning:!1});ew.displayName="ViewTransition";var CB=T.createContext(new Map);CB.displayName="Fetchers";var EB=T.createContext(null);EB.displayName="Await";var fi=T.createContext(null);fi.displayName="Navigation";var Us=T.createContext(null);Us.displayName="Location";var hi=T.createContext({outlet:null,matches:[],isDataRoute:!1});hi.displayName="Route";var km=T.createContext(null);km.displayName="RouteError";function TB(e,{relative:t}={}){it(js(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=T.useContext(fi),{hash:o,pathname:c,search:u}=Gs(e,{relative:t}),f=c;return i!=="/"&&(f=c==="/"?i:Mi([i,c])),r.createHref({pathname:f,search:u,hash:o})}function js(){return T.useContext(Us)!=null}function Da(){return it(js(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(Us).location}var tw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nw(e){T.useContext(fi).static||T.useLayoutEffect(e)}function iw(){let{isDataRoute:e}=T.useContext(hi);return e?MB():OB()}function OB(){it(js(),"useNavigate() may be used only in the context of a <Router> component.");let e=T.useContext(qo),{basename:t,navigator:i}=T.useContext(fi),{matches:r}=T.useContext(hi),{pathname:o}=Da(),c=JSON.stringify(QO(r)),u=T.useRef(!1);return nw(()=>{u.current=!0}),T.useCallback((g,p={})=>{if(Un(u.current,tw),!u.current)return;if(typeof g=="number"){i.go(g);return}let m=ZO(g,JSON.parse(c),o,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Mi([t,m.pathname])),(p.replace?i.replace:i.push)(m,p.state,p)},[t,i,c,o,e])}T.createContext(null);function XF(){let{matches:e}=T.useContext(hi),t=e[e.length-1];return t?t.params:{}}function Gs(e,{relative:t}={}){let{matches:i}=T.useContext(hi),{pathname:r}=Da(),o=JSON.stringify(QO(i));return T.useMemo(()=>ZO(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function wB(e,t){return aw(e,t)}function aw(e,t,i,r,o){it(js(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=T.useContext(fi),{matches:u}=T.useContext(hi),f=u[u.length-1],g=f?f.params:{},p=f?f.pathname:"/",m=f?f.pathnameBase:"/",b=f&&f.route;{let k=b&&b.path||"";rw(p,!b||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${k}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
18
|
+
|
|
19
|
+
Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let y=Da(),x;if(t){let k=typeof t=="string"?Wo(t):t;it(m==="/"||k.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${k.pathname}" was given in the \`location\` prop.`),x=k}else x=y;let E=x.pathname||"/",C=E;if(m!=="/"){let k=m.replace(/^\//,"").split("/");C="/"+E.replace(/^\//,"").split("/").slice(k.length).join("/")}let O=YO(e,{pathname:C});Un(b||O!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Un(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=AB(O&&O.map(k=>Object.assign({},k,{params:Object.assign({},g,k.params),pathname:Mi([m,c.encodeLocation?c.encodeLocation(k.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?m:Mi([m,c.encodeLocation?c.encodeLocation(k.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),u,i,r,o);return t&&w?T.createElement(Us.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},w):w}function RB(){let e=DB(),t=xB(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},c={padding:"2px 4px",backgroundColor:r},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:c},"ErrorBoundary")," or"," ",T.createElement("code",{style:c},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),i?T.createElement("pre",{style:o},i):null,u)}var kB=T.createElement(RB,null),NB=class extends T.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?T.createElement(hi.Provider,{value:this.props.routeContext},T.createElement(km.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function IB({routeContext:e,match:t,children:i}){let r=T.useContext(qo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),T.createElement(hi.Provider,{value:e},i)}function AB(e,t=[],i=null,r=null,o=null){if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let c=e,u=i?.errors;if(u!=null){let p=c.findIndex(m=>m.route.id&&u?.[m.route.id]!==void 0);it(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,p+1))}let f=!1,g=-1;if(i)for(let p=0;p<c.length;p++){let m=c[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(g=p),m.route.id){let{loaderData:b,errors:y}=i,x=m.route.loader&&!b.hasOwnProperty(m.route.id)&&(!y||y[m.route.id]===void 0);if(m.route.lazy||x){f=!0,g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}return c.reduceRight((p,m,b)=>{let y,x=!1,E=null,C=null;i&&(y=u&&m.route.id?u[m.route.id]:void 0,E=m.route.errorElement||kB,f&&(g<0&&b===0?(rw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,C=null):g===b&&(x=!0,C=m.route.hydrateFallbackElement||null)));let O=t.concat(c.slice(0,b+1)),w=()=>{let k;return y?k=E:x?k=C:m.route.Component?k=T.createElement(m.route.Component,null):m.route.element?k=m.route.element:k=p,T.createElement(IB,{match:m,routeContext:{outlet:p,matches:O,isDataRoute:i!=null},children:k})};return i&&(m.route.ErrorBoundary||m.route.errorElement||b===0)?T.createElement(NB,{location:i.location,revalidation:i.revalidation,component:E,error:y,children:w(),routeContext:{outlet:null,matches:O,isDataRoute:!0},unstable_onError:r}):w()},null)}function Nm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function PB(e){let t=T.useContext(qo);return it(t,Nm(e)),t}function VB(e){let t=T.useContext(Hd);return it(t,Nm(e)),t}function _B(e){let t=T.useContext(hi);return it(t,Nm(e)),t}function Im(e){let t=_B(e),i=t.matches[t.matches.length-1];return it(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function zB(){return Im("useRouteId")}function DB(){let e=T.useContext(km),t=VB("useRouteError"),i=Im("useRouteError");return e!==void 0?e:t.errors?.[i]}function MB(){let{router:e}=PB("useNavigate"),t=Im("useNavigate"),i=T.useRef(!1);return nw(()=>{i.current=!0}),T.useCallback(async(o,c={})=>{Un(i.current,tw),i.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...c}))},[e,t])}var iC={};function rw(e,t,i){!t&&!iC[e]&&(iC[e]=!0,Un(!1,i))}T.memo(LB);function LB({routes:e,future:t,state:i,unstable_onError:r}){return aw(e,void 0,i,r,t)}function BB(e){it(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function HB({basename:e="/",children:t=null,location:i,navigationType:r="POP",navigator:o,static:c=!1}){it(!js(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=T.useMemo(()=>({basename:u,navigator:o,static:c,future:{}}),[u,o,c]);typeof i=="string"&&(i=Wo(i));let{pathname:g="/",search:p="",hash:m="",state:b=null,key:y="default"}=i,x=T.useMemo(()=>{let E=Hi(g,u);return E==null?null:{location:{pathname:E,search:p,hash:m,state:b,key:y},navigationType:r}},[u,g,p,m,b,y,r]);return Un(x!=null,`<Router basename="${u}"> is not able to match the URL "${g}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:T.createElement(fi.Provider,{value:f},T.createElement(Us.Provider,{children:t,value:x}))}function QF({children:e,location:t}){return wB(yp(e),t)}function yp(e,t=[]){let i=[];return T.Children.forEach(e,(r,o)=>{if(!T.isValidElement(r))return;let c=[...t,o];if(r.type===T.Fragment){i.push.apply(i,yp(r.props.children,c));return}it(r.type===BB,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),it(!r.props.index||!r.props.children,"An index route cannot have child routes.");let u={id:r.props.id||c.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=yp(r.props.children,c)),i.push(u)}),i}var qu="get",Yu="application/x-www-form-urlencoded";function Fd(e){return e!=null&&typeof e.tagName=="string"}function FB(e){return Fd(e)&&e.tagName.toLowerCase()==="button"}function $B(e){return Fd(e)&&e.tagName.toLowerCase()==="form"}function UB(e){return Fd(e)&&e.tagName.toLowerCase()==="input"}function jB(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function GB(e,t){return e.button===0&&(!t||t==="_self")&&!jB(e)}function xp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,i)=>{let r=e[i];return t.concat(Array.isArray(r)?r.map(o=>[i,o]):[[i,r]])},[]))}function WB(e,t){let i=xp(e);return t&&t.forEach((r,o)=>{i.has(o)||t.getAll(o).forEach(c=>{i.append(o,c)})}),i}var Nu=null;function qB(){if(Nu===null)try{new FormData(document.createElement("form"),0),Nu=!1}catch{Nu=!0}return Nu}var YB=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dg(e){return e!=null&&!YB.has(e)?(Un(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yu}"`),null):e}function KB(e,t){let i,r,o,c,u;if($B(e)){let f=e.getAttribute("action");r=f?Hi(f,t):null,i=e.getAttribute("method")||qu,o=Dg(e.getAttribute("enctype"))||Yu,c=new FormData(e)}else if(FB(e)||UB(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=e.getAttribute("formaction")||f.getAttribute("action");if(r=g?Hi(g,t):null,i=e.getAttribute("formmethod")||f.getAttribute("method")||qu,o=Dg(e.getAttribute("formenctype"))||Dg(f.getAttribute("enctype"))||Yu,c=new FormData(f,e),!qB()){let{name:p,type:m,value:b}=e;if(m==="image"){let y=p?`${p}.`:"";c.append(`${y}x`,"0"),c.append(`${y}y`,"0")}else p&&c.append(p,b)}}else{if(Fd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=qu,r=null,o=Yu,u=e}return c&&o==="text/plain"&&(u=c,c=void 0),{action:r,method:i.toLowerCase(),encType:o,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Am(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function XB(e,t,i){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${i}`:t&&Hi(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${i}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${i}`,r}async function QB(e,t){if(e.id in t)return t[e.id];try{let i=await import(e.module);return t[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ZB(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function JB(e,t,i){let r=await Promise.all(e.map(async o=>{let c=t.routes[o.route.id];if(c){let u=await QB(c,i);return u.links?u.links():[]}return[]}));return iH(r.flat(1).filter(ZB).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function aC(e,t,i,r,o,c){let u=(g,p)=>i[p]?g.route.id!==i[p].route.id:!0,f=(g,p)=>i[p].pathname!==g.pathname||i[p].route.path?.endsWith("*")&&i[p].params["*"]!==g.params["*"];return c==="assets"?t.filter((g,p)=>u(g,p)||f(g,p)):c==="data"?t.filter((g,p)=>{let m=r.routes[g.route.id];if(!m||!m.hasLoader)return!1;if(u(g,p)||f(g,p))return!0;if(g.route.shouldRevalidate){let b=g.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function eH(e,t,{includeHydrateFallback:i}={}){return tH(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function tH(e){return[...new Set(e)]}function nH(e){let t={},i=Object.keys(e).sort();for(let r of i)t[r]=e[r];return t}function iH(e,t){let i=new Set;return new Set(t),e.reduce((r,o)=>{let c=JSON.stringify(nH(o));return i.has(c)||(i.add(c),r.push({key:c,link:o})),r},[])}function ow(){let e=T.useContext(qo);return Am(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function aH(){let e=T.useContext(Hd);return Am(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Pm=T.createContext(void 0);Pm.displayName="FrameworkContext";function lw(){let e=T.useContext(Pm);return Am(e,"You must render this element inside a <HydratedRouter> element"),e}function rH(e,t){let i=T.useContext(Pm),[r,o]=T.useState(!1),[c,u]=T.useState(!1),{onFocus:f,onBlur:g,onMouseEnter:p,onMouseLeave:m,onTouchStart:b}=t,y=T.useRef(null);T.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let C=w=>{w.forEach(k=>{u(k.isIntersecting)})},O=new IntersectionObserver(C,{threshold:.5});return y.current&&O.observe(y.current),()=>{O.disconnect()}}},[e]),T.useEffect(()=>{if(r){let C=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(C)}}},[r]);let x=()=>{o(!0)},E=()=>{o(!1),u(!1)};return i?e!=="intent"?[c,y,{}]:[c,y,{onFocus:ls(f,x),onBlur:ls(g,E),onMouseEnter:ls(p,x),onMouseLeave:ls(m,E),onTouchStart:ls(b,x)}]:[!1,y,{}]}function ls(e,t){return i=>{e&&e(i),i.defaultPrevented||t(i)}}function oH({page:e,...t}){let{router:i}=ow(),r=T.useMemo(()=>YO(i.routes,e,i.basename),[i.routes,e,i.basename]);return r?T.createElement(sH,{page:e,matches:r,...t}):null}function lH(e){let{manifest:t,routeModules:i}=lw(),[r,o]=T.useState([]);return T.useEffect(()=>{let c=!1;return JB(e,t,i).then(u=>{c||o(u)}),()=>{c=!0}},[e,t,i]),r}function sH({page:e,matches:t,...i}){let r=Da(),{manifest:o,routeModules:c}=lw(),{basename:u}=ow(),{loaderData:f,matches:g}=aH(),p=T.useMemo(()=>aC(e,t,g,o,r,"data"),[e,t,g,o,r]),m=T.useMemo(()=>aC(e,t,g,o,r,"assets"),[e,t,g,o,r]),b=T.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let E=new Set,C=!1;if(t.forEach(w=>{let k=o.routes[w.route.id];!k||!k.hasLoader||(!p.some(N=>N.route.id===w.route.id)&&w.route.id in f&&c[w.route.id]?.shouldRevalidate||k.hasClientLoader?C=!0:E.add(w.route.id))}),E.size===0)return[];let O=XB(e,u,"data");return C&&E.size>0&&O.searchParams.set("_routes",t.filter(w=>E.has(w.route.id)).map(w=>w.route.id).join(",")),[O.pathname+O.search]},[u,f,r,o,p,t,e,c]),y=T.useMemo(()=>eH(m,o),[m,o]),x=lH(m);return T.createElement(T.Fragment,null,b.map(E=>T.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...i})),y.map(E=>T.createElement("link",{key:E,rel:"modulepreload",href:E,...i})),x.map(({key:E,link:C})=>T.createElement("link",{key:E,nonce:i.nonce,...C})))}function cH(...e){return t=>{e.forEach(i=>{typeof i=="function"?i(t):i!=null&&(i.current=t)})}}var sw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{sw&&(window.__reactRouterVersion="7.9.5")}catch{}function ZF({basename:e,children:t,window:i}){let r=T.useRef();r.current==null&&(r.current=Q6({window:i,v5Compat:!0}));let o=r.current,[c,u]=T.useState({action:o.action,location:o.location}),f=T.useCallback(g=>{T.startTransition(()=>u(g))},[u]);return T.useLayoutEffect(()=>o.listen(f),[o,f]),T.createElement(HB,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:o})}var cw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uw=T.forwardRef(function({onClick:t,discover:i="render",prefetch:r="none",relative:o,reloadDocument:c,replace:u,state:f,target:g,to:p,preventScrollReset:m,viewTransition:b,...y},x){let{basename:E}=T.useContext(fi),C=typeof p=="string"&&cw.test(p),O,w=!1;if(typeof p=="string"&&C&&(O=p,sw))try{let _=new URL(window.location.href),$=p.startsWith("//")?new URL(_.protocol+p):new URL(p),G=Hi($.pathname,E);$.origin===_.origin&&G!=null?p=G+$.search+$.hash:w=!0}catch{Un(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let k=TB(p,{relative:o}),[N,M,P]=rH(r,y),j=hH(p,{replace:u,state:f,target:g,preventScrollReset:m,relative:o,viewTransition:b});function F(_){t&&t(_),_.defaultPrevented||j(_)}let Y=T.createElement("a",{...y,...P,href:O||k,onClick:w||c?t:F,ref:cH(x,M),target:g,"data-discover":!C&&i==="render"?"true":void 0});return N&&!C?T.createElement(T.Fragment,null,Y,T.createElement(oH,{page:k})):Y});uw.displayName="Link";var uH=T.forwardRef(function({"aria-current":t="page",caseSensitive:i=!1,className:r="",end:o=!1,style:c,to:u,viewTransition:f,children:g,...p},m){let b=Gs(u,{relative:p.relative}),y=Da(),x=T.useContext(Hd),{navigator:E,basename:C}=T.useContext(fi),O=x!=null&&bH(b)&&f===!0,w=E.encodeLocation?E.encodeLocation(b).pathname:b.pathname,k=y.pathname,N=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(k=k.toLowerCase(),N=N?N.toLowerCase():null,w=w.toLowerCase()),N&&C&&(N=Hi(N,C)||N);const M=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let P=k===w||!o&&k.startsWith(w)&&k.charAt(M)==="/",j=N!=null&&(N===w||!o&&N.startsWith(w)&&N.charAt(w.length)==="/"),F={isActive:P,isPending:j,isTransitioning:O},Y=P?t:void 0,_;typeof r=="function"?_=r(F):_=[r,P?"active":null,j?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let $=typeof c=="function"?c(F):c;return T.createElement(uw,{...p,"aria-current":Y,className:_,ref:m,style:$,to:u,viewTransition:f},typeof g=="function"?g(F):g)});uH.displayName="NavLink";var dH=T.forwardRef(({discover:e="render",fetcherKey:t,navigate:i,reloadDocument:r,replace:o,state:c,method:u=qu,action:f,onSubmit:g,relative:p,preventScrollReset:m,viewTransition:b,...y},x)=>{let E=mH(),C=vH(f,{relative:p}),O=u.toLowerCase()==="get"?"get":"post",w=typeof f=="string"&&cw.test(f),k=N=>{if(g&&g(N),N.defaultPrevented)return;N.preventDefault();let M=N.nativeEvent.submitter,P=M?.getAttribute("formmethod")||u;E(M||N.currentTarget,{fetcherKey:t,method:P,navigate:i,replace:o,state:c,relative:p,preventScrollReset:m,viewTransition:b})};return T.createElement("form",{ref:x,method:O,action:C,onSubmit:r?g:k,...y,"data-discover":!w&&e==="render"?"true":void 0})});dH.displayName="Form";function fH(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dw(e){let t=T.useContext(qo);return it(t,fH(e)),t}function hH(e,{target:t,replace:i,state:r,preventScrollReset:o,relative:c,viewTransition:u}={}){let f=iw(),g=Da(),p=Gs(e,{relative:c});return T.useCallback(m=>{if(GB(m,t)){m.preventDefault();let b=i!==void 0?i:Rs(g)===Rs(p);f(e,{replace:b,state:r,preventScrollReset:o,relative:c,viewTransition:u})}},[g,f,p,i,r,t,e,o,c,u])}function JF(e){Un(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=T.useRef(xp(e)),i=T.useRef(!1),r=Da(),o=T.useMemo(()=>WB(r.search,i.current?null:t.current),[r.search]),c=iw(),u=T.useCallback((f,g)=>{const p=xp(typeof f=="function"?f(new URLSearchParams(o)):f);i.current=!0,c("?"+p,g)},[c,o]);return[o,u]}var gH=0,pH=()=>`__${String(++gH)}__`;function mH(){let{router:e}=dw("useSubmit"),{basename:t}=T.useContext(fi),i=zB();return T.useCallback(async(r,o={})=>{let{action:c,method:u,encType:f,formData:g,body:p}=KB(r,t);if(o.navigate===!1){let m=o.fetcherKey||pH();await e.fetch(m,i,o.action||c,{preventScrollReset:o.preventScrollReset,formData:g,body:p,formMethod:o.method||u,formEncType:o.encType||f,flushSync:o.flushSync})}else await e.navigate(o.action||c,{preventScrollReset:o.preventScrollReset,formData:g,body:p,formMethod:o.method||u,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:i,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,i])}function vH(e,{relative:t}={}){let{basename:i}=T.useContext(fi),r=T.useContext(hi);it(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),c={...Gs(e||".",{relative:t})},u=Da();if(e==null){c.search=u.search;let f=new URLSearchParams(c.search),g=f.getAll("index");if(g.some(m=>m==="")){f.delete("index"),g.filter(b=>b).forEach(b=>f.append("index",b));let m=f.toString();c.search=m?`?${m}`:""}}return(!e||e===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:Mi([i,c.pathname])),Rs(c)}function bH(e,{relative:t}={}){let i=T.useContext(ew);it(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dw("useViewTransitionState"),o=Gs(e,{relative:t});if(!i.isTransitioning)return!1;let c=Hi(i.currentLocation.pathname,r)||i.currentLocation.pathname,u=Hi(i.nextLocation.pathname,r)||i.nextLocation.pathname;return sd(o.pathname,u)!=null||sd(o.pathname,c)!=null}var Yo=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(){}},yH={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},xH=class{#e=yH;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},hr=new xH;function SH(e){setTimeout(e,0)}var Sr=typeof window>"u"||"Deno"in globalThis;function Ft(){}function CH(e,t){return typeof e=="function"?e(t):e}function Sp(e){return typeof e=="number"&&e>=0&&e!==1/0}function fw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ea(e,t){return typeof e=="function"?e(t):e}function Vn(e,t){return typeof e=="function"?e(t):e}function rC(e,t){const{type:i="all",exact:r,fetchStatus:o,predicate:c,queryKey:u,stale:f}=e;if(u){if(r){if(t.queryHash!==Vm(u,t.options))return!1}else if(!ks(t.queryKey,u))return!1}if(i!=="all"){const g=t.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||o&&o!==t.state.fetchStatus||c&&!c(t))}function oC(e,t){const{exact:i,status:r,predicate:o,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(i){if(Cr(t.options.mutationKey)!==Cr(c))return!1}else if(!ks(t.options.mutationKey,c))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Vm(e,t){return(t?.queryKeyHashFn||Cr)(e)}function Cr(e){return JSON.stringify(e,(t,i)=>Cp(i)?Object.keys(i).sort().reduce((r,o)=>(r[o]=i[o],r),{}):i)}function ks(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(i=>ks(e[i],t[i])):!1}var EH=Object.prototype.hasOwnProperty;function hw(e,t){if(e===t)return e;const i=lC(e)&&lC(t);if(!i&&!(Cp(e)&&Cp(t)))return t;const o=(i?e:Object.keys(e)).length,c=i?t:Object.keys(t),u=c.length,f=i?new Array(u):{};let g=0;for(let p=0;p<u;p++){const m=i?p:c[p],b=e[m],y=t[m];if(b===y){f[m]=b,(i?p<o:EH.call(e,m))&&g++;continue}if(b===null||y===null||typeof b!="object"||typeof y!="object"){f[m]=y;continue}const x=hw(b,y);f[m]=x,x===b&&g++}return o===u&&g===o?e:f}function cd(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}function lC(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Cp(e){if(!sC(e))return!1;const t=e.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!sC(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function sC(e){return Object.prototype.toString.call(e)==="[object Object]"}function TH(e){return new Promise(t=>{hr.setTimeout(t,e)})}function Ep(e,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?hw(e,t):t}function OH(e,t,i=0){const r=[...e,t];return i&&r.length>i?r.slice(1):r}function wH(e,t,i=0){const r=[t,...e];return i&&r.length>i?r.slice(0,-1):r}var _m=Symbol();function gw(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===_m?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function pw(e,t){return typeof e=="function"?e(...t):!!e}var RH=class extends Yo{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Sr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},zm=new RH;function Tp(){let e,t;const i=new Promise((o,c)=>{e=o,t=c});i.status="pending",i.catch(()=>{});function r(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},i.reject=o=>{r({status:"rejected",reason:o}),t(o)},i}var kH=SH;function NH(){let e=[],t=0,i=f=>{f()},r=f=>{f()},o=kH;const c=f=>{t?e.push(f):o(()=>{i(f)})},u=()=>{const f=e;e=[],f.length&&o(()=>{r(()=>{f.forEach(g=>{i(g)})})})};return{batch:f=>{let g;t++;try{g=f()}finally{t--,t||u()}return g},batchCalls:f=>(...g)=>{c(()=>{f(...g)})},schedule:c,setNotifyFunction:f=>{i=f},setBatchNotifyFunction:f=>{r=f},setScheduler:f=>{o=f}}}var yt=NH(),IH=class extends Yo{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Sr&&window.addEventListener){const t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(i=>{i(e)}))}isOnline(){return this.#e}},ud=new IH;function AH(e){return Math.min(1e3*2**e,3e4)}function mw(e){return(e??"online")==="online"?ud.isOnline():!0}var Op=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function vw(e){let t=!1,i=0,r;const o=Tp(),c=()=>o.status!=="pending",u=C=>{if(!c()){const O=new Op(C);y(O),e.onCancel?.(O)}},f=()=>{t=!0},g=()=>{t=!1},p=()=>zm.isFocused()&&(e.networkMode==="always"||ud.isOnline())&&e.canRun(),m=()=>mw(e.networkMode)&&e.canRun(),b=C=>{c()||(r?.(),o.resolve(C))},y=C=>{c()||(r?.(),o.reject(C))},x=()=>new Promise(C=>{r=O=>{(c()||p())&&C(O)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),E=()=>{if(c())return;let C;const O=i===0?e.initialPromise:void 0;try{C=O??e.fn()}catch(w){C=Promise.reject(w)}Promise.resolve(C).then(b).catch(w=>{if(c())return;const k=e.retry??(Sr?0:3),N=e.retryDelay??AH,M=typeof N=="function"?N(i,w):N,P=k===!0||typeof k=="number"&&i<k||typeof k=="function"&&k(i,w);if(t||!P){y(w);return}i++,e.onFail?.(i,w),TH(M).then(()=>p()?void 0:x()).then(()=>{t?y(w):E()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(r?.(),o),cancelRetry:f,continueRetry:g,canStart:m,start:()=>(m()?E():x().then(E),o)}}var bw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sp(this.gcTime)&&(this.#e=hr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sr?1/0:300*1e3))}clearGcTimeout(){this.#e&&(hr.clearTimeout(this.#e),this.#e=void 0)}},PH=class extends bw{#e;#t;#n;#a;#i;#o;#l;constructor(e){super(),this.#l=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=uC(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=uC(this.options);t.data!==void 0&&(this.setState(cC(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const i=Ep(this.state.data,e,this.options);return this.#r({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e,t){this.#r({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Vn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_m||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ea(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:!fw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.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.#i&&(this.#l?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(g=>g.options.queryFn);f&&this.setOptions(f.options)}const i=new AbortController,r=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#l=!0,i.signal)})},o=()=>{const f=gw(this.options,t),p=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#l=!1,this.options.persister?this.options.persister(f,p,this):f(p)},u=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return r(f),f})();this.options.behavior?.onFetch(u,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#r({type:"fetch",meta:u.fetchOptions?.meta}),this.#i=vw({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof Op&&f.revert&&this.setState({...this.#t,fetchStatus:"idle"}),i.abort()},onFail:(f,g)=>{this.#r({type:"failed",failureCount:f,error:g})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const f=await this.#i.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Op){if(f.silent)return this.#i.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#r({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#r(e){const t=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...yw(i.data,this.options),fetchMeta:e.meta??null};case"success":const r={...i,...cC(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=t(this.state),yt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function yw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function cC(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function uC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,i=t!==void 0,r=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var xw=class extends Yo{constructor(e,t){super(),this.options=t,this.#e=e,this.#r=null,this.#l=Tp(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#a=void 0;#i;#o;#l;#r;#p;#f;#h;#c;#u;#s;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),dC(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wp(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wp(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,i=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!cd(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&fC(this.#t,i,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==i||Vn(this.options.enabled,this.#t)!==Vn(t.enabled,this.#t)||Ea(this.options.staleTime,this.#t)!==Ea(t.staleTime,this.#t))&&this.#m();const o=this.#v();r&&(this.#t!==i||Vn(this.options.enabled,this.#t)!==Vn(t.enabled,this.#t)||o!==this.#s)&&this.#b(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(t,e);return _H(this,i)&&(this.#a=i,this.#o=this.options,this.#i=this.#t.state),i}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(i,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,r))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),i=this.#e.getQueryCache().build(this.#e,t);return i.fetch().then(()=>this.createResult(i,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#d(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ft)),t}#m(){this.#x();const e=Ea(this.options.staleTime,this.#t);if(Sr||this.#a.isStale||!Sp(e))return;const i=fw(this.#a.dataUpdatedAt,e)+1;this.#c=hr.setTimeout(()=>{this.#a.isStale||this.updateResult()},i)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#S(),this.#s=e,!(Sr||Vn(this.options.enabled,this.#t)===!1||!Sp(this.#s)||this.#s===0)&&(this.#u=hr.setInterval(()=>{(this.options.refetchIntervalInBackground||zm.isFocused())&&this.#d()},this.#s))}#y(){this.#m(),this.#b(this.#v())}#x(){this.#c&&(hr.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(hr.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const i=this.#t,r=this.options,o=this.#a,c=this.#i,u=this.#o,g=e!==i?e.state:this.#n,{state:p}=e;let m={...p},b=!1,y;if(t._optimisticResults){const Y=this.hasListeners(),_=!Y&&dC(e,t),$=Y&&fC(e,i,t,r);(_||$)&&(m={...m,...yw(p.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:E,status:C}=m;y=m.data;let O=!1;if(t.placeholderData!==void 0&&y===void 0&&C==="pending"){let Y;o?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(Y=o.data,O=!0):Y=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,Y!==void 0&&(C="success",y=Ep(o?.data,Y,t),b=!0)}if(t.select&&y!==void 0&&!O)if(o&&y===c?.data&&t.select===this.#p)y=this.#f;else try{this.#p=t.select,y=t.select(y),y=Ep(o?.data,y,t),this.#f=y,this.#r=null}catch(Y){this.#r=Y}this.#r&&(x=this.#r,y=this.#f,E=Date.now(),C="error");const w=m.fetchStatus==="fetching",k=C==="pending",N=C==="error",M=k&&w,P=y!==void 0,F={status:C,fetchStatus:m.fetchStatus,isPending:k,isSuccess:C==="success",isError:N,isInitialLoading:M,isLoading:M,data:y,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:E,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>g.dataUpdateCount||m.errorUpdateCount>g.errorUpdateCount,isFetching:w,isRefetching:w&&!k,isLoadingError:N&&!P,isPaused:m.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:N&&P,isStale:Dm(e,t),refetch:this.refetch,promise:this.#l,isEnabled:Vn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const Y=G=>{F.status==="error"?G.reject(F.error):F.data!==void 0&&G.resolve(F.data)},_=()=>{const G=this.#l=F.promise=Tp();Y(G)},$=this.#l;switch($.status){case"pending":e.queryHash===i.queryHash&&Y($);break;case"fulfilled":(F.status==="error"||F.data!==$.value)&&_();break;case"rejected":(F.status!=="error"||F.error!==$.reason)&&_();break}}return F}updateResult(){const e=this.#a,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#o=this.options,this.#i.data!==void 0&&(this.#h=this.#t),cd(t,e))return;this.#a=t;const i=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#g.size)return!0;const c=new Set(o??this.#g);return this.options.throwOnError&&c.add("error"),Object.keys(this.#a).some(u=>{const f=u;return this.#a[f]!==e[f]&&c.has(f)})};this.#E({listeners:i()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#E(e){yt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function VH(e,t){return Vn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dC(e,t){return VH(e,t)||e.state.data!==void 0&&wp(e,t,t.refetchOnMount)}function wp(e,t,i){if(Vn(t.enabled,e)!==!1&&Ea(t.staleTime,e)!=="static"){const r=typeof i=="function"?i(e):i;return r==="always"||r!==!1&&Dm(e,t)}return!1}function fC(e,t,i,r){return(e!==t||Vn(r.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&Dm(e,i)}function Dm(e,t){return Vn(t.enabled,e)!==!1&&e.isStaleByTime(Ea(t.staleTime,e))}function _H(e,t){return!cd(e.getCurrentResult(),t)}function dd(e){return{onFetch:(t,i)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},g=0;const p=async()=>{let m=!1;const b=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},y=gw(t.options,t.fetchOptions),x=async(E,C,O)=>{if(m)return Promise.reject();if(C==null&&E.pages.length)return Promise.resolve(E);const k=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:C,direction:O?"backward":"forward",meta:t.options.meta};return b(j),j})(),N=await y(k),{maxPages:M}=t.options,P=O?wH:OH;return{pages:P(E.pages,N,M),pageParams:P(E.pageParams,C,M)}};if(o&&c.length){const E=o==="backward",C=E?Sw:Rp,O={pages:c,pageParams:u},w=C(r,O);f=await x(O,w,E)}else{const E=e??c.length;do{const C=g===0?u[0]??r.initialPageParam:Rp(r,f);if(g>0&&C==null)break;f=await x(f,C),g++}while(g<E)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i):t.fetchFn=p}}}function Rp(e,{pages:t,pageParams:i}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,i[r],i):void 0}function Sw(e,{pages:t,pageParams:i}){return t.length>0?e.getPreviousPageParam?.(t[0],t,i[0],i):void 0}function zH(e,t){return t?Rp(e,t)!=null:!1}function DH(e,t){return!t||!e.getPreviousPageParam?!1:Sw(e,t)!=null}var MH=class extends xw{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:dd()})}getOptimisticResult(e){return e.behavior=dd(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:i}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:c,isError:u,isRefetchError:f}=r,g=i.fetchMeta?.fetchMore?.direction,p=u&&g==="forward",m=o&&g==="forward",b=u&&g==="backward",y=o&&g==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:zH(t,i.data),hasPreviousPage:DH(t,i.data),isFetchNextPageError:p,isFetchingNextPage:m,isFetchPreviousPageError:b,isFetchingPreviousPage:y,isRefetchError:f&&!p&&!b,isRefetching:c&&!m&&!y}}},LH=class extends bw{#e;#t;#n;#a;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Cw(),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.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=vw({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(c,u)=>{this.#i({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#a.canStart();try{if(r)t();else{this.#i({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,i);const u=await this.options.onMutate?.(e,i);u!==this.state.context&&this.#i({type:"pending",context:u,variables:e,isPaused:o})}const c=await this.#a.start();return await this.#n.config.onSuccess?.(c,e,this.state.context,this,i),await this.options.onSuccess?.(c,e,this.state.context,i),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(c,null,e,this.state.context,i),this.#i({type:"success",data:c}),c}catch(c){try{throw await this.#n.config.onError?.(c,e,this.state.context,this,i),await this.options.onError?.(c,e,this.state.context,i),await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(void 0,c,e,this.state.context,i),c}finally{this.#i({type:"error",error:c})}}finally{this.#n.runNext(this)}}#i(e){const t=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,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{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),yt.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Cw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var BH=class extends Yo{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,i){const r=new LH({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:i});return this.add(r),r}add(e){this.#e.add(e);const t=Iu(e);if(typeof t=="string"){const i=this.#t.get(t);i?i.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Iu(e);if(typeof t=="string"){const i=this.#t.get(t);if(i)if(i.length>1){const r=i.indexOf(e);r!==-1&&i.splice(r,1)}else i[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Iu(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Iu(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){yt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(i=>oC(t,i))}findAll(e={}){return this.getAll().filter(t=>oC(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(Ft))))}};function Iu(e){return e.options.scope?.id}var HH=class extends Yo{#e;#t=void 0;#n;#a;constructor(t,i){super(),this.#e=t,this.setOptions(i),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const i=this.options;this.options=this.#e.defaultMutationOptions(t),cd(this.options,i)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Cr(i.mutationKey)!==Cr(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(t,i){return this.#a=i,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#i(){const t=this.#n?.state??Cw();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){yt.batch(()=>{if(this.#a&&this.hasListeners()){const i=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#a.onSuccess?.(t.data,i,r,o),this.#a.onSettled?.(t.data,null,i,r,o)):t?.type==="error"&&(this.#a.onError?.(t.error,i,r,o),this.#a.onSettled?.(void 0,t.error,i,r,o))}this.listeners.forEach(i=>{i(this.#t)})})}},FH=class extends Yo{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,i){const r=t.queryKey,o=t.queryHash??Vm(r,t);let c=this.get(o);return c||(c=new PH({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){yt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(i=>rC(t,i))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(i=>rC(e,i)):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()})})}},t8=class{#e;#t;#n;#a;#i;#o;#l;#r;constructor(e={}){this.#e=e.queryCache||new FH,this.#t=e.mutationCache||new BH,this.#n=e.defaultOptions||{},this.#a=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#l=zm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=ud.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#l?.(),this.#l=void 0,this.#r?.(),this.#r=void 0)}isFetching(e){return this.#e.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.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),i=this.#e.build(this,t),r=i.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(Ea(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:i})=>{const r=i.data;return[t,r]})}setQueryData(e,t,i){const r=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(r.queryHash)?.state.data,u=CH(t,c);if(u!==void 0)return this.#e.build(this,r).setData(u,{...i,manual:!0})}setQueriesData(e,t,i){return yt.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,i)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;yt.batch(()=>{t.findAll(e).forEach(i=>{t.remove(i)})})}resetQueries(e,t){const i=this.#e;return yt.batch(()=>(i.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const i={revert:!0,...t},r=yt.batch(()=>this.#e.findAll(e).map(o=>o.cancel(i)));return Promise.all(r).then(Ft).catch(Ft)}invalidateQueries(e,t={}){return yt.batch(()=>(this.#e.findAll(e).forEach(i=>{i.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const i={...t,cancelRefetch:t.cancelRefetch??!0},r=yt.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(Ft)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(Ft)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const i=this.#e.build(this,t);return i.isStaleByTime(Ea(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ft).catch(Ft)}fetchInfiniteQuery(e){return e.behavior=dd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ft).catch(Ft)}ensureInfiniteQueryData(e){return e.behavior=dd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ud.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(Cr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],i={};return t.forEach(r=>{ks(e,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(e,t){this.#i.set(Cr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],i={};return t.forEach(r=>{ks(e,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vm(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===_m&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ew=T.createContext(void 0),Tw=e=>{const t=T.useContext(Ew);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},n8=({client:e,children:t})=>(T.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),z.jsx(Ew.Provider,{value:e,children:t})),Ow=T.createContext(!1),$H=()=>T.useContext(Ow);Ow.Provider;function UH(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var jH=T.createContext(UH()),GH=()=>T.useContext(jH),WH=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},qH=e=>{T.useEffect(()=>{e.clearReset()},[e])},YH=({result:e,errorResetBoundary:t,throwOnError:i,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||pw(i,[e.error,r])),KH=e=>{if(e.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>i(r(...o)):i(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},XH=(e,t)=>e.isLoading&&e.isFetching&&!t,QH=(e,t)=>e?.suspense&&t.isPending,hC=(e,t,i)=>t.fetchOptimistic(e).catch(()=>{i.clearReset()});function ww(e,t,i){const r=$H(),o=GH(),c=Tw(),u=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=r?"isRestoring":"optimistic",KH(u),WH(u,o),qH(o);const f=!c.getQueryCache().get(u.queryHash),[g]=T.useState(()=>new t(c,u)),p=g.getOptimisticResult(u),m=!r&&e.subscribed!==!1;if(T.useSyncExternalStore(T.useCallback(b=>{const y=m?g.subscribe(yt.batchCalls(b)):Ft;return g.updateResult(),y},[g,m]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),T.useEffect(()=>{g.setOptions(u)},[u,g]),QH(u,p))throw hC(u,g,o);if(YH({result:p,errorResetBoundary:o,throwOnError:u.throwOnError,query:c.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw p.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(u,p),u.experimental_prefetchInRender&&!Sr&&XH(p,r)&&(f?hC(u,g,o):c.getQueryCache().get(u.queryHash)?.promise)?.catch(Ft).finally(()=>{g.updateResult()}),u.notifyOnChangeProps?p:g.trackResult(p)}function i8(e,t){return ww(e,xw)}function a8(e,t){const i=Tw(),[r]=T.useState(()=>new HH(i,e));T.useEffect(()=>{r.setOptions(e)},[r,e]);const o=T.useSyncExternalStore(T.useCallback(u=>r.subscribe(yt.batchCalls(u)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),c=T.useCallback((u,f)=>{r.mutate(u,f).catch(Ft)},[r]);if(o.error&&pw(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}function r8(e,t){return ww(e,MH)}export{iF as $,aF as A,y2 as B,rF as C,hF as D,mF as E,z6 as F,AC as G,vF as H,R6 as I,yF as J,SF as K,L6 as L,K6 as M,_6 as N,n8 as O,ZF as P,t8 as Q,QF as R,zO as S,DA as T,BB as U,G6 as V,Da as W,RA as X,ZH as Y,Qk as Z,JH as _,oF as a,j6 as a0,JF as a1,MF as a2,HF as a3,BF as a4,q6 as a5,LF as a6,uF as a7,fF as a8,XF as a9,lF as aa,cF as ab,sF as ac,r8 as ad,FF as ae,jF as af,$F as ag,UF as ah,dF as ai,H6 as aj,CF as ak,EF as al,TF as am,OF as an,wF as ao,RF as ap,kF as aq,GF as b,WF as c,qF as d,YF as e,KF as f,E6 as g,uw as h,i8 as i,z as j,a8 as k,NF as l,IF as m,DF as n,AF as o,PF as p,VF as q,T as r,_F as s,zF as t,iw as u,MO as v,bF as w,gF as x,pF as y,xF as z};
|