@clicktap/ui 0.2.7 → 0.2.9

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 CHANGED
@@ -1,26 +1,26 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),d=require("react"),G=require("styled-components"),bo=require("react-dom"),Tp=e=>e&&e.__esModule?e:{default:e};function k$(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const B=k$(d),ge=Tp(G),mo=Tp(bo);var R$=()=>S.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[S.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),S.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function F$(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=B.createContext(void 0);o.displayName=r;function i(){var a;const s=B.useContext(o);if(!s&&t){const l=new Error(n);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function B$(e){return{UNSAFE_getDOMNode(){return e.current}}}function ks(e){const t=d.useRef(null);return d.useImperativeHandle(e,()=>t.current),t}var I$=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function Ap(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ap(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function sr(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=Ap(n))&&(o&&(o+=" "),o+=r);return o}var zc={};function L$(e,t,...n){var r;const i=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!zc[i]&&(zc[i]=!0,((r=process==null?void 0:process.env)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}function Mp(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}process.env.NODE_ENV;process.env.NODE_ENV;function V$(e){return typeof e=="function"}var St=e=>e?"true":void 0;function O$(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function N$(e,t){if(e!=null){if(V$(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function K$(...e){return t=>{e.forEach(n=>N$(n,t))}}var j$=Object.create,kp=Object.defineProperty,_$=Object.getOwnPropertyDescriptor,Rp=Object.getOwnPropertyNames,z$=Object.getPrototypeOf,U$=Object.prototype.hasOwnProperty,Vl=(e,t)=>function(){return t||(0,e[Rp(e)[0]])((t={exports:{}}).exports,t),t.exports},H$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Rp(t))!U$.call(e,o)&&o!==n&&kp(e,o,{get:()=>t[o],enumerable:!(r=_$(t,o))||r.enumerable});return e},G$=(e,t,n)=>(n=e!=null?j$(z$(e)):{},H$(t||!e||!e.__esModule?kp(n,"default",{value:e,enumerable:!0}):n,e)),W$=Vl({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function h(D){return D===null||typeof D!="object"?null:(D=p&&D[p]||D["@@iterator"],typeof D=="function"?D:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function $(D,N,Y){this.props=D,this.context=N,this.refs=y,this.updater=Y||b}$.prototype.isReactComponent={},$.prototype.setState=function(D,N){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,N,"setState")},$.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=$.prototype;function w(D,N,Y){this.props=D,this.context=N,this.refs=y,this.updater=Y||b}var E=w.prototype=new C;E.constructor=w,g(E,$.prototype),E.isPureReactComponent=!0;var P=Array.isArray,k=Object.prototype.hasOwnProperty,K={current:null},v={key:!0,ref:!0,__self:!0,__source:!0};function V(D,N,Y){var Q,ee={},oe=null,z=null;if(N!=null)for(Q in N.ref!==void 0&&(z=N.ref),N.key!==void 0&&(oe=""+N.key),N)k.call(N,Q)&&!v.hasOwnProperty(Q)&&(ee[Q]=N[Q]);var Z=arguments.length-2;if(Z===1)ee.children=Y;else if(1<Z){for(var ne=Array(Z),se=0;se<Z;se++)ne[se]=arguments[se+2];ee.children=ne}if(D&&D.defaultProps)for(Q in Z=D.defaultProps,Z)ee[Q]===void 0&&(ee[Q]=Z[Q]);return{$$typeof:t,type:D,key:oe,ref:z,props:ee,_owner:K.current}}function F(D,N){return{$$typeof:t,type:D.type,key:N,ref:D.ref,props:D.props,_owner:D._owner}}function A(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function I(D){var N={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(Y){return N[Y]})}var R=/\/+/g;function L(D,N){return typeof D=="object"&&D!==null&&D.key!=null?I(""+D.key):N.toString(36)}function j(D,N,Y,Q,ee){var oe=typeof D;(oe==="undefined"||oe==="boolean")&&(D=null);var z=!1;if(D===null)z=!0;else switch(oe){case"string":case"number":z=!0;break;case"object":switch(D.$$typeof){case t:case n:z=!0}}if(z)return z=D,ee=ee(z),D=Q===""?"."+L(z,0):Q,P(ee)?(Y="",D!=null&&(Y=D.replace(R,"$&/")+"/"),j(ee,N,Y,"",function(se){return se})):ee!=null&&(A(ee)&&(ee=F(ee,Y+(!ee.key||z&&z.key===ee.key?"":(""+ee.key).replace(R,"$&/")+"/")+D)),N.push(ee)),1;if(z=0,Q=Q===""?".":Q+":",P(D))for(var Z=0;Z<D.length;Z++){oe=D[Z];var ne=Q+L(oe,Z);z+=j(oe,N,Y,ne,ee)}else if(ne=h(D),typeof ne=="function")for(D=ne.call(D),Z=0;!(oe=D.next()).done;)oe=oe.value,ne=Q+L(oe,Z++),z+=j(oe,N,Y,ne,ee);else if(oe==="object")throw N=String(D),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.");return z}function O(D,N,Y){if(D==null)return D;var Q=[],ee=0;return j(D,Q,"","",function(oe){return N.call(Y,oe,ee++)}),Q}function T(D){if(D._status===-1){var N=D._result;N=N(),N.then(function(Y){(D._status===0||D._status===-1)&&(D._status=1,D._result=Y)},function(Y){(D._status===0||D._status===-1)&&(D._status=2,D._result=Y)}),D._status===-1&&(D._status=0,D._result=N)}if(D._status===1)return D._result.default;throw D._result}var W={current:null},q={transition:null},H={ReactCurrentDispatcher:W,ReactCurrentBatchConfig:q,ReactCurrentOwner:K};e.Children={map:O,forEach:function(D,N,Y){O(D,function(){N.apply(this,arguments)},Y)},count:function(D){var N=0;return O(D,function(){N++}),N},toArray:function(D){return O(D,function(N){return N})||[]},only:function(D){if(!A(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},e.Component=$,e.Fragment=r,e.Profiler=i,e.PureComponent=w,e.StrictMode=o,e.Suspense=c,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,e.cloneElement=function(D,N,Y){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var Q=g({},D.props),ee=D.key,oe=D.ref,z=D._owner;if(N!=null){if(N.ref!==void 0&&(oe=N.ref,z=K.current),N.key!==void 0&&(ee=""+N.key),D.type&&D.type.defaultProps)var Z=D.type.defaultProps;for(ne in N)k.call(N,ne)&&!v.hasOwnProperty(ne)&&(Q[ne]=N[ne]===void 0&&Z!==void 0?Z[ne]:N[ne])}var ne=arguments.length-2;if(ne===1)Q.children=Y;else if(1<ne){Z=Array(ne);for(var se=0;se<ne;se++)Z[se]=arguments[se+2];Q.children=Z}return{$$typeof:t,type:D.type,key:ee,ref:oe,props:Q,_owner:z}},e.createContext=function(D){return D={$$typeof:s,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:a,_context:D},D.Consumer=D},e.createElement=V,e.createFactory=function(D){var N=V.bind(null,D);return N.type=D,N},e.createRef=function(){return{current:null}},e.forwardRef=function(D){return{$$typeof:l,render:D}},e.isValidElement=A,e.lazy=function(D){return{$$typeof:f,_payload:{_status:-1,_result:D},_init:T}},e.memo=function(D,N){return{$$typeof:u,type:D,compare:N===void 0?null:N}},e.startTransition=function(D){var N=q.transition;q.transition={};try{D()}finally{q.transition=N}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(D,N){return W.current.useCallback(D,N)},e.useContext=function(D){return W.current.useContext(D)},e.useDebugValue=function(){},e.useDeferredValue=function(D){return W.current.useDeferredValue(D)},e.useEffect=function(D,N){return W.current.useEffect(D,N)},e.useId=function(){return W.current.useId()},e.useImperativeHandle=function(D,N,Y){return W.current.useImperativeHandle(D,N,Y)},e.useInsertionEffect=function(D,N){return W.current.useInsertionEffect(D,N)},e.useLayoutEffect=function(D,N){return W.current.useLayoutEffect(D,N)},e.useMemo=function(D,N){return W.current.useMemo(D,N)},e.useReducer=function(D,N,Y){return W.current.useReducer(D,N,Y)},e.useRef=function(D){return W.current.useRef(D)},e.useState=function(D){return W.current.useState(D)},e.useSyncExternalStore=function(D,N,Y){return W.current.useSyncExternalStore(D,N,Y)},e.useTransition=function(){return W.current.useTransition()},e.version="18.2.0"}}),Y$=Vl({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=Symbol.iterator,$="@@iterator";function C(m){if(m===null||typeof m!="object")return null;var M=y&&m[y]||m[$];return typeof M=="function"?M:null}var w={current:null},E={transition:null},P={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},k={current:null},K={},v=null;function V(m){v=m}K.setExtraStackFrame=function(m){v=m},K.getCurrentStack=null,K.getStackAddendum=function(){var m="";v&&(m+=v);var M=K.getCurrentStack;return M&&(m+=M()||""),m};var F=!1,A=!1,I=!1,R=!1,L=!1,j={ReactCurrentDispatcher:w,ReactCurrentBatchConfig:E,ReactCurrentOwner:k};j.ReactDebugCurrentFrame=K,j.ReactCurrentActQueue=P;function O(m){{for(var M=arguments.length,_=new Array(M>1?M-1:0),U=1;U<M;U++)_[U-1]=arguments[U];W("warn",m,_)}}function T(m){{for(var M=arguments.length,_=new Array(M>1?M-1:0),U=1;U<M;U++)_[U-1]=arguments[U];W("error",m,_)}}function W(m,M,_){{var U=j.ReactDebugCurrentFrame,X=U.getStackAddendum();X!==""&&(M+="%s",_=_.concat([X]));var ie=_.map(function(te){return String(te)});ie.unshift("Warning: "+M),Function.prototype.apply.call(console[m],console,ie)}}var q={};function H(m,M){{var _=m.constructor,U=_&&(_.displayName||_.name)||"ReactClass",X=U+"."+M;if(q[X])return;T("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",M,U),q[X]=!0}}var D={isMounted:function(m){return!1},enqueueForceUpdate:function(m,M,_){H(m,"forceUpdate")},enqueueReplaceState:function(m,M,_,U){H(m,"replaceState")},enqueueSetState:function(m,M,_,U){H(m,"setState")}},N=Object.assign,Y={};Object.freeze(Y);function Q(m,M,_){this.props=m,this.context=M,this.refs=Y,this.updater=_||D}Q.prototype.isReactComponent={},Q.prototype.setState=function(m,M){if(typeof m!="object"&&typeof m!="function"&&m!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,m,M,"setState")},Q.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};{var ee={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},oe=function(m,M){Object.defineProperty(Q.prototype,m,{get:function(){O("%s(...) is deprecated in plain JavaScript React classes. %s",M[0],M[1])}})};for(var z in ee)ee.hasOwnProperty(z)&&oe(z,ee[z])}function Z(){}Z.prototype=Q.prototype;function ne(m,M,_){this.props=m,this.context=M,this.refs=Y,this.updater=_||D}var se=ne.prototype=new Z;se.constructor=ne,N(se,Q.prototype),se.isPureReactComponent=!0;function le(){var m={current:null};return Object.seal(m),m}var Le=Array.isArray;function Ge(m){return Le(m)}function Ct(m){{var M=typeof Symbol=="function"&&Symbol.toStringTag,_=M&&m[Symbol.toStringTag]||m.constructor.name||"Object";return _}}function Kn(m){try{return Xt(m),!1}catch{return!0}}function Xt(m){return""+m}function Jt(m){if(Kn(m))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ct(m)),Xt(m)}function Dr(m,M,_){var U=m.displayName;if(U)return U;var X=M.displayName||M.name||"";return X!==""?_+"("+X+")":_}function ce(m){return m.displayName||"Context"}function pe(m){if(m==null)return null;if(typeof m.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case i:return"Fragment";case o:return"Portal";case s:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case c:var M=m;return ce(M)+".Consumer";case l:var _=m;return ce(_._context)+".Provider";case u:return Dr(m,m.render,"ForwardRef");case h:var U=m.displayName||null;return U!==null?U:pe(m.type)||"Memo";case b:{var X=m,ie=X._payload,te=X._init;try{return pe(te(ie))}catch{return null}}}return null}var we=Object.prototype.hasOwnProperty,Io={key:!0,ref:!0,__self:!0,__source:!0},Er,Pr,hn;hn={};function Dt(m){if(we.call(m,"ref")){var M=Object.getOwnPropertyDescriptor(m,"ref").get;if(M&&M.isReactWarning)return!1}return m.ref!==void 0}function Sr(m){if(we.call(m,"key")){var M=Object.getOwnPropertyDescriptor(m,"key").get;if(M&&M.isReactWarning)return!1}return m.key!==void 0}function Lo(m,M){var _=function(){Er||(Er=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};_.isReactWarning=!0,Object.defineProperty(m,"key",{get:_,configurable:!0})}function Aa(m,M){var _=function(){Pr||(Pr=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};_.isReactWarning=!0,Object.defineProperty(m,"ref",{get:_,configurable:!0})}function Ma(m){if(typeof m.ref=="string"&&k.current&&m.__self&&k.current.stateNode!==m.__self){var M=pe(k.current.type);hn[M]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M,m.ref),hn[M]=!0)}}var je=function(m,M,_,U,X,ie,te){var ae={$$typeof:r,type:m,key:M,ref:_,props:te,_owner:ie};return ae._store={},Object.defineProperty(ae._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ae,"_self",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.defineProperty(ae,"_source",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.freeze&&(Object.freeze(ae.props),Object.freeze(ae)),ae};function Tr(m,M,_){var U,X={},ie=null,te=null,ae=null,he=null;if(M!=null){Dt(M)&&(te=M.ref,Ma(M)),Sr(M)&&(Jt(M.key),ie=""+M.key),ae=M.__self===void 0?null:M.__self,he=M.__source===void 0?null:M.__source;for(U in M)we.call(M,U)&&!Io.hasOwnProperty(U)&&(X[U]=M[U])}var ye=arguments.length-2;if(ye===1)X.children=_;else if(ye>1){for(var De=Array(ye),Ee=0;Ee<ye;Ee++)De[Ee]=arguments[Ee+2];Object.freeze&&Object.freeze(De),X.children=De}if(m&&m.defaultProps){var Pe=m.defaultProps;for(U in Pe)X[U]===void 0&&(X[U]=Pe[U])}if(ie||te){var Re=typeof m=="function"?m.displayName||m.name||"Unknown":m;ie&&Lo(X,Re),te&&Aa(X,Re)}return je(m,ie,te,ae,he,k.current,X)}function F1(m,M){var _=je(m.type,M,m.ref,m._self,m._source,m._owner,m.props);return _}function B1(m,M,_){if(m==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+m+".");var U,X=N({},m.props),ie=m.key,te=m.ref,ae=m._self,he=m._source,ye=m._owner;if(M!=null){Dt(M)&&(te=M.ref,ye=k.current),Sr(M)&&(Jt(M.key),ie=""+M.key);var De;m.type&&m.type.defaultProps&&(De=m.type.defaultProps);for(U in M)we.call(M,U)&&!Io.hasOwnProperty(U)&&(M[U]===void 0&&De!==void 0?X[U]=De[U]:X[U]=M[U])}var Ee=arguments.length-2;if(Ee===1)X.children=_;else if(Ee>1){for(var Pe=Array(Ee),Re=0;Re<Ee;Re++)Pe[Re]=arguments[Re+2];X.children=Pe}return je(m.type,ie,te,ae,he,ye,X)}function jn(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}var hc=".",I1=":";function L1(m){var M=/[=:]/g,_={"=":"=0",":":"=2"},U=m.replace(M,function(X){return _[X]});return"$"+U}var bc=!1,V1=/\/+/g;function mc(m){return m.replace(V1,"$&/")}function ka(m,M){return typeof m=="object"&&m!==null&&m.key!=null?(Jt(m.key),L1(""+m.key)):M.toString(36)}function Vo(m,M,_,U,X){var ie=typeof m;(ie==="undefined"||ie==="boolean")&&(m=null);var te=!1;if(m===null)te=!0;else switch(ie){case"string":case"number":te=!0;break;case"object":switch(m.$$typeof){case r:case o:te=!0}}if(te){var ae=m,he=X(ae),ye=U===""?hc+ka(ae,0):U;if(Ge(he)){var De="";ye!=null&&(De=mc(ye)+"/"),Vo(he,M,De,"",function(M$){return M$})}else he!=null&&(jn(he)&&(he.key&&(!ae||ae.key!==he.key)&&Jt(he.key),he=F1(he,_+(he.key&&(!ae||ae.key!==he.key)?mc(""+he.key)+"/":"")+ye)),M.push(he));return 1}var Ee,Pe,Re=0,_e=U===""?hc:U+I1;if(Ge(m))for(var Ho=0;Ho<m.length;Ho++)Ee=m[Ho],Pe=_e+ka(Ee,Ho),Re+=Vo(Ee,M,_,Pe,X);else{var Ka=C(m);if(typeof Ka=="function"){var Kc=m;Ka===Kc.entries&&(bc||O("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bc=!0);for(var T$=Ka.call(Kc),jc,A$=0;!(jc=T$.next()).done;)Ee=jc.value,Pe=_e+ka(Ee,A$++),Re+=Vo(Ee,M,_,Pe,X)}else if(ie==="object"){var _c=String(m);throw new Error("Objects are not valid as a React child (found: "+(_c==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":_c)+"). If you meant to render a collection of children, use an array instead.")}}return Re}function Oo(m,M,_){if(m==null)return m;var U=[],X=0;return Vo(m,U,"","",function(ie){return M.call(_,ie,X++)}),U}function O1(m){var M=0;return Oo(m,function(){M++}),M}function N1(m,M,_){Oo(m,function(){M.apply(this,arguments)},_)}function K1(m){return Oo(m,function(M){return M})||[]}function j1(m){if(!jn(m))throw new Error("React.Children.only expected to receive a single React element child.");return m}function _1(m){var M={$$typeof:c,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};M.Provider={$$typeof:l,_context:M};var _=!1,U=!1,X=!1;{var ie={$$typeof:c,_context:M};Object.defineProperties(ie,{Provider:{get:function(){return U||(U=!0,T("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),M.Provider},set:function(te){M.Provider=te}},_currentValue:{get:function(){return M._currentValue},set:function(te){M._currentValue=te}},_currentValue2:{get:function(){return M._currentValue2},set:function(te){M._currentValue2=te}},_threadCount:{get:function(){return M._threadCount},set:function(te){M._threadCount=te}},Consumer:{get:function(){return _||(_=!0,T("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),M.Consumer}},displayName:{get:function(){return M.displayName},set:function(te){X||(O("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",te),X=!0)}}}),M.Consumer=ie}return M._currentRenderer=null,M._currentRenderer2=null,M}var Ar=-1,Ra=0,gc=1,z1=2;function U1(m){if(m._status===Ar){var M=m._result,_=M();if(_.then(function(ie){if(m._status===Ra||m._status===Ar){var te=m;te._status=gc,te._result=ie}},function(ie){if(m._status===Ra||m._status===Ar){var te=m;te._status=z1,te._result=ie}}),m._status===Ar){var U=m;U._status=Ra,U._result=_}}if(m._status===gc){var X=m._result;return X===void 0&&T(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),u=require("react"),_=require("styled-components"),Wt=require("react-dom");function T$(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Sn=T$(u);var A$=()=>S.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[S.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),S.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function M$(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=Sn.createContext(void 0);o.displayName=r;function i(){var a;const s=Sn.useContext(o);if(!s&&t){const l=new Error(n);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function k$(e){return{UNSAFE_getDOMNode(){return e.current}}}function As(e){const t=u.useRef(null);return u.useImperativeHandle(e,()=>t.current),t}var R$=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function Pp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Pp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function sr(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=Pp(n))&&(o&&(o+=" "),o+=r);return o}var jc={};function F$(e,t,...n){var r;const i=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!jc[i]&&(jc[i]=!0,((r=process==null?void 0:process.env)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}function Sp(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}process.env.NODE_ENV;process.env.NODE_ENV;function B$(e){return typeof e=="function"}var Et=e=>e?"true":void 0;function I$(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function L$(e,t){if(e!=null){if(B$(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function V$(...e){return t=>{e.forEach(n=>L$(n,t))}}var O$=Object.create,Tp=Object.defineProperty,N$=Object.getOwnPropertyDescriptor,Ap=Object.getOwnPropertyNames,K$=Object.getPrototypeOf,j$=Object.prototype.hasOwnProperty,Il=(e,t)=>function(){return t||(0,e[Ap(e)[0]])((t={exports:{}}).exports,t),t.exports},_$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ap(t))!j$.call(e,o)&&o!==n&&Tp(e,o,{get:()=>t[o],enumerable:!(r=N$(t,o))||r.enumerable});return e},z$=(e,t,n)=>(n=e!=null?O$(K$(e)):{},_$(t||!e||!e.__esModule?Tp(n,"default",{value:e,enumerable:!0}):n,e)),U$=Il({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function h(D){return D===null||typeof D!="object"?null:(D=p&&D[p]||D["@@iterator"],typeof D=="function"?D:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function $(D,O,W){this.props=D,this.context=O,this.refs=y,this.updater=W||b}$.prototype.isReactComponent={},$.prototype.setState=function(D,O){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,O,"setState")},$.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=$.prototype;function w(D,O,W){this.props=D,this.context=O,this.refs=y,this.updater=W||b}var E=w.prototype=new C;E.constructor=w,g(E,$.prototype),E.isPureReactComponent=!0;var P=Array.isArray,k=Object.prototype.hasOwnProperty,N={current:null},v={key:!0,ref:!0,__self:!0,__source:!0};function L(D,O,W){var J,Q={},re=null,z=null;if(O!=null)for(J in O.ref!==void 0&&(z=O.ref),O.key!==void 0&&(re=""+O.key),O)k.call(O,J)&&!v.hasOwnProperty(J)&&(Q[J]=O[J]);var q=arguments.length-2;if(q===1)Q.children=W;else if(1<q){for(var te=Array(q),ae=0;ae<q;ae++)te[ae]=arguments[ae+2];Q.children=te}if(D&&D.defaultProps)for(J in q=D.defaultProps,q)Q[J]===void 0&&(Q[J]=q[J]);return{$$typeof:t,type:D,key:re,ref:z,props:Q,_owner:N.current}}function F(D,O){return{$$typeof:t,type:D.type,key:O,ref:D.ref,props:D.props,_owner:D._owner}}function A(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function B(D){var O={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(W){return O[W]})}var R=/\/+/g;function I(D,O){return typeof D=="object"&&D!==null&&D.key!=null?B(""+D.key):O.toString(36)}function K(D,O,W,J,Q){var re=typeof D;(re==="undefined"||re==="boolean")&&(D=null);var z=!1;if(D===null)z=!0;else switch(re){case"string":case"number":z=!0;break;case"object":switch(D.$$typeof){case t:case n:z=!0}}if(z)return z=D,Q=Q(z),D=J===""?"."+I(z,0):J,P(Q)?(W="",D!=null&&(W=D.replace(R,"$&/")+"/"),K(Q,O,W,"",function(ae){return ae})):Q!=null&&(A(Q)&&(Q=F(Q,W+(!Q.key||z&&z.key===Q.key?"":(""+Q.key).replace(R,"$&/")+"/")+D)),O.push(Q)),1;if(z=0,J=J===""?".":J+":",P(D))for(var q=0;q<D.length;q++){re=D[q];var te=J+I(re,q);z+=K(re,O,W,te,Q)}else if(te=h(D),typeof te=="function")for(D=te.call(D),q=0;!(re=D.next()).done;)re=re.value,te=J+I(re,q++),z+=K(re,O,W,te,Q);else if(re==="object")throw O=String(D),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.");return z}function V(D,O,W){if(D==null)return D;var J=[],Q=0;return K(D,J,"","",function(re){return O.call(W,re,Q++)}),J}function T(D){if(D._status===-1){var O=D._result;O=O(),O.then(function(W){(D._status===0||D._status===-1)&&(D._status=1,D._result=W)},function(W){(D._status===0||D._status===-1)&&(D._status=2,D._result=W)}),D._status===-1&&(D._status=0,D._result=O)}if(D._status===1)return D._result.default;throw D._result}var G={current:null},Y={transition:null},H={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:Y,ReactCurrentOwner:N};e.Children={map:V,forEach:function(D,O,W){V(D,function(){O.apply(this,arguments)},W)},count:function(D){var O=0;return V(D,function(){O++}),O},toArray:function(D){return V(D,function(O){return O})||[]},only:function(D){if(!A(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},e.Component=$,e.Fragment=r,e.Profiler=i,e.PureComponent=w,e.StrictMode=o,e.Suspense=d,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,e.cloneElement=function(D,O,W){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var J=g({},D.props),Q=D.key,re=D.ref,z=D._owner;if(O!=null){if(O.ref!==void 0&&(re=O.ref,z=N.current),O.key!==void 0&&(Q=""+O.key),D.type&&D.type.defaultProps)var q=D.type.defaultProps;for(te in O)k.call(O,te)&&!v.hasOwnProperty(te)&&(J[te]=O[te]===void 0&&q!==void 0?q[te]:O[te])}var te=arguments.length-2;if(te===1)J.children=W;else if(1<te){q=Array(te);for(var ae=0;ae<te;ae++)q[ae]=arguments[ae+2];J.children=q}return{$$typeof:t,type:D.type,key:Q,ref:re,props:J,_owner:z}},e.createContext=function(D){return D={$$typeof:s,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:a,_context:D},D.Consumer=D},e.createElement=L,e.createFactory=function(D){var O=L.bind(null,D);return O.type=D,O},e.createRef=function(){return{current:null}},e.forwardRef=function(D){return{$$typeof:l,render:D}},e.isValidElement=A,e.lazy=function(D){return{$$typeof:f,_payload:{_status:-1,_result:D},_init:T}},e.memo=function(D,O){return{$$typeof:c,type:D,compare:O===void 0?null:O}},e.startTransition=function(D){var O=Y.transition;Y.transition={};try{D()}finally{Y.transition=O}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(D,O){return G.current.useCallback(D,O)},e.useContext=function(D){return G.current.useContext(D)},e.useDebugValue=function(){},e.useDeferredValue=function(D){return G.current.useDeferredValue(D)},e.useEffect=function(D,O){return G.current.useEffect(D,O)},e.useId=function(){return G.current.useId()},e.useImperativeHandle=function(D,O,W){return G.current.useImperativeHandle(D,O,W)},e.useInsertionEffect=function(D,O){return G.current.useInsertionEffect(D,O)},e.useLayoutEffect=function(D,O){return G.current.useLayoutEffect(D,O)},e.useMemo=function(D,O){return G.current.useMemo(D,O)},e.useReducer=function(D,O,W){return G.current.useReducer(D,O,W)},e.useRef=function(D){return G.current.useRef(D)},e.useState=function(D){return G.current.useState(D)},e.useSyncExternalStore=function(D,O,W){return G.current.useSyncExternalStore(D,O,W)},e.useTransition=function(){return G.current.useTransition()},e.version="18.2.0"}}),H$=Il({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=Symbol.iterator,$="@@iterator";function C(m){if(m===null||typeof m!="object")return null;var M=y&&m[y]||m[$];return typeof M=="function"?M:null}var w={current:null},E={transition:null},P={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},k={current:null},N={},v=null;function L(m){v=m}N.setExtraStackFrame=function(m){v=m},N.getCurrentStack=null,N.getStackAddendum=function(){var m="";v&&(m+=v);var M=N.getCurrentStack;return M&&(m+=M()||""),m};var F=!1,A=!1,B=!1,R=!1,I=!1,K={ReactCurrentDispatcher:w,ReactCurrentBatchConfig:E,ReactCurrentOwner:k};K.ReactDebugCurrentFrame=N,K.ReactCurrentActQueue=P;function V(m){{for(var M=arguments.length,j=new Array(M>1?M-1:0),U=1;U<M;U++)j[U-1]=arguments[U];G("warn",m,j)}}function T(m){{for(var M=arguments.length,j=new Array(M>1?M-1:0),U=1;U<M;U++)j[U-1]=arguments[U];G("error",m,j)}}function G(m,M,j){{var U=K.ReactDebugCurrentFrame,Z=U.getStackAddendum();Z!==""&&(M+="%s",j=j.concat([Z]));var oe=j.map(function(ee){return String(ee)});oe.unshift("Warning: "+M),Function.prototype.apply.call(console[m],console,oe)}}var Y={};function H(m,M){{var j=m.constructor,U=j&&(j.displayName||j.name)||"ReactClass",Z=U+"."+M;if(Y[Z])return;T("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",M,U),Y[Z]=!0}}var D={isMounted:function(m){return!1},enqueueForceUpdate:function(m,M,j){H(m,"forceUpdate")},enqueueReplaceState:function(m,M,j,U){H(m,"replaceState")},enqueueSetState:function(m,M,j,U){H(m,"setState")}},O=Object.assign,W={};Object.freeze(W);function J(m,M,j){this.props=m,this.context=M,this.refs=W,this.updater=j||D}J.prototype.isReactComponent={},J.prototype.setState=function(m,M){if(typeof m!="object"&&typeof m!="function"&&m!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,m,M,"setState")},J.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};{var Q={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},re=function(m,M){Object.defineProperty(J.prototype,m,{get:function(){V("%s(...) is deprecated in plain JavaScript React classes. %s",M[0],M[1])}})};for(var z in Q)Q.hasOwnProperty(z)&&re(z,Q[z])}function q(){}q.prototype=J.prototype;function te(m,M,j){this.props=m,this.context=M,this.refs=W,this.updater=j||D}var ae=te.prototype=new q;ae.constructor=te,O(ae,J.prototype),ae.isPureReactComponent=!0;function se(){var m={current:null};return Object.seal(m),m}var Be=Array.isArray;function Ue(m){return Be(m)}function xt(m){{var M=typeof Symbol=="function"&&Symbol.toStringTag,j=M&&m[Symbol.toStringTag]||m.constructor.name||"Object";return j}}function Kn(m){try{return Zt(m),!1}catch{return!0}}function Zt(m){return""+m}function Xt(m){if(Kn(m))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(m)),Zt(m)}function Dr(m,M,j){var U=m.displayName;if(U)return U;var Z=M.displayName||M.name||"";return Z!==""?j+"("+Z+")":j}function ue(m){return m.displayName||"Context"}function fe(m){if(m==null)return null;if(typeof m.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case i:return"Fragment";case o:return"Portal";case s:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case d:var M=m;return ue(M)+".Consumer";case l:var j=m;return ue(j._context)+".Provider";case c:return Dr(m,m.render,"ForwardRef");case h:var U=m.displayName||null;return U!==null?U:fe(m.type)||"Memo";case b:{var Z=m,oe=Z._payload,ee=Z._init;try{return fe(ee(oe))}catch{return null}}}return null}var $e=Object.prototype.hasOwnProperty,Fo={key:!0,ref:!0,__self:!0,__source:!0},Er,Pr,pn;pn={};function wt(m){if($e.call(m,"ref")){var M=Object.getOwnPropertyDescriptor(m,"ref").get;if(M&&M.isReactWarning)return!1}return m.ref!==void 0}function Sr(m){if($e.call(m,"key")){var M=Object.getOwnPropertyDescriptor(m,"key").get;if(M&&M.isReactWarning)return!1}return m.key!==void 0}function Bo(m,M){var j=function(){Er||(Er=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};j.isReactWarning=!0,Object.defineProperty(m,"key",{get:j,configurable:!0})}function Sa(m,M){var j=function(){Pr||(Pr=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};j.isReactWarning=!0,Object.defineProperty(m,"ref",{get:j,configurable:!0})}function Ta(m){if(typeof m.ref=="string"&&k.current&&m.__self&&k.current.stateNode!==m.__self){var M=fe(k.current.type);pn[M]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M,m.ref),pn[M]=!0)}}var Ne=function(m,M,j,U,Z,oe,ee){var ie={$$typeof:r,type:m,key:M,ref:j,props:ee,_owner:oe};return ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function Tr(m,M,j){var U,Z={},oe=null,ee=null,ie=null,pe=null;if(M!=null){wt(M)&&(ee=M.ref,Ta(M)),Sr(M)&&(Xt(M.key),oe=""+M.key),ie=M.__self===void 0?null:M.__self,pe=M.__source===void 0?null:M.__source;for(U in M)$e.call(M,U)&&!Fo.hasOwnProperty(U)&&(Z[U]=M[U])}var ge=arguments.length-2;if(ge===1)Z.children=j;else if(ge>1){for(var we=Array(ge),Ce=0;Ce<ge;Ce++)we[Ce]=arguments[Ce+2];Object.freeze&&Object.freeze(we),Z.children=we}if(m&&m.defaultProps){var De=m.defaultProps;for(U in De)Z[U]===void 0&&(Z[U]=De[U])}if(oe||ee){var Me=typeof m=="function"?m.displayName||m.name||"Unknown":m;oe&&Bo(Z,Me),ee&&Sa(Z,Me)}return Ne(m,oe,ee,ie,pe,k.current,Z)}function M1(m,M){var j=Ne(m.type,M,m.ref,m._self,m._source,m._owner,m.props);return j}function k1(m,M,j){if(m==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+m+".");var U,Z=O({},m.props),oe=m.key,ee=m.ref,ie=m._self,pe=m._source,ge=m._owner;if(M!=null){wt(M)&&(ee=M.ref,ge=k.current),Sr(M)&&(Xt(M.key),oe=""+M.key);var we;m.type&&m.type.defaultProps&&(we=m.type.defaultProps);for(U in M)$e.call(M,U)&&!Fo.hasOwnProperty(U)&&(M[U]===void 0&&we!==void 0?Z[U]=we[U]:Z[U]=M[U])}var Ce=arguments.length-2;if(Ce===1)Z.children=j;else if(Ce>1){for(var De=Array(Ce),Me=0;Me<Ce;Me++)De[Me]=arguments[Me+2];Z.children=De}return Ne(m.type,oe,ee,ie,pe,ge,Z)}function jn(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}var fc=".",R1=":";function F1(m){var M=/[=:]/g,j={"=":"=0",":":"=2"},U=m.replace(M,function(Z){return j[Z]});return"$"+U}var pc=!1,B1=/\/+/g;function hc(m){return m.replace(B1,"$&/")}function Aa(m,M){return typeof m=="object"&&m!==null&&m.key!=null?(Xt(m.key),F1(""+m.key)):M.toString(36)}function Io(m,M,j,U,Z){var oe=typeof m;(oe==="undefined"||oe==="boolean")&&(m=null);var ee=!1;if(m===null)ee=!0;else switch(oe){case"string":case"number":ee=!0;break;case"object":switch(m.$$typeof){case r:case o:ee=!0}}if(ee){var ie=m,pe=Z(ie),ge=U===""?fc+Aa(ie,0):U;if(Ue(pe)){var we="";ge!=null&&(we=hc(ge)+"/"),Io(pe,M,we,"",function(S$){return S$})}else pe!=null&&(jn(pe)&&(pe.key&&(!ie||ie.key!==pe.key)&&Xt(pe.key),pe=M1(pe,j+(pe.key&&(!ie||ie.key!==pe.key)?hc(""+pe.key)+"/":"")+ge)),M.push(pe));return 1}var Ce,De,Me=0,Ke=U===""?fc:U+R1;if(Ue(m))for(var zo=0;zo<m.length;zo++)Ce=m[zo],De=Ke+Aa(Ce,zo),Me+=Io(Ce,M,j,De,Z);else{var Oa=C(m);if(typeof Oa=="function"){var Oc=m;Oa===Oc.entries&&(pc||V("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pc=!0);for(var E$=Oa.call(Oc),Nc,P$=0;!(Nc=E$.next()).done;)Ce=Nc.value,De=Ke+Aa(Ce,P$++),Me+=Io(Ce,M,j,De,Z)}else if(oe==="object"){var Kc=String(m);throw new Error("Objects are not valid as a React child (found: "+(Kc==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":Kc)+"). If you meant to render a collection of children, use an array instead.")}}return Me}function Lo(m,M,j){if(m==null)return m;var U=[],Z=0;return Io(m,U,"","",function(oe){return M.call(j,oe,Z++)}),U}function I1(m){var M=0;return Lo(m,function(){M++}),M}function L1(m,M,j){Lo(m,function(){M.apply(this,arguments)},j)}function V1(m){return Lo(m,function(M){return M})||[]}function O1(m){if(!jn(m))throw new Error("React.Children.only expected to receive a single React element child.");return m}function N1(m){var M={$$typeof:d,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};M.Provider={$$typeof:l,_context:M};var j=!1,U=!1,Z=!1;{var oe={$$typeof:d,_context:M};Object.defineProperties(oe,{Provider:{get:function(){return U||(U=!0,T("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),M.Provider},set:function(ee){M.Provider=ee}},_currentValue:{get:function(){return M._currentValue},set:function(ee){M._currentValue=ee}},_currentValue2:{get:function(){return M._currentValue2},set:function(ee){M._currentValue2=ee}},_threadCount:{get:function(){return M._threadCount},set:function(ee){M._threadCount=ee}},Consumer:{get:function(){return j||(j=!0,T("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),M.Consumer}},displayName:{get:function(){return M.displayName},set:function(ee){Z||(V("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ee),Z=!0)}}}),M.Consumer=oe}return M._currentRenderer=null,M._currentRenderer2=null,M}var Ar=-1,Ma=0,bc=1,K1=2;function j1(m){if(m._status===Ar){var M=m._result,j=M();if(j.then(function(oe){if(m._status===Ma||m._status===Ar){var ee=m;ee._status=bc,ee._result=oe}},function(oe){if(m._status===Ma||m._status===Ar){var ee=m;ee._status=K1,ee._result=oe}}),m._status===Ar){var U=m;U._status=Ma,U._result=j}}if(m._status===bc){var Z=m._result;return Z===void 0&&T(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,X),"default"in X||T(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,Z),"default"in Z||T(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,X),X.default}else throw m._result}function H1(m){var M={_status:Ar,_result:m},_={$$typeof:b,_payload:M,_init:U1};{var U,X;Object.defineProperties(_,{defaultProps:{configurable:!0,get:function(){return U},set:function(ie){T("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),U=ie,Object.defineProperty(_,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return X},set:function(ie){T("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),X=ie,Object.defineProperty(_,"propTypes",{enumerable:!0})}}})}return _}function G1(m){m!=null&&m.$$typeof===h?T("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof m!="function"?T("forwardRef requires a render function but was given %s.",m===null?"null":typeof m):m.length!==0&&m.length!==2&&T("forwardRef render functions accept exactly two parameters: props and ref. %s",m.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),m!=null&&(m.defaultProps!=null||m.propTypes!=null)&&T("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var M={$$typeof:u,render:m};{var _;Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return _},set:function(U){_=U,!m.name&&!m.displayName&&(m.displayName=U)}})}return M}var vc;vc=Symbol.for("react.module.reference");function yc(m){return!!(typeof m=="string"||typeof m=="function"||m===i||m===s||L||m===a||m===f||m===p||R||m===g||F||A||I||typeof m=="object"&&m!==null&&(m.$$typeof===b||m.$$typeof===h||m.$$typeof===l||m.$$typeof===c||m.$$typeof===u||m.$$typeof===vc||m.getModuleId!==void 0))}function W1(m,M){yc(m)||T("memo: The first argument must be a component. Instead received: %s",m===null?"null":typeof m);var _={$$typeof:h,type:m,compare:M===void 0?null:M};{var U;Object.defineProperty(_,"displayName",{enumerable:!1,configurable:!0,get:function(){return U},set:function(X){U=X,!m.name&&!m.displayName&&(m.displayName=X)}})}return _}function Xe(){var m=w.current;return m===null&&T(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,Z),Z.default}else throw m._result}function _1(m){var M={_status:Ar,_result:m},j={$$typeof:b,_payload:M,_init:j1};{var U,Z;Object.defineProperties(j,{defaultProps:{configurable:!0,get:function(){return U},set:function(oe){T("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),U=oe,Object.defineProperty(j,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Z},set:function(oe){T("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Z=oe,Object.defineProperty(j,"propTypes",{enumerable:!0})}}})}return j}function z1(m){m!=null&&m.$$typeof===h?T("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof m!="function"?T("forwardRef requires a render function but was given %s.",m===null?"null":typeof m):m.length!==0&&m.length!==2&&T("forwardRef render functions accept exactly two parameters: props and ref. %s",m.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),m!=null&&(m.defaultProps!=null||m.propTypes!=null)&&T("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var M={$$typeof:c,render:m};{var j;Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return j},set:function(U){j=U,!m.name&&!m.displayName&&(m.displayName=U)}})}return M}var mc;mc=Symbol.for("react.module.reference");function gc(m){return!!(typeof m=="string"||typeof m=="function"||m===i||m===s||I||m===a||m===f||m===p||R||m===g||F||A||B||typeof m=="object"&&m!==null&&(m.$$typeof===b||m.$$typeof===h||m.$$typeof===l||m.$$typeof===d||m.$$typeof===c||m.$$typeof===mc||m.getModuleId!==void 0))}function U1(m,M){gc(m)||T("memo: The first argument must be a component. Instead received: %s",m===null?"null":typeof m);var j={$$typeof:h,type:m,compare:M===void 0?null:M};{var U;Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:function(){return U},set:function(Z){U=Z,!m.name&&!m.displayName&&(m.displayName=Z)}})}return j}function qe(){var m=w.current;return m===null&&T(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}function Y1(m){var M=Xe();if(m._context!==void 0){var _=m._context;_.Consumer===m?T("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):_.Provider===m&&T("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return M.useContext(m)}function q1(m){var M=Xe();return M.useState(m)}function Z1(m,M,_){var U=Xe();return U.useReducer(m,M,_)}function X1(m){var M=Xe();return M.useRef(m)}function J1(m,M){var _=Xe();return _.useEffect(m,M)}function Q1(m,M){var _=Xe();return _.useInsertionEffect(m,M)}function e$(m,M){var _=Xe();return _.useLayoutEffect(m,M)}function t$(m,M){var _=Xe();return _.useCallback(m,M)}function n$(m,M){var _=Xe();return _.useMemo(m,M)}function r$(m,M,_){var U=Xe();return U.useImperativeHandle(m,M,_)}function o$(m,M){{var _=Xe();return _.useDebugValue(m,M)}}function i$(){var m=Xe();return m.useTransition()}function a$(m){var M=Xe();return M.useDeferredValue(m)}function s$(){var m=Xe();return m.useId()}function l$(m,M,_){var U=Xe();return U.useSyncExternalStore(m,M,_)}var Mr=0,$c,xc,wc,Cc,Dc,Ec,Pc;function Sc(){}Sc.__reactDisabledLog=!0;function u$(){{if(Mr===0){$c=console.log,xc=console.info,wc=console.warn,Cc=console.error,Dc=console.group,Ec=console.groupCollapsed,Pc=console.groupEnd;var m={configurable:!0,enumerable:!0,value:Sc,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Mr++}}function c$(){{if(Mr--,Mr===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},m,{value:$c}),info:N({},m,{value:xc}),warn:N({},m,{value:wc}),error:N({},m,{value:Cc}),group:N({},m,{value:Dc}),groupCollapsed:N({},m,{value:Ec}),groupEnd:N({},m,{value:Pc})})}Mr<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Fa=j.ReactCurrentDispatcher,Ba;function No(m,M,_){{if(Ba===void 0)try{throw Error()}catch(X){var U=X.stack.trim().match(/\n( *(at )?)/);Ba=U&&U[1]||""}return`
14
- `+Ba+m}}var Ia=!1,Ko;{var d$=typeof WeakMap=="function"?WeakMap:Map;Ko=new d$}function Tc(m,M){if(!m||Ia)return"";{var _=Ko.get(m);if(_!==void 0)return _}var U;Ia=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=Fa.current,Fa.current=null,u$();try{if(M){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(_e){U=_e}Reflect.construct(m,[],te)}else{try{te.call()}catch(_e){U=_e}m.call(te.prototype)}}else{try{throw Error()}catch(_e){U=_e}m()}}catch(_e){if(_e&&U&&typeof _e.stack=="string"){for(var ae=_e.stack.split(`
15
- `),he=U.stack.split(`
16
- `),ye=ae.length-1,De=he.length-1;ye>=1&&De>=0&&ae[ye]!==he[De];)De--;for(;ye>=1&&De>=0;ye--,De--)if(ae[ye]!==he[De]){if(ye!==1||De!==1)do if(ye--,De--,De<0||ae[ye]!==he[De]){var Ee=`
17
- `+ae[ye].replace(" at new "," at ");return m.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",m.displayName)),typeof m=="function"&&Ko.set(m,Ee),Ee}while(ye>=1&&De>=0);break}}}finally{Ia=!1,Fa.current=ie,c$(),Error.prepareStackTrace=X}var Pe=m?m.displayName||m.name:"",Re=Pe?No(Pe):"";return typeof m=="function"&&Ko.set(m,Re),Re}function f$(m,M,_){return Tc(m,!1)}function p$(m){var M=m.prototype;return!!(M&&M.isReactComponent)}function jo(m,M,_){if(m==null)return"";if(typeof m=="function")return Tc(m,p$(m));if(typeof m=="string")return No(m);switch(m){case f:return No("Suspense");case p:return No("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case u:return f$(m.render);case h:return jo(m.type,M,_);case b:{var U=m,X=U._payload,ie=U._init;try{return jo(ie(X),M,_)}catch{}}}return""}var Ac={},Mc=j.ReactDebugCurrentFrame;function _o(m){if(m){var M=m._owner,_=jo(m.type,m._source,M?M.type:null);Mc.setExtraStackFrame(_)}else Mc.setExtraStackFrame(null)}function h$(m,M,_,U,X){{var ie=Function.call.bind(we);for(var te in m)if(ie(m,te)){var ae=void 0;try{if(typeof m[te]!="function"){var he=Error((U||"React class")+": "+_+" type `"+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw he.name="Invariant Violation",he}ae=m[te](M,te,U,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ye){ae=ye}ae&&!(ae instanceof Error)&&(_o(X),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",U||"React class",_,te,typeof ae),_o(null)),ae instanceof Error&&!(ae.message in Ac)&&(Ac[ae.message]=!0,_o(X),T("Failed %s type: %s",_,ae.message),_o(null))}}}function _n(m){if(m){var M=m._owner,_=jo(m.type,m._source,M?M.type:null);V(_)}else V(null)}var La;La=!1;function kc(){if(k.current){var m=pe(k.current.type);if(m)return`
13
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}function H1(m){var M=qe();if(m._context!==void 0){var j=m._context;j.Consumer===m?T("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):j.Provider===m&&T("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return M.useContext(m)}function G1(m){var M=qe();return M.useState(m)}function W1(m,M,j){var U=qe();return U.useReducer(m,M,j)}function Y1(m){var M=qe();return M.useRef(m)}function q1(m,M){var j=qe();return j.useEffect(m,M)}function Z1(m,M){var j=qe();return j.useInsertionEffect(m,M)}function X1(m,M){var j=qe();return j.useLayoutEffect(m,M)}function J1(m,M){var j=qe();return j.useCallback(m,M)}function Q1(m,M){var j=qe();return j.useMemo(m,M)}function e$(m,M,j){var U=qe();return U.useImperativeHandle(m,M,j)}function t$(m,M){{var j=qe();return j.useDebugValue(m,M)}}function n$(){var m=qe();return m.useTransition()}function r$(m){var M=qe();return M.useDeferredValue(m)}function o$(){var m=qe();return m.useId()}function i$(m,M,j){var U=qe();return U.useSyncExternalStore(m,M,j)}var Mr=0,vc,yc,$c,xc,wc,Cc,Dc;function Ec(){}Ec.__reactDisabledLog=!0;function a$(){{if(Mr===0){vc=console.log,yc=console.info,$c=console.warn,xc=console.error,wc=console.group,Cc=console.groupCollapsed,Dc=console.groupEnd;var m={configurable:!0,enumerable:!0,value:Ec,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Mr++}}function s$(){{if(Mr--,Mr===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},m,{value:vc}),info:O({},m,{value:yc}),warn:O({},m,{value:$c}),error:O({},m,{value:xc}),group:O({},m,{value:wc}),groupCollapsed:O({},m,{value:Cc}),groupEnd:O({},m,{value:Dc})})}Mr<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ka=K.ReactCurrentDispatcher,Ra;function Vo(m,M,j){{if(Ra===void 0)try{throw Error()}catch(Z){var U=Z.stack.trim().match(/\n( *(at )?)/);Ra=U&&U[1]||""}return`
14
+ `+Ra+m}}var Fa=!1,Oo;{var l$=typeof WeakMap=="function"?WeakMap:Map;Oo=new l$}function Pc(m,M){if(!m||Fa)return"";{var j=Oo.get(m);if(j!==void 0)return j}var U;Fa=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=ka.current,ka.current=null,a$();try{if(M){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(Ke){U=Ke}Reflect.construct(m,[],ee)}else{try{ee.call()}catch(Ke){U=Ke}m.call(ee.prototype)}}else{try{throw Error()}catch(Ke){U=Ke}m()}}catch(Ke){if(Ke&&U&&typeof Ke.stack=="string"){for(var ie=Ke.stack.split(`
15
+ `),pe=U.stack.split(`
16
+ `),ge=ie.length-1,we=pe.length-1;ge>=1&&we>=0&&ie[ge]!==pe[we];)we--;for(;ge>=1&&we>=0;ge--,we--)if(ie[ge]!==pe[we]){if(ge!==1||we!==1)do if(ge--,we--,we<0||ie[ge]!==pe[we]){var Ce=`
17
+ `+ie[ge].replace(" at new "," at ");return m.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",m.displayName)),typeof m=="function"&&Oo.set(m,Ce),Ce}while(ge>=1&&we>=0);break}}}finally{Fa=!1,ka.current=oe,s$(),Error.prepareStackTrace=Z}var De=m?m.displayName||m.name:"",Me=De?Vo(De):"";return typeof m=="function"&&Oo.set(m,Me),Me}function u$(m,M,j){return Pc(m,!1)}function c$(m){var M=m.prototype;return!!(M&&M.isReactComponent)}function No(m,M,j){if(m==null)return"";if(typeof m=="function")return Pc(m,c$(m));if(typeof m=="string")return Vo(m);switch(m){case f:return Vo("Suspense");case p:return Vo("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case c:return u$(m.render);case h:return No(m.type,M,j);case b:{var U=m,Z=U._payload,oe=U._init;try{return No(oe(Z),M,j)}catch{}}}return""}var Sc={},Tc=K.ReactDebugCurrentFrame;function Ko(m){if(m){var M=m._owner,j=No(m.type,m._source,M?M.type:null);Tc.setExtraStackFrame(j)}else Tc.setExtraStackFrame(null)}function d$(m,M,j,U,Z){{var oe=Function.call.bind($e);for(var ee in m)if(oe(m,ee)){var ie=void 0;try{if(typeof m[ee]!="function"){var pe=Error((U||"React class")+": "+j+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw pe.name="Invariant Violation",pe}ie=m[ee](M,ee,U,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){ie=ge}ie&&!(ie instanceof Error)&&(Ko(Z),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",U||"React class",j,ee,typeof ie),Ko(null)),ie instanceof Error&&!(ie.message in Sc)&&(Sc[ie.message]=!0,Ko(Z),T("Failed %s type: %s",j,ie.message),Ko(null))}}}function _n(m){if(m){var M=m._owner,j=No(m.type,m._source,M?M.type:null);L(j)}else L(null)}var Ba;Ba=!1;function Ac(){if(k.current){var m=fe(k.current.type);if(m)return`
18
18
 
19
- Check the render method of \``+m+"`."}return""}function b$(m){if(m!==void 0){var M=m.fileName.replace(/^.*[\\\/]/,""),_=m.lineNumber;return`
19
+ Check the render method of \``+m+"`."}return""}function f$(m){if(m!==void 0){var M=m.fileName.replace(/^.*[\\\/]/,""),j=m.lineNumber;return`
20
20
 
21
- Check your code at `+M+":"+_+"."}return""}function m$(m){return m!=null?b$(m.__source):""}var Rc={};function g$(m){var M=kc();if(!M){var _=typeof m=="string"?m:m.displayName||m.name;_&&(M=`
21
+ Check your code at `+M+":"+j+"."}return""}function p$(m){return m!=null?f$(m.__source):""}var Mc={};function h$(m){var M=Ac();if(!M){var j=typeof m=="string"?m:m.displayName||m.name;j&&(M=`
22
22
 
23
- Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(!m._store||m._store.validated||m.key!=null)){m._store.validated=!0;var _=g$(M);if(!Rc[_]){Rc[_]=!0;var U="";m&&m._owner&&m._owner!==k.current&&(U=" It was passed a child from "+pe(m._owner.type)+"."),_n(m),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,U),_n(null)}}}function Bc(m,M){if(typeof m=="object"){if(Ge(m))for(var _=0;_<m.length;_++){var U=m[_];jn(U)&&Fc(U,M)}else if(jn(m))m._store&&(m._store.validated=!0);else if(m){var X=C(m);if(typeof X=="function"&&X!==m.entries)for(var ie=X.call(m),te;!(te=ie.next()).done;)jn(te.value)&&Fc(te.value,M)}}}function Ic(m){{var M=m.type;if(M==null||typeof M=="string")return;var _;if(typeof M=="function")_=M.propTypes;else if(typeof M=="object"&&(M.$$typeof===u||M.$$typeof===h))_=M.propTypes;else return;if(_){var U=pe(M);h$(_,m.props,"prop",U,m)}else if(M.PropTypes!==void 0&&!La){La=!0;var X=pe(M);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X||"Unknown")}typeof M.getDefaultProps=="function"&&!M.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function v$(m){{for(var M=Object.keys(m.props),_=0;_<M.length;_++){var U=M[_];if(U!=="children"&&U!=="key"){_n(m),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",U),_n(null);break}}m.ref!==null&&(_n(m),T("Invalid attribute `ref` supplied to `React.Fragment`."),_n(null))}}function Lc(m,M,_){var U=yc(m);if(!U){var X="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(X+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ie=m$(M);ie?X+=ie:X+=kc();var te;m===null?te="null":Ge(m)?te="array":m!==void 0&&m.$$typeof===r?(te="<"+(pe(m.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):te=typeof m,T("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",te,X)}var ae=Tr.apply(this,arguments);if(ae==null)return ae;if(U)for(var he=2;he<arguments.length;he++)Bc(arguments[he],m);return m===i?v$(ae):Ic(ae),ae}var Vc=!1;function y$(m){var M=Lc.bind(null,m);return M.type=m,Vc||(Vc=!0,O("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(M,"type",{enumerable:!1,get:function(){return O("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:m}),m}}),M}function $$(m,M,_){for(var U=B1.apply(this,arguments),X=2;X<arguments.length;X++)Bc(arguments[X],U.type);return Ic(U),U}function x$(m,M){var _=E.transition;E.transition={};var U=E.transition;E.transition._updatedFibers=new Set;try{m()}finally{if(E.transition=_,_===null&&U._updatedFibers){var X=U._updatedFibers.size;X>10&&O("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),U._updatedFibers.clear()}}}var Oc=!1,zo=null;function w$(m){if(zo===null)try{var M=("require"+Math.random()).slice(0,7),_=t&&t[M];zo=_.call(t,"timers").setImmediate}catch{zo=function(X){Oc===!1&&(Oc=!0,typeof MessageChannel>"u"&&T("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var ie=new MessageChannel;ie.port1.onmessage=X,ie.port2.postMessage(void 0)}}return zo(m)}var zn=0,Nc=!1;function C$(m){{var M=zn;zn++,P.current===null&&(P.current=[]);var _=P.isBatchingLegacy,U;try{if(P.isBatchingLegacy=!0,U=m(),!_&&P.didScheduleLegacyUpdate){var X=P.current;X!==null&&(P.didScheduleLegacyUpdate=!1,Na(X))}}catch(Pe){throw Uo(M),Pe}finally{P.isBatchingLegacy=_}if(U!==null&&typeof U=="object"&&typeof U.then=="function"){var ie=U,te=!1,ae={then:function(Pe,Re){te=!0,ie.then(function(_e){Uo(M),zn===0?Va(_e,Pe,Re):Pe(_e)},function(_e){Uo(M),Re(_e)})}};return!Nc&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){te||(Nc=!0,T("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),ae}else{var he=U;if(Uo(M),zn===0){var ye=P.current;ye!==null&&(Na(ye),P.current=null);var De={then:function(Pe,Re){P.current===null?(P.current=[],Va(he,Pe,Re)):Pe(he)}};return De}else{var Ee={then:function(Pe,Re){Pe(he)}};return Ee}}}}function Uo(m){m!==zn-1&&T("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),zn=m}function Va(m,M,_){{var U=P.current;if(U!==null)try{Na(U),w$(function(){U.length===0?(P.current=null,M(m)):Va(m,M,_)})}catch(X){_(X)}else M(m)}}var Oa=!1;function Na(m){if(!Oa){Oa=!0;var M=0;try{for(;M<m.length;M++){var _=m[M];do _=_(!0);while(_!==null)}m.length=0}catch(U){throw m=m.slice(M+1),U}finally{Oa=!1}}}var D$=Lc,E$=$$,P$=y$,S$={map:Oo,forEach:N1,count:O1,toArray:K1,only:j1};e.Children=S$,e.Component=Q,e.Fragment=i,e.Profiler=s,e.PureComponent=ne,e.StrictMode=a,e.Suspense=f,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,e.cloneElement=E$,e.createContext=_1,e.createElement=D$,e.createFactory=P$,e.createRef=le,e.forwardRef=G1,e.isValidElement=jn,e.lazy=H1,e.memo=W1,e.startTransition=x$,e.unstable_act=C$,e.useCallback=t$,e.useContext=Y1,e.useDebugValue=o$,e.useDeferredValue=a$,e.useEffect=J1,e.useId=s$,e.useImperativeHandle=r$,e.useInsertionEffect=Q1,e.useLayoutEffect=e$,e.useMemo=n$,e.useReducer=Z1,e.useRef=X1,e.useState=q1,e.useSyncExternalStore=l$,e.useTransition=i$,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),q$=Vl({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){process.env.NODE_ENV==="production"?t.exports=W$():t.exports=Y$()}});/**
23
+ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(!m._store||m._store.validated||m.key!=null)){m._store.validated=!0;var j=h$(M);if(!Mc[j]){Mc[j]=!0;var U="";m&&m._owner&&m._owner!==k.current&&(U=" It was passed a child from "+fe(m._owner.type)+"."),_n(m),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,U),_n(null)}}}function Rc(m,M){if(typeof m=="object"){if(Ue(m))for(var j=0;j<m.length;j++){var U=m[j];jn(U)&&kc(U,M)}else if(jn(m))m._store&&(m._store.validated=!0);else if(m){var Z=C(m);if(typeof Z=="function"&&Z!==m.entries)for(var oe=Z.call(m),ee;!(ee=oe.next()).done;)jn(ee.value)&&kc(ee.value,M)}}}function Fc(m){{var M=m.type;if(M==null||typeof M=="string")return;var j;if(typeof M=="function")j=M.propTypes;else if(typeof M=="object"&&(M.$$typeof===c||M.$$typeof===h))j=M.propTypes;else return;if(j){var U=fe(M);d$(j,m.props,"prop",U,m)}else if(M.PropTypes!==void 0&&!Ba){Ba=!0;var Z=fe(M);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Z||"Unknown")}typeof M.getDefaultProps=="function"&&!M.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function b$(m){{for(var M=Object.keys(m.props),j=0;j<M.length;j++){var U=M[j];if(U!=="children"&&U!=="key"){_n(m),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",U),_n(null);break}}m.ref!==null&&(_n(m),T("Invalid attribute `ref` supplied to `React.Fragment`."),_n(null))}}function Bc(m,M,j){var U=gc(m);if(!U){var Z="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(Z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var oe=p$(M);oe?Z+=oe:Z+=Ac();var ee;m===null?ee="null":Ue(m)?ee="array":m!==void 0&&m.$$typeof===r?(ee="<"+(fe(m.type)||"Unknown")+" />",Z=" Did you accidentally export a JSX literal instead of a component?"):ee=typeof m,T("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ee,Z)}var ie=Tr.apply(this,arguments);if(ie==null)return ie;if(U)for(var pe=2;pe<arguments.length;pe++)Rc(arguments[pe],m);return m===i?b$(ie):Fc(ie),ie}var Ic=!1;function m$(m){var M=Bc.bind(null,m);return M.type=m,Ic||(Ic=!0,V("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(M,"type",{enumerable:!1,get:function(){return V("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:m}),m}}),M}function g$(m,M,j){for(var U=k1.apply(this,arguments),Z=2;Z<arguments.length;Z++)Rc(arguments[Z],U.type);return Fc(U),U}function v$(m,M){var j=E.transition;E.transition={};var U=E.transition;E.transition._updatedFibers=new Set;try{m()}finally{if(E.transition=j,j===null&&U._updatedFibers){var Z=U._updatedFibers.size;Z>10&&V("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),U._updatedFibers.clear()}}}var Lc=!1,jo=null;function y$(m){if(jo===null)try{var M=("require"+Math.random()).slice(0,7),j=t&&t[M];jo=j.call(t,"timers").setImmediate}catch{jo=function(Z){Lc===!1&&(Lc=!0,typeof MessageChannel>"u"&&T("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var oe=new MessageChannel;oe.port1.onmessage=Z,oe.port2.postMessage(void 0)}}return jo(m)}var zn=0,Vc=!1;function $$(m){{var M=zn;zn++,P.current===null&&(P.current=[]);var j=P.isBatchingLegacy,U;try{if(P.isBatchingLegacy=!0,U=m(),!j&&P.didScheduleLegacyUpdate){var Z=P.current;Z!==null&&(P.didScheduleLegacyUpdate=!1,Va(Z))}}catch(De){throw _o(M),De}finally{P.isBatchingLegacy=j}if(U!==null&&typeof U=="object"&&typeof U.then=="function"){var oe=U,ee=!1,ie={then:function(De,Me){ee=!0,oe.then(function(Ke){_o(M),zn===0?Ia(Ke,De,Me):De(Ke)},function(Ke){_o(M),Me(Ke)})}};return!Vc&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ee||(Vc=!0,T("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),ie}else{var pe=U;if(_o(M),zn===0){var ge=P.current;ge!==null&&(Va(ge),P.current=null);var we={then:function(De,Me){P.current===null?(P.current=[],Ia(pe,De,Me)):De(pe)}};return we}else{var Ce={then:function(De,Me){De(pe)}};return Ce}}}}function _o(m){m!==zn-1&&T("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),zn=m}function Ia(m,M,j){{var U=P.current;if(U!==null)try{Va(U),y$(function(){U.length===0?(P.current=null,M(m)):Ia(m,M,j)})}catch(Z){j(Z)}else M(m)}}var La=!1;function Va(m){if(!La){La=!0;var M=0;try{for(;M<m.length;M++){var j=m[M];do j=j(!0);while(j!==null)}m.length=0}catch(U){throw m=m.slice(M+1),U}finally{La=!1}}}var x$=Bc,w$=g$,C$=m$,D$={map:Lo,forEach:L1,count:I1,toArray:V1,only:O1};e.Children=D$,e.Component=J,e.Fragment=i,e.Profiler=s,e.PureComponent=te,e.StrictMode=a,e.Suspense=f,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,e.cloneElement=w$,e.createContext=N1,e.createElement=x$,e.createFactory=C$,e.createRef=se,e.forwardRef=z1,e.isValidElement=jn,e.lazy=_1,e.memo=U1,e.startTransition=v$,e.unstable_act=$$,e.useCallback=J1,e.useContext=H1,e.useDebugValue=t$,e.useDeferredValue=r$,e.useEffect=q1,e.useId=o$,e.useImperativeHandle=e$,e.useInsertionEffect=Z1,e.useLayoutEffect=X1,e.useMemo=Q1,e.useReducer=W1,e.useRef=Y1,e.useState=G1,e.useSyncExternalStore=i$,e.useTransition=n$,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),G$=Il({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){process.env.NODE_ENV==="production"?t.exports=U$():t.exports=H$()}});/**
24
24
  * @license React
25
25
  * react.development.js
26
26
  *
@@ -36,7 +36,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var Uc=G$(q$());function Z$(e){return Uc.Children.toArray(e).filter(t=>(0,Uc.isValidElement)(t))}var[X$,Fp]=F$({name:"AvatarGroupContext",strict:!1}),J$={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},Q$={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},e3={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},t3={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},n3={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},r3={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},o3={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},fe={solid:J$,shadow:Q$,bordered:e3,flat:t3,faded:n3,light:r3,ghost:o3},Hc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rt=e=>!e||typeof e!="object"||Object.keys(e).length===0,i3=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Bp(e,t){e.forEach(function(n){Array.isArray(n)?Bp(n,t):t.push(n)})}function Ip(e){let t=[];return Bp(e,t),t}var Lp=(...e)=>Ip(e).filter(Boolean),Vp=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let a=e[i],s=t[i];typeof a=="object"&&typeof s=="object"?n[i]=Vp(a,s):Array.isArray(a)||Array.isArray(s)?n[i]=Lp(s,a):n[i]=s+" "+a}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},Gc=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function a3(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Op(t))&&(r&&(r+=" "),r+=n);return r}function Op(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Op(e[r]))&&(n&&(n+=" "),n+=t);return n}var Ol="-";function s3(e){var t=u3(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(s){var l=s.split(Ol);return l[0]===""&&l.length!==1&&l.shift(),Np(l,t)||l3(s)}function a(s,l){var c=n[s]||[];return l&&o[s]?[].concat(c,o[s]):c}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Np(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Np(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(Ol);return(a=t.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var Wc=/^\[(.+)\]$/;function l3(e){if(Wc.test(e)){var t=Wc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function u3(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=d3(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],s=i[1];Rs(s,r,a,t)}),r}function Rs(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:Yc(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(c3(o)){Rs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(a){var s=a[0],l=a[1];Rs(l,Yc(t,s),n,r)})})}function Yc(e,t){var n=e;return t.split(Ol).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function c3(e){return e.isThemeGetter}function d3(e,t){return t?e.map(function(n){var r=n[0],o=n[1],i=o.map(function(a){return typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(s){var l=s[0],c=s[1];return[t+l,c]})):a});return[r,i]}):e}function f3(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(a){var s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set:function(a,s){n.has(a)?n.set(a,s):o(a,s)}}}var Kp="!";function p3(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(a){for(var s=[],l=0,c=0,u,f=0;f<a.length;f++){var p=a[f];if(l===0){if(p===r&&(n||a.slice(f,f+o)===t)){s.push(a.slice(c,f)),c=f+o;continue}if(p==="/"){u=f;continue}}p==="["?l++:p==="]"&&l--}var h=s.length===0?a:a.substring(c),b=h.startsWith(Kp),g=b?h.substring(1):h,y=u&&u>c?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:y}}}function h3(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function b3(e){return{cache:f3(e.cacheSize),splitModifiers:p3(e),...s3(e)}}var m3=/\s+/;function g3(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(m3).map(function(a){var s=n(a),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),h=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:a};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:a};h=!1}var b=h3(l).join(":"),g=c?b+Kp:b;return{isTailwindClass:!0,modifierId:g,classGroupId:p,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,c=a.hasPostfixModifier,u=s+l;return i.has(u)?!1:(i.add(u),o(l,c).forEach(function(f){return i.add(s+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function Fs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=s;function s(c){var u=t[0],f=t.slice(1),p=f.reduce(function(h,b){return b(h)},u());return r=b3(p),o=r.cache.get,i=r.cache.set,a=l,l(c)}function l(c){var u=o(c);if(u)return u;var f=g3(c,r);return i(c,f),f}return function(){return a(a3.apply(null,arguments))}}function Ce(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var jp=/^\[(?:([a-z-]+):)?(.+)\]$/i,v3=/^\d+\/\d+$/,y3=new Set(["px","full","screen"]),$3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,w3=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function yt(e){return Cn(e)||y3.has(e)||v3.test(e)||Bs(e)}function Bs(e){return Bn(e,"length",T3)}function C3(e){return Bn(e,"size",_p)}function D3(e){return Bn(e,"position",_p)}function E3(e){return Bn(e,"url",A3)}function Go(e){return Bn(e,"number",Cn)}function Cn(e){return!Number.isNaN(Number(e))}function P3(e){return e.endsWith("%")&&Cn(e.slice(0,-1))}function kr(e){return qc(e)||Bn(e,"number",qc)}function de(e){return jp.test(e)}function Rr(){return!0}function Qt(e){return $3.test(e)}function S3(e){return Bn(e,"",M3)}function Bn(e,t,n){var r=jp.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function T3(e){return x3.test(e)}function _p(){return!1}function A3(e){return e.startsWith("url(")}function qc(e){return Number.isInteger(Number(e))}function M3(e){return w3.test(e)}function Is(){var e=Ce("colors"),t=Ce("spacing"),n=Ce("blur"),r=Ce("brightness"),o=Ce("borderColor"),i=Ce("borderRadius"),a=Ce("borderSpacing"),s=Ce("borderWidth"),l=Ce("contrast"),c=Ce("grayscale"),u=Ce("hueRotate"),f=Ce("invert"),p=Ce("gap"),h=Ce("gradientColorStops"),b=Ce("gradientColorStopPositions"),g=Ce("inset"),y=Ce("margin"),$=Ce("opacity"),C=Ce("padding"),w=Ce("saturate"),E=Ce("scale"),P=Ce("sepia"),k=Ce("skew"),K=Ce("space"),v=Ce("translate"),V=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},A=function(){return["auto",de,t]},I=function(){return[de,t]},R=function(){return["",yt]},L=function(){return["auto",Cn,de]},j=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},O=function(){return["solid","dashed","dotted","double","none"]},T=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},W=function(){return["start","end","center","between","around","evenly","stretch"]},q=function(){return["","0",de]},H=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[Cn,Go]},N=function(){return[Cn,de]};return{cacheSize:500,theme:{colors:[Rr],spacing:[yt],blur:["none","",Qt,de],brightness:D(),borderColor:[e],borderRadius:["none","","full",Qt,de],borderSpacing:I(),borderWidth:R(),contrast:D(),grayscale:q(),hueRotate:N(),invert:q(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[P3,Bs],inset:A(),margin:A(),opacity:D(),padding:I(),saturate:D(),scale:D(),sepia:q(),skew:N(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",de]}],container:["container"],columns:[{columns:[Qt]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(j(),[de])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",kr]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",de]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",kr]}],"grid-cols":[{"grid-cols":[Rr]}],"col-start-end":[{col:["auto",{span:["full",kr]},de]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Rr]}],"row-start-end":[{row:["auto",{span:[kr]},de]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",de]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",de]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(W())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(W(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(W(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",de,t]}],"min-w":[{"min-w":["min","max","fit",de,yt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Qt]},Qt,de]}],h:[{h:[de,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",de,yt]}],"max-h":[{"max-h":[de,t,"min","max","fit"]}],"font-size":[{text:["base",Qt,Bs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Go]}],"font-family":[{font:[Rr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",de]}],"line-clamp":[{"line-clamp":["none",Cn,Go]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",de,yt]}],"list-image":[{"list-image":["none",de]}],"list-style-type":[{list:["none","disc","decimal",de]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(O(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",yt]}],"underline-offset":[{"underline-offset":["auto",de,yt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(j(),[D3])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",C3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},E3]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[].concat(O(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:O()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(O())}],"outline-offset":[{"outline-offset":[de,yt]}],"outline-w":[{outline:[yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qt,S3]}],"shadow-color":[{shadow:[Rr]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":T()}],"bg-blend":[{"bg-blend":T()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Qt,de]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",de]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",de]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",de]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[kr,de]}],"translate-x":[{"translate-x":[v]}],"translate-y":[{"translate-y":[v]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",de]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[yt,Go]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function k3(e,t){for(var n in t)zp(e,n,t[n]);return e}var R3=Object.prototype.hasOwnProperty,F3=new Set(["string","number","boolean"]);function zp(e,t,n){if(!R3.call(e,t)||F3.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var r in n)zp(e[t],r,n[r])}}function B3(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?Fs.apply(void 0,[Is,e].concat(n)):Fs.apply(void 0,[function(){return k3(Is(),e)}].concat(n))}var I3=Fs(Is),L3={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Up=e=>e||void 0,eo=(...e)=>Up(Ip(e).filter(Boolean).join(" ")),ja=null,wi={},Ls=!1,Fr=(...e)=>t=>t.twMerge?((!ja||Ls)&&(Ls=!1,ja=rt(wi)?I3:B3(wi)),Up(ja(eo(e)))):eo(e),Zc=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=eo(e[n],t[n]):e[n]=t[n];return e},V3=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...L3,...t},c=n!=null&&n.base?eo(n.base,e==null?void 0:e.base):e==null?void 0:e.base,u=n!=null&&n.variants&&!rt(n.variants)?Vp(o,n.variants):o,f=n!=null&&n.defaultVariants&&!rt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!rt(l.twMergeConfig)&&!i3(l.twMergeConfig,wi)&&(Ls=!0,wi=l.twMergeConfig);let p=rt(n==null?void 0:n.slots),h=rt(r)?{}:{base:eo(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},b=p?h:Zc({...n==null?void 0:n.slots},rt(h)?{base:e==null?void 0:e.base}:h),g=$=>{if(rt(u)&&rt(r)&&p)return Fr(c,$==null?void 0:$.class,$==null?void 0:$.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof a}`);let C=(I,R,L=[],j)=>{let O=L;if(typeof R=="string")O=O.concat(Gc(R).split(" ").map(T=>`${I}:${T}`));else if(Array.isArray(R))O=O.concat(R.reduce((T,W)=>T.concat(`${I}:${W}`),[]));else if(typeof R=="object"&&typeof j=="string"){for(let T in R)if(R.hasOwnProperty(T)&&T===j){let W=R[T];if(W&&typeof W=="string"){let q=Gc(W);O[j]?O[j]=O[j].concat(q.split(" ").map(H=>`${I}:${H}`)):O[j]=q.split(" ").map(H=>`${I}:${H}`)}else Array.isArray(W)&&W.length>0&&(O[j]=W.reduce((q,H)=>q.concat(`${I}:${H}`),[]))}}return O},w=(I,R=u,L=null,j=null)=>{var O;let T=R[I];if(!T||rt(T))return null;let W=(O=j==null?void 0:j[I])!=null?O:$==null?void 0:$[I];if(W===null)return null;let q=Hc(W),H=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[I],N=[];if(typeof q=="object"&&H)for(let[Q,ee]of Object.entries(q)){let oe=T[ee];if(Q==="initial"){D=ee;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(Q)||(N=C(Q,oe,N,L))}let Y=T[q]||T[Hc(D)];return typeof N=="object"&&typeof L=="string"&&N[L]?Zc(N,Y):N.length>0?(N.push(Y),N):Y},E=()=>u?Object.keys(u).map(I=>w(I,u)):null,P=(I,R)=>{if(!u||typeof u!="object")return null;let L=new Array;for(let j in u){let O=w(j,u,I,R),T=I==="base"&&typeof O=="string"?O:O&&O[I];T&&(L[L.length]=T)}return L},k={};for(let I in $)$[I]!==void 0&&(k[I]=$[I]);let K=(I,R)=>{var L;let j=typeof($==null?void 0:$[I])=="object"?{[I]:(L=$[I])==null?void 0:L.initial}:{};return{...f,...k,...j,...R}},v=(I=[],R)=>{let L=[];for(let{class:j,className:O,...T}of I){let W=!0;for(let[q,H]of Object.entries(T)){let D=K(q,R);if(Array.isArray(H)){if(!H.includes(D[q])){W=!1;break}}else if(D[q]!==H){W=!1;break}}W&&(j&&L.push(j),O&&L.push(O))}return L},V=I=>{let R=v(i,I),L=v(n==null?void 0:n.compoundVariants,I);return Lp(L,R)},F=I=>{let R=V(I);if(!Array.isArray(R))return R;let L={};for(let j of R)if(typeof j=="string"&&(L.base=Fr(L.base,j)(l)),typeof j=="object")for(let[O,T]of Object.entries(j))L[O]=Fr(L[O],T)(l);return L},A=I=>{if(a.length<1)return null;let R={};for(let{slots:L=[],class:j,className:O,...T}of a){if(!rt(T)){let W=!0;for(let q of Object.keys(T)){let H=K(q,I)[q];if(H===void 0||(Array.isArray(T[q])?!T[q].includes(H):T[q]!==H)){W=!1;break}}if(!W)continue}for(let W of L)R[W]=R[W]||[],R[W].push([j,O])}return R};if(!rt(r)||!p){let I={};if(typeof b=="object"&&!rt(b))for(let R of Object.keys(b))I[R]=L=>{var j,O;return Fr(b[R],P(R,L),((j=F(L))!=null?j:[])[R],((O=A(L))!=null?O:[])[R],L==null?void 0:L.class,L==null?void 0:L.className)(l)};return I}return Fr(c,E(),V(),$==null?void 0:$.class,$==null?void 0:$.className)(l)},y=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return g.variantKeys=y(),g.extend=n,g.base=c,g.slots=b,g.variants=u,g.defaultVariants=f,g.compoundSlots=a,g.compoundVariants=i,g},Wo=["small","medium","large"],Qi=(e,t)=>{var n,r,o;return V3(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider"],borderWidth:Wo,borderRadius:Wo},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Wo}],"font-size":[{text:["tiny",...Wo]}],"bg-image":["bg-stripe-gradient"]}}})},Hp=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],_a=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],Xc=Qi({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...Hp],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:fe.solid.foreground},primary:{base:"before:bg-primary",content:fe.solid.primary},secondary:{base:"before:bg-secondary",content:fe.solid.secondary},success:{base:"before:bg-success",content:fe.solid.success},warning:{base:"before:bg-warning",content:fe.solid.warning},danger:{base:"before:bg-danger",content:fe.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),O3=Qi({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...Hp],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[..._a,"flex","items-center","justify-center"],name:[..._a,"font-normal","text-center","text-inherit"],icon:[..._a,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:fe.solid.default},primary:{base:fe.solid.primary},secondary:{base:fe.solid.secondary},success:{base:fe.solid.success},warning:{base:fe.solid.warning},danger:{base:fe.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]}),N3=Qi({slots:{base:"flex items-center justify-center h-auto w-max-content",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Jc=Qi({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","flex-wrap","absolute","box-border","rounded-full","whitespace-nowrap","place-content-center","origin-center","items-center","text-inherit","select-none","font-regular","scale-100","opacity-100","subpixel-antialiased","data-[invisible=true]:scale-0","data-[invisible=true]:opacity-0"]},variants:{variant:{solid:{},flat:{},faded:{badge:"border-medium"},shadow:{}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"px-1 text-tiny"},md:{badge:"px-1 text-small"},lg:{badge:"px-1 text-small"}},placement:{"top-right":{},"top-left":{},"bottom-right":{},"bottom-left":{}},shape:{circle:{},rectangle:{}},isInvisible:{true:{}},isOneChar:{true:{badge:"px-0"}},isDot:{true:{}},disableAnimation:{true:{badge:"transition-none"},false:{badge:"transition-transform-opacity !ease-soft-spring !duration-300"}},showOutline:{true:{badge:"border-2 border-background"},false:{badge:"border-transparent border-0"}}},defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",showOutline:!0,disableAnimation:!1,isInvisible:!1},compoundVariants:[{variant:"solid",color:"default",class:{badge:fe.solid.default}},{variant:"solid",color:"primary",class:{badge:fe.solid.primary}},{variant:"solid",color:"secondary",class:{badge:fe.solid.secondary}},{variant:"solid",color:"success",class:{badge:fe.solid.success}},{variant:"solid",color:"warning",class:{badge:fe.solid.warning}},{variant:"solid",color:"danger",class:{badge:fe.solid.danger}},{variant:"shadow",color:"default",class:{badge:fe.shadow.default}},{variant:"shadow",color:"primary",class:{badge:fe.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:fe.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:fe.shadow.success}},{variant:"shadow",color:"warning",class:{badge:fe.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:fe.shadow.danger}},{variant:"flat",color:"default",class:{badge:fe.flat.default}},{variant:"flat",color:"primary",class:{badge:fe.flat.primary}},{variant:"flat",color:"secondary",class:{badge:fe.flat.secondary}},{variant:"flat",color:"success",class:{badge:fe.flat.success}},{variant:"flat",color:"warning",class:{badge:fe.flat.warning}},{variant:"flat",color:"danger",class:{badge:fe.flat.danger}},{variant:"faded",color:"default",class:{badge:fe.faded.default}},{variant:"faded",color:"primary",class:{badge:fe.faded.primary}},{variant:"faded",color:"secondary",class:{badge:fe.faded.secondary}},{variant:"faded",color:"success",class:{badge:fe.faded.success}},{variant:"faded",color:"warning",class:{badge:fe.faded.warning}},{variant:"faded",color:"danger",class:{badge:fe.faded.danger}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 min-h-6"}},{isDot:!0,size:"sm",class:{badge:"w-3 h-3 min-w-3 min-h-3"}},{isDot:!0,size:"md",class:{badge:"w-3.5 h-3.5 min-w-3.5 min-h-3.5"}},{isDot:!0,size:"lg",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{placement:"top-right",shape:"rectangle",class:{badge:"top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"rectangle",class:{badge:"top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"rectangle",class:{badge:"bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"rectangle",class:{badge:"bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2"}},{placement:"top-right",shape:"circle",class:{badge:"top-[10%] right-[10%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"circle",class:{badge:"top-[10%] left-[10%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"circle",class:{badge:"bottom-[10%] right-[10%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"circle",class:{badge:"bottom-[10%] left-[10%] -translate-x-1/2 translate-y-1/2"}}]});function gt(e,t,n){let[r,o]=d.useState(e||t),i=d.useRef(e!==void 0),a=e!==void 0;d.useEffect(()=>{let c=i.current;c!==a&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:r,l=d.useCallback((c,...u)=>{let f=(p,...h)=>{n&&(Object.is(s,p)||n(p,...h)),a||(s=p)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...b)=>{let g=c(a?s:h,...b);return f(g,...u),a?h:g})):(a||o(c),f(c,...u))},[a,s,n]);return[s,l]}function bt(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function tt(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let c=Math.pow(10,l);i=Math.round(i*c)/c}return i}const Ci={prefix:String(Math.round(Math.random()*1e10)),current:0},Gp=B.default.createContext(Ci),K3=B.default.createContext(!1);let j3=!!(typeof window<"u"&&window.document&&window.document.createElement),za=new WeakMap;function _3(e=!1){let t=d.useContext(Gp),n=d.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=B.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=za.get(i);a==null?za.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,za.delete(i))}n.current=++t.current}return n.current}function z3(e){let t=d.useContext(Gp);t===Ci&&!j3&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=_3(!!e),r=t===Ci&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function U3(e){let t=B.default.useId(),[n]=d.useState(kt()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ci.prefix}`;return e||`${r}-${t}`}const H3=typeof B.default.useId=="function"?U3:z3;function G3(){return!1}function W3(){return!0}function Y3(e){return()=>{}}function kt(){return typeof B.default.useSyncExternalStore=="function"?B.default.useSyncExternalStore(Y3,G3,W3):d.useContext(K3)}function Wp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Wp(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function q3(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Wp(e))&&(r&&(r+=" "),r+=t);return r}const me=typeof document<"u"?B.default.useLayoutEffect:()=>{};function Te(e){const t=d.useRef(null);return me(()=>{t.current=e},[e]),d.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function Z3(e){let[t,n]=d.useState(e),r=d.useRef(null),o=Te(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});me(()=>{r.current&&o()});let i=Te(a=>{r.current=a(t),o()});return[t,i]}let X3=!!(typeof window<"u"&&window.document&&window.document.createElement),Di=new Map;function Ue(e){let[t,n]=d.useState(e),r=d.useRef(null),o=H3(t),i=d.useCallback(a=>{r.current=a},[]);return X3&&Di.set(o,i),me(()=>{let a=o;return()=>{Di.delete(a)}},[o]),d.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),o}function J3(e,t){if(e===t)return e;let n=Di.get(e);if(n)return n(t),t;let r=Di.get(t);return r?(r(e),e):t}function on(e=[]){let t=Ue(),[n,r]=Z3(t),o=d.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return me(o,[t,o,...e]),n}function sn(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const xe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ht=e=>e&&"window"in e&&e.window===e?e:xe(e).defaultView||window;function J(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=sn(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=q3(i,a):o==="id"&&i&&a?t.id=J3(i,a):t[o]=a!==void 0?a:i}}return t}function ea(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const Q3=new Set(["id"]),ex=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),tx=new Set(["href","target","rel","download","ping","referrerPolicy"]),nx=/^(data-.*)$/;function ue(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Q3.has(a)||n&&ex.has(a)||r&&tx.has(a)||o!=null&&o.has(a)||nx.test(a))&&(i[a]=e[a]);return i}function Tt(e){if(rx())e.focus({preventScroll:!0});else{let t=ox(e);e.focus(),ix(t)}}let Yo=null;function rx(){if(Yo==null){Yo=!1;try{document.createElement("div").focus({get preventScroll(){return Yo=!0,!0}})}catch{}}return Yo}function ox(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function ix(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function ta(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Nl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Gt(){return Nl(/^Mac/i)}function Yp(){return Nl(/^iPhone/i)}function qp(){return Nl(/^iPad/i)||Gt()&&navigator.maxTouchPoints>1}function pr(){return Yp()||qp()}function di(){return Gt()||pr()}function Kl(){return ta(/AppleWebKit/i)&&!ax()}function ax(){return ta(/Chrome/i)}function jl(){return ta(/Android/i)}function sx(){return ta(/Firefox/i)}const lx=d.createContext({isNative:!0,open:dx});function go(){return d.useContext(lx)}function ux(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Tn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;sx()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Gt()?i=!0:a=!0);let c=Kl()&&Gt()&&!qp()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Tn.isOpening=n,Tt(e),e.dispatchEvent(c),Tn.isOpening=!1}Tn.isOpening=!1;function cx(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function dx(e,t){cx(e,n=>Tn(n,t))}let Yn=new Map,Vs=new Set;function Qc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);o||(o=new Set,Yn.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Yn.delete(r.target)),Yn.size===0)){for(let i of Vs)i();Vs.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Qc():document.addEventListener("DOMContentLoaded",Qc));function Zp(e){requestAnimationFrame(()=>{Yn.size===0?e():Vs.add(e)})}function hr(){let e=d.useRef(new Map),t=d.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...c)=>{e.current.delete(a),a(...c)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,a,s)},[]),n=d.useCallback((o,i,a,s)=>{var l;let c=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,c,s),e.current.delete(a)},[]),r=d.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return d.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function An(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=Ue(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function vt(e){const t=d.useRef(null);return d.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function fx(){return typeof window.ResizeObserver<"u"}function _l(e){const{ref:t,onResize:n}=e;d.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(fx()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function zl(e,t){me(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function to(e,t){let n=e;for(Ei(n,t)&&(n=n.parentElement);n&&!Ei(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Ei(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let ct=typeof document<"u"&&window.visualViewport;function px(){let e=kt(),[t,n]=d.useState(()=>e?{width:0,height:0}:ed());return d.useEffect(()=>{let r=()=>{n(o=>{let i=ed();return i.width===o.width&&i.height===o.height?o:i})};return ct?ct.addEventListener("resize",r):window.addEventListener("resize",r),()=>{ct?ct.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function ed(){return{width:ct&&(ct==null?void 0:ct.width)||window.innerWidth,height:ct&&(ct==null?void 0:ct.height)||window.innerHeight}}let hx=0;const Ua=new Map;function Xp(e){let[t,n]=d.useState();return me(()=>{if(!e)return;let r=Ua.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${hx++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},Ua.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Ua.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Pi(e,t,n,r){let o=Te(n),i=n==null;d.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i,o])}function Jp(e,t){let n=td(e,t,"left"),r=td(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(e),u=e.scrollLeft+parseInt(c,10),f=e.scrollTop+parseInt(l,10),p=u+e.clientWidth,h=f+e.clientHeight;n<=a?a=n-parseInt(c,10):n+o>p&&(a+=n+o-p),r<=f?s=r-parseInt(l,10):r+i>h&&(s+=r+i-h),e.scrollLeft=a,e.scrollTop=s}function td(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Os(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=to(e);for(;e&&l&&e!==a&&l!==a;)Jp(l,e),e=l,l=to(e)}else{var n;let{left:l,top:c}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:u,top:f}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-f)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Ns(e){return e.mozInputSource===0&&e.isTrusted?!0:jl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function bx(e){return!jl()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function mx(e,t){let n=d.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function vo(e,t,n){let r=d.useRef(t),o=Te(()=>{n&&n(r.current)});d.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",o),()=>{a==null||a.removeEventListener("reset",o)}},[e,o])}function gx(e,t){return t.get?t.get.call(e):t.value}function Qp(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function vx(e,t){var n=Qp(e,t,"get");return gx(e,n)}function yx(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yo(e,t,n){yx(e,t),t.set(e,n)}function $x(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function nd(e,t,n){var r=Qp(e,t,"set");return $x(e,r,n),n}let Xn="default",Ks="",fi=new WeakMap;function js(e){if(pr()){if(Xn==="default"){const t=xe(e);Ks=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xn="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(fi.set(e,e.style.userSelect),e.style.userSelect="none")}function jr(e){if(pr()){if(Xn!=="disabled")return;Xn="restoring",setTimeout(()=>{Zp(()=>{if(Xn==="restoring"){const t=xe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ks||""),Ks="",Xn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&fi.has(e)){let t=fi.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),fi.delete(e)}}const no=B.default.createContext({register:()=>{}});no.displayName="PressResponderContext";function xx(e){let t=d.useContext(no);if(t){let{register:n,...r}=t;e=J(r,e),n()}return zl(t,e.ref),e}var qo=new WeakMap;class Zo{continuePropagation(){nd(this,qo,!1)}get shouldStopPropagation(){return vx(this,qo)}constructor(t,n,r){yo(this,qo,{writable:!0,value:void 0}),nd(this,qo,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const rd=Symbol("linkClicked");function ln(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:f,...p}=xx(e),[h,b]=d.useState(!1),g=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=hr(),C=Te((v,V)=>{let F=g.current;if(a||F.didFirePressStart)return!1;let A=!0;if(F.isTriggeringEvent=!0,r){let I=new Zo("pressstart",V,v);r(I),A=I.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,b(!0),A}),w=Te((v,V,F=!0)=>{let A=g.current;if(!A.didFirePressStart)return!1;A.ignoreClickAfterPress=!0,A.didFirePressStart=!1,A.isTriggeringEvent=!0;let I=!0;if(o){let R=new Zo("pressend",V,v);o(R),I=R.shouldStopPropagation}if(n&&n(!1),b(!1),t&&F&&!a){let R=new Zo("press",V,v);t(R),I&&(I=R.shouldStopPropagation)}return A.isTriggeringEvent=!1,I}),E=Te((v,V)=>{let F=g.current;if(a)return!1;if(i){F.isTriggeringEvent=!0;let A=new Zo("pressup",V,v);return i(A),F.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),P=Te(v=>{let V=g.current;V.isPressed&&V.target&&(V.isOverTarget&&V.pointerType!=null&&w(Ft(V.target,v),V.pointerType,!1),V.isPressed=!1,V.isOverTarget=!1,V.activePointerId=null,V.pointerType=null,$(),u||jr(V.target))}),k=Te(v=>{c&&P(v)}),K=d.useMemo(()=>{let v=g.current,V={onKeyDown(A){if(Ha(A.nativeEvent,A.currentTarget)&&A.currentTarget.contains(A.target)){var I;id(A.target,A.key)&&A.preventDefault();let R=!0;if(!v.isPressed&&!A.repeat){v.target=A.currentTarget,v.isPressed=!0,R=C(A,"keyboard");let L=A.currentTarget,j=O=>{Ha(O,L)&&!O.repeat&&L.contains(O.target)&&v.target&&E(Ft(v.target,O),"keyboard")};y(xe(A.currentTarget),"keyup",sn(j,F),!0)}R&&A.stopPropagation(),A.metaKey&&Gt()&&((I=v.metaKeyEvents)===null||I===void 0||I.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(A){if(!(A&&!A.currentTarget.contains(A.target))&&A&&A.button===0&&!v.isTriggeringEvent&&!Tn.isOpening){let I=!0;if(a&&A.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||Ns(A.nativeEvent))){!a&&!l&&Tt(A.currentTarget);let R=C(A,"virtual"),L=E(A,"virtual"),j=w(A,"virtual");I=R&&L&&j}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,I&&A.stopPropagation()}}},F=A=>{var I;if(v.isPressed&&v.target&&Ha(A,v.target)){var R;id(A.target,A.key)&&A.preventDefault();let j=A.target;w(Ft(v.target,A),"keyboard",v.target.contains(j)),$(),A.key!=="Enter"&&Ul(v.target)&&v.target.contains(j)&&!A[rd]&&(A[rd]=!0,Tn(v.target,A,!1)),v.isPressed=!1,(R=v.metaKeyEvents)===null||R===void 0||R.delete(A.key)}else if(A.key==="Meta"&&(!((I=v.metaKeyEvents)===null||I===void 0)&&I.size)){var L;let j=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let O of j.values())(L=v.target)===null||L===void 0||L.dispatchEvent(new KeyboardEvent("keyup",O))}};if(typeof PointerEvent<"u"){V.onPointerDown=L=>{if(L.button!==0||!L.currentTarget.contains(L.target))return;if(bx(L.nativeEvent)){v.pointerType="virtual";return}Ga(L.currentTarget)&&L.preventDefault(),v.pointerType=L.pointerType;let j=!0;v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=L.pointerId,v.target=L.currentTarget,!a&&!l&&Tt(L.currentTarget),u||js(v.target),j=C(L,v.pointerType),y(xe(L.currentTarget),"pointermove",A,!1),y(xe(L.currentTarget),"pointerup",I,!1),y(xe(L.currentTarget),"pointercancel",R,!1)),j&&L.stopPropagation()},V.onMouseDown=L=>{L.currentTarget.contains(L.target)&&L.button===0&&(Ga(L.currentTarget)&&L.preventDefault(),L.stopPropagation())},V.onPointerUp=L=>{!L.currentTarget.contains(L.target)||v.pointerType==="virtual"||L.button===0&&Un(L,L.currentTarget)&&E(L,v.pointerType||L.pointerType)};let A=L=>{L.pointerId===v.activePointerId&&(v.target&&Un(L,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,C(Ft(v.target,L),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,w(Ft(v.target,L),v.pointerType,!1),k(L)))},I=L=>{L.pointerId===v.activePointerId&&v.isPressed&&L.button===0&&v.target&&(Un(L,v.target)&&v.pointerType!=null?w(Ft(v.target,L),v.pointerType):v.isOverTarget&&v.pointerType!=null&&w(Ft(v.target,L),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,$(),u||jr(v.target))},R=L=>{P(L)};V.onDragStart=L=>{L.currentTarget.contains(L.target)&&P(L)}}else{V.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(Ga(R.currentTarget)&&R.preventDefault(),v.ignoreEmulatedMouseEvents){R.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=R.currentTarget,v.pointerType=Ns(R.nativeEvent)?"virtual":"mouse",!a&&!l&&Tt(R.currentTarget),C(R,v.pointerType)&&R.stopPropagation(),y(xe(R.currentTarget),"mouseup",A,!1)},V.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let L=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,L=C(R,v.pointerType)),L&&R.stopPropagation()},V.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let L=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,L=w(R,v.pointerType,!1),k(R)),L&&R.stopPropagation()},V.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!v.ignoreEmulatedMouseEvents&&R.button===0&&E(R,v.pointerType||"mouse")};let A=R=>{if(R.button===0){if(v.isPressed=!1,$(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&Un(R,v.target)&&v.pointerType!=null?w(Ft(v.target,R),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&w(Ft(v.target,R),v.pointerType,!1),v.isOverTarget=!1}};V.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let L=wx(R.nativeEvent);if(!L)return;v.activePointerId=L.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=R.currentTarget,v.pointerType="touch",!a&&!l&&Tt(R.currentTarget),u||js(v.target),C(R,v.pointerType)&&R.stopPropagation(),y(ht(R.currentTarget),"scroll",I,!0)},V.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let L=od(R.nativeEvent,v.activePointerId),j=!0;L&&Un(L,R.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,j=C(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,j=w(R,v.pointerType,!1),k(R)),j&&R.stopPropagation()},V.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let L=od(R.nativeEvent,v.activePointerId),j=!0;L&&Un(L,R.currentTarget)&&v.pointerType!=null?(E(R,v.pointerType),j=w(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(j=w(R,v.pointerType,!1)),j&&R.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!u&&jr(v.target),$()},V.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),v.isPressed&&P(R))};let I=R=>{v.isPressed&&R.target.contains(v.target)&&P({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};V.onDragStart=R=>{R.currentTarget.contains(R.target)&&P(R)}}return V},[y,a,l,$,u,P,k,w,C,E]);return d.useEffect(()=>()=>{var v;u||jr((v=g.current.target)!==null&&v!==void 0?v:void 0)},[u]),{isPressed:s||h,pressProps:J(p,K)}}function Ul(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ha(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof ht(o).HTMLInputElement&&!e0(o,n)||o instanceof ht(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Ul(o))&&n!=="Enter")}function wx(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function od(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function Ft(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Cx(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function Dx(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Un(e,t){let n=t.getBoundingClientRect(),r=Cx(e);return Dx(n,r)}function Ga(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function id(e,t){return e instanceof HTMLInputElement?!e0(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ul(e)}const Ex=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function e0(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Ex.has(e.type)}const Px=B.default.forwardRef(({children:e,...t},n)=>{let r=d.useRef(!1),o=d.useContext(no);n=vt(n||(o==null?void 0:o.ref));let i=J(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return zl(o,n),d.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),B.default.createElement(no.Provider,{value:i},e)});function Sx({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return B.default.createElement(no.Provider,{value:t},e)}class Tx{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function t0(e){let t=d.useRef({isFocused:!1,observer:null});me(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Te(r=>{e==null||e(r)});return d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{t.current.isFocused=!1,o.disabled&&n(new Tx("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function na(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=d.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=t0(i),s=d.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Wt=null,ro=new Set,Gr=new Map,Mn=!1,_s=!1;const Ax={Tab:!0,Escape:!0};function ra(e,t){for(let n of ro)n(e,t)}function Mx(e){return!(e.metaKey||!Gt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Si(e){Mn=!0,Mx(e)&&(Wt="keyboard",ra("keyboard",e))}function ft(e){Wt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Mn=!0,ra("pointer",e))}function n0(e){Ns(e)&&(Mn=!0,Wt="virtual")}function r0(e){e.target===window||e.target===document||(!Mn&&!_s&&(Wt="virtual",ra("virtual",e)),Mn=!1,_s=!1)}function o0(){Mn=!1,_s=!0}function Ti(e){if(typeof window>"u"||Gr.get(ht(e)))return;const t=ht(e),n=xe(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Mn=!0,r.apply(this,arguments)},n.addEventListener("keydown",Si,!0),n.addEventListener("keyup",Si,!0),n.addEventListener("click",n0,!0),t.addEventListener("focus",r0,!0),t.addEventListener("blur",o0,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ft,!0),n.addEventListener("pointermove",ft,!0),n.addEventListener("pointerup",ft,!0)):(n.addEventListener("mousedown",ft,!0),n.addEventListener("mousemove",ft,!0),n.addEventListener("mouseup",ft,!0)),t.addEventListener("beforeunload",()=>{i0(e)},{once:!0}),Gr.set(t,{focus:r})}const i0=(e,t)=>{const n=ht(e),r=xe(e);t&&r.removeEventListener("DOMContentLoaded",t),Gr.has(n)&&(n.HTMLElement.prototype.focus=Gr.get(n).focus,r.removeEventListener("keydown",Si,!0),r.removeEventListener("keyup",Si,!0),r.removeEventListener("click",n0,!0),n.removeEventListener("focus",r0,!0),n.removeEventListener("blur",o0,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ft,!0),r.removeEventListener("pointermove",ft,!0),r.removeEventListener("pointerup",ft,!0)):(r.removeEventListener("mousedown",ft,!0),r.removeEventListener("mousemove",ft,!0),r.removeEventListener("mouseup",ft,!0)),Gr.delete(n))};function kx(e){const t=xe(e);let n;return t.readyState!=="loading"?Ti(e):(n=()=>{Ti(e)},t.addEventListener("DOMContentLoaded",n)),()=>i0(e,n)}typeof document<"u"&&kx();function lr(){return Wt!=="pointer"}function Ai(){return Wt}function a0(e){Wt=e,ra(e,null)}function Rx(){Ti();let[e,t]=d.useState(Wt);return d.useEffect(()=>{let n=()=>{t(Wt)};return ro.add(n),()=>{ro.delete(n)}},[]),kt()?null:e}const Fx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Bx(e,t,n){var r;const o=typeof window<"u"?ht(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ht(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ht(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?ht(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!Fx.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!Ax[n.key])}function Ix(e,t,n){Ti(),d.useEffect(()=>{let r=(o,i)=>{Bx(!!(n!=null&&n.isTextInput),o,i)&&e(lr())};return ro.add(r),()=>{ro.delete(r)}},t)}function br(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=d.useRef({isFocusWithin:!1}),a=d.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(c),o&&o(!1))},[n,o,i]),s=t0(a),l=d.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(r&&r(c),o&&o(!0),i.current.isFocusWithin=!0,s(c))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let Mi=!1,Wa=0;function zs(){Mi=!0,setTimeout(()=>{Mi=!1},50)}function ad(e){e.pointerType==="touch"&&zs()}function Lx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",ad):document.addEventListener("touchend",zs),Wa++,()=>{Wa--,!(Wa>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",ad):document.removeEventListener("touchend",zs))}}function Ie(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=d.useState(!1),s=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(Lx,[]);let{hoverProps:l,triggerHoverEnd:c}=d.useMemo(()=>{let u=(h,b)=>{if(s.pointerType=b,o||b==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let g=h.currentTarget;s.target=g,t&&t({type:"hoverstart",target:g,pointerType:b}),n&&n(!0),a(!0)},f=(h,b)=>{if(s.pointerType="",s.target=null,b==="touch"||!s.isHovered)return;s.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:b}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Mi&&h.pointerType==="mouse"||u(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!Mi&&u(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,o,s]);return d.useEffect(()=>{o&&c({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function s0(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Te(l=>{n&&Xo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Te(l=>{n&&n(l)});d.useEffect(()=>{let l=i.current;if(r)return;const c=t.current,u=xe(c);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&Xo(p,t)&&s(p),l.isPointerDown=!1};return u.addEventListener("pointerdown",a,!0),u.addEventListener("pointerup",f,!0),()=>{u.removeEventListener("pointerdown",a,!0),u.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Xo(h,t)&&s(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Xo(h,t)&&s(h),l.isPointerDown=!1};return u.addEventListener("mousedown",a,!0),u.addEventListener("mouseup",f,!0),u.addEventListener("touchstart",a,!0),u.addEventListener("touchend",p,!0),()=>{u.removeEventListener("mousedown",a,!0),u.removeEventListener("mouseup",f,!0),u.removeEventListener("touchstart",a,!0),u.removeEventListener("touchend",p,!0)}}},[t,r,a,s])}function Xo(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function sd(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Hl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:sd(e.onKeyDown),onKeyUp:sd(e.onKeyUp)}}}function l0(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=d.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=hr(),s=Te((u,f,p,h)=>{p===0&&h===0||(o.current.didMove||(o.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:h,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey}))}),l=Te((u,f)=>{jr(),o.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey}))});return{moveProps:d.useMemo(()=>{let u={},f=()=>{js(),o.current.didMove=!1};if(typeof PointerEvent>"u"){let h=$=>{if($.button===0){var C,w,E,P;s($,"mouse",$.pageX-((E=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&E!==void 0?E:0),$.pageY-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&P!==void 0?P:0)),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},b=$=>{$.button===0&&(l($,"mouse"),a(window,"mousemove",h,!1),a(window,"mouseup",b,!1))};u.onMouseDown=$=>{$.button===0&&(f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i(window,"mousemove",h,!1),i(window,"mouseup",b,!1))};let g=$=>{let C=[...$.changedTouches].findIndex(({identifier:K})=>K===o.current.id);if(C>=0){var w,E;let{pageX:K,pageY:v}=$.changedTouches[C];var P,k;s($,"touch",K-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&P!==void 0?P:0),v-((k=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&k!==void 0?k:0)),o.current.lastPosition={pageX:K,pageY:v}}},y=$=>{[...$.changedTouches].findIndex(({identifier:w})=>w===o.current.id)>=0&&(l($,"touch"),o.current.id=null,a(window,"touchmove",g),a(window,"touchend",y),a(window,"touchcancel",y))};u.onTouchStart=$=>{if($.changedTouches.length===0||o.current.id!=null)return;let{pageX:C,pageY:w,identifier:E}=$.changedTouches[0];f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:C,pageY:w},o.current.id=E,i(window,"touchmove",g,!1),i(window,"touchend",y,!1),i(window,"touchcancel",y,!1)}}else{let h=g=>{if(g.pointerId===o.current.id){var y,$;let E=g.pointerType||"mouse";var C,w;s(g,E,g.pageX-((C=(y=o.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&C!==void 0?C:0),g.pageY-((w=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&w!==void 0?w:0)),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY}}},b=g=>{if(g.pointerId===o.current.id){let y=g.pointerType||"mouse";l(g,y),o.current.id=null,a(window,"pointermove",h,!1),a(window,"pointerup",b,!1),a(window,"pointercancel",b,!1)}};u.onPointerDown=g=>{g.button===0&&o.current.id==null&&(f(),g.stopPropagation(),g.preventDefault(),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY},o.current.id=g.pointerId,i(window,"pointermove",h,!1),i(window,"pointerup",b,!1),i(window,"pointercancel",b,!1))}}let p=(h,b,g)=>{f(),s(h,"keyboard",b,g),l(h,"keyboard")};return u.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),p(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),p(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),p(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),p(h,0,1);break}},u},[o,i,a,s,l])}}function Vx(e,t){let{onScroll:n,isDisabled:r}=e,o=d.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),n&&n({deltaX:i.deltaX,deltaY:i.deltaY}))},[n]);Pi(t,"wheel",r?void 0:o)}const Ox=500;function u0(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Ox,accessibilityDescription:a}=e;const s=d.useRef();let{addGlobalListener:l,removeGlobalListener:c}=hr(),{pressProps:u}=ln({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let h=b=>{b.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Xp(o&&!t?a:void 0);return{longPressProps:J(u,f)}}function kn(e){const t=xe(e);if(Ai()==="virtual"){let n=t.activeElement;Zp(()=>{t.activeElement===n&&e.isConnected&&Tt(e)})}else Tt(e)}function Nx(e){const t=ht(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Kx(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function c0(e,t){return e.nodeName!=="#comment"&&Nx(e)&&Kx(e,t)&&(!e.parentElement||c0(e.parentElement,e))}const ld=B.default.createContext(null);let $e=null;function Gl(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=d.useRef(null),a=d.useRef(null),s=d.useRef([]),{parentNode:l}=d.useContext(ld)||{},c=d.useMemo(()=>new Us({scopeRef:s}),[s]);me(()=>{let p=l||Fe.root;if(Fe.getTreeNode(p.scopeRef)&&$e&&!Ri($e,p.scopeRef)){let h=Fe.getTreeNode($e);h&&(p=h)}p.addChild(c),Fe.addNode(c)},[c,l]),me(()=>{let p=Fe.getTreeNode(s);p&&(p.contain=!!n)},[n]),me(()=>{var p;let h=(p=i.current)===null||p===void 0?void 0:p.nextSibling,b=[];for(;h&&h!==a.current;)b.push(h),h=h.nextSibling;s.current=b},[t]),Wx(s,r,n),Ux(s,n),qx(s,r,n),Gx(s,o),d.useEffect(()=>{const p=xe(s.current?s.current[0]:void 0).activeElement;let h=null;if(Ye(p,s.current)){for(let b of Fe.traverse())b.scopeRef&&Ye(p,b.scopeRef.current)&&(h=b);h===Fe.getTreeNode(s)&&($e=h.scopeRef)}},[s]),me(()=>()=>{var p,h,b;let g=(b=(h=Fe.getTreeNode(s))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(s===$e||Ri(s,$e))&&(!g||Fe.getTreeNode(g))&&($e=g),Fe.removeTreeNode(s)},[s]);let u=d.useMemo(()=>jx(s),[]),f=d.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return B.default.createElement(ld.Provider,{value:f},B.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,B.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function jx(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||xe(n[0]).activeElement,l=n[0].previousElementSibling,c=Dn(n),u=Je(c,{tabbable:o,accept:a},n);u.currentNode=Ye(s,n)?s:l;let f=u.nextNode();return!f&&i&&(u.currentNode=l,f=u.nextNode()),f&&nt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||xe(n[0]).activeElement,l=n[n.length-1].nextElementSibling,c=Dn(n),u=Je(c,{tabbable:o,accept:a},n);u.currentNode=Ye(s,n)?s:l;let f=u.previousNode();return!f&&i&&(u.currentNode=l,f=u.previousNode()),f&&nt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Dn(n),a=Je(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&nt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Dn(n),a=Je(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&nt(s,!0),s}}}const Wl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],_x=Wl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Wl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const zx=Wl.join(':not([hidden]):not([tabindex="-1"]),');function Dn(e){return e[0].parentElement}function _r(e){let t=Fe.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Ux(e,t){let n=d.useRef(),r=d.useRef();me(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=xe(o?o[0]:void 0);let a=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!_r(e))return;let u=i.activeElement,f=e.current;if(!f||!Ye(u,f))return;let p=Dn(f),h=Je(p,{tabbable:!0},f);if(!u)return;h.currentNode=u;let b=c.shiftKey?h.previousNode():h.nextNode();b||(h.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=c.shiftKey?h.previousNode():h.nextNode()),c.preventDefault(),b&&nt(b,!0)},s=c=>{(!$e||Ri($e,e))&&Ye(c.target,e.current)?($e=e,n.current=c.target):_r(e)&&!ki(c.target,e)?n.current?n.current.focus():$e&&$e.current&&Fi($e.current):_r(e)&&(n.current=c.target)},l=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&_r(e)&&!ki(i.activeElement,e))if($e=e,i.body.contains(c.target)){var u;n.current=c.target,(u=n.current)===null||u===void 0||u.focus()}else $e.current&&Fi($e.current)})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",l,!1))}},[e,t]),me(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function d0(e){return ki(e)}function Ye(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ki(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Fe.traverse(Fe.getTreeNode(t)))if(n&&Ye(e,n.current))return!0;return!1}function Hx(e){return ki(e,$e)}function Ri(e,t){var n;let r=(n=Fe.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function nt(e,t=!1){if(e!=null&&!t)try{kn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Fi(e,t=!0){let n=e[0].previousElementSibling,r=Dn(e),o=Je(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Dn(e),o=Je(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),nt(i)}function Gx(e,t){const n=B.default.useRef(t);d.useEffect(()=>{if(n.current){$e=e;const r=xe(e.current?e.current[0]:void 0);!Ye(r.activeElement,$e.current)&&e.current&&Fi(e.current)}n.current=!1},[e])}function Wx(e,t,n){me(()=>{if(t||n)return;let r=e.current;const o=xe(r?r[0]:void 0);let i=a=>{let s=a.target;Ye(s,e.current)?$e=e:d0(s)||($e=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function Yx(e){let t=Fe.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function qx(e,t,n){const r=d.useRef(typeof document<"u"?xe(e.current?e.current[0]:void 0).activeElement:null);me(()=>{let o=e.current;const i=xe(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!$e||Ri($e,e))&&Ye(i.activeElement,e.current)&&($e=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),me(()=>{const o=xe(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!_r(e))return;let s=o.activeElement;if(!Ye(s,e.current))return;let l=Fe.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,u=Je(o.body,{tabbable:!0});u.currentNode=s;let f=a.shiftKey?u.previousNode():u.nextNode();if((!c||!o.body.contains(c)||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!f||!Ye(f,e.current))&&c){u.currentNode=c;do f=a.shiftKey?u.previousNode():u.nextNode();while(Ye(f,e.current));a.preventDefault(),a.stopPropagation(),f?nt(f,!0):d0(c)?nt(c,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),me(()=>{const o=xe(e.current?e.current[0]:void 0);if(!t)return;let i=Fe.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=Fe.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(Ye(o.activeElement,e.current)||o.activeElement===o.body&&Yx(e))){let c=Fe.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let u=c.getTreeNode(e);for(;u;){if(u.nodeToRestore&&u.nodeToRestore.isConnected){nt(u.nodeToRestore);return}u=u.parent}for(u=c.getTreeNode(e);u;){if(u.scopeRef&&u.scopeRef.current&&Fe.getTreeNode(u.scopeRef)){Fi(u.scopeRef.current,!0);return}u=u.parent}}})}}}},[e,t])}function Je(e,t,n){let r=t!=null&&t.tabbable?zx:_x,o=xe(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&c0(i)&&(!n||Ye(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function f0(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||xe(r).activeElement,c=Je(r,{tabbable:i,accept:s});r.contains(l)&&(c.currentNode=l);let u=c.nextNode();return!u&&a&&(c.currentNode=r,u=c.nextNode()),u&&nt(u,!0),u},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||xe(r).activeElement,c=Je(r,{tabbable:i,accept:s});if(r.contains(l))c.currentNode=l;else{let f=Ya(c);return f&&nt(f,!0),f??null}let u=c.previousNode();if(!u&&a){c.currentNode=r;let f=Ya(c);if(!f)return null;u=f}return u&&nt(u,!0),u??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=Je(r,{tabbable:o,accept:i}).nextNode();return s&&nt(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=Je(r,{tabbable:o,accept:i}),s=Ya(a);return s&&nt(s,!0),s??null}}}function Ya(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Yl{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new Us({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ye(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Yl;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Us({scopeRef:null}),this.fastMap.set(null,this.root)}}class Us{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Fe=new Yl;function Ze(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||lr()}),[i,a]=d.useState(!1),[s,l]=d.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=d.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=d.useCallback(h=>{o.current.isFocused=h,a(h),c()},[c]);Ix(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:n});let{focusProps:f}=na({isDisabled:r,onFocusChange:u}),{focusWithinProps:p}=br({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}let Zx=B.default.createContext(null);function Xx(e){let t=d.useContext(Zx)||{};zl(t,e);let{ref:n,...r}=t;return r}function mr(e,t){let{focusProps:n}=na(e),{keyboardProps:r}=Hl(e),o=J(n,r),i=Xx(t),a=e.isDisabled?{}:i,s=d.useRef(e.autoFocus);return d.useEffect(()=>{s.current&&t.current&&kn(t.current),s.current=!1},[t]),{focusableProps:J({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function Jx(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=d.useState(!1);return me(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let s=Je(e.current,{tabbable:!0});o(!!s.nextNode())}};i();let a=new MutationObserver(i);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),n?!1:r}var p0=globalThis!=null&&globalThis.document?d.useLayoutEffect:d.useEffect;function Qx(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[c,u]=d.useState("pending");d.useEffect(()=>{u(n?"loading":"pending")},[n]);const f=d.useRef(),p=d.useCallback(()=>{if(!n)return;h();const b=new Image;b.src=n,a&&(b.crossOrigin=a),r&&(b.srcset=r),s&&(b.sizes=s),t&&(b.loading=t),b.onload=g=>{h(),u("loaded"),o==null||o(g)},b.onerror=g=>{h(),u("failed"),i==null||i(g)},f.current=b},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return p0(()=>{if(!l)return c==="loading"&&p(),()=>{h()}},[c,p,l]),l?"loaded":c}function e5(e={}){var t,n,r,o,i;const a=Fp(),s=!!a,{as:l,ref:c,src:u,name:f,icon:p,classNames:h,fallback:b,alt:g=f||"avatar",imgRef:y,color:$=(t=a==null?void 0:a.color)!=null?t:"default",radius:C=(n=a==null?void 0:a.radius)!=null?n:"full",size:w=(r=a==null?void 0:a.size)!=null?r:"md",isBordered:E=(o=a==null?void 0:a.isBordered)!=null?o:!1,isDisabled:P=(i=a==null?void 0:a.isDisabled)!=null?i:!1,isFocusable:k=!1,getInitials:K=I$,ignoreFallback:v=!1,showFallback:V=!1,ImgComponent:F="img",imgProps:A,className:I,onError:R,...L}=e,j=l||"span",O=ks(c),T=ks(y),{isFocusVisible:W,isFocused:q,focusProps:H}=Ze(),{isHovered:D,hoverProps:N}=Ie({isDisabled:P}),Q=Qx({src:u,onError:R,ignoreFallback:v})==="loaded",ee=(!u||!Q)&&V,oe=d.useMemo(()=>{var le;return O3({color:$,radius:C,size:w,isBordered:E,isDisabled:P,isInGroup:s,isInGridGroup:(le=a==null?void 0:a.isGrid)!=null?le:!1})},[$,C,w,E,P,s,a==null?void 0:a.isGrid]),z=sr(h==null?void 0:h.base,I),Z=d.useMemo(()=>k||l==="button",[k,l]),ne=d.useCallback((le={})=>({ref:O,tabIndex:Z?0:-1,"data-hover":St(D),"data-focus":St(q),"data-focus-visible":St(W),className:oe.base({class:sr(z,le==null?void 0:le.className)}),...J(L,N,Z?H:{})}),[Z,oe,z,H,L]),se=d.useCallback((le={})=>({ref:T,src:u,"data-loaded":St(Q),className:oe.img({class:h==null?void 0:h.img}),...J(A,le)}),[oe,Q,A,u,T]);return{Component:j,ImgComponent:F,src:u,alt:g,icon:p,name:f,imgRef:T,slots:oe,classNames:h,fallback:b,isImgLoaded:Q,showFallback:ee,ignoreFallback:v,getInitials:K,getAvatarProps:ne,getImageProps:se}}const t5=Symbol.for("react-aria.i18n.locale"),n5=Symbol.for("react-aria.i18n.strings");let Hn;class In{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=r5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[t5];if(Hn===void 0){let o=window[n5];if(!o)return null;Hn={};for(let i in o)Hn[i]=new In({[n]:o[i]},n)}let r=Hn==null?void 0:Hn[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function r5(e,t,n="en-US"){if(t[e])return t[e];let r=o5(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function o5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const ud=new Map,cd=new Map;class h0{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=ud.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),ud.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=cd.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),cd.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function jt(e,t){return e-t*Math.floor(e/t)}const b0=1721426;function En(e,t,n,r){t=$o(e,t);let o=t-1,i=-2;return n<=2?i=0:rn(t)&&(i=-1),b0-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function rn(e){return e%4===0&&(e%100!==0||e%400===0)}function $o(e,t){return e==="BC"?1-t:t}function oa(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const i5={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class ot{fromJulianDay(t){let n=t,r=n-b0,o=Math.floor(r/146097),i=jt(r,146097),a=Math.floor(i/36524),s=jt(i,36524),l=Math.floor(s/1461),c=jt(s,1461),u=Math.floor(c/365),f=o*400+a*100+l*4+u+(a!==4&&u!==4?1:0),[p,h]=oa(f),b=n-En(p,h,1,1),g=2;n<En(p,h,3,1)?g=0:rn(h)&&(g=1);let y=Math.floor(((b+g)*12+373)/367),$=n-En(p,h,y,1)+1;return new Be(p,h,y,$)}toJulianDay(t){return En(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return i5[rn(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return rn(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function m0(e){return Ot(Date.now(),e)}function a5(e){return w0(m0(e))}function g0(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function v0(e,t){return dd(e)-dd(t)}function dd(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let qa=null;function ql(){return qa==null&&(qa=new Intl.DateTimeFormat().resolvedOptions().timeZone),qa}function s5(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function l5(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function ur(e){e=Qe(e,new ot);let t=$o(e.era,e.year);return y0(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function y0(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function Hs(e,t){if(t==="UTC")return 0;if(e>0&&t===ql())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=$0(e,t);return y0(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}const fd=new Map;function $0(e,t){let n=fd.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),fd.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const pd=864e5;function u5(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>c5(e,t,i))}function c5(e,t,n){let r=$0(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Vt(e,t,n="compatible"){let r=un(e);if(t==="UTC")return ur(r);if(t===ql()&&n==="compatible"){r=Qe(r,new ot);let l=new Date,c=$o(r.era,r.year);return l.setFullYear(c,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=ur(r),i=Hs(o-pd,t),a=Hs(o+pd,t),s=u5(r,t,o-i,o-a);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function x0(e,t,n="compatible"){return new Date(Vt(e,t,n))}function Ot(e,t){let n=Hs(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),c=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new io(o,i,a,t,n,s,l,c,u)}function w0(e){return new Be(e.calendar,e.era,e.year,e.month,e.day)}function un(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new Bi(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function hd(e){return new aa(e.hour,e.minute,e.second,e.millisecond)}function Qe(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Rn(r),r}function C0(e,t,n){if(e instanceof io)return e.timeZone===t?e:f5(e,t);let r=Vt(e,t,n);return Ot(r,t)}function d5(e){let t=ur(e)-e.offset;return new Date(t)}function f5(e,t){let n=ur(e)-e.offset;return Qe(Ot(n,t),e.calendar)}const Br=36e5;function ia(e,t){let n=e.copy(),r="hour"in n?S0(n,t):0;Gs(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Ws(n),D0(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,p5(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,a;let l=(i=(a=n.calendar).isInverseEra)===null||i===void 0?void 0:i.call(a,n);n.year=o,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Gs(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Ws(e){for(;e.month<1;)Gs(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Gs(e,1)}function p5(e){for(;e.day<1;)e.month--,Ws(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Ws(e)}function D0(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Rn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),D0(e)}function Zl(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function E0(e,t){return ia(e,Zl(t))}function Xl(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Rn(n),n}function oo(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),P0(n),n}function h5(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Jo(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Jo(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Jo(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Jo(e.hour,24),t}function P0(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Jo(e,t){let n=e%t;return n<0&&(n+=t),n}function S0(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,h5(e)}function T0(e,t){let n=e.copy();return S0(n,t),n}function b5(e,t){return T0(e,Zl(t))}function Jl(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Nt(l,n,0,s.length-1,r==null?void 0:r.round),o.era=s[l],Rn(o);break}case"year":var i,a;!((i=(a=o.calendar).isInverseEra)===null||i===void 0)&&i.call(a,o)&&(n=-n),o.year=Nt(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=Nt(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=Nt(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Rn(o),o}function Ql(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,a=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=i>=12;a=l?12:0,s=l?23:11}o.hour=Nt(i,n,a,s,r==null?void 0:r.round);break}case"minute":o.minute=Nt(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=Nt(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=Nt(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Nt(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function A0(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=ia(un(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Vt(o,e.timeZone)}else n=ur(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Ot(n,e.timeZone);return Qe(r,e.calendar)}function m5(e,t){return A0(e,Zl(t))}function g5(e,t,n,r){switch(t){case"hour":{let o=0,i=23;if((r==null?void 0:r.hourCycle)===12){let b=e.hour>=12;o=b?12:0,i=b?23:11}let a=un(e),s=Qe(oo(a,{hour:o}),new ot),l=[Vt(s,e.timeZone,"earlier"),Vt(s,e.timeZone,"later")].filter(b=>Ot(b,e.timeZone).day===s.day)[0],c=Qe(oo(a,{hour:i}),new ot),u=[Vt(c,e.timeZone,"earlier"),Vt(c,e.timeZone,"later")].filter(b=>Ot(b,e.timeZone).day===c.day).pop(),f=ur(e)-e.offset,p=Math.floor(f/Br),h=f%Br;return f=Nt(p,n,Math.floor(l/Br),Math.floor(u/Br),r==null?void 0:r.round)*Br+h,Qe(Ot(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Ql(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Jl(un(e),t,n,r),i=Vt(o,e.timeZone);return Qe(Ot(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function v5(e,t,n){let r=un(e),o=oo(Xl(r,t),t);if(o.compare(r)===0)return e;let i=Vt(o,e.timeZone,n);return Qe(Ot(i,e.timeZone),e.calendar)}function M0(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function k0(e){let t=Qe(e,new ot);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function R0(e){return`${k0(e)}T${M0(e)}`}function y5(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function $5(e){return`${R0(e)}${y5(e.offset)}[${e.timeZone}]`}function eu(e){let t=typeof e[0]=="object"?e.shift():new ot,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var x5=new WeakMap;class Be{copy(){return this.era?new Be(this.calendar,this.era,this.year,this.month,this.day):new Be(this.calendar,this.year,this.month,this.day)}add(t){return ia(this,t)}subtract(t){return E0(this,t)}set(t){return Xl(this,t)}cycle(t,n,r){return Jl(this,t,n,r)}toDate(t){return x0(this,t)}toString(){return k0(this)}compare(t){return g0(this,t)}constructor(...t){yo(this,x5,{writable:!0,value:void 0});let[n,r,o,i,a]=eu(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,Rn(this)}}var w5=new WeakMap;class aa{copy(){return new aa(this.hour,this.minute,this.second,this.millisecond)}add(t){return T0(this,t)}subtract(t){return b5(this,t)}set(t){return oo(this,t)}cycle(t,n,r){return Ql(this,t,n,r)}toString(){return M0(this)}compare(t){return v0(this,t)}constructor(t=0,n=0,r=0,o=0){yo(this,w5,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,P0(this)}}var C5=new WeakMap;class Bi{copy(){return this.era?new Bi(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Bi(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ia(this,t)}subtract(t){return E0(this,t)}set(t){return Xl(oo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Jl(this,t,n,r);default:return Ql(this,t,n,r)}}toDate(t,n){return x0(this,t,n)}toString(){return R0(this)}compare(t){let n=g0(this,t);return n===0?v0(this,un(t)):n}constructor(...t){yo(this,C5,{writable:!0,value:void 0});let[n,r,o,i,a]=eu(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Rn(this)}}var D5=new WeakMap;class io{copy(){return this.era?new io(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new io(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return A0(this,t)}subtract(t){return m5(this,t)}set(t,n){return v5(this,t,n)}cycle(t,n,r){return g5(this,t,n,r)}toDate(){return d5(this)}toString(){return $5(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-C0(t,this.timeZone).toDate().getTime()}constructor(...t){yo(this,D5,{writable:!0,value:void 0});let[n,r,o,i,a]=eu(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Rn(this)}}const or=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],E5=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],pi=[1867,1911,1925,1988,2018],tn=["meiji","taisho","showa","heisei","reiwa"];function bd(e){const t=or.findIndex(([n,r,o])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<o);return t===-1?or.length-1:t===0?0:t-1}function Za(e){let t=pi[tn.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Be(e.year+t,e.month,e.day)}class P5 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=bd(n);return new Be(this,tn[r],n.year-pi[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Za(t))}balanceDate(t){let n=Za(t),r=bd(n);tn[r]!==t.era&&(t.era=tn[r],t.year=n.year-pi[r]),this.constrainDate(t)}constrainDate(t){let n=tn.indexOf(t.era),r=E5[n];if(r!=null){let[o,i,a]=r,s=o-pi[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,o,i]=or[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(i,t.day))}}getEras(){return tn}getYearsInEra(t){let n=tn.indexOf(t.era),r=or[n],o=or[n+1];if(o==null)return 9999-r[0]+1;let i=o[0]-r[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(Za(t))}getMinimumMonthInYear(t){let n=md(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=md(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function md(e){if(e.year===1){let t=tn.indexOf(e.era);return or[t]}}const F0=-543;class S5 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=$o(n.era,n.year);return new Be(this,r-F0,n.month,n.day)}toJulianDay(t){return super.toJulianDay(gd(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(gd(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function gd(e){let[t,n]=oa(e.year+F0);return new Be(t,n,e.month,e.day)}const Ii=1911;function B0(e){return e.era==="minguo"?e.year+Ii:1-e.year+Ii}function vd(e){let t=e-Ii;return t>0?["minguo",t]:["before_minguo",1-t]}class T5 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=$o(n.era,n.year),[o,i]=vd(r);return new Be(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(yd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=vd(B0(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(yd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Ii}constructor(...t){super(...t),this.identifier="roc"}}function yd(e){let[t,n]=oa(B0(e));return new Be(t,n,e.month,e.day)}const A5=1948321;function M5(e){let t=e>0?e-474:e-473,n=jt(t,2820)+474;return jt((n+38)*31,128)<31}function Qo(e,t,n){let r=e>0?e-474:e-473,o=jt(r,2820)+474,i=t<=7?31*(t-1):30*(t-1)+6;return A5-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+n}class k5{fromJulianDay(t){let n=t-Qo(475,1,1),r=Math.floor(n/1029983),o=jt(n,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),a=474+2820*r+i;a<=0&&a--;let s=t-Qo(a,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),c=t-Qo(a,l,1)+1;return new Be(this,a,l,c)}toJulianDay(t){return Qo(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||M5(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Xa=78,$d=80;class R5 extends ot{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Xa,o=t-En(n.era,n.year,1,1),i;o<$d?(r--,i=rn(n.year-1)?31:30,o+=i+155+90+10):(i=rn(n.year)?31:30,o-=$d);let a,s;if(o<i)a=1,s=o+1;else{let l=o-i;l<155?(a=Math.floor(l/31)+2,s=l%31+1):(l-=155,a=Math.floor(l/30)+7,s=l%30+1)}return new Be(this,r,a,s)}toJulianDay(t){let n=t.year+Xa,[r,o]=oa(n),i,a;return rn(o)?(i=31,a=En(r,o,3,21)):(i=30,a=En(r,o,3,22)),t.month===1?a+t.day-1:(a+=i+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&rn(t.year+Xa)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Li=1948440,xd=1948439,dt=1300,Gn=1600,F5=460322;function Vi(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function I0(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+Vi(t,r,1,1)))/29.5)+1),i=n-Vi(t,r,o,1)+1;return new Be(e,r,o,i)}function wd(e){return(14+11*e)%30<11}class tu{fromJulianDay(t){return I0(this,Li,t)}toJulianDay(t){return Vi(Li,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&wd(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return wd(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class B5 extends tu{fromJulianDay(t){return I0(this,xd,t)}toJulianDay(t){return Vi(xd,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const I5="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Ys,ir;function hi(e){return F5+ir[e-dt]}function zr(e,t){let n=e-dt,r=1<<11-(t-1);return Ys[n]&r?30:29}function Cd(e,t){let n=hi(e);for(let r=1;r<t;r++)n+=zr(e,r);return n}function Dd(e){return ir[e+1-dt]-ir[e-dt]}class L5 extends tu{fromJulianDay(t){let n=t-Li,r=hi(dt),o=hi(Gn);if(n<r||n>o)return super.fromJulianDay(t);{let i=dt-1,a=1,s=1;for(;s>0;){i++,s=n-hi(i)+1;let l=Dd(i);if(s===l){a=12;break}else if(s<l){let c=zr(i,a);for(a=1;s>c;)s-=c,a++,c=zr(i,a);break}}return new Be(this,i,a,n-Cd(i,a)+1)}}toJulianDay(t){return t.year<dt||t.year>Gn?super.toJulianDay(t):Li+Cd(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<dt||t.year>Gn?super.getDaysInMonth(t):zr(t.year,t.month)}getDaysInYear(t){return t.year<dt||t.year>Gn?super.getDaysInYear(t):Dd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Ys||(Ys=new Uint16Array(Uint8Array.from(atob(I5),t=>t.charCodeAt(0)).buffer)),!ir){ir=new Uint32Array(Gn-dt+1);let t=0;for(let n=dt;n<=Gn;n++){ir[n-dt]=t;for(let r=1;r<=12;r++)t+=zr(n,r)}}}}const Ed=347997,L0=1080,V0=24*L0,V5=29,O5=12*L0+793,N5=V5*V0+O5;function xn(e){return jt(e*7+1,19)<7}function bi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return jt(3*(r+1),7)<3&&(r+=1),r}function K5(e){let t=bi(e-1),n=bi(e);return bi(e+1)-n===356?2:n-t===382?1:0}function Wr(e){return bi(e)+K5(e)}function O0(e){return Wr(e+1)-Wr(e)}function j5(e){let t=O0(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function ei(e,t){if(t>=6&&!xn(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=j5(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?xn(e)?30:0:30}class _5{fromJulianDay(t){let n=t-Ed,r=n*V0/N5,o=Math.floor((19*r+234)/235)+1,i=Wr(o),a=Math.floor(n-i);for(;a<1;)o--,i=Wr(o),a=Math.floor(n-i);let s=1,l=0;for(;l<a;)l+=ei(o,s),s++;s--,l-=ei(o,s);let c=a-l;return new Be(this,o,s,c)}toJulianDay(t){let n=Wr(t.year);for(let r=1;r<t.month;r++)n+=ei(t.year,r);return n+t.day+Ed}getDaysInMonth(t){return ei(t.year,t.month)}getMonthsInYear(t){return xn(t.year)?13:12}getDaysInYear(t){return O0(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(xn(n.year)&&!xn(t.year)&&n.month>6?t.month--:!xn(n.year)&&xn(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const qs=1723856,Pd=1824665,Zs=5500;function Oi(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function nu(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Oi(e,n,1,1))/30),o=t+1-Oi(e,n,r,1);return[n,r,o]}function N0(e){return Math.floor(e%4/3)}function K0(e,t){return t%13!==0?30:N0(e)+5}class ru{fromJulianDay(t){let[n,r,o]=nu(qs,t),i="AM";return n<=0&&(i="AA",n+=Zs),new Be(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Zs),Oi(qs,n,t.month,t.day)}getDaysInMonth(t){return K0(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+N0(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class z5 extends ru{fromJulianDay(t){let[n,r,o]=nu(qs,t);return n+=Zs,new Be(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class U5 extends ru{fromJulianDay(t){let[n,r,o]=nu(Pd,t),i="CE";return n<=0&&(i="BCE",n=1-n),new Be(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Oi(Pd,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),K0(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function j0(e){switch(e){case"buddhist":return new S5;case"ethiopic":return new ru;case"ethioaa":return new z5;case"coptic":return new U5;case"hebrew":return new _5;case"indian":return new R5;case"islamic-civil":return new tu;case"islamic-tbla":return new B5;case"islamic-umalqura":return new L5;case"japanese":return new P5;case"persian":return new k5;case"roc":return new T5;case"gregory":default:return new ot}}let Ja=new Map;class Yr{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return W5()&&(this.resolvedHourCycle||(this.resolvedHourCycle=Y5(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=_0(t,n),this.options=n}}const H5={true:{ja:"h11"},false:{}};function _0(e,t={}){if(typeof t.hour12=="boolean"&&G5()){t={...t};let o=H5[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=o??i,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Ja.has(n))return Ja.get(n);let r=new Intl.DateTimeFormat(e,t);return Ja.set(n,r),r}let Qa=null;function G5(){return Qa==null&&(Qa=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Qa}let es=null;function W5(){return es==null&&(es=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),es}function Y5(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=_0(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&o===23)return"h23";if(r===24&&o===23)return"h24";if(r===0&&o===11)return"h11";if(r===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}let ts=new Map,Xs=!1;try{Xs=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ni=!1;try{Ni=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const z0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Ki{format(t){let n="";if(!Xs&&this.options.signDisplay!=null?n=Z5(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Ni){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=z0[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Xs&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Ni&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=q5(t,n),this.options=n}}function q5(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Ni){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=z0[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(ts.has(o))return ts.get(o);let i=new Intl.NumberFormat(e,t);return ts.set(o,i),i}function Z5(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}const X5=new RegExp("^.*\\(.*\\).*$"),J5=["latn","arab","hanidec"];class ou{parse(t){return ns(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ns(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ns(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Sd=new Map;function ns(e,t,n){let r=Td(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of J5)if(o!==r.options.numberingSystem){let i=Td(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Td(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=Sd.get(n);return r||(r=new Q5(e,t),Sd.set(n,r)),r}class Q5{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=ti(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let i=n.indexOf(".");i===-1&&(i=n.length),n=n.replace(".",""),i-2===0?n=`0.${n}`:i-2===-1?n=`0.0${n}`:i-2===-2?n="0.00":n=`${n.slice(0,i-2)}.${n.slice(i-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new ou(this.locale,o).parse(new Ki(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&X5.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(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(t=ti(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=ti(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<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=ti(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=t2(t,this.formatter,this.options,n);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 Ad=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),e2=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function t2(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),f=e2.map(F=>l.formatToParts(F));var p;let h=(p=(o=c.find(F=>F.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",b=(i=u.find(F=>F.type==="plusSign"))===null||i===void 0?void 0:i.value;!b&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(b="+");let y=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(F=>F.type==="decimal"))===null||a===void 0?void 0:a.value,$=(s=c.find(F=>F.type==="group"))===null||s===void 0?void 0:s.value,C=c.filter(F=>!Ad.has(F.type)).map(F=>Md(F.value)),w=f.flatMap(F=>F.filter(A=>!Ad.has(A.type)).map(A=>Md(A.value))),E=[...new Set([...C,...w])].sort((F,A)=>A.length-F.length),P=E.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${E.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),K=new Map(k.map((F,A)=>[F,A])),v=new RegExp(`[${k.join("")}]`,"g");return{minusSign:h,plusSign:b,decimal:y,group:$,literals:P,numeral:v,index:F=>String(K.get(F))}}function ti(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Md(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const n2=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),r2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function o2(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return n2.has(n.script)}let t=e.split("-")[0];return r2.has(t)}const i2=Symbol.for("react-aria.i18n.locale");function U0(){let e=typeof window<"u"&&window[i2]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:o2(e)?"rtl":"ltr"}}let Js=U0(),Ur=new Set;function kd(){Js=U0();for(let e of Ur)e(Js)}function a2(){let e=kt(),[t,n]=d.useState(Js);return d.useEffect(()=>(Ur.size===0&&window.addEventListener("languagechange",kd),Ur.add(n),()=>{Ur.delete(n),Ur.size===0&&window.removeEventListener("languagechange",kd)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const s2=B.default.createContext(null);function Ne(){let e=a2();return d.useContext(s2)||e}const Rd=new WeakMap;function l2(e){let t=Rd.get(e);return t||(t=new In(e),Rd.set(e,t)),t}function H0(e,t){return t&&In.getGlobalDictionaryForPackage(t)||l2(e)}function gr(e,t){let{locale:n}=Ne(),r=H0(e,t);return d.useMemo(()=>new h0(n,r),[n,r])}function ni(e){e=mx(e??{},u2);let{locale:t}=Ne();return d.useMemo(()=>new Yr(t,e),[t,e])}function u2(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function ji(e={}){let{locale:t}=Ne();return d.useMemo(()=>new Ki(t,e),[t,e])}let rs=new Map;function iu(e){let{locale:t}=Ne(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(rs.has(n))return rs.get(n);let r=new Intl.Collator(t,e);return rs.set(n,r),r}function G0(e){let t=iu({usage:"search",...e}),n=d.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(0,a.length),a)===0),[t]),r=d.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(-a.length),a)===0),[t]),o=d.useCallback((i,a)=>{if(a.length===0)return!0;i=i.normalize("NFC"),a=a.normalize("NFC");let s=0,l=a.length;for(;s+l<=i.length;s++){let c=i.slice(s,s+l);if(t.compare(a,c)===0)return!0}return!1},[t]);return d.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var W0={};W0={dismiss:"تجاهل"};var Y0={};Y0={dismiss:"Отхвърляне"};var q0={};q0={dismiss:"Odstranit"};var Z0={};Z0={dismiss:"Luk"};var X0={};X0={dismiss:"Schließen"};var J0={};J0={dismiss:"Απόρριψη"};var Q0={};Q0={dismiss:"Dismiss"};var eh={};eh={dismiss:"Descartar"};var th={};th={dismiss:"Lõpeta"};var nh={};nh={dismiss:"Hylkää"};var rh={};rh={dismiss:"Rejeter"};var oh={};oh={dismiss:"התעלם"};var ih={};ih={dismiss:"Odbaci"};var ah={};ah={dismiss:"Elutasítás"};var sh={};sh={dismiss:"Ignora"};var lh={};lh={dismiss:"閉じる"};var uh={};uh={dismiss:"무시"};var ch={};ch={dismiss:"Atmesti"};var dh={};dh={dismiss:"Nerādīt"};var fh={};fh={dismiss:"Lukk"};var ph={};ph={dismiss:"Negeren"};var hh={};hh={dismiss:"Zignoruj"};var bh={};bh={dismiss:"Descartar"};var mh={};mh={dismiss:"Dispensar"};var gh={};gh={dismiss:"Revocare"};var vh={};vh={dismiss:"Пропустить"};var yh={};yh={dismiss:"Zrušiť"};var $h={};$h={dismiss:"Opusti"};var xh={};xh={dismiss:"Odbaci"};var wh={};wh={dismiss:"Avvisa"};var Ch={};Ch={dismiss:"Kapat"};var Dh={};Dh={dismiss:"Скасувати"};var Eh={};Eh={dismiss:"取消"};var Ph={};Ph={dismiss:"關閉"};const Fd={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function c2(e={}){let{style:t,isFocusable:n}=e,[r,o]=d.useState(!1),{focusWithinProps:i}=br({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=d.useMemo(()=>r?t:t?{...Fd,...t}:Fd,[r]);return{visuallyHiddenProps:{...i,style:a}}}function sa(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=c2(e);return B.default.createElement(n,J(i,a),t)}function d2(e){return e&&e.__esModule?e.default:e}const Jn={top:"top",bottom:"top",left:"left",right:"left"},_i={top:"bottom",bottom:"top",left:"right",right:"left"},f2={top:"left",left:"top"},Qs={top:"height",left:"width"},Sh={width:"totalWidth",height:"totalHeight"},ri={};let et=typeof document<"u"&&window.visualViewport;function Bd(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={},l=(et==null?void 0:et.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var c;t=(c=et==null?void 0:et.width)!==null&&c!==void 0?c:r;var u;n=(u=et==null?void 0:et.height)!==null&&u!==void 0?u:o,s.top=f.scrollTop||e.scrollTop,s.left=f.scrollLeft||e.scrollLeft,et&&(i=et.offsetTop,a=et.offsetLeft)}else({width:t,height:n,top:i,left:a}=ar(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return Kl()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(s.top=0,s.left=0,i=et.pageTop,a=et.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function p2(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Id(e,t,n,r,o,i,a){let s=o.scroll[e],l=r[Qs[e]],c=r.scroll[Jn[e]]+i,u=l+r.scroll[Jn[e]]-i,f=t-s+a[e]-r[Jn[e]],p=t-s+n+a[e]-r[Jn[e]];return f<c?c-f:p>u?Math.max(u-p,c-f):0}function h2(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Ld(e){if(ri[e])return ri[e];let[t,n]=e.split(" "),r=Jn[t]||"right",o=f2[r];Jn[n]||(n="center");let i=Qs[r],a=Qs[o];return ri[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},ri[e]}function os(e,t,n,r,o,i,a,s,l,c){let{placement:u,crossPlacement:f,axis:p,crossAxis:h,size:b,crossSize:g}=r,y={};y[h]=e[h],f==="center"?y[h]+=(e[g]-n[g])/2:f!==h&&(y[h]+=e[g]-n[g]),y[h]+=i;const $=e[h]-n[g]+l+c,C=e[h]+e[g]-l-c;if(y[h]=bt(y[h],$,C),u===p){const w=s?a[b]:t[Sh[b]];y[_i[p]]=Math.floor(w-e[p]+o)}else y[p]=Math.floor(e[p]+e[b]+o);return y}function b2(e,t,n,r,o,i,a,s){const l=r?n.height:t[Sh.height];let c=e.top!=null?n.top+e.top:n.top+(l-e.bottom-a),u=s!=="top"?Math.max(0,t.height+t.top+t.scroll.top-c-(o.top+o.bottom+i)):Math.max(0,c+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,u)}function Vd(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[_i[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[_i[s]]-o)}function m2(e,t,n,r,o,i,a,s,l,c,u,f,p,h,b,g){let y=Ld(e),{size:$,crossAxis:C,crossSize:w,placement:E,crossPlacement:P}=y,k=os(t,s,n,y,u,f,c,p,b,g),K=u,v=Vd(s,c,t,o,i+u,y);if(a&&r[$]>v){let q=Ld(`${_i[E]} ${P}`),H=os(t,s,n,q,u,f,c,p,b,g);Vd(s,c,t,o,i+u,q)>v&&(y=q,k=H,K=u)}let V="bottom";y.axis==="top"?y.placement==="top"?V="top":y.placement==="bottom"&&(V="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?V="bottom":y.crossPlacement==="bottom"&&(V="top"));let F=Id(C,k[C],n[w],s,l,i,c);k[C]+=F;let A=b2(k,s,c,p,o,i,n.height,V);h&&h<A&&(A=h),n.height=Math.min(n.height,A),k=os(t,s,n,y,K,f,c,p,b,g),F=Id(C,k[C],n[w],s,l,i,c),k[C]+=F;let I={},R=t[C]+.5*t[w]-n[C];const L=b/2+g,j=n[w]-b/2-g,O=t[C]-n[C]+b/2,T=t[C]+t[w]-n[C]-b/2,W=bt(R,O,T);return I[C]=bt(W,L,j),{position:k,maxHeight:A,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:y.placement}}function g2(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,maxHeight:u,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,h=r instanceof HTMLElement?v2(r):document.documentElement,b=h===document.documentElement;const g=window.getComputedStyle(h).position;let y=!!g&&g!=="static",$=b?ar(n):Od(n,h);if(!b){let{marginTop:v,marginLeft:V}=window.getComputedStyle(n);$.top+=parseInt(v,10)||0,$.left+=parseInt(V,10)||0}let C=ar(r),w=h2(r);C.width+=w.left+w.right,C.height+=w.top+w.bottom;let E=p2(o),P=Bd(s),k=Bd(h),K=s.tagName==="BODY"?ar(h):Od(h,s);return h.tagName==="HTML"&&s.tagName==="BODY"&&(k.scroll.top=0,k.scroll.left=0),m2(t,$,C,E,w,i,a,P,k,K,l,c,y,u,f,p)}function ar(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:n+a-l,width:r,height:o}}function Od(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:i,width:a,height:s}=e.getBoundingClientRect();r={top:o,left:i,width:a,height:s}}else{r=ar(e);let o=ar(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function v2(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Nd(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Nd(t);)t=t.parentElement;return t||document.documentElement}function Nd(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Th=new WeakMap;function y2(e){let{triggerRef:t,isOpen:n,onClose:r}=e;d.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current))return;let s=r||Th.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Me=typeof document<"u"&&window.visualViewport;function Ah(e){let{direction:t}=Ne(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:u=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:b,maxHeight:g,arrowBoundaryOffset:y=0}=e,[$,C]=d.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),w=[p,a,o.current,r.current,i.current,s,l,c,u,f,h,t,g,y,n],E=d.useRef(Me==null?void 0:Me.scale);d.useEffect(()=>{h&&(E.current=Me==null?void 0:Me.scale)},[h]);let P=d.useCallback(()=>{if(p===!1||!h||!o.current||!r.current||!i.current||!c||(Me==null?void 0:Me.scale)!==E.current)return;!g&&o.current&&(o.current.style.maxHeight="none");let v=g2({placement:x2(a,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:l,boundaryElement:c,offset:u,crossOffset:f,maxHeight:g,arrowSize:n,arrowBoundaryOffset:y});Object.keys(v.position).forEach(V=>o.current.style[V]=v.position[V]+"px"),o.current.style.maxHeight=v.maxHeight!=null?v.maxHeight+"px":void 0,C(v)},w);me(P,w),$2(P),_l({ref:o,onResize:P});let k=d.useRef(!1);me(()=>{let v,V=()=>{k.current=!0,clearTimeout(v),v=setTimeout(()=>{k.current=!1},500),P()},F=()=>{k.current&&V()};return Me==null||Me.addEventListener("resize",V),Me==null||Me.addEventListener("scroll",F),()=>{Me==null||Me.removeEventListener("resize",V),Me==null||Me.removeEventListener("scroll",F)}},[P]);let K=d.useCallback(()=>{k.current||b()},[b,k]);return y2({triggerRef:r,isOpen:h,onClose:b&&K}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...$.position,maxHeight:$.maxHeight}},placement:$.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$.arrowOffsetLeft,top:$.arrowOffsetTop}},updatePosition:P}}function $2(e){me(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function x2(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Bt=[];function au(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;d.useEffect(()=>(o&&Bt.push(t),()=>{let b=Bt.indexOf(t);b>=0&&Bt.splice(b,1)}),[o,t]);let l=()=>{Bt[Bt.length-1]===t&&n&&n()},c=b=>{(!s||s(b.target))&&Bt[Bt.length-1]===t&&(b.stopPropagation(),b.preventDefault())},u=b=>{(!s||s(b.target))&&(Bt[Bt.length-1]===t&&(b.stopPropagation(),b.preventDefault()),l())},f=b=>{b.key==="Escape"&&!a&&(b.stopPropagation(),b.preventDefault(),l())};s0({ref:t,onInteractOutside:i&&o?u:null,onInteractOutsideStart:c});let{focusWithinProps:p}=br({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||Hx(b.relatedTarget)||(!s||s(b.relatedTarget))&&n()}}),h=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:h}}}function w2(e,t,n){let{type:r}=e,{isOpen:o}=t;d.useEffect(()=>{n&&n.current&&Th.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=Ue();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:null,onPress:t.toggle},overlayProps:{id:a}}}const is=typeof document<"u"&&window.visualViewport,C2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let oi=0,as;function Mh(e={}){let{isDisabled:t}=e;me(()=>{if(!t)return oi++,oi===1&&(pr()?as=E2():as=D2()),()=>{oi--,oi===0&&as()}},[t])}function D2(){return sn(Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"))}function E2(){let e,t,n=c=>{e=to(c.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qn(e,"overscrollBehavior","contain"))},r=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()},o=c=>{let u=c.target;jd(u)&&u!==document.activeElement&&(c.preventDefault(),s(),u.style.transform="translateY(-2000px)",u.focus(),requestAnimationFrame(()=>{u.style.transform=""})),t&&t()},i=c=>{let u=c.target;jd(u)&&(s(),u.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{u.style.transform="",is&&(is.height<window.innerHeight?requestAnimationFrame(()=>{Kd(u)}):is.addEventListener("resize",()=>Kd(u),{once:!0}))}))},a=null,s=()=>{if(a)return;let c=()=>{window.scrollTo(0,0)},u=window.pageXOffset,f=window.pageYOffset;a=sn(Ir(window,"scroll",c),Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"),Qn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(u,f)}),window.scrollTo(0,0)},l=sn(Ir(document,"touchstart",n,{passive:!1,capture:!0}),Ir(document,"touchmove",r,{passive:!1,capture:!0}),Ir(document,"touchend",o,{passive:!1,capture:!0}),Ir(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function Qn(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ir(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Kd(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=to(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function jd(e){return e instanceof HTMLInputElement&&!C2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const el=B.default.createContext(null);function P2(e){let{children:t}=e,n=d.useContext(el),[r,o]=d.useState(0),i=d.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return B.default.createElement(el.Provider,{value:i},t)}function S2(){let e=d.useContext(el);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function T2(e){let{modalProviderProps:t}=S2();return B.default.createElement("div",{"data-overlay-container":!0,...e,...t})}function A2(e){return B.default.createElement(P2,null,B.default.createElement(T2,e))}function _d(e){let t=kt(),{portalContainer:n=t?null:document.body,...r}=e;if(B.default.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=B.default.createElement(A2,r);return mo.default.createPortal(o,n)}var kh={};kh={"ar-AE":W0,"bg-BG":Y0,"cs-CZ":q0,"da-DK":Z0,"de-DE":X0,"el-GR":J0,"en-US":Q0,"es-ES":eh,"et-EE":th,"fi-FI":nh,"fr-FR":rh,"he-IL":oh,"hr-HR":ih,"hu-HU":ah,"it-IT":sh,"ja-JP":lh,"ko-KR":uh,"lt-LT":ch,"lv-LV":dh,"nb-NO":fh,"nl-NL":ph,"pl-PL":hh,"pt-BR":bh,"pt-PT":mh,"ro-RO":gh,"ru-RU":vh,"sk-SK":yh,"sl-SI":$h,"sr-SP":xh,"sv-SE":wh,"tr-TR":Ch,"uk-UA":Dh,"zh-CN":Eh,"zh-TW":Ph};function tl(e){let{onDismiss:t,...n}=e,r=gr(d2(kh),"@react-aria/overlays"),o=An(n,r.format("dismiss")),i=()=>{t&&t()};return B.default.createElement(sa,null,B.default.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Lr=new WeakMap,at=[];function su(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let c=p=>{if(n.has(p)||r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(l);if(f===NodeFilter.FILTER_ACCEPT&&i(l),f!==NodeFilter.FILTER_REJECT){let p=u.nextNode();for(;p!=null;)i(p),p=u.nextNode()}},i=l=>{var c;let u=(c=Lr.get(l))!==null&&c!==void 0?c:0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),r.add(l),Lr.set(l,u+1))};at.length&&at[at.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(u=>u.contains(c.target))){for(let u of c.removedNodes)u instanceof Element&&(n.delete(u),r.delete(u));for(let u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?n.add(u):u instanceof Element&&o(u)}});a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return at.push(s),()=>{a.disconnect();for(let l of r){let c=Lr.get(l);c===1?(l.removeAttribute("aria-hidden"),Lr.delete(l)):Lr.set(l,c-1)}s===at[at.length-1]?(at.pop(),at.length&&at[at.length-1].observe()):at.splice(at.indexOf(s),1)}}function M2(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:c}=au({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:u,arrowProps:f,placement:p}=Ah({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Mh({isDisabled:o||!t.isOpen}),me(()=>{if(t.isOpen&&!o&&r.current)return su([r.current])},[o,t.isOpen,r]),{popoverProps:J(l,u),arrowProps:f,underlayProps:c,placement:p}}const Rh=B.default.createContext(null);function Fh(e){let t=kt(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=d.useState(!1),a=d.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=B.default.createElement(Gl,{restoreFocus:!0,contain:o&&!r},s)),s=B.default.createElement(Rh.Provider,{value:a},B.default.createElement(Sx,null,s)),mo.default.createPortal(s,n)}function Bh(){let e=d.useContext(Rh),t=e==null?void 0:e.setContain;me(()=>{t==null||t(!0)},[t])}function k2(e,t,n){let{overlayProps:r,underlayProps:o}=au({...e,isOpen:t.isOpen,onClose:t.close},n);return Mh({isDisabled:!t.isOpen}),Bh(),d.useEffect(()=>{if(t.isOpen)return su([n.current])},[t.isOpen,n]),{modalProps:J(r),underlayProps:o}}function la(e){return d.forwardRef(e)}var Ih=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,a)=>({...i,[a]:e[a]}),{}),r]:[e,r]},Lh=la((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=S.jsx(R$,{}),alt:a,classNames:s,slots:l,name:c,showFallback:u,fallback:f,getInitials:p,getAvatarProps:h,getImageProps:b}=e5({...e,ref:t}),g=d.useMemo(()=>!u&&o?null:f?S.jsx("div",{"aria-label":a,className:l.fallback({class:s==null?void 0:s.fallback}),role:"img",children:f}):c?S.jsx("span",{"aria-label":a,className:l.name({class:s==null?void 0:s.name}),role:"img",children:p(c)}):S.jsx("span",{"aria-label":a,className:l.icon({class:s==null?void 0:s.icon}),role:"img",children:i}),[u,o,f,c,s]);return S.jsxs(n,{...h(),children:[o&&S.jsx(r,{...b(),alt:a}),g]})});Lh.displayName="NextUI.Avatar";var Vh=Lh;function R2(e={}){const{as:t,ref:n,max:r=5,total:o,size:i,color:a,radius:s,children:l,isBordered:c,isDisabled:u,isGrid:f,renderCount:p,className:h,classNames:b,...g}=e,y=ks(n),$=t||"div",C=d.useMemo(()=>({size:i,color:a,radius:s,isGrid:f,isBordered:c,isDisabled:u}),[i,a,s,f,c,u]),w=d.useMemo(()=>N3({className:h,isGrid:f}),[h,f]),E=Z$(l),P=r?E.slice(0,r):E,k=o||(r!=null?E.length-r:-1),K=P.map((F,A)=>{const I=A===0,R=A===P.length-1,L={className:sr(I?"ms-0":f?"":"-ms-2",R&&k<1?"hover:-translate-x-0":"")};return d.cloneElement(F,O$(L))});return{Component:$,context:C,remainingCount:k,clones:K,renderCount:p,getAvatarGroupProps:()=>({ref:y,className:w.base({class:sr(b==null?void 0:b.base,h)}),role:"group",...g}),getAvatarGroupCountProps:()=>({className:w.count({class:b==null?void 0:b.count})})}}var Oh=la((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:i,getAvatarGroupCountProps:a,getAvatarGroupProps:s,renderCount:l=c=>S.jsx(Vh,{...a(),name:`+${c}`})}=R2({...e,ref:t});return S.jsx(n,{...s(),children:S.jsxs(X$,{value:o,children:[r,i>0&&l(i)]})})});Oh.displayName="NextUI.AvatarGroup";var F2=Oh;const x={fontFamily:{sans:["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"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],monospace:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},borderRadius:{.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{primary:"#4785ff",secondary:"#b8cfff",tertiary:"#d6e4ff",background:"#f0f5ff",inherit:"inherit",current:"currentColor",transparent:"transparent",black:"rgb(0 0 0)",white:"rgb(255 255 255)",slate:{50:"rgb(248 250 252)",100:"rgb(241 245 249)",200:"rgb(226 232 240)",300:"rgb(203 213 225)",400:"rgb(148 163 184)",500:"rgb(100 116 139)",600:"rgb(71 85 105)",700:"rgb(51 65 85)",800:"rgb(30 41 59)",900:"rgb(15 23 42)"},gray:{50:"rgb(249 250 251)",100:"rgb(243 244 246)",200:"rgb(229 231 235)",300:"rgb(209 213 219)",400:"rgb(156 163 175)",500:"rgb(107 114 128)",600:"rgb(75 85 99)",700:"rgb(55 65 81)",800:"rgb(31 41 55)",900:"rgb(17 24 39)"},zinc:{50:"rgb(250 250 250)",100:"rgb(244 244 245)",200:"rgb(228 228 231)",300:"rgb(212 212 216)",400:"rgb(161 161 170)",500:"rgb(113 113 122)",600:"rgb(82 82 91)",700:"rgb(63 63 70)",800:"rgb(39 39 42)",900:"rgb(24 24 27)"},neutral:{50:"rgb(250 250 250)",100:"rgb(245 245 245)",200:"rgb(229 229 229)",300:"rgb(212 212 212)",400:"rgb(163 163 163)",500:"rgb(115 115 115)",600:"rgb(82 82 82)",700:"rgb(64 64 64)",800:"rgb(38 38 38)",900:"rgb(23 23 23)"},stone:{50:"rgb(250 250 249)",100:"rgb(245 245 244)",200:"rgb(231 229 228)",300:"rgb(214 211 209)",400:"rgb(168 162 158)",500:"rgb(120 113 108)",600:"rgb(87 83 78)",700:"rgb(68 64 60)",800:"rgb(41 37 36)",900:"rgb(28 25 23)"},red:{50:"rgb(254 242 242)",100:"rgb(254 226 226)",200:"rgb(254 202 202)",300:"rgb(252 165 165)",400:"rgb(248 113 113)",500:"rgb(239 68 68)",600:"rgb(220 38 38)",700:"rgb(185 28 28)",800:"rgb(153 27 27)",900:"rgb(127 29 29)"},orange:{50:"rgb(255 247 237)",100:"rgb(255 237 213)",200:"rgb(254 215 170)",300:"rgb(253 186 116)",400:"rgb(251 146 60)",500:"rgb(249 115 22)",600:"rgb(234 88 12)",700:"rgb(194 65 12)",800:"rgb(154 52 18)",900:"rgb(124 45 18)"},amber:{50:"rgb(255 251 235)",100:"rgb(254 243 199)",200:"rgb(253 230 138)",300:"rgb(252 211 77)",400:"rgb(251 191 36)",500:"rgb(245 158 11)",600:"rgb(217 119 6)",700:"rgb(180 83 9)",800:"rgb(146 64 14)",900:"rgb(120 53 15)"},yellow:{50:"rgb(254 252 232)",100:"rgb(254 249 195)",200:"rgb(254 240 138)",300:"rgb(253 224 71)",400:"rgb(250 204 21)",500:"rgb(234 179 8)",600:"rgb(202 138 4)",700:"rgb(161 98 7)",800:"rgb(133 77 14)",900:"rgb(113 63 18)"},lime:{50:"rgb(247 254 231)",100:"rgb(236 252 203)",200:"rgb(217 249 157)",300:"rgb(190 242 100)",400:"rgb(163 230 53)",500:"rgb(132 204 22)",600:"rgb(101 163 13)",700:"rgb(77 124 15)",800:"rgb(63 98 18)",900:"rgb(54 83 20)"},green:{50:"rgb(240 253 244)",100:"rgb(220 252 231)",200:"rgb(187 247 208)",300:"rgb(134 239 172)",400:"rgb(74 222 128)",500:"rgb(34 197 94)",600:"rgb(22 163 74)",700:"rgb(21 128 61)",800:"rgb(22 101 52)",900:"rgb(20 83 45)"},emerald:{50:"rgb(236 253 245)",100:"rgb(209 250 229)",200:"rgb(167 243 208)",300:"rgb(110 231 183)",400:"rgb(52 211 153)",500:"rgb(16 185 129)",600:"rgb(5 150 105)",700:"rgb(4 120 87)",800:"rgb(6 95 70)",900:"rgb(6 78 59)"},teal:{50:"rgb(240 253 250)",100:"rgb(204 251 241)",200:"rgb(153 246 228)",300:"rgb(94 234 212)",400:"rgb(45 212 191)",500:"rgb(20 184 166)",600:"rgb(13 148 136)",700:"rgb(15 118 110)",800:"rgb(17 94 89)",900:"rgb(19 78 74)"},cyan:{50:"rgb(236 254 255)",100:"rgb(207 250 254)",200:"rgb(165 243 252)",300:"rgb(103 232 249)",400:"rgb(34 211 238)",500:"rgb(6 182 212)",600:"rgb(8 145 178)",700:"rgb(14 116 144)",800:"rgb(21 94 117)",900:"rgb(22 78 99)"},sky:{50:"rgb(240 249 255)",100:"rgb(224 242 254)",200:"rgb(186 230 253)",300:"rgb(125 211 252)",400:"rgb(56 189 248)",500:"rgb(14 165 233)",600:"rgb(2 132 199)",700:"rgb(3 105 161)",800:"rgb(7 89 133)",900:"rgb(12 74 110)"},blue:{50:"rgb(239 246 255)",100:"rgb(219 234 254)",200:"rgb(191 219 254)",300:"rgb(147 197 253)",400:"rgb(96 165 250)",500:"rgb(59 130 246)",600:"rgb(37 99 235)",700:"rgb(29 78 216)",800:"rgb(30 64 175)",900:"rgb(30 58 138)"},indigo:{50:"rgb(238 242 255)",100:"rgb(224 231 255)",200:"rgb(199 210 254)",300:"rgb(165 180 252)",400:"rgb(129 140 248)",500:"rgb(99 102 241)",600:"rgb(79 70 229)",700:"rgb(67 56 202)",800:"rgb(55 48 163)",900:"rgb(49 46 129)"},violet:{50:"rgb(245 243 255)",100:"rgb(237 233 254)",200:"rgb(221 214 254)",300:"rgb(196 181 253)",400:"rgb(167 139 250)",500:"rgb(139 92 246)",600:"rgb(124 58 237)",700:"rgb(109 40 217)",800:"rgb(91 33 182)",900:"rgb(76 29 149)"},purple:{50:"rgb(250 245 255)",100:"rgb(243 232 255)",200:"rgb(233 213 255)",300:"rgb(216 180 254)",400:"rgb(192 132 252)",500:"rgb(168 85 247)",600:"rgb(147 51 234)",700:"rgb(126 34 206)",800:"rgb(107 33 168)",900:"rgb(88 28 135)"},fuchsia:{50:"rgb(253 244 255)",100:"rgb(250 232 255)",200:"rgb(245 208 254)",300:"rgb(240 171 252)",400:"rgb(232 121 249)",500:"rgb(217 70 239)",600:"rgb(192 38 211)",700:"rgb(162 28 175)",800:"rgb(134 25 143)",900:"rgb(112 26 117)"},pink:{50:"rgb(253 242 248)",100:"rgb(252 231 243)",200:"rgb(251 207 232)",300:"rgb(249 168 212)",400:"rgb(244 114 182)",500:"rgb(236 72 153)",600:"rgb(219 39 119)",700:"rgb(190 24 93)",800:"rgb(157 23 77)",900:"rgb(131 24 67)"},rose:{50:"rgb(255 241 242)",100:"rgb(255 228 230)",200:"rgb(254 205 211)",300:"rgb(253 164 175)",400:"rgb(251 113 133)",500:"rgb(244 63 94)",600:"rgb(225 29 72)",700:"rgb(190 18 60)",800:"rgb(159 18 57)",900:"rgb(136 19 55)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},height:{auto:"auto",px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},components:{button:{primary:{color:"#FFF",backgroundColor:"#000"}},Card:{border:"1px solid rgb(226 232 240)",padding:"1rem",backgroundColor:"transparent",borderRadius:"2px",boxShadow:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px"},"Card.Content":{padding:0,fontSize:"0.9rem"},"Card.Header":{fontSize:"1.125rem",fontWeight:"700",marginBottom:"1rem"}}};function Nh(e,t){const n={...e};return Object.entries(t).forEach(([r,o])=>{o!==null&&typeof o=="object"&&!Array.isArray(o)?((n[r]===void 0||n[r]===null)&&(n[r]={}),n[r]=Nh(n[r],o)):n[r]=o}),n}const B2=G.styled.div`
39
+ */var _c=z$(G$());function W$(e){return _c.Children.toArray(e).filter(t=>(0,_c.isValidElement)(t))}var[Y$,Mp]=M$({name:"AvatarGroupContext",strict:!1}),q$={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},Z$={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},X$={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},J$={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},Q$={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},e3={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},t3={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},de={solid:q$,shadow:Z$,bordered:X$,flat:J$,faded:Q$,light:e3,ghost:t3},zc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tt=e=>!e||typeof e!="object"||Object.keys(e).length===0,n3=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function kp(e,t){e.forEach(function(n){Array.isArray(n)?kp(n,t):t.push(n)})}function Rp(e){let t=[];return kp(e,t),t}var Fp=(...e)=>Rp(e).filter(Boolean),Bp=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let a=e[i],s=t[i];typeof a=="object"&&typeof s=="object"?n[i]=Bp(a,s):Array.isArray(a)||Array.isArray(s)?n[i]=Fp(s,a):n[i]=s+" "+a}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},Uc=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function r3(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Ip(t))&&(r&&(r+=" "),r+=n);return r}function Ip(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Ip(e[r]))&&(n&&(n+=" "),n+=t);return n}var Ll="-";function o3(e){var t=a3(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(s){var l=s.split(Ll);return l[0]===""&&l.length!==1&&l.shift(),Lp(l,t)||i3(s)}function a(s,l){var d=n[s]||[];return l&&o[s]?[].concat(d,o[s]):d}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Lp(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Lp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(Ll);return(a=t.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var Hc=/^\[(.+)\]$/;function i3(e){if(Hc.test(e)){var t=Hc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function a3(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=l3(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],s=i[1];Ms(s,r,a,t)}),r}function Ms(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:Gc(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(s3(o)){Ms(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(a){var s=a[0],l=a[1];Ms(l,Gc(t,s),n,r)})})}function Gc(e,t){var n=e;return t.split(Ll).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function s3(e){return e.isThemeGetter}function l3(e,t){return t?e.map(function(n){var r=n[0],o=n[1],i=o.map(function(a){return typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(s){var l=s[0],d=s[1];return[t+l,d]})):a});return[r,i]}):e}function u3(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(a){var s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set:function(a,s){n.has(a)?n.set(a,s):o(a,s)}}}var Vp="!";function c3(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(a){for(var s=[],l=0,d=0,c,f=0;f<a.length;f++){var p=a[f];if(l===0){if(p===r&&(n||a.slice(f,f+o)===t)){s.push(a.slice(d,f)),d=f+o;continue}if(p==="/"){c=f;continue}}p==="["?l++:p==="]"&&l--}var h=s.length===0?a:a.substring(d),b=h.startsWith(Vp),g=b?h.substring(1):h,y=c&&c>d?c-d:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:y}}}function d3(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function f3(e){return{cache:u3(e.cacheSize),splitModifiers:c3(e),...o3(e)}}var p3=/\s+/;function h3(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(p3).map(function(a){var s=n(a),l=s.modifiers,d=s.hasImportantModifier,c=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?c.substring(0,f):c),h=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:a};if(p=r(c),!p)return{isTailwindClass:!1,originalClassName:a};h=!1}var b=d3(l).join(":"),g=d?b+Vp:b;return{isTailwindClass:!0,modifierId:g,classGroupId:p,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,d=a.hasPostfixModifier,c=s+l;return i.has(c)?!1:(i.add(c),o(l,d).forEach(function(f){return i.add(s+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function ks(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=s;function s(d){var c=t[0],f=t.slice(1),p=f.reduce(function(h,b){return b(h)},c());return r=f3(p),o=r.cache.get,i=r.cache.set,a=l,l(d)}function l(d){var c=o(d);if(c)return c;var f=h3(d,r);return i(d,f),f}return function(){return a(r3.apply(null,arguments))}}function xe(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Op=/^\[(?:([a-z-]+):)?(.+)\]$/i,b3=/^\d+\/\d+$/,m3=new Set(["px","full","screen"]),g3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,y3=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function gt(e){return wn(e)||m3.has(e)||b3.test(e)||Rs(e)}function Rs(e){return Bn(e,"length",E3)}function $3(e){return Bn(e,"size",Np)}function x3(e){return Bn(e,"position",Np)}function w3(e){return Bn(e,"url",P3)}function Uo(e){return Bn(e,"number",wn)}function wn(e){return!Number.isNaN(Number(e))}function C3(e){return e.endsWith("%")&&wn(e.slice(0,-1))}function kr(e){return Wc(e)||Bn(e,"number",Wc)}function ce(e){return Op.test(e)}function Rr(){return!0}function Jt(e){return g3.test(e)}function D3(e){return Bn(e,"",S3)}function Bn(e,t,n){var r=Op.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function E3(e){return v3.test(e)}function Np(){return!1}function P3(e){return e.startsWith("url(")}function Wc(e){return Number.isInteger(Number(e))}function S3(e){return y3.test(e)}function Fs(){var e=xe("colors"),t=xe("spacing"),n=xe("blur"),r=xe("brightness"),o=xe("borderColor"),i=xe("borderRadius"),a=xe("borderSpacing"),s=xe("borderWidth"),l=xe("contrast"),d=xe("grayscale"),c=xe("hueRotate"),f=xe("invert"),p=xe("gap"),h=xe("gradientColorStops"),b=xe("gradientColorStopPositions"),g=xe("inset"),y=xe("margin"),$=xe("opacity"),C=xe("padding"),w=xe("saturate"),E=xe("scale"),P=xe("sepia"),k=xe("skew"),N=xe("space"),v=xe("translate"),L=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},A=function(){return["auto",ce,t]},B=function(){return[ce,t]},R=function(){return["",gt]},I=function(){return["auto",wn,ce]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},V=function(){return["solid","dashed","dotted","double","none"]},T=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},G=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",ce]},H=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[wn,Uo]},O=function(){return[wn,ce]};return{cacheSize:500,theme:{colors:[Rr],spacing:[gt],blur:["none","",Jt,ce],brightness:D(),borderColor:[e],borderRadius:["none","","full",Jt,ce],borderSpacing:B(),borderWidth:R(),contrast:D(),grayscale:Y(),hueRotate:O(),invert:Y(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[C3,Rs],inset:A(),margin:A(),opacity:D(),padding:B(),saturate:D(),scale:D(),sepia:Y(),skew:O(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(K(),[ce])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",kr]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",kr]}],"grid-cols":[{"grid-cols":[Rr]}],"col-start-end":[{col:["auto",{span:["full",kr]},ce]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Rr]}],"row-start-end":[{row:["auto",{span:[kr]},ce]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(G())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(G(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(G(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ce,t]}],"min-w":[{"min-w":["min","max","fit",ce,gt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Jt]},Jt,ce]}],h:[{h:[ce,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ce,gt]}],"max-h":[{"max-h":[ce,t,"min","max","fit"]}],"font-size":[{text:["base",Jt,Rs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Uo]}],"font-family":[{font:[Rr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ce]}],"line-clamp":[{"line-clamp":["none",wn,Uo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,gt]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(V(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",gt]}],"underline-offset":[{"underline-offset":["auto",ce,gt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(K(),[x3])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},w3]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[].concat(V(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:V()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(V())}],"outline-offset":[{"outline-offset":[ce,gt]}],"outline-w":[{outline:[gt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[gt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,D3]}],"shadow-color":[{shadow:[Rr]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":T()}],"bg-blend":[{"bg-blend":T()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jt,ce]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ce]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[kr,ce]}],"translate-x":[{"translate-x":[v]}],"translate-y":[{"translate-y":[v]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gt,Uo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function T3(e,t){for(var n in t)Kp(e,n,t[n]);return e}var A3=Object.prototype.hasOwnProperty,M3=new Set(["string","number","boolean"]);function Kp(e,t,n){if(!A3.call(e,t)||M3.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var r in n)Kp(e[t],r,n[r])}}function k3(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?ks.apply(void 0,[Fs,e].concat(n)):ks.apply(void 0,[function(){return T3(Fs(),e)}].concat(n))}var R3=ks(Fs),F3={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},jp=e=>e||void 0,eo=(...e)=>jp(Rp(e).filter(Boolean).join(" ")),Na=null,$i={},Bs=!1,Fr=(...e)=>t=>t.twMerge?((!Na||Bs)&&(Bs=!1,Na=tt($i)?R3:k3($i)),jp(Na(eo(e)))):eo(e),Yc=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=eo(e[n],t[n]):e[n]=t[n];return e},B3=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...F3,...t},d=n!=null&&n.base?eo(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!tt(n.variants)?Bp(o,n.variants):o,f=n!=null&&n.defaultVariants&&!tt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!tt(l.twMergeConfig)&&!n3(l.twMergeConfig,$i)&&(Bs=!0,$i=l.twMergeConfig);let p=tt(n==null?void 0:n.slots),h=tt(r)?{}:{base:eo(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},b=p?h:Yc({...n==null?void 0:n.slots},tt(h)?{base:e==null?void 0:e.base}:h),g=$=>{if(tt(c)&&tt(r)&&p)return Fr(d,$==null?void 0:$.class,$==null?void 0:$.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof a}`);let C=(B,R,I=[],K)=>{let V=I;if(typeof R=="string")V=V.concat(Uc(R).split(" ").map(T=>`${B}:${T}`));else if(Array.isArray(R))V=V.concat(R.reduce((T,G)=>T.concat(`${B}:${G}`),[]));else if(typeof R=="object"&&typeof K=="string"){for(let T in R)if(R.hasOwnProperty(T)&&T===K){let G=R[T];if(G&&typeof G=="string"){let Y=Uc(G);V[K]?V[K]=V[K].concat(Y.split(" ").map(H=>`${B}:${H}`)):V[K]=Y.split(" ").map(H=>`${B}:${H}`)}else Array.isArray(G)&&G.length>0&&(V[K]=G.reduce((Y,H)=>Y.concat(`${B}:${H}`),[]))}}return V},w=(B,R=c,I=null,K=null)=>{var V;let T=R[B];if(!T||tt(T))return null;let G=(V=K==null?void 0:K[B])!=null?V:$==null?void 0:$[B];if(G===null)return null;let Y=zc(G),H=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[B],O=[];if(typeof Y=="object"&&H)for(let[J,Q]of Object.entries(Y)){let re=T[Q];if(J==="initial"){D=Q;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(J)||(O=C(J,re,O,I))}let W=T[Y]||T[zc(D)];return typeof O=="object"&&typeof I=="string"&&O[I]?Yc(O,W):O.length>0?(O.push(W),O):W},E=()=>c?Object.keys(c).map(B=>w(B,c)):null,P=(B,R)=>{if(!c||typeof c!="object")return null;let I=new Array;for(let K in c){let V=w(K,c,B,R),T=B==="base"&&typeof V=="string"?V:V&&V[B];T&&(I[I.length]=T)}return I},k={};for(let B in $)$[B]!==void 0&&(k[B]=$[B]);let N=(B,R)=>{var I;let K=typeof($==null?void 0:$[B])=="object"?{[B]:(I=$[B])==null?void 0:I.initial}:{};return{...f,...k,...K,...R}},v=(B=[],R)=>{let I=[];for(let{class:K,className:V,...T}of B){let G=!0;for(let[Y,H]of Object.entries(T)){let D=N(Y,R);if(Array.isArray(H)){if(!H.includes(D[Y])){G=!1;break}}else if(D[Y]!==H){G=!1;break}}G&&(K&&I.push(K),V&&I.push(V))}return I},L=B=>{let R=v(i,B),I=v(n==null?void 0:n.compoundVariants,B);return Fp(I,R)},F=B=>{let R=L(B);if(!Array.isArray(R))return R;let I={};for(let K of R)if(typeof K=="string"&&(I.base=Fr(I.base,K)(l)),typeof K=="object")for(let[V,T]of Object.entries(K))I[V]=Fr(I[V],T)(l);return I},A=B=>{if(a.length<1)return null;let R={};for(let{slots:I=[],class:K,className:V,...T}of a){if(!tt(T)){let G=!0;for(let Y of Object.keys(T)){let H=N(Y,B)[Y];if(H===void 0||(Array.isArray(T[Y])?!T[Y].includes(H):T[Y]!==H)){G=!1;break}}if(!G)continue}for(let G of I)R[G]=R[G]||[],R[G].push([K,V])}return R};if(!tt(r)||!p){let B={};if(typeof b=="object"&&!tt(b))for(let R of Object.keys(b))B[R]=I=>{var K,V;return Fr(b[R],P(R,I),((K=F(I))!=null?K:[])[R],((V=A(I))!=null?V:[])[R],I==null?void 0:I.class,I==null?void 0:I.className)(l)};return B}return Fr(d,E(),L(),$==null?void 0:$.class,$==null?void 0:$.className)(l)},y=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return g.variantKeys=y(),g.extend=n,g.base=d,g.slots=b,g.variants=c,g.defaultVariants=f,g.compoundSlots=a,g.compoundVariants=i,g},Ho=["small","medium","large"],Xi=(e,t)=>{var n,r,o;return B3(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider"],borderWidth:Ho,borderRadius:Ho},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Ho}],"font-size":[{text:["tiny",...Ho]}],"bg-image":["bg-stripe-gradient"]}}})},_p=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Ka=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],qc=Xi({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",..._p],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:de.solid.foreground},primary:{base:"before:bg-primary",content:de.solid.primary},secondary:{base:"before:bg-secondary",content:de.solid.secondary},success:{base:"before:bg-success",content:de.solid.success},warning:{base:"before:bg-warning",content:de.solid.warning},danger:{base:"before:bg-danger",content:de.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),I3=Xi({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",..._p],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Ka,"flex","items-center","justify-center"],name:[...Ka,"font-normal","text-center","text-inherit"],icon:[...Ka,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:de.solid.default},primary:{base:de.solid.primary},secondary:{base:de.solid.secondary},success:{base:de.solid.success},warning:{base:de.solid.warning},danger:{base:de.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]}),L3=Xi({slots:{base:"flex items-center justify-center h-auto w-max-content",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Zc=Xi({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","flex-wrap","absolute","box-border","rounded-full","whitespace-nowrap","place-content-center","origin-center","items-center","text-inherit","select-none","font-regular","scale-100","opacity-100","subpixel-antialiased","data-[invisible=true]:scale-0","data-[invisible=true]:opacity-0"]},variants:{variant:{solid:{},flat:{},faded:{badge:"border-medium"},shadow:{}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"px-1 text-tiny"},md:{badge:"px-1 text-small"},lg:{badge:"px-1 text-small"}},placement:{"top-right":{},"top-left":{},"bottom-right":{},"bottom-left":{}},shape:{circle:{},rectangle:{}},isInvisible:{true:{}},isOneChar:{true:{badge:"px-0"}},isDot:{true:{}},disableAnimation:{true:{badge:"transition-none"},false:{badge:"transition-transform-opacity !ease-soft-spring !duration-300"}},showOutline:{true:{badge:"border-2 border-background"},false:{badge:"border-transparent border-0"}}},defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",showOutline:!0,disableAnimation:!1,isInvisible:!1},compoundVariants:[{variant:"solid",color:"default",class:{badge:de.solid.default}},{variant:"solid",color:"primary",class:{badge:de.solid.primary}},{variant:"solid",color:"secondary",class:{badge:de.solid.secondary}},{variant:"solid",color:"success",class:{badge:de.solid.success}},{variant:"solid",color:"warning",class:{badge:de.solid.warning}},{variant:"solid",color:"danger",class:{badge:de.solid.danger}},{variant:"shadow",color:"default",class:{badge:de.shadow.default}},{variant:"shadow",color:"primary",class:{badge:de.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:de.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:de.shadow.success}},{variant:"shadow",color:"warning",class:{badge:de.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:de.shadow.danger}},{variant:"flat",color:"default",class:{badge:de.flat.default}},{variant:"flat",color:"primary",class:{badge:de.flat.primary}},{variant:"flat",color:"secondary",class:{badge:de.flat.secondary}},{variant:"flat",color:"success",class:{badge:de.flat.success}},{variant:"flat",color:"warning",class:{badge:de.flat.warning}},{variant:"flat",color:"danger",class:{badge:de.flat.danger}},{variant:"faded",color:"default",class:{badge:de.faded.default}},{variant:"faded",color:"primary",class:{badge:de.faded.primary}},{variant:"faded",color:"secondary",class:{badge:de.faded.secondary}},{variant:"faded",color:"success",class:{badge:de.faded.success}},{variant:"faded",color:"warning",class:{badge:de.faded.warning}},{variant:"faded",color:"danger",class:{badge:de.faded.danger}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 min-h-6"}},{isDot:!0,size:"sm",class:{badge:"w-3 h-3 min-w-3 min-h-3"}},{isDot:!0,size:"md",class:{badge:"w-3.5 h-3.5 min-w-3.5 min-h-3.5"}},{isDot:!0,size:"lg",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{placement:"top-right",shape:"rectangle",class:{badge:"top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"rectangle",class:{badge:"top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"rectangle",class:{badge:"bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"rectangle",class:{badge:"bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2"}},{placement:"top-right",shape:"circle",class:{badge:"top-[10%] right-[10%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"circle",class:{badge:"top-[10%] left-[10%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"circle",class:{badge:"bottom-[10%] right-[10%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"circle",class:{badge:"bottom-[10%] left-[10%] -translate-x-1/2 translate-y-1/2"}}]});function bt(e,t,n){let[r,o]=u.useState(e||t),i=u.useRef(e!==void 0),a=e!==void 0;u.useEffect(()=>{let d=i.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:r,l=u.useCallback((d,...c)=>{let f=(p,...h)=>{n&&(Object.is(s,p)||n(p,...h)),a||(s=p)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...b)=>{let g=d(a?s:h,...b);return f(g,...c),a?h:g})):(a||o(d),f(d,...c))},[a,s,n]);return[s,l]}function pt(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Qe(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let d=Math.pow(10,l);i=Math.round(i*d)/d}return i}const xi={prefix:String(Math.round(Math.random()*1e10)),current:0},zp=u.createContext(xi),V3=u.createContext(!1);let O3=!!(typeof window<"u"&&window.document&&window.document.createElement),ja=new WeakMap;function N3(e=!1){let t=u.useContext(zp),n=u.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=ja.get(i);a==null?ja.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,ja.delete(i))}n.current=++t.current}return n.current}function K3(e){let t=u.useContext(zp);t===xi&&!O3&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=N3(!!e),r=t===xi&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function j3(e){let t=u.useId(),[n]=u.useState(At()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${xi.prefix}`;return e||`${r}-${t}`}const _3=typeof u.useId=="function"?j3:K3;function z3(){return!1}function U3(){return!0}function H3(e){return()=>{}}function At(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(H3,z3,U3):u.useContext(V3)}function Up(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Up(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function G3(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Up(e))&&(r&&(r+=" "),r+=t);return r}const be=typeof document<"u"?u.useLayoutEffect:()=>{};function Pe(e){const t=u.useRef(null);return be(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function W3(e){let[t,n]=u.useState(e),r=u.useRef(null),o=Pe(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});be(()=>{r.current&&o()});let i=Pe(a=>{r.current=a(t),o()});return[t,i]}let Y3=!!(typeof window<"u"&&window.document&&window.document.createElement),wi=new Map;function _e(e){let[t,n]=u.useState(e),r=u.useRef(null),o=_3(t),i=u.useCallback(a=>{r.current=a},[]);return Y3&&wi.set(o,i),be(()=>{let a=o;return()=>{wi.delete(a)}},[o]),u.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),o}function q3(e,t){if(e===t)return e;let n=wi.get(e);if(n)return n(t),t;let r=wi.get(t);return r?(r(e),e):t}function rn(e=[]){let t=_e(),[n,r]=W3(t),o=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return be(o,[t,o,...e]),n}function an(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ye=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ft=e=>e&&"window"in e&&e.window===e?e:ye(e).defaultView||window;function X(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=an(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=G3(i,a):o==="id"&&i&&a?t.id=q3(i,a):t[o]=a!==void 0?a:i}}return t}function Ji(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const Z3=new Set(["id"]),X3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),J3=new Set(["href","target","rel","download","ping","referrerPolicy"]),Q3=/^(data-.*)$/;function le(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Z3.has(a)||n&&X3.has(a)||r&&J3.has(a)||o!=null&&o.has(a)||Q3.test(a))&&(i[a]=e[a]);return i}function Pt(e){if(ex())e.focus({preventScroll:!0});else{let t=tx(e);e.focus(),nx(t)}}let Go=null;function ex(){if(Go==null){Go=!1;try{document.createElement("div").focus({get preventScroll(){return Go=!0,!0}})}catch{}}return Go}function tx(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function nx(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Qi(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Vl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ut(){return Vl(/^Mac/i)}function Hp(){return Vl(/^iPhone/i)}function Gp(){return Vl(/^iPad/i)||Ut()&&navigator.maxTouchPoints>1}function pr(){return Hp()||Gp()}function ui(){return Ut()||pr()}function Ol(){return Qi(/AppleWebKit/i)&&!rx()}function rx(){return Qi(/Chrome/i)}function Nl(){return Qi(/Android/i)}function ox(){return Qi(/Firefox/i)}const ix=u.createContext({isNative:!0,open:lx});function bo(){return u.useContext(ix)}function ax(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Tn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;ox()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ut()?i=!0:a=!0);let d=Ol()&&Ut()&&!Gp()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Tn.isOpening=n,Pt(e),e.dispatchEvent(d),Tn.isOpening=!1}Tn.isOpening=!1;function sx(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function lx(e,t){sx(e,n=>Tn(n,t))}let Yn=new Map,Is=new Set;function Xc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);o||(o=new Set,Yn.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Yn.delete(r.target)),Yn.size===0)){for(let i of Is)i();Is.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Xc():document.addEventListener("DOMContentLoaded",Xc));function Wp(e){requestAnimationFrame(()=>{Yn.size===0?e():Is.add(e)})}function hr(){let e=u.useRef(new Map),t=u.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,a,s)},[]),n=u.useCallback((o,i,a,s)=>{var l;let d=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,d,s),e.current.delete(a)},[]),r=u.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function An(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=_e(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function mt(e){const t=u.useRef(null);return u.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function ux(){return typeof window.ResizeObserver<"u"}function Kl(e){const{ref:t,onResize:n}=e;u.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(ux()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function jl(e,t){be(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function to(e,t){let n=e;for(Ci(n,t)&&(n=n.parentElement);n&&!Ci(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Ci(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let lt=typeof document<"u"&&window.visualViewport;function cx(){let e=At(),[t,n]=u.useState(()=>e?{width:0,height:0}:Jc());return u.useEffect(()=>{let r=()=>{n(o=>{let i=Jc();return i.width===o.width&&i.height===o.height?o:i})};return lt?lt.addEventListener("resize",r):window.addEventListener("resize",r),()=>{lt?lt.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Jc(){return{width:lt&&(lt==null?void 0:lt.width)||window.innerWidth,height:lt&&(lt==null?void 0:lt.height)||window.innerHeight}}let dx=0;const _a=new Map;function Yp(e){let[t,n]=u.useState();return be(()=>{if(!e)return;let r=_a.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${dx++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},_a.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),_a.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Di(e,t,n,r){let o=Pe(n),i=n==null;u.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i,o])}function qp(e,t){let n=Qc(e,t,"left"),r=Qc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),f=e.scrollTop+parseInt(l,10),p=c+e.clientWidth,h=f+e.clientHeight;n<=a?a=n-parseInt(d,10):n+o>p&&(a+=n+o-p),r<=f?s=r-parseInt(l,10):r+i>h&&(s+=r+i-h),e.scrollLeft=a,e.scrollTop=s}function Qc(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Ls(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=to(e);for(;e&&l&&e!==a&&l!==a;)qp(l,e),e=l,l=to(e)}else{var n;let{left:l,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:f}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(d-f)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Vs(e){return e.mozInputSource===0&&e.isTrusted?!0:Nl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function fx(e){return!Nl()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function px(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function mo(e,t,n){let r=u.useRef(t),o=Pe(()=>{n&&n(r.current)});u.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",o),()=>{a==null||a.removeEventListener("reset",o)}},[e,o])}function hx(e,t){return t.get?t.get.call(e):t.value}function Zp(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function bx(e,t){var n=Zp(e,t,"get");return hx(e,n)}function mx(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function go(e,t,n){mx(e,t),t.set(e,n)}function gx(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function ed(e,t,n){var r=Zp(e,t,"set");return gx(e,r,n),n}let Xn="default",Os="",ci=new WeakMap;function Ns(e){if(pr()){if(Xn==="default"){const t=ye(e);Os=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xn="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ci.set(e,e.style.userSelect),e.style.userSelect="none")}function jr(e){if(pr()){if(Xn!=="disabled")return;Xn="restoring",setTimeout(()=>{Wp(()=>{if(Xn==="restoring"){const t=ye(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Os||""),Os="",Xn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ci.has(e)){let t=ci.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ci.delete(e)}}const no=u.createContext({register:()=>{}});no.displayName="PressResponderContext";function vx(e){let t=u.useContext(no);if(t){let{register:n,...r}=t;e=X(r,e),n()}return jl(t,e.ref),e}var Wo=new WeakMap;class Yo{continuePropagation(){ed(this,Wo,!1)}get shouldStopPropagation(){return bx(this,Wo)}constructor(t,n,r){go(this,Wo,{writable:!0,value:void 0}),ed(this,Wo,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const td=Symbol("linkClicked");function sn(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:c,ref:f,...p}=vx(e),[h,b]=u.useState(!1),g=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=hr(),C=Pe((v,L)=>{let F=g.current;if(a||F.didFirePressStart)return!1;let A=!0;if(F.isTriggeringEvent=!0,r){let B=new Yo("pressstart",L,v);r(B),A=B.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,b(!0),A}),w=Pe((v,L,F=!0)=>{let A=g.current;if(!A.didFirePressStart)return!1;A.ignoreClickAfterPress=!0,A.didFirePressStart=!1,A.isTriggeringEvent=!0;let B=!0;if(o){let R=new Yo("pressend",L,v);o(R),B=R.shouldStopPropagation}if(n&&n(!1),b(!1),t&&F&&!a){let R=new Yo("press",L,v);t(R),B&&(B=R.shouldStopPropagation)}return A.isTriggeringEvent=!1,B}),E=Pe((v,L)=>{let F=g.current;if(a)return!1;if(i){F.isTriggeringEvent=!0;let A=new Yo("pressup",L,v);return i(A),F.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),P=Pe(v=>{let L=g.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&w(kt(L.target,v),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,$(),c||jr(L.target))}),k=Pe(v=>{d&&P(v)}),N=u.useMemo(()=>{let v=g.current,L={onKeyDown(A){if(za(A.nativeEvent,A.currentTarget)&&A.currentTarget.contains(A.target)){var B;rd(A.target,A.key)&&A.preventDefault();let R=!0;if(!v.isPressed&&!A.repeat){v.target=A.currentTarget,v.isPressed=!0,R=C(A,"keyboard");let I=A.currentTarget,K=V=>{za(V,I)&&!V.repeat&&I.contains(V.target)&&v.target&&E(kt(v.target,V),"keyboard")};y(ye(A.currentTarget),"keyup",an(K,F),!0)}R&&A.stopPropagation(),A.metaKey&&Ut()&&((B=v.metaKeyEvents)===null||B===void 0||B.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(A){if(!(A&&!A.currentTarget.contains(A.target))&&A&&A.button===0&&!v.isTriggeringEvent&&!Tn.isOpening){let B=!0;if(a&&A.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||Vs(A.nativeEvent))){!a&&!l&&Pt(A.currentTarget);let R=C(A,"virtual"),I=E(A,"virtual"),K=w(A,"virtual");B=R&&I&&K}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,B&&A.stopPropagation()}}},F=A=>{var B;if(v.isPressed&&v.target&&za(A,v.target)){var R;rd(A.target,A.key)&&A.preventDefault();let K=A.target;w(kt(v.target,A),"keyboard",v.target.contains(K)),$(),A.key!=="Enter"&&_l(v.target)&&v.target.contains(K)&&!A[td]&&(A[td]=!0,Tn(v.target,A,!1)),v.isPressed=!1,(R=v.metaKeyEvents)===null||R===void 0||R.delete(A.key)}else if(A.key==="Meta"&&(!((B=v.metaKeyEvents)===null||B===void 0)&&B.size)){var I;let K=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let V of K.values())(I=v.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",V))}};if(typeof PointerEvent<"u"){L.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(fx(I.nativeEvent)){v.pointerType="virtual";return}Ua(I.currentTarget)&&I.preventDefault(),v.pointerType=I.pointerType;let K=!0;v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=I.pointerId,v.target=I.currentTarget,!a&&!l&&Pt(I.currentTarget),c||Ns(v.target),K=C(I,v.pointerType),y(ye(I.currentTarget),"pointermove",A,!1),y(ye(I.currentTarget),"pointerup",B,!1),y(ye(I.currentTarget),"pointercancel",R,!1)),K&&I.stopPropagation()},L.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(Ua(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},L.onPointerUp=I=>{!I.currentTarget.contains(I.target)||v.pointerType==="virtual"||I.button===0&&Un(I,I.currentTarget)&&E(I,v.pointerType||I.pointerType)};let A=I=>{I.pointerId===v.activePointerId&&(v.target&&Un(I,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,C(kt(v.target,I),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,w(kt(v.target,I),v.pointerType,!1),k(I)))},B=I=>{I.pointerId===v.activePointerId&&v.isPressed&&I.button===0&&v.target&&(Un(I,v.target)&&v.pointerType!=null?w(kt(v.target,I),v.pointerType):v.isOverTarget&&v.pointerType!=null&&w(kt(v.target,I),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,$(),c||jr(v.target))},R=I=>{P(I)};L.onDragStart=I=>{I.currentTarget.contains(I.target)&&P(I)}}else{L.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(Ua(R.currentTarget)&&R.preventDefault(),v.ignoreEmulatedMouseEvents){R.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=R.currentTarget,v.pointerType=Vs(R.nativeEvent)?"virtual":"mouse",!a&&!l&&Pt(R.currentTarget),C(R,v.pointerType)&&R.stopPropagation(),y(ye(R.currentTarget),"mouseup",A,!1)},L.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,I=C(R,v.pointerType)),I&&R.stopPropagation()},L.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,I=w(R,v.pointerType,!1),k(R)),I&&R.stopPropagation()},L.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!v.ignoreEmulatedMouseEvents&&R.button===0&&E(R,v.pointerType||"mouse")};let A=R=>{if(R.button===0){if(v.isPressed=!1,$(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&Un(R,v.target)&&v.pointerType!=null?w(kt(v.target,R),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&w(kt(v.target,R),v.pointerType,!1),v.isOverTarget=!1}};L.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let I=yx(R.nativeEvent);if(!I)return;v.activePointerId=I.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=R.currentTarget,v.pointerType="touch",!a&&!l&&Pt(R.currentTarget),c||Ns(v.target),C(R,v.pointerType)&&R.stopPropagation(),y(ft(R.currentTarget),"scroll",B,!0)},L.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let I=nd(R.nativeEvent,v.activePointerId),K=!0;I&&Un(I,R.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,K=C(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,K=w(R,v.pointerType,!1),k(R)),K&&R.stopPropagation()},L.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let I=nd(R.nativeEvent,v.activePointerId),K=!0;I&&Un(I,R.currentTarget)&&v.pointerType!=null?(E(R,v.pointerType),K=w(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(K=w(R,v.pointerType,!1)),K&&R.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!c&&jr(v.target),$()},L.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),v.isPressed&&P(R))};let B=R=>{v.isPressed&&R.target.contains(v.target)&&P({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=R=>{R.currentTarget.contains(R.target)&&P(R)}}return L},[y,a,l,$,c,P,k,w,C,E]);return u.useEffect(()=>()=>{var v;c||jr((v=g.current.target)!==null&&v!==void 0?v:void 0)},[c]),{isPressed:s||h,pressProps:X(p,N)}}function _l(e){return e.tagName==="A"&&e.hasAttribute("href")}function za(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof ft(o).HTMLInputElement&&!Xp(o,n)||o instanceof ft(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&_l(o))&&n!=="Enter")}function yx(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function nd(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function kt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function $x(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function xx(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Un(e,t){let n=t.getBoundingClientRect(),r=$x(e);return xx(n,r)}function Ua(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function rd(e,t){return e instanceof HTMLInputElement?!Xp(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_l(e)}const wx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xp(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":wx.has(e.type)}const Cx=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),o=u.useContext(no);n=mt(n||(o==null?void 0:o.ref));let i=X(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return jl(o,n),u.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),u.createElement(no.Provider,{value:i},e)});function Dx({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(no.Provider,{value:t},e)}class Ex{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Jp(e){let t=u.useRef({isFocused:!1,observer:null});be(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Pe(r=>{e==null||e(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{t.current.isFocused=!1,o.disabled&&n(new Ex("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function ea(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=u.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=Jp(i),s=u.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Ht=null,ro=new Set,Gr=new Map,Mn=!1,Ks=!1;const Px={Tab:!0,Escape:!0};function ta(e,t){for(let n of ro)n(e,t)}function Sx(e){return!(e.metaKey||!Ut()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ei(e){Mn=!0,Sx(e)&&(Ht="keyboard",ta("keyboard",e))}function ct(e){Ht="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Mn=!0,ta("pointer",e))}function Qp(e){Vs(e)&&(Mn=!0,Ht="virtual")}function e0(e){e.target===window||e.target===document||(!Mn&&!Ks&&(Ht="virtual",ta("virtual",e)),Mn=!1,Ks=!1)}function t0(){Mn=!1,Ks=!0}function Pi(e){if(typeof window>"u"||Gr.get(ft(e)))return;const t=ft(e),n=ye(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Mn=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ei,!0),n.addEventListener("keyup",Ei,!0),n.addEventListener("click",Qp,!0),t.addEventListener("focus",e0,!0),t.addEventListener("blur",t0,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ct,!0),n.addEventListener("pointermove",ct,!0),n.addEventListener("pointerup",ct,!0)):(n.addEventListener("mousedown",ct,!0),n.addEventListener("mousemove",ct,!0),n.addEventListener("mouseup",ct,!0)),t.addEventListener("beforeunload",()=>{n0(e)},{once:!0}),Gr.set(t,{focus:r})}const n0=(e,t)=>{const n=ft(e),r=ye(e);t&&r.removeEventListener("DOMContentLoaded",t),Gr.has(n)&&(n.HTMLElement.prototype.focus=Gr.get(n).focus,r.removeEventListener("keydown",Ei,!0),r.removeEventListener("keyup",Ei,!0),r.removeEventListener("click",Qp,!0),n.removeEventListener("focus",e0,!0),n.removeEventListener("blur",t0,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ct,!0),r.removeEventListener("pointermove",ct,!0),r.removeEventListener("pointerup",ct,!0)):(r.removeEventListener("mousedown",ct,!0),r.removeEventListener("mousemove",ct,!0),r.removeEventListener("mouseup",ct,!0)),Gr.delete(n))};function Tx(e){const t=ye(e);let n;return t.readyState!=="loading"?Pi(e):(n=()=>{Pi(e)},t.addEventListener("DOMContentLoaded",n)),()=>n0(e,n)}typeof document<"u"&&Tx();function lr(){return Ht!=="pointer"}function Si(){return Ht}function r0(e){Ht=e,ta(e,null)}function Ax(){Pi();let[e,t]=u.useState(Ht);return u.useEffect(()=>{let n=()=>{t(Ht)};return ro.add(n),()=>{ro.delete(n)}},[]),At()?null:e}const Mx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kx(e,t,n){var r;const o=typeof window<"u"?ft(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ft(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ft(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?ft(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!Mx.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!Px[n.key])}function Rx(e,t,n){Pi(),u.useEffect(()=>{let r=(o,i)=>{kx(!!(n!=null&&n.isTextInput),o,i)&&e(lr())};return ro.add(r),()=>{ro.delete(r)}},t)}function br(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=u.useRef({isFocusWithin:!1}),a=u.useCallback(d=>{i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(d),o&&o(!1))},[n,o,i]),s=Jp(a),l=u.useCallback(d=>{!i.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,s(d))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let Ti=!1,Ha=0;function js(){Ti=!0,setTimeout(()=>{Ti=!1},50)}function od(e){e.pointerType==="touch"&&js()}function Fx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",od):document.addEventListener("touchend",js),Ha++,()=>{Ha--,!(Ha>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",od):document.removeEventListener("touchend",js))}}function Fe(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=u.useState(!1),s=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(Fx,[]);let{hoverProps:l,triggerHoverEnd:d}=u.useMemo(()=>{let c=(h,b)=>{if(s.pointerType=b,o||b==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let g=h.currentTarget;s.target=g,t&&t({type:"hoverstart",target:g,pointerType:b}),n&&n(!0),a(!0)},f=(h,b)=>{if(s.pointerType="",s.target=null,b==="touch"||!s.isHovered)return;s.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:b}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Ti&&h.pointerType==="mouse"||c(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!Ti&&c(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,o,s]);return u.useEffect(()=>{o&&d({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function o0(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Pe(l=>{n&&qo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Pe(l=>{n&&n(l)});u.useEffect(()=>{let l=i.current;if(r)return;const d=t.current,c=ye(d);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&qo(p,t)&&s(p),l.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&qo(h,t)&&s(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&qo(h,t)&&s(h),l.isPointerDown=!1};return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",p,!0)}}},[t,r,a,s])}function qo(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function id(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function zl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:id(e.onKeyDown),onKeyUp:id(e.onKeyUp)}}}function i0(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=hr(),s=Pe((c,f,p,h)=>{p===0&&h===0||(o.current.didMove||(o.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:h,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),l=Pe((c,f)=>{jr(),o.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))});return{moveProps:u.useMemo(()=>{let c={},f=()=>{Ns(),o.current.didMove=!1};if(typeof PointerEvent>"u"){let h=$=>{if($.button===0){var C,w,E,P;s($,"mouse",$.pageX-((E=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&E!==void 0?E:0),$.pageY-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&P!==void 0?P:0)),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},b=$=>{$.button===0&&(l($,"mouse"),a(window,"mousemove",h,!1),a(window,"mouseup",b,!1))};c.onMouseDown=$=>{$.button===0&&(f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i(window,"mousemove",h,!1),i(window,"mouseup",b,!1))};let g=$=>{let C=[...$.changedTouches].findIndex(({identifier:N})=>N===o.current.id);if(C>=0){var w,E;let{pageX:N,pageY:v}=$.changedTouches[C];var P,k;s($,"touch",N-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&P!==void 0?P:0),v-((k=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&k!==void 0?k:0)),o.current.lastPosition={pageX:N,pageY:v}}},y=$=>{[...$.changedTouches].findIndex(({identifier:w})=>w===o.current.id)>=0&&(l($,"touch"),o.current.id=null,a(window,"touchmove",g),a(window,"touchend",y),a(window,"touchcancel",y))};c.onTouchStart=$=>{if($.changedTouches.length===0||o.current.id!=null)return;let{pageX:C,pageY:w,identifier:E}=$.changedTouches[0];f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:C,pageY:w},o.current.id=E,i(window,"touchmove",g,!1),i(window,"touchend",y,!1),i(window,"touchcancel",y,!1)}}else{let h=g=>{if(g.pointerId===o.current.id){var y,$;let E=g.pointerType||"mouse";var C,w;s(g,E,g.pageX-((C=(y=o.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&C!==void 0?C:0),g.pageY-((w=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&w!==void 0?w:0)),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY}}},b=g=>{if(g.pointerId===o.current.id){let y=g.pointerType||"mouse";l(g,y),o.current.id=null,a(window,"pointermove",h,!1),a(window,"pointerup",b,!1),a(window,"pointercancel",b,!1)}};c.onPointerDown=g=>{g.button===0&&o.current.id==null&&(f(),g.stopPropagation(),g.preventDefault(),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY},o.current.id=g.pointerId,i(window,"pointermove",h,!1),i(window,"pointerup",b,!1),i(window,"pointercancel",b,!1))}}let p=(h,b,g)=>{f(),s(h,"keyboard",b,g),l(h,"keyboard")};return c.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),p(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),p(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),p(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),p(h,0,1);break}},c},[o,i,a,s,l])}}function Bx(e,t){let{onScroll:n,isDisabled:r}=e,o=u.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),n&&n({deltaX:i.deltaX,deltaY:i.deltaY}))},[n]);Di(t,"wheel",r?void 0:o)}const Ix=500;function a0(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Ix,accessibilityDescription:a}=e;const s=u.useRef();let{addGlobalListener:l,removeGlobalListener:d}=hr(),{pressProps:c}=sn({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let h=b=>{b.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Yp(o&&!t?a:void 0);return{longPressProps:X(c,f)}}function kn(e){const t=ye(e);if(Si()==="virtual"){let n=t.activeElement;Wp(()=>{t.activeElement===n&&e.isConnected&&Pt(e)})}else Pt(e)}function Lx(e){const t=ft(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Vx(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function s0(e,t){return e.nodeName!=="#comment"&&Lx(e)&&Vx(e,t)&&(!e.parentElement||s0(e.parentElement,e))}const ad=u.createContext(null);let ve=null;function Ul(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=u.useRef(null),a=u.useRef(null),s=u.useRef([]),{parentNode:l}=u.useContext(ad)||{},d=u.useMemo(()=>new _s({scopeRef:s}),[s]);be(()=>{let p=l||ke.root;if(ke.getTreeNode(p.scopeRef)&&ve&&!Mi(ve,p.scopeRef)){let h=ke.getTreeNode(ve);h&&(p=h)}p.addChild(d),ke.addNode(d)},[d,l]),be(()=>{let p=ke.getTreeNode(s);p&&(p.contain=!!n)},[n]),be(()=>{var p;let h=(p=i.current)===null||p===void 0?void 0:p.nextSibling,b=[];for(;h&&h!==a.current;)b.push(h),h=h.nextSibling;s.current=b},[t]),Ux(s,r,n),jx(s,n),Gx(s,r,n),zx(s,o),u.useEffect(()=>{const p=ye(s.current?s.current[0]:void 0).activeElement;let h=null;if(Ge(p,s.current)){for(let b of ke.traverse())b.scopeRef&&Ge(p,b.scopeRef.current)&&(h=b);h===ke.getTreeNode(s)&&(ve=h.scopeRef)}},[s]),be(()=>()=>{var p,h,b;let g=(b=(h=ke.getTreeNode(s))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(s===ve||Mi(s,ve))&&(!g||ke.getTreeNode(g))&&(ve=g),ke.removeTreeNode(s)},[s]);let c=u.useMemo(()=>Ox(s),[]),f=u.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return u.createElement(ad.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function Ox(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||ye(n[0]).activeElement,l=n[0].previousElementSibling,d=Cn(n),c=Ze(d,{tabbable:o,accept:a},n);c.currentNode=Ge(s,n)?s:l;let f=c.nextNode();return!f&&i&&(c.currentNode=l,f=c.nextNode()),f&&et(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||ye(n[0]).activeElement,l=n[n.length-1].nextElementSibling,d=Cn(n),c=Ze(d,{tabbable:o,accept:a},n);c.currentNode=Ge(s,n)?s:l;let f=c.previousNode();return!f&&i&&(c.currentNode=l,f=c.previousNode()),f&&et(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Ze(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&et(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Ze(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&et(s,!0),s}}}const Hl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Nx=Hl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Hl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Kx=Hl.join(':not([hidden]):not([tabindex="-1"]),');function Cn(e){return e[0].parentElement}function _r(e){let t=ke.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function jx(e,t){let n=u.useRef(),r=u.useRef();be(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=ye(o?o[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!_r(e))return;let c=i.activeElement,f=e.current;if(!f||!Ge(c,f))return;let p=Cn(f),h=Ze(p,{tabbable:!0},f);if(!c)return;h.currentNode=c;let b=d.shiftKey?h.previousNode():h.nextNode();b||(h.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=d.shiftKey?h.previousNode():h.nextNode()),d.preventDefault(),b&&et(b,!0)},s=d=>{(!ve||Mi(ve,e))&&Ge(d.target,e.current)?(ve=e,n.current=d.target):_r(e)&&!Ai(d.target,e)?n.current?n.current.focus():ve&&ve.current&&ki(ve.current):_r(e)&&(n.current=d.target)},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&_r(e)&&!Ai(i.activeElement,e))if(ve=e,i.body.contains(d.target)){var c;n.current=d.target,(c=n.current)===null||c===void 0||c.focus()}else ve.current&&ki(ve.current)})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(d=>d.addEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(d=>d.removeEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),be(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function l0(e){return Ai(e)}function Ge(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ai(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ke.traverse(ke.getTreeNode(t)))if(n&&Ge(e,n.current))return!0;return!1}function _x(e){return Ai(e,ve)}function Mi(e,t){var n;let r=(n=ke.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function et(e,t=!1){if(e!=null&&!t)try{kn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ki(e,t=!0){let n=e[0].previousElementSibling,r=Cn(e),o=Ze(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Cn(e),o=Ze(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),et(i)}function zx(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){ve=e;const r=ye(e.current?e.current[0]:void 0);!Ge(r.activeElement,ve.current)&&e.current&&ki(e.current)}n.current=!1},[e])}function Ux(e,t,n){be(()=>{if(t||n)return;let r=e.current;const o=ye(r?r[0]:void 0);let i=a=>{let s=a.target;Ge(s,e.current)?ve=e:l0(s)||(ve=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function Hx(e){let t=ke.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Gx(e,t,n){const r=u.useRef(typeof document<"u"?ye(e.current?e.current[0]:void 0).activeElement:null);be(()=>{let o=e.current;const i=ye(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ve||Mi(ve,e))&&Ge(i.activeElement,e.current)&&(ve=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),be(()=>{const o=ye(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!_r(e))return;let s=o.activeElement;if(!Ge(s,e.current))return;let l=ke.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,c=Ze(o.body,{tabbable:!0});c.currentNode=s;let f=a.shiftKey?c.previousNode():c.nextNode();if((!d||!o.body.contains(d)||d===o.body)&&(d=void 0,l.nodeToRestore=void 0),(!f||!Ge(f,e.current))&&d){c.currentNode=d;do f=a.shiftKey?c.previousNode():c.nextNode();while(Ge(f,e.current));a.preventDefault(),a.stopPropagation(),f?et(f,!0):l0(d)?et(d,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),be(()=>{const o=ye(e.current?e.current[0]:void 0);if(!t)return;let i=ke.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=ke.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(Ge(o.activeElement,e.current)||o.activeElement===o.body&&Hx(e))){let d=ke.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){et(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&ke.getTreeNode(c.scopeRef)){ki(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function Ze(e,t,n){let r=t!=null&&t.tabbable?Kx:Nx,o=ye(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&s0(i)&&(!n||Ge(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function u0(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||ye(r).activeElement,d=Ze(r,{tabbable:i,accept:s});r.contains(l)&&(d.currentNode=l);let c=d.nextNode();return!c&&a&&(d.currentNode=r,c=d.nextNode()),c&&et(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||ye(r).activeElement,d=Ze(r,{tabbable:i,accept:s});if(r.contains(l))d.currentNode=l;else{let f=Ga(d);return f&&et(f,!0),f??null}let c=d.previousNode();if(!c&&a){d.currentNode=r;let f=Ga(d);if(!f)return null;c=f}return c&&et(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=Ze(r,{tabbable:o,accept:i}).nextNode();return s&&et(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=Ze(r,{tabbable:o,accept:i}),s=Ga(a);return s&&et(s,!0),s??null}}}function Ga(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Gl{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new _s({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ge(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Gl;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _s({scopeRef:null}),this.fastMap.set(null,this.root)}}class _s{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let ke=new Gl;function Ye(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||lr()}),[i,a]=u.useState(!1),[s,l]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=u.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=u.useCallback(h=>{o.current.isFocused=h,a(h),d()},[d]);Rx(h=>{o.current.isFocusVisible=h,d()},[],{isTextInput:n});let{focusProps:f}=ea({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=br({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}let Wx=u.createContext(null);function Yx(e){let t=u.useContext(Wx)||{};jl(t,e);let{ref:n,...r}=t;return r}function mr(e,t){let{focusProps:n}=ea(e),{keyboardProps:r}=zl(e),o=X(n,r),i=Yx(t),a=e.isDisabled?{}:i,s=u.useRef(e.autoFocus);return u.useEffect(()=>{s.current&&t.current&&kn(t.current),s.current=!1},[t]),{focusableProps:X({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function qx(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=u.useState(!1);return be(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let s=Ze(e.current,{tabbable:!0});o(!!s.nextNode())}};i();let a=new MutationObserver(i);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),n?!1:r}var c0=globalThis!=null&&globalThis.document?u.useLayoutEffect:u.useEffect;function Zx(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[d,c]=u.useState("pending");u.useEffect(()=>{c(n?"loading":"pending")},[n]);const f=u.useRef(),p=u.useCallback(()=>{if(!n)return;h();const b=new Image;b.src=n,a&&(b.crossOrigin=a),r&&(b.srcset=r),s&&(b.sizes=s),t&&(b.loading=t),b.onload=g=>{h(),c("loaded"),o==null||o(g)},b.onerror=g=>{h(),c("failed"),i==null||i(g)},f.current=b},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return c0(()=>{if(!l)return d==="loading"&&p(),()=>{h()}},[d,p,l]),l?"loaded":d}function Xx(e={}){var t,n,r,o,i;const a=Mp(),s=!!a,{as:l,ref:d,src:c,name:f,icon:p,classNames:h,fallback:b,alt:g=f||"avatar",imgRef:y,color:$=(t=a==null?void 0:a.color)!=null?t:"default",radius:C=(n=a==null?void 0:a.radius)!=null?n:"full",size:w=(r=a==null?void 0:a.size)!=null?r:"md",isBordered:E=(o=a==null?void 0:a.isBordered)!=null?o:!1,isDisabled:P=(i=a==null?void 0:a.isDisabled)!=null?i:!1,isFocusable:k=!1,getInitials:N=R$,ignoreFallback:v=!1,showFallback:L=!1,ImgComponent:F="img",imgProps:A,className:B,onError:R,...I}=e,K=l||"span",V=As(d),T=As(y),{isFocusVisible:G,isFocused:Y,focusProps:H}=Ye(),{isHovered:D,hoverProps:O}=Fe({isDisabled:P}),J=Zx({src:c,onError:R,ignoreFallback:v})==="loaded",Q=(!c||!J)&&L,re=u.useMemo(()=>{var se;return I3({color:$,radius:C,size:w,isBordered:E,isDisabled:P,isInGroup:s,isInGridGroup:(se=a==null?void 0:a.isGrid)!=null?se:!1})},[$,C,w,E,P,s,a==null?void 0:a.isGrid]),z=sr(h==null?void 0:h.base,B),q=u.useMemo(()=>k||l==="button",[k,l]),te=u.useCallback((se={})=>({ref:V,tabIndex:q?0:-1,"data-hover":Et(D),"data-focus":Et(Y),"data-focus-visible":Et(G),className:re.base({class:sr(z,se==null?void 0:se.className)}),...X(I,O,q?H:{})}),[q,re,z,H,I]),ae=u.useCallback((se={})=>({ref:T,src:c,"data-loaded":Et(J),className:re.img({class:h==null?void 0:h.img}),...X(A,se)}),[re,J,A,c,T]);return{Component:K,ImgComponent:F,src:c,alt:g,icon:p,name:f,imgRef:T,slots:re,classNames:h,fallback:b,isImgLoaded:J,showFallback:Q,ignoreFallback:v,getInitials:N,getAvatarProps:te,getImageProps:ae}}const Jx=Symbol.for("react-aria.i18n.locale"),Qx=Symbol.for("react-aria.i18n.strings");let Hn;class In{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=e5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Jx];if(Hn===void 0){let o=window[Qx];if(!o)return null;Hn={};for(let i in o)Hn[i]=new In({[n]:o[i]},n)}let r=Hn==null?void 0:Hn[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function e5(e,t,n="en-US"){if(t[e])return t[e];let r=t5(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function t5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const sd=new Map,ld=new Map;class d0{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=sd.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),sd.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=ld.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ld.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function Nt(e,t){return e-t*Math.floor(e/t)}const f0=1721426;function Dn(e,t,n,r){t=vo(e,t);let o=t-1,i=-2;return n<=2?i=0:nn(t)&&(i=-1),f0-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function nn(e){return e%4===0&&(e%100!==0||e%400===0)}function vo(e,t){return e==="BC"?1-t:t}function na(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const n5={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class nt{fromJulianDay(t){let n=t,r=n-f0,o=Math.floor(r/146097),i=Nt(r,146097),a=Math.floor(i/36524),s=Nt(i,36524),l=Math.floor(s/1461),d=Nt(s,1461),c=Math.floor(d/365),f=o*400+a*100+l*4+c+(a!==4&&c!==4?1:0),[p,h]=na(f),b=n-Dn(p,h,1,1),g=2;n<Dn(p,h,3,1)?g=0:nn(h)&&(g=1);let y=Math.floor(((b+g)*12+373)/367),$=n-Dn(p,h,y,1)+1;return new Re(p,h,y,$)}toJulianDay(t){return Dn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return n5[nn(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return nn(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function p0(e){return Lt(Date.now(),e)}function r5(e){return y0(p0(e))}function h0(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function b0(e,t){return ud(e)-ud(t)}function ud(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Wa=null;function Wl(){return Wa==null&&(Wa=new Intl.DateTimeFormat().resolvedOptions().timeZone),Wa}function o5(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function i5(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function ur(e){e=Xe(e,new nt);let t=vo(e.era,e.year);return m0(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function m0(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function zs(e,t){if(t==="UTC")return 0;if(e>0&&t===Wl())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=g0(e,t);return m0(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}const cd=new Map;function g0(e,t){let n=cd.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),cd.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const dd=864e5;function a5(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>s5(e,t,i))}function s5(e,t,n){let r=g0(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function It(e,t,n="compatible"){let r=ln(e);if(t==="UTC")return ur(r);if(t===Wl()&&n==="compatible"){r=Xe(r,new nt);let l=new Date,d=vo(r.era,r.year);return l.setFullYear(d,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=ur(r),i=zs(o-dd,t),a=zs(o+dd,t),s=a5(r,t,o-i,o-a);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function v0(e,t,n="compatible"){return new Date(It(e,t,n))}function Lt(e,t){let n=zs(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new io(o,i,a,t,n,s,l,d,c)}function y0(e){return new Re(e.calendar,e.era,e.year,e.month,e.day)}function ln(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new Ri(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function fd(e){return new oa(e.hour,e.minute,e.second,e.millisecond)}function Xe(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Rn(r),r}function $0(e,t,n){if(e instanceof io)return e.timeZone===t?e:u5(e,t);let r=It(e,t,n);return Lt(r,t)}function l5(e){let t=ur(e)-e.offset;return new Date(t)}function u5(e,t){let n=ur(e)-e.offset;return Xe(Lt(n,t),e.calendar)}const Br=36e5;function ra(e,t){let n=e.copy(),r="hour"in n?D0(n,t):0;Us(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Hs(n),x0(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,c5(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,a;let l=(i=(a=n.calendar).isInverseEra)===null||i===void 0?void 0:i.call(a,n);n.year=o,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Us(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Hs(e){for(;e.month<1;)Us(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Us(e,1)}function c5(e){for(;e.day<1;)e.month--,Hs(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Hs(e)}function x0(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Rn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),x0(e)}function Yl(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function w0(e,t){return ra(e,Yl(t))}function ql(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Rn(n),n}function oo(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),C0(n),n}function d5(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Zo(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Zo(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Zo(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Zo(e.hour,24),t}function C0(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Zo(e,t){let n=e%t;return n<0&&(n+=t),n}function D0(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,d5(e)}function E0(e,t){let n=e.copy();return D0(n,t),n}function f5(e,t){return E0(e,Yl(t))}function Zl(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Vt(l,n,0,s.length-1,r==null?void 0:r.round),o.era=s[l],Rn(o);break}case"year":var i,a;!((i=(a=o.calendar).isInverseEra)===null||i===void 0)&&i.call(a,o)&&(n=-n),o.year=Vt(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=Vt(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=Vt(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Rn(o),o}function Xl(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,a=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=i>=12;a=l?12:0,s=l?23:11}o.hour=Vt(i,n,a,s,r==null?void 0:r.round);break}case"minute":o.minute=Vt(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=Vt(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=Vt(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Vt(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function P0(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=ra(ln(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=It(o,e.timeZone)}else n=ur(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Lt(n,e.timeZone);return Xe(r,e.calendar)}function p5(e,t){return P0(e,Yl(t))}function h5(e,t,n,r){switch(t){case"hour":{let o=0,i=23;if((r==null?void 0:r.hourCycle)===12){let b=e.hour>=12;o=b?12:0,i=b?23:11}let a=ln(e),s=Xe(oo(a,{hour:o}),new nt),l=[It(s,e.timeZone,"earlier"),It(s,e.timeZone,"later")].filter(b=>Lt(b,e.timeZone).day===s.day)[0],d=Xe(oo(a,{hour:i}),new nt),c=[It(d,e.timeZone,"earlier"),It(d,e.timeZone,"later")].filter(b=>Lt(b,e.timeZone).day===d.day).pop(),f=ur(e)-e.offset,p=Math.floor(f/Br),h=f%Br;return f=Vt(p,n,Math.floor(l/Br),Math.floor(c/Br),r==null?void 0:r.round)*Br+h,Xe(Lt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Xl(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Zl(ln(e),t,n,r),i=It(o,e.timeZone);return Xe(Lt(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function b5(e,t,n){let r=ln(e),o=oo(ql(r,t),t);if(o.compare(r)===0)return e;let i=It(o,e.timeZone,n);return Xe(Lt(i,e.timeZone),e.calendar)}function S0(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function T0(e){let t=Xe(e,new nt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function A0(e){return`${T0(e)}T${S0(e)}`}function m5(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function g5(e){return`${A0(e)}${m5(e.offset)}[${e.timeZone}]`}function Jl(e){let t=typeof e[0]=="object"?e.shift():new nt,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var v5=new WeakMap;class Re{copy(){return this.era?new Re(this.calendar,this.era,this.year,this.month,this.day):new Re(this.calendar,this.year,this.month,this.day)}add(t){return ra(this,t)}subtract(t){return w0(this,t)}set(t){return ql(this,t)}cycle(t,n,r){return Zl(this,t,n,r)}toDate(t){return v0(this,t)}toString(){return T0(this)}compare(t){return h0(this,t)}constructor(...t){go(this,v5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,Rn(this)}}var y5=new WeakMap;class oa{copy(){return new oa(this.hour,this.minute,this.second,this.millisecond)}add(t){return E0(this,t)}subtract(t){return f5(this,t)}set(t){return oo(this,t)}cycle(t,n,r){return Xl(this,t,n,r)}toString(){return S0(this)}compare(t){return b0(this,t)}constructor(t=0,n=0,r=0,o=0){go(this,y5,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,C0(this)}}var $5=new WeakMap;class Ri{copy(){return this.era?new Ri(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ri(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ra(this,t)}subtract(t){return w0(this,t)}set(t){return ql(oo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Zl(this,t,n,r);default:return Xl(this,t,n,r)}}toDate(t,n){return v0(this,t,n)}toString(){return A0(this)}compare(t){let n=h0(this,t);return n===0?b0(this,ln(t)):n}constructor(...t){go(this,$5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Rn(this)}}var x5=new WeakMap;class io{copy(){return this.era?new io(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new io(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return P0(this,t)}subtract(t){return p5(this,t)}set(t,n){return b5(this,t,n)}cycle(t,n,r){return h5(this,t,n,r)}toDate(){return l5(this)}toString(){return g5(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-$0(t,this.timeZone).toDate().getTime()}constructor(...t){go(this,x5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Rn(this)}}const or=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],w5=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],di=[1867,1911,1925,1988,2018],en=["meiji","taisho","showa","heisei","reiwa"];function pd(e){const t=or.findIndex(([n,r,o])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<o);return t===-1?or.length-1:t===0?0:t-1}function Ya(e){let t=di[en.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Re(e.year+t,e.month,e.day)}class C5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=pd(n);return new Re(this,en[r],n.year-di[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Ya(t))}balanceDate(t){let n=Ya(t),r=pd(n);en[r]!==t.era&&(t.era=en[r],t.year=n.year-di[r]),this.constrainDate(t)}constrainDate(t){let n=en.indexOf(t.era),r=w5[n];if(r!=null){let[o,i,a]=r,s=o-di[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,o,i]=or[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(i,t.day))}}getEras(){return en}getYearsInEra(t){let n=en.indexOf(t.era),r=or[n],o=or[n+1];if(o==null)return 9999-r[0]+1;let i=o[0]-r[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(Ya(t))}getMinimumMonthInYear(t){let n=hd(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=hd(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function hd(e){if(e.year===1){let t=en.indexOf(e.era);return or[t]}}const M0=-543;class D5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year);return new Re(this,r-M0,n.month,n.day)}toJulianDay(t){return super.toJulianDay(bd(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(bd(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function bd(e){let[t,n]=na(e.year+M0);return new Re(t,n,e.month,e.day)}const Fi=1911;function k0(e){return e.era==="minguo"?e.year+Fi:1-e.year+Fi}function md(e){let t=e-Fi;return t>0?["minguo",t]:["before_minguo",1-t]}class E5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year),[o,i]=md(r);return new Re(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(gd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=md(k0(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(gd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Fi}constructor(...t){super(...t),this.identifier="roc"}}function gd(e){let[t,n]=na(k0(e));return new Re(t,n,e.month,e.day)}const P5=1948321;function S5(e){let t=e>0?e-474:e-473,n=Nt(t,2820)+474;return Nt((n+38)*31,128)<31}function Xo(e,t,n){let r=e>0?e-474:e-473,o=Nt(r,2820)+474,i=t<=7?31*(t-1):30*(t-1)+6;return P5-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+n}class T5{fromJulianDay(t){let n=t-Xo(475,1,1),r=Math.floor(n/1029983),o=Nt(n,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),a=474+2820*r+i;a<=0&&a--;let s=t-Xo(a,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),d=t-Xo(a,l,1)+1;return new Re(this,a,l,d)}toJulianDay(t){return Xo(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||S5(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const qa=78,vd=80;class A5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-qa,o=t-Dn(n.era,n.year,1,1),i;o<vd?(r--,i=nn(n.year-1)?31:30,o+=i+155+90+10):(i=nn(n.year)?31:30,o-=vd);let a,s;if(o<i)a=1,s=o+1;else{let l=o-i;l<155?(a=Math.floor(l/31)+2,s=l%31+1):(l-=155,a=Math.floor(l/30)+7,s=l%30+1)}return new Re(this,r,a,s)}toJulianDay(t){let n=t.year+qa,[r,o]=na(n),i,a;return nn(o)?(i=31,a=Dn(r,o,3,21)):(i=30,a=Dn(r,o,3,22)),t.month===1?a+t.day-1:(a+=i+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&nn(t.year+qa)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Bi=1948440,yd=1948439,ut=1300,Gn=1600,M5=460322;function Ii(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function R0(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+Ii(t,r,1,1)))/29.5)+1),i=n-Ii(t,r,o,1)+1;return new Re(e,r,o,i)}function $d(e){return(14+11*e)%30<11}class Ql{fromJulianDay(t){return R0(this,Bi,t)}toJulianDay(t){return Ii(Bi,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&$d(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return $d(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class k5 extends Ql{fromJulianDay(t){return R0(this,yd,t)}toJulianDay(t){return Ii(yd,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const R5="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Gs,ir;function fi(e){return M5+ir[e-ut]}function zr(e,t){let n=e-ut,r=1<<11-(t-1);return Gs[n]&r?30:29}function xd(e,t){let n=fi(e);for(let r=1;r<t;r++)n+=zr(e,r);return n}function wd(e){return ir[e+1-ut]-ir[e-ut]}class F5 extends Ql{fromJulianDay(t){let n=t-Bi,r=fi(ut),o=fi(Gn);if(n<r||n>o)return super.fromJulianDay(t);{let i=ut-1,a=1,s=1;for(;s>0;){i++,s=n-fi(i)+1;let l=wd(i);if(s===l){a=12;break}else if(s<l){let d=zr(i,a);for(a=1;s>d;)s-=d,a++,d=zr(i,a);break}}return new Re(this,i,a,n-xd(i,a)+1)}}toJulianDay(t){return t.year<ut||t.year>Gn?super.toJulianDay(t):Bi+xd(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ut||t.year>Gn?super.getDaysInMonth(t):zr(t.year,t.month)}getDaysInYear(t){return t.year<ut||t.year>Gn?super.getDaysInYear(t):wd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Gs||(Gs=new Uint16Array(Uint8Array.from(atob(R5),t=>t.charCodeAt(0)).buffer)),!ir){ir=new Uint32Array(Gn-ut+1);let t=0;for(let n=ut;n<=Gn;n++){ir[n-ut]=t;for(let r=1;r<=12;r++)t+=zr(n,r)}}}}const Cd=347997,F0=1080,B0=24*F0,B5=29,I5=12*F0+793,L5=B5*B0+I5;function $n(e){return Nt(e*7+1,19)<7}function pi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Nt(3*(r+1),7)<3&&(r+=1),r}function V5(e){let t=pi(e-1),n=pi(e);return pi(e+1)-n===356?2:n-t===382?1:0}function Wr(e){return pi(e)+V5(e)}function I0(e){return Wr(e+1)-Wr(e)}function O5(e){let t=I0(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Jo(e,t){if(t>=6&&!$n(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=O5(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class N5{fromJulianDay(t){let n=t-Cd,r=n*B0/L5,o=Math.floor((19*r+234)/235)+1,i=Wr(o),a=Math.floor(n-i);for(;a<1;)o--,i=Wr(o),a=Math.floor(n-i);let s=1,l=0;for(;l<a;)l+=Jo(o,s),s++;s--,l-=Jo(o,s);let d=a-l;return new Re(this,o,s,d)}toJulianDay(t){let n=Wr(t.year);for(let r=1;r<t.month;r++)n+=Jo(t.year,r);return n+t.day+Cd}getDaysInMonth(t){return Jo(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return I0(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&($n(n.year)&&!$n(t.year)&&n.month>6?t.month--:!$n(n.year)&&$n(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ws=1723856,Dd=1824665,Ys=5500;function Li(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function eu(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Li(e,n,1,1))/30),o=t+1-Li(e,n,r,1);return[n,r,o]}function L0(e){return Math.floor(e%4/3)}function V0(e,t){return t%13!==0?30:L0(e)+5}class tu{fromJulianDay(t){let[n,r,o]=eu(Ws,t),i="AM";return n<=0&&(i="AA",n+=Ys),new Re(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Ys),Li(Ws,n,t.month,t.day)}getDaysInMonth(t){return V0(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+L0(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class K5 extends tu{fromJulianDay(t){let[n,r,o]=eu(Ws,t);return n+=Ys,new Re(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class j5 extends tu{fromJulianDay(t){let[n,r,o]=eu(Dd,t),i="CE";return n<=0&&(i="BCE",n=1-n),new Re(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Li(Dd,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),V0(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function O0(e){switch(e){case"buddhist":return new D5;case"ethiopic":return new tu;case"ethioaa":return new K5;case"coptic":return new j5;case"hebrew":return new N5;case"indian":return new A5;case"islamic-civil":return new Ql;case"islamic-tbla":return new k5;case"islamic-umalqura":return new F5;case"japanese":return new C5;case"persian":return new T5;case"roc":return new E5;case"gregory":default:return new nt}}let Za=new Map;class Yr{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return U5()&&(this.resolvedHourCycle||(this.resolvedHourCycle=H5(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=N0(t,n),this.options=n}}const _5={true:{ja:"h11"},false:{}};function N0(e,t={}){if(typeof t.hour12=="boolean"&&z5()){t={...t};let o=_5[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=o??i,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Za.has(n))return Za.get(n);let r=new Intl.DateTimeFormat(e,t);return Za.set(n,r),r}let Xa=null;function z5(){return Xa==null&&(Xa=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Xa}let Ja=null;function U5(){return Ja==null&&(Ja=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Ja}function H5(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=N0(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&o===23)return"h23";if(r===24&&o===23)return"h24";if(r===0&&o===11)return"h11";if(r===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}let Qa=new Map,qs=!1;try{qs=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Vi=!1;try{Vi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const K0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Oi{format(t){let n="";if(!qs&&this.options.signDisplay!=null?n=W5(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Vi){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=K0[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!qs&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Vi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=G5(t,n),this.options=n}}function G5(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Vi){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=K0[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Qa.has(o))return Qa.get(o);let i=new Intl.NumberFormat(e,t);return Qa.set(o,i),i}function W5(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}const Y5=new RegExp("^.*\\(.*\\).*$"),q5=["latn","arab","hanidec"];class nu{parse(t){return es(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return es(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return es(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Ed=new Map;function es(e,t,n){let r=Pd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of q5)if(o!==r.options.numberingSystem){let i=Pd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Pd(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=Ed.get(n);return r||(r=new Z5(e,t),Ed.set(n,r)),r}class Z5{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Qo(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let i=n.indexOf(".");i===-1&&(i=n.length),n=n.replace(".",""),i-2===0?n=`0.${n}`:i-2===-1?n=`0.0${n}`:i-2===-2?n="0.00":n=`${n.slice(0,i-2)}.${n.slice(i-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new nu(this.locale,o).parse(new Oi(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&Y5.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(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(t=Qo(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Qo(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<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=Qo(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=J5(t,this.formatter,this.options,n);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 Sd=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),X5=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function J5(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),d=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),f=X5.map(F=>l.formatToParts(F));var p;let h=(p=(o=d.find(F=>F.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",b=(i=c.find(F=>F.type==="plusSign"))===null||i===void 0?void 0:i.value;!b&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(b="+");let y=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(F=>F.type==="decimal"))===null||a===void 0?void 0:a.value,$=(s=d.find(F=>F.type==="group"))===null||s===void 0?void 0:s.value,C=d.filter(F=>!Sd.has(F.type)).map(F=>Td(F.value)),w=f.flatMap(F=>F.filter(A=>!Sd.has(A.type)).map(A=>Td(A.value))),E=[...new Set([...C,...w])].sort((F,A)=>A.length-F.length),P=E.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${E.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),N=new Map(k.map((F,A)=>[F,A])),v=new RegExp(`[${k.join("")}]`,"g");return{minusSign:h,plusSign:b,decimal:y,group:$,literals:P,numeral:v,index:F=>String(N.get(F))}}function Qo(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Td(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Q5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),e2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function t2(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Q5.has(n.script)}let t=e.split("-")[0];return e2.has(t)}const n2=Symbol.for("react-aria.i18n.locale");function j0(){let e=typeof window<"u"&&window[n2]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:t2(e)?"rtl":"ltr"}}let Zs=j0(),Ur=new Set;function Ad(){Zs=j0();for(let e of Ur)e(Zs)}function r2(){let e=At(),[t,n]=u.useState(Zs);return u.useEffect(()=>(Ur.size===0&&window.addEventListener("languagechange",Ad),Ur.add(n),()=>{Ur.delete(n),Ur.size===0&&window.removeEventListener("languagechange",Ad)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const o2=u.createContext(null);function Ve(){let e=r2();return u.useContext(o2)||e}const Md=new WeakMap;function i2(e){let t=Md.get(e);return t||(t=new In(e),Md.set(e,t)),t}function _0(e,t){return t&&In.getGlobalDictionaryForPackage(t)||i2(e)}function gr(e,t){let{locale:n}=Ve(),r=_0(e,t);return u.useMemo(()=>new d0(n,r),[n,r])}function ei(e){e=px(e??{},a2);let{locale:t}=Ve();return u.useMemo(()=>new Yr(t,e),[t,e])}function a2(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function Ni(e={}){let{locale:t}=Ve();return u.useMemo(()=>new Oi(t,e),[t,e])}let ts=new Map;function ru(e){let{locale:t}=Ve(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ts.has(n))return ts.get(n);let r=new Intl.Collator(t,e);return ts.set(n,r),r}function z0(e){let t=ru({usage:"search",...e}),n=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(0,a.length),a)===0),[t]),r=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(-a.length),a)===0),[t]),o=u.useCallback((i,a)=>{if(a.length===0)return!0;i=i.normalize("NFC"),a=a.normalize("NFC");let s=0,l=a.length;for(;s+l<=i.length;s++){let d=i.slice(s,s+l);if(t.compare(a,d)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var U0={};U0={dismiss:"تجاهل"};var H0={};H0={dismiss:"Отхвърляне"};var G0={};G0={dismiss:"Odstranit"};var W0={};W0={dismiss:"Luk"};var Y0={};Y0={dismiss:"Schließen"};var q0={};q0={dismiss:"Απόρριψη"};var Z0={};Z0={dismiss:"Dismiss"};var X0={};X0={dismiss:"Descartar"};var J0={};J0={dismiss:"Lõpeta"};var Q0={};Q0={dismiss:"Hylkää"};var eh={};eh={dismiss:"Rejeter"};var th={};th={dismiss:"התעלם"};var nh={};nh={dismiss:"Odbaci"};var rh={};rh={dismiss:"Elutasítás"};var oh={};oh={dismiss:"Ignora"};var ih={};ih={dismiss:"閉じる"};var ah={};ah={dismiss:"무시"};var sh={};sh={dismiss:"Atmesti"};var lh={};lh={dismiss:"Nerādīt"};var uh={};uh={dismiss:"Lukk"};var ch={};ch={dismiss:"Negeren"};var dh={};dh={dismiss:"Zignoruj"};var fh={};fh={dismiss:"Descartar"};var ph={};ph={dismiss:"Dispensar"};var hh={};hh={dismiss:"Revocare"};var bh={};bh={dismiss:"Пропустить"};var mh={};mh={dismiss:"Zrušiť"};var gh={};gh={dismiss:"Opusti"};var vh={};vh={dismiss:"Odbaci"};var yh={};yh={dismiss:"Avvisa"};var $h={};$h={dismiss:"Kapat"};var xh={};xh={dismiss:"Скасувати"};var wh={};wh={dismiss:"取消"};var Ch={};Ch={dismiss:"關閉"};const kd={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function s2(e={}){let{style:t,isFocusable:n}=e,[r,o]=u.useState(!1),{focusWithinProps:i}=br({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=u.useMemo(()=>r?t:t?{...kd,...t}:kd,[r]);return{visuallyHiddenProps:{...i,style:a}}}function ia(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=s2(e);return u.createElement(n,X(i,a),t)}function l2(e){return e&&e.__esModule?e.default:e}const Jn={top:"top",bottom:"top",left:"left",right:"left"},Ki={top:"bottom",bottom:"top",left:"right",right:"left"},u2={top:"left",left:"top"},Xs={top:"height",left:"width"},Dh={width:"totalWidth",height:"totalHeight"},ti={};let Je=typeof document<"u"&&window.visualViewport;function Rd(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={},l=(Je==null?void 0:Je.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var d;t=(d=Je==null?void 0:Je.width)!==null&&d!==void 0?d:r;var c;n=(c=Je==null?void 0:Je.height)!==null&&c!==void 0?c:o,s.top=f.scrollTop||e.scrollTop,s.left=f.scrollLeft||e.scrollLeft,Je&&(i=Je.offsetTop,a=Je.offsetLeft)}else({width:t,height:n,top:i,left:a}=ar(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return Ol()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(s.top=0,s.left=0,i=Je.pageTop,a=Je.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function c2(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Fd(e,t,n,r,o,i,a){let s=o.scroll[e],l=r[Xs[e]],d=r.scroll[Jn[e]]+i,c=l+r.scroll[Jn[e]]-i,f=t-s+a[e]-r[Jn[e]],p=t-s+n+a[e]-r[Jn[e]];return f<d?d-f:p>c?Math.max(c-p,d-f):0}function d2(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Bd(e){if(ti[e])return ti[e];let[t,n]=e.split(" "),r=Jn[t]||"right",o=u2[r];Jn[n]||(n="center");let i=Xs[r],a=Xs[o];return ti[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},ti[e]}function ns(e,t,n,r,o,i,a,s,l,d){let{placement:c,crossPlacement:f,axis:p,crossAxis:h,size:b,crossSize:g}=r,y={};y[h]=e[h],f==="center"?y[h]+=(e[g]-n[g])/2:f!==h&&(y[h]+=e[g]-n[g]),y[h]+=i;const $=e[h]-n[g]+l+d,C=e[h]+e[g]-l-d;if(y[h]=pt(y[h],$,C),c===p){const w=s?a[b]:t[Dh[b]];y[Ki[p]]=Math.floor(w-e[p]+o)}else y[p]=Math.floor(e[p]+e[b]+o);return y}function f2(e,t,n,r,o,i,a,s){const l=r?n.height:t[Dh.height];let d=e.top!=null?n.top+e.top:n.top+(l-e.bottom-a),c=s!=="top"?Math.max(0,t.height+t.top+t.scroll.top-d-(o.top+o.bottom+i)):Math.max(0,d+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,c)}function Id(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[Ki[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[Ki[s]]-o)}function p2(e,t,n,r,o,i,a,s,l,d,c,f,p,h,b,g){let y=Bd(e),{size:$,crossAxis:C,crossSize:w,placement:E,crossPlacement:P}=y,k=ns(t,s,n,y,c,f,d,p,b,g),N=c,v=Id(s,d,t,o,i+c,y);if(a&&r[$]>v){let Y=Bd(`${Ki[E]} ${P}`),H=ns(t,s,n,Y,c,f,d,p,b,g);Id(s,d,t,o,i+c,Y)>v&&(y=Y,k=H,N=c)}let L="bottom";y.axis==="top"?y.placement==="top"?L="top":y.placement==="bottom"&&(L="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?L="bottom":y.crossPlacement==="bottom"&&(L="top"));let F=Fd(C,k[C],n[w],s,l,i,d);k[C]+=F;let A=f2(k,s,d,p,o,i,n.height,L);h&&h<A&&(A=h),n.height=Math.min(n.height,A),k=ns(t,s,n,y,N,f,d,p,b,g),F=Fd(C,k[C],n[w],s,l,i,d),k[C]+=F;let B={},R=t[C]+.5*t[w]-n[C];const I=b/2+g,K=n[w]-b/2-g,V=t[C]-n[C]+b/2,T=t[C]+t[w]-n[C]-b/2,G=pt(R,V,T);return B[C]=pt(G,I,K),{position:k,maxHeight:A,arrowOffsetLeft:B.left,arrowOffsetTop:B.top,placement:y.placement}}function h2(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,h=r instanceof HTMLElement?b2(r):document.documentElement,b=h===document.documentElement;const g=window.getComputedStyle(h).position;let y=!!g&&g!=="static",$=b?ar(n):Ld(n,h);if(!b){let{marginTop:v,marginLeft:L}=window.getComputedStyle(n);$.top+=parseInt(v,10)||0,$.left+=parseInt(L,10)||0}let C=ar(r),w=d2(r);C.width+=w.left+w.right,C.height+=w.top+w.bottom;let E=c2(o),P=Rd(s),k=Rd(h),N=s.tagName==="BODY"?ar(h):Ld(h,s);return h.tagName==="HTML"&&s.tagName==="BODY"&&(k.scroll.top=0,k.scroll.left=0),p2(t,$,C,E,w,i,a,P,k,N,l,d,y,c,f,p)}function ar(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:n+a-l,width:r,height:o}}function Ld(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:i,width:a,height:s}=e.getBoundingClientRect();r={top:o,left:i,width:a,height:s}}else{r=ar(e);let o=ar(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function b2(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Vd(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Vd(t);)t=t.parentElement;return t||document.documentElement}function Vd(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Eh=new WeakMap;function m2(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current))return;let s=r||Eh.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Te=typeof document<"u"&&window.visualViewport;function Ph(e){let{direction:t}=Ve(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:b,maxHeight:g,arrowBoundaryOffset:y=0}=e,[$,C]=u.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),w=[p,a,o.current,r.current,i.current,s,l,d,c,f,h,t,g,y,n],E=u.useRef(Te==null?void 0:Te.scale);u.useEffect(()=>{h&&(E.current=Te==null?void 0:Te.scale)},[h]);let P=u.useCallback(()=>{if(p===!1||!h||!o.current||!r.current||!i.current||!d||(Te==null?void 0:Te.scale)!==E.current)return;!g&&o.current&&(o.current.style.maxHeight="none");let v=h2({placement:v2(a,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:l,boundaryElement:d,offset:c,crossOffset:f,maxHeight:g,arrowSize:n,arrowBoundaryOffset:y});Object.keys(v.position).forEach(L=>o.current.style[L]=v.position[L]+"px"),o.current.style.maxHeight=v.maxHeight!=null?v.maxHeight+"px":void 0,C(v)},w);be(P,w),g2(P),Kl({ref:o,onResize:P});let k=u.useRef(!1);be(()=>{let v,L=()=>{k.current=!0,clearTimeout(v),v=setTimeout(()=>{k.current=!1},500),P()},F=()=>{k.current&&L()};return Te==null||Te.addEventListener("resize",L),Te==null||Te.addEventListener("scroll",F),()=>{Te==null||Te.removeEventListener("resize",L),Te==null||Te.removeEventListener("scroll",F)}},[P]);let N=u.useCallback(()=>{k.current||b()},[b,k]);return m2({triggerRef:r,isOpen:h,onClose:b&&N}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...$.position,maxHeight:$.maxHeight}},placement:$.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$.arrowOffsetLeft,top:$.arrowOffsetTop}},updatePosition:P}}function g2(e){be(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function v2(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Rt=[];function ou(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;u.useEffect(()=>(o&&Rt.push(t),()=>{let b=Rt.indexOf(t);b>=0&&Rt.splice(b,1)}),[o,t]);let l=()=>{Rt[Rt.length-1]===t&&n&&n()},d=b=>{(!s||s(b.target))&&Rt[Rt.length-1]===t&&(b.stopPropagation(),b.preventDefault())},c=b=>{(!s||s(b.target))&&(Rt[Rt.length-1]===t&&(b.stopPropagation(),b.preventDefault()),l())},f=b=>{b.key==="Escape"&&!a&&(b.stopPropagation(),b.preventDefault(),l())};o0({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:d});let{focusWithinProps:p}=br({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||_x(b.relatedTarget)||(!s||s(b.relatedTarget))&&n()}}),h=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:h}}}function y2(e,t,n){let{type:r}=e,{isOpen:o}=t;u.useEffect(()=>{n&&n.current&&Eh.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=_e();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:null,onPress:t.toggle},overlayProps:{id:a}}}const rs=typeof document<"u"&&window.visualViewport,$2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ni=0,os;function Sh(e={}){let{isDisabled:t}=e;be(()=>{if(!t)return ni++,ni===1&&(pr()?os=w2():os=x2()),()=>{ni--,ni===0&&os()}},[t])}function x2(){return an(Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"))}function w2(){let e,t,n=d=>{e=to(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qn(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},o=d=>{let c=d.target;Nd(c)&&c!==document.activeElement&&(d.preventDefault(),s(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},i=d=>{let c=d.target;Nd(c)&&(s(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",rs&&(rs.height<window.innerHeight?requestAnimationFrame(()=>{Od(c)}):rs.addEventListener("resize",()=>Od(c),{once:!0}))}))},a=null,s=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;a=an(Ir(window,"scroll",d),Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"),Qn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},l=an(Ir(document,"touchstart",n,{passive:!1,capture:!0}),Ir(document,"touchmove",r,{passive:!1,capture:!0}),Ir(document,"touchend",o,{passive:!1,capture:!0}),Ir(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function Qn(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ir(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Od(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=to(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function Nd(e){return e instanceof HTMLInputElement&&!$2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Js=u.createContext(null);function C2(e){let{children:t}=e,n=u.useContext(Js),[r,o]=u.useState(0),i=u.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return u.createElement(Js.Provider,{value:i},t)}function D2(){let e=u.useContext(Js);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function E2(e){let{modalProviderProps:t}=D2();return u.createElement("div",{"data-overlay-container":!0,...e,...t})}function P2(e){return u.createElement(C2,null,u.createElement(E2,e))}function Kd(e){let t=At(),{portalContainer:n=t?null:document.body,...r}=e;if(u.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=u.createElement(P2,r);return Wt.createPortal(o,n)}var Th={};Th={"ar-AE":U0,"bg-BG":H0,"cs-CZ":G0,"da-DK":W0,"de-DE":Y0,"el-GR":q0,"en-US":Z0,"es-ES":X0,"et-EE":J0,"fi-FI":Q0,"fr-FR":eh,"he-IL":th,"hr-HR":nh,"hu-HU":rh,"it-IT":oh,"ja-JP":ih,"ko-KR":ah,"lt-LT":sh,"lv-LV":lh,"nb-NO":uh,"nl-NL":ch,"pl-PL":dh,"pt-BR":fh,"pt-PT":ph,"ro-RO":hh,"ru-RU":bh,"sk-SK":mh,"sl-SI":gh,"sr-SP":vh,"sv-SE":yh,"tr-TR":$h,"uk-UA":xh,"zh-CN":wh,"zh-TW":Ch};function Qs(e){let{onDismiss:t,...n}=e,r=gr(l2(Th),"@react-aria/overlays"),o=An(n,r.format("dismiss")),i=()=>{t&&t()};return u.createElement(ia,null,u.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Lr=new WeakMap,ot=[];function iu(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let d=p=>{if(n.has(p)||r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),f=d(l);if(f===NodeFilter.FILTER_ACCEPT&&i(l),f!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)i(p),p=c.nextNode()}},i=l=>{var d;let c=(d=Lr.get(l))!==null&&d!==void 0?d:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Lr.set(l,c+1))};ot.length&&ot[ot.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let d of l)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(d.target))){for(let c of d.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of d.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return ot.push(s),()=>{a.disconnect();for(let l of r){let d=Lr.get(l);d===1?(l.removeAttribute("aria-hidden"),Lr.delete(l)):Lr.set(l,d-1)}s===ot[ot.length-1]?(ot.pop(),ot.length&&ot[ot.length-1].observe()):ot.splice(ot.indexOf(s),1)}}function S2(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:d}=ou({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:c,arrowProps:f,placement:p}=Ph({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Sh({isDisabled:o||!t.isOpen}),be(()=>{if(t.isOpen&&!o&&r.current)return iu([r.current])},[o,t.isOpen,r]),{popoverProps:X(l,c),arrowProps:f,underlayProps:d,placement:p}}const Ah=u.createContext(null);function Mh(e){let t=At(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=u.useState(!1),a=u.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement(Ul,{restoreFocus:!0,contain:o&&!r},s)),s=u.createElement(Ah.Provider,{value:a},u.createElement(Dx,null,s)),Wt.createPortal(s,n)}function kh(){let e=u.useContext(Ah),t=e==null?void 0:e.setContain;be(()=>{t==null||t(!0)},[t])}function T2(e,t,n){let{overlayProps:r,underlayProps:o}=ou({...e,isOpen:t.isOpen,onClose:t.close},n);return Sh({isDisabled:!t.isOpen}),kh(),u.useEffect(()=>{if(t.isOpen)return iu([n.current])},[t.isOpen,n]),{modalProps:X(r),underlayProps:o}}function aa(e){return u.forwardRef(e)}var Rh=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,a)=>({...i,[a]:e[a]}),{}),r]:[e,r]},Fh=aa((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=S.jsx(A$,{}),alt:a,classNames:s,slots:l,name:d,showFallback:c,fallback:f,getInitials:p,getAvatarProps:h,getImageProps:b}=Xx({...e,ref:t}),g=u.useMemo(()=>!c&&o?null:f?S.jsx("div",{"aria-label":a,className:l.fallback({class:s==null?void 0:s.fallback}),role:"img",children:f}):d?S.jsx("span",{"aria-label":a,className:l.name({class:s==null?void 0:s.name}),role:"img",children:p(d)}):S.jsx("span",{"aria-label":a,className:l.icon({class:s==null?void 0:s.icon}),role:"img",children:i}),[c,o,f,d,s]);return S.jsxs(n,{...h(),children:[o&&S.jsx(r,{...b(),alt:a}),g]})});Fh.displayName="NextUI.Avatar";var Bh=Fh;function A2(e={}){const{as:t,ref:n,max:r=5,total:o,size:i,color:a,radius:s,children:l,isBordered:d,isDisabled:c,isGrid:f,renderCount:p,className:h,classNames:b,...g}=e,y=As(n),$=t||"div",C=u.useMemo(()=>({size:i,color:a,radius:s,isGrid:f,isBordered:d,isDisabled:c}),[i,a,s,f,d,c]),w=u.useMemo(()=>L3({className:h,isGrid:f}),[h,f]),E=W$(l),P=r?E.slice(0,r):E,k=o||(r!=null?E.length-r:-1),N=P.map((F,A)=>{const B=A===0,R=A===P.length-1,I={className:sr(B?"ms-0":f?"":"-ms-2",R&&k<1?"hover:-translate-x-0":"")};return u.cloneElement(F,I$(I))});return{Component:$,context:C,remainingCount:k,clones:N,renderCount:p,getAvatarGroupProps:()=>({ref:y,className:w.base({class:sr(b==null?void 0:b.base,h)}),role:"group",...g}),getAvatarGroupCountProps:()=>({className:w.count({class:b==null?void 0:b.count})})}}var Ih=aa((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:i,getAvatarGroupCountProps:a,getAvatarGroupProps:s,renderCount:l=d=>S.jsx(Bh,{...a(),name:`+${d}`})}=A2({...e,ref:t});return S.jsx(n,{...s(),children:S.jsxs(Y$,{value:o,children:[r,i>0&&l(i)]})})});Ih.displayName="NextUI.AvatarGroup";var M2=Ih;const x={fontFamily:{sans:["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"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],monospace:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},borderRadius:{.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{primary:"#4785ff",secondary:"#b8cfff",tertiary:"#d6e4ff",background:"#f0f5ff",inherit:"inherit",current:"currentColor",transparent:"transparent",black:"rgb(0 0 0)",white:"rgb(255 255 255)",slate:{50:"rgb(248 250 252)",100:"rgb(241 245 249)",200:"rgb(226 232 240)",300:"rgb(203 213 225)",400:"rgb(148 163 184)",500:"rgb(100 116 139)",600:"rgb(71 85 105)",700:"rgb(51 65 85)",800:"rgb(30 41 59)",900:"rgb(15 23 42)"},gray:{50:"rgb(249 250 251)",100:"rgb(243 244 246)",200:"rgb(229 231 235)",300:"rgb(209 213 219)",400:"rgb(156 163 175)",500:"rgb(107 114 128)",600:"rgb(75 85 99)",700:"rgb(55 65 81)",800:"rgb(31 41 55)",900:"rgb(17 24 39)"},zinc:{50:"rgb(250 250 250)",100:"rgb(244 244 245)",200:"rgb(228 228 231)",300:"rgb(212 212 216)",400:"rgb(161 161 170)",500:"rgb(113 113 122)",600:"rgb(82 82 91)",700:"rgb(63 63 70)",800:"rgb(39 39 42)",900:"rgb(24 24 27)"},neutral:{50:"rgb(250 250 250)",100:"rgb(245 245 245)",200:"rgb(229 229 229)",300:"rgb(212 212 212)",400:"rgb(163 163 163)",500:"rgb(115 115 115)",600:"rgb(82 82 82)",700:"rgb(64 64 64)",800:"rgb(38 38 38)",900:"rgb(23 23 23)"},stone:{50:"rgb(250 250 249)",100:"rgb(245 245 244)",200:"rgb(231 229 228)",300:"rgb(214 211 209)",400:"rgb(168 162 158)",500:"rgb(120 113 108)",600:"rgb(87 83 78)",700:"rgb(68 64 60)",800:"rgb(41 37 36)",900:"rgb(28 25 23)"},red:{50:"rgb(254 242 242)",100:"rgb(254 226 226)",200:"rgb(254 202 202)",300:"rgb(252 165 165)",400:"rgb(248 113 113)",500:"rgb(239 68 68)",600:"rgb(220 38 38)",700:"rgb(185 28 28)",800:"rgb(153 27 27)",900:"rgb(127 29 29)"},orange:{50:"rgb(255 247 237)",100:"rgb(255 237 213)",200:"rgb(254 215 170)",300:"rgb(253 186 116)",400:"rgb(251 146 60)",500:"rgb(249 115 22)",600:"rgb(234 88 12)",700:"rgb(194 65 12)",800:"rgb(154 52 18)",900:"rgb(124 45 18)"},amber:{50:"rgb(255 251 235)",100:"rgb(254 243 199)",200:"rgb(253 230 138)",300:"rgb(252 211 77)",400:"rgb(251 191 36)",500:"rgb(245 158 11)",600:"rgb(217 119 6)",700:"rgb(180 83 9)",800:"rgb(146 64 14)",900:"rgb(120 53 15)"},yellow:{50:"rgb(254 252 232)",100:"rgb(254 249 195)",200:"rgb(254 240 138)",300:"rgb(253 224 71)",400:"rgb(250 204 21)",500:"rgb(234 179 8)",600:"rgb(202 138 4)",700:"rgb(161 98 7)",800:"rgb(133 77 14)",900:"rgb(113 63 18)"},lime:{50:"rgb(247 254 231)",100:"rgb(236 252 203)",200:"rgb(217 249 157)",300:"rgb(190 242 100)",400:"rgb(163 230 53)",500:"rgb(132 204 22)",600:"rgb(101 163 13)",700:"rgb(77 124 15)",800:"rgb(63 98 18)",900:"rgb(54 83 20)"},green:{50:"rgb(240 253 244)",100:"rgb(220 252 231)",200:"rgb(187 247 208)",300:"rgb(134 239 172)",400:"rgb(74 222 128)",500:"rgb(34 197 94)",600:"rgb(22 163 74)",700:"rgb(21 128 61)",800:"rgb(22 101 52)",900:"rgb(20 83 45)"},emerald:{50:"rgb(236 253 245)",100:"rgb(209 250 229)",200:"rgb(167 243 208)",300:"rgb(110 231 183)",400:"rgb(52 211 153)",500:"rgb(16 185 129)",600:"rgb(5 150 105)",700:"rgb(4 120 87)",800:"rgb(6 95 70)",900:"rgb(6 78 59)"},teal:{50:"rgb(240 253 250)",100:"rgb(204 251 241)",200:"rgb(153 246 228)",300:"rgb(94 234 212)",400:"rgb(45 212 191)",500:"rgb(20 184 166)",600:"rgb(13 148 136)",700:"rgb(15 118 110)",800:"rgb(17 94 89)",900:"rgb(19 78 74)"},cyan:{50:"rgb(236 254 255)",100:"rgb(207 250 254)",200:"rgb(165 243 252)",300:"rgb(103 232 249)",400:"rgb(34 211 238)",500:"rgb(6 182 212)",600:"rgb(8 145 178)",700:"rgb(14 116 144)",800:"rgb(21 94 117)",900:"rgb(22 78 99)"},sky:{50:"rgb(240 249 255)",100:"rgb(224 242 254)",200:"rgb(186 230 253)",300:"rgb(125 211 252)",400:"rgb(56 189 248)",500:"rgb(14 165 233)",600:"rgb(2 132 199)",700:"rgb(3 105 161)",800:"rgb(7 89 133)",900:"rgb(12 74 110)"},blue:{50:"rgb(239 246 255)",100:"rgb(219 234 254)",200:"rgb(191 219 254)",300:"rgb(147 197 253)",400:"rgb(96 165 250)",500:"rgb(59 130 246)",600:"rgb(37 99 235)",700:"rgb(29 78 216)",800:"rgb(30 64 175)",900:"rgb(30 58 138)"},indigo:{50:"rgb(238 242 255)",100:"rgb(224 231 255)",200:"rgb(199 210 254)",300:"rgb(165 180 252)",400:"rgb(129 140 248)",500:"rgb(99 102 241)",600:"rgb(79 70 229)",700:"rgb(67 56 202)",800:"rgb(55 48 163)",900:"rgb(49 46 129)"},violet:{50:"rgb(245 243 255)",100:"rgb(237 233 254)",200:"rgb(221 214 254)",300:"rgb(196 181 253)",400:"rgb(167 139 250)",500:"rgb(139 92 246)",600:"rgb(124 58 237)",700:"rgb(109 40 217)",800:"rgb(91 33 182)",900:"rgb(76 29 149)"},purple:{50:"rgb(250 245 255)",100:"rgb(243 232 255)",200:"rgb(233 213 255)",300:"rgb(216 180 254)",400:"rgb(192 132 252)",500:"rgb(168 85 247)",600:"rgb(147 51 234)",700:"rgb(126 34 206)",800:"rgb(107 33 168)",900:"rgb(88 28 135)"},fuchsia:{50:"rgb(253 244 255)",100:"rgb(250 232 255)",200:"rgb(245 208 254)",300:"rgb(240 171 252)",400:"rgb(232 121 249)",500:"rgb(217 70 239)",600:"rgb(192 38 211)",700:"rgb(162 28 175)",800:"rgb(134 25 143)",900:"rgb(112 26 117)"},pink:{50:"rgb(253 242 248)",100:"rgb(252 231 243)",200:"rgb(251 207 232)",300:"rgb(249 168 212)",400:"rgb(244 114 182)",500:"rgb(236 72 153)",600:"rgb(219 39 119)",700:"rgb(190 24 93)",800:"rgb(157 23 77)",900:"rgb(131 24 67)"},rose:{50:"rgb(255 241 242)",100:"rgb(255 228 230)",200:"rgb(254 205 211)",300:"rgb(253 164 175)",400:"rgb(251 113 133)",500:"rgb(244 63 94)",600:"rgb(225 29 72)",700:"rgb(190 18 60)",800:"rgb(159 18 57)",900:"rgb(136 19 55)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},height:{auto:"auto",px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},components:{button:{primary:{color:"#FFF",backgroundColor:"#000"}},Card:{border:"1px solid rgb(226 232 240)",padding:"1rem",backgroundColor:"transparent",borderRadius:"2px",boxShadow:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px"},"Card.Content":{padding:0,fontSize:"0.9rem"},"Card.Header":{fontSize:"1.125rem",fontWeight:"700",marginBottom:"1rem"}}};function Lh(e,t){const n={...e};return Object.entries(t).forEach(([r,o])=>{o!==null&&typeof o=="object"&&!Array.isArray(o)?((n[r]===void 0||n[r]===null)&&(n[r]={}),n[r]=Lh(n[r],o)):n[r]=o}),n}const k2=_.styled.div`
40
40
  z-index: 1;
41
41
 
42
42
  &:not(:first-child) {
@@ -48,7 +48,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
48
48
  transform: ${({isInGroup:e,isGrid:t})=>!t&&e?"translateY(-0.8rem)":"none"};
49
49
  }
50
50
  }
51
- `,I2=G.styled(Vh)`
51
+ `,R2=_.styled(Bh)`
52
52
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
53
53
  display: flex;
54
54
  align-items: center;
@@ -95,31 +95,31 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
95
95
  overflow: hidden;
96
96
  text-align: center;
97
97
  }
98
- `;function L2({icon:e,...t}){const n=Fp();return S.jsx(B2,{isInGroup:!!n,isGrid:!!(n!=null&&n.isGrid),children:S.jsx(I2,{...t,icon:e||S.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M20 21C20 19.6044 20 18.9067 19.8278 18.3389C19.44 17.0605 18.4395 16.06 17.1611 15.6722C16.5933 15.5 15.8956 15.5 14.5 15.5H9.5C8.10444 15.5 7.40665 15.5 6.83886 15.6722C5.56045 16.06 4.56004 17.0605 4.17224 18.3389C4 18.9067 4 19.6044 4 21M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}const V2=G.styled(F2)`
98
+ `;function F2({icon:e,...t}){const n=Mp();return S.jsx(k2,{isInGroup:!!n,isGrid:!!(n!=null&&n.isGrid),children:S.jsx(R2,{...t,icon:e||S.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M20 21C20 19.6044 20 18.9067 19.8278 18.3389C19.44 17.0605 18.4395 16.06 17.1611 15.6722C16.5933 15.5 15.8956 15.5 14.5 15.5H9.5C8.10444 15.5 7.40665 15.5 6.83886 15.6722C5.56045 16.06 4.56004 17.0605 4.17224 18.3389C4 18.9067 4 19.6044 4 21M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}const B2=_.styled(M2)`
99
99
  display: ${({isGrid:e})=>e?"inline-grid":"flex"};
100
100
  grid-template-columns: repeat(4, minmax(0, 1fr));
101
101
  align-items: center;
102
102
  gap: ${({isGrid:e})=>e?"0.75rem":"0"};
103
- `;function O2({children:e,isGrid:t,renderCount:n}){return S.jsx(V2,{isGrid:t,max:0,renderCount:n??void 0,children:e})}const lu=d.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ua=d.createContext({}),ca=d.createContext(null),uu=typeof document<"u",cu=uu?d.useLayoutEffect:d.useEffect,du=d.createContext({strict:!1}),fu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),N2="framerAppearId",Kh="data-"+fu(N2),K2={skipAnimations:!1,useManualTiming:!1};class zd{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function j2(e){let t=new zd,n=new zd,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const f=u&&o,p=f?t:n;return c&&a.add(l),p.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const u=t.order[c];a.has(u)&&(s.schedule(u),e()),u(l)}o=!1,i&&(i=!1,s.process(l))}};return s}const ii=["read","resolveKeyframes","update","preRender","render","postRender"],_2=40;function jh(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=ii.reduce((f,p)=>(f[p]=j2(()=>n=!0),f),{}),a=f=>{i[f].process(o)},s=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,_2),1),o.timestamp=f,o.isProcessing=!0,ii.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:ii.reduce((f,p)=>{const h=i[p];return f[p]=(b,g=!1,y=!1)=>(n||l(),h.schedule(b,g,y)),f},{}),cancel:f=>ii.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:pu,cancel:PA}=jh(queueMicrotask,!1);function z2(e,t,n,r){const{visualElement:o}=d.useContext(ua),i=d.useContext(du),a=d.useContext(ca),s=d.useContext(lu).reducedMotion,l=d.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;d.useInsertionEffect(()=>{c&&c.update(n,a)});const u=d.useRef(!!(n[Kh]&&!window.HandoffComplete));return cu(()=>{c&&(pu.postRender(c.render),u.current&&c.animationState&&c.animationState.animateChanges())}),d.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function er(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function U2(e,t,n){return d.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):er(n)&&(n.current=r))},[t])}function ao(e){return typeof e=="string"||Array.isArray(e)}function da(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const hu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bu=["initial",...hu];function fa(e){return da(e.animate)||bu.some(t=>ao(e[t]))}function _h(e){return!!(fa(e)||e.variants)}function H2(e,t){if(fa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ao(n)?n:void 0,animate:ao(r)?r:void 0}}return e.inherit!==!1?t:{}}function G2(e){const{initial:t,animate:n}=H2(e,d.useContext(ua));return d.useMemo(()=>({initial:t,animate:n}),[Ud(t),Ud(n)])}function Ud(e){return Array.isArray(e)?e.join(" "):e}const Hd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},so={};for(const e in Hd)so[e]={isEnabled:t=>Hd[e].some(n=>!!t[n])};function nl(e){for(const t in e)so[t]={...so[t],...e[t]}}const mu=d.createContext({}),zh=d.createContext({}),W2=Symbol.for("motionComponentSymbol");function Y2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&nl(e);function i(s,l){let c;const u={...d.useContext(lu),...s,layoutId:q2(s)},{isStatic:f}=u,p=G2(s),h=r(s,f);if(!f&&uu){p.visualElement=z2(o,h,u,t);const b=d.useContext(zh),g=d.useContext(du).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,g,e,b))}return S.jsxs(ua.Provider,{value:p,children:[c&&p.visualElement?S.jsx(c,{visualElement:p.visualElement,...u}):null,n(o,s,U2(h,p.visualElement,l),h,f,p.visualElement)]})}const a=d.forwardRef(i);return a[W2]=o,a}function q2({layoutId:e}){const t=d.useContext(mu).id;return t&&e!==void 0?t+"-"+e:e}function Uh(e){function t(r,o={}){return Y2(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const Z2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function gu(e){return typeof e!="string"||e.includes("-")?!1:!!(Z2.indexOf(e)>-1||/[A-Z]/u.test(e))}const zi={};function X2(e){Object.assign(zi,e)}const xo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ln=new Set(xo);function Hh(e,{layout:t,layoutId:n}){return Ln.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zi[e]||e==="opacity")}const qe=e=>!!(e&&e.getVelocity),J2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Q2=xo.length;function e6(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<Q2;a++){const s=xo[a];if(e[s]!==void 0){const l=J2[s]||s;i+=`${l}(${e[s]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const Gh=e=>t=>typeof t=="string"&&t.startsWith(e),Wh=Gh("--"),t6=Gh("var(--"),vu=e=>t6(e)?n6.test(e.split("/*")[0].trim()):!1,n6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,r6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,cn=(e,t,n)=>n>t?t:n<e?e:n,vr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qr={...vr,transform:e=>cn(0,1,e)},ai={...vr,default:1},Zr=e=>Math.round(e*1e5)/1e5,yu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,o6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,i6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function wo(e){return typeof e=="string"}const Co=e=>({test:t=>wo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),en=Co("deg"),At=Co("%"),re=Co("px"),a6=Co("vh"),s6=Co("vw"),Gd={...At,parse:e=>At.parse(e)/100,transform:e=>At.transform(e*100)},Wd={...vr,transform:Math.round},Yh={borderWidth:re,borderTopWidth:re,borderRightWidth:re,borderBottomWidth:re,borderLeftWidth:re,borderRadius:re,radius:re,borderTopLeftRadius:re,borderTopRightRadius:re,borderBottomRightRadius:re,borderBottomLeftRadius:re,width:re,maxWidth:re,height:re,maxHeight:re,size:re,top:re,right:re,bottom:re,left:re,padding:re,paddingTop:re,paddingRight:re,paddingBottom:re,paddingLeft:re,margin:re,marginTop:re,marginRight:re,marginBottom:re,marginLeft:re,rotate:en,rotateX:en,rotateY:en,rotateZ:en,scale:ai,scaleX:ai,scaleY:ai,scaleZ:ai,skew:en,skewX:en,skewY:en,distance:re,translateX:re,translateY:re,translateZ:re,x:re,y:re,z:re,perspective:re,transformPerspective:re,opacity:qr,originX:Gd,originY:Gd,originZ:re,zIndex:Wd,backgroundPositionX:re,backgroundPositionY:re,fillOpacity:qr,strokeOpacity:qr,numOctaves:Wd};function $u(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const f in t){const p=t[f];if(Wh(f)){i[f]=p;continue}const h=Yh[f],b=r6(p,h);if(Ln.has(f)){if(l=!0,a[f]=b,!u)continue;p!==(h.default||0)&&(u=!1)}else f.startsWith("origin")?(c=!0,s[f]=b):o[f]=b}if(t.transform||(l||r?o.transform=e6(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:h=0}=s;o.transformOrigin=`${f} ${p} ${h}`}}const xu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qh(e,t,n){for(const r in t)!qe(t[r])&&!Hh(r,n)&&(e[r]=t[r])}function l6({transformTemplate:e},t,n){return d.useMemo(()=>{const r=xu();return $u(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function u6(e,t,n){const r=e.style||{},o={};return qh(o,r,e),Object.assign(o,l6(e,t,n)),o}function c6(e,t,n){const r={},o=u6(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const d6=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ui(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||d6.has(e)}let Zh=e=>!Ui(e);function f6(e){e&&(Zh=t=>t.startsWith("on")?!Ui(t):e(t))}try{f6(require("@emotion/is-prop-valid").default)}catch{}function p6(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Zh(o)||n===!0&&Ui(o)||!t&&!Ui(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Yd(e,t,n){return typeof e=="string"?e:re.transform(t+n*e)}function h6(e,t,n){const r=Yd(t,e.x,e.width),o=Yd(n,e.y,e.height);return`${r} ${o}`}const b6={offset:"stroke-dashoffset",array:"stroke-dasharray"},m6={offset:"strokeDashoffset",array:"strokeDasharray"};function g6(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?b6:m6;e[i.offset]=re.transform(-r);const a=re.transform(t),s=re.transform(n);e[i.array]=`${a} ${s}`}function wu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,f,p){if($u(e,c,u,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:b,dimensions:g}=e;h.transform&&(g&&(b.transform=h.transform),delete h.transform),g&&(o!==void 0||i!==void 0||b.transform)&&(b.transformOrigin=h6(g,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&g6(h,a,s,l,!1)}const Xh=()=>({...xu(),attrs:{}}),Cu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function v6(e,t,n,r){const o=d.useMemo(()=>{const i=Xh();return wu(i,t,{enableHardwareAcceleration:!1},Cu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};qh(i,e.style,e),o.style={...i,...o.style}}return o}function y6(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(gu(n)?v6:c6)(r,i,a,n),c=p6(r,typeof n=="string",e),u=n!==d.Fragment?{...c,...l,ref:o}:{},{children:f}=r,p=d.useMemo(()=>qe(f)?f.get():f,[f]);return d.createElement(n,{...u,children:p})}}function Jh(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Qh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function eb(e,t,n,r){Jh(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Qh.has(o)?o:fu(o),t.attrs[o])}function Du(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(qe(o[a])||t.style&&qe(t.style[a])||Hh(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=o[a]);return i}function tb(e,t,n){const r=Du(e,t,n);for(const o in e)if(qe(e[o])||qe(t[o])){const i=xo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Eu(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function nb(e){const t=d.useRef(null);return t.current===null&&(t.current=e()),t.current}const rl=e=>Array.isArray(e),$6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),x6=e=>rl(e)?e[e.length-1]||0:e;function mi(e){const t=qe(e)?e.get():e;return $6(t)?t.toValue():t}function w6({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:C6(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const rb=e=>(t,n)=>{const r=d.useContext(ua),o=d.useContext(ca),i=()=>w6(e,t,r,o);return n?i():nb(i)};function C6(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=mi(i[p]);let{initial:a,animate:s}=e;const l=fa(e),c=_h(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||a===!1;const f=u?s:a;return f&&typeof f!="boolean"&&!da(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const b=Eu(e,h);if(!b)return;const{transitionEnd:g,transition:y,...$}=b;for(const C in $){let w=$[C];if(Array.isArray(w)){const E=u?w.length-1:0;w=w[E]}w!==null&&(o[C]=w)}for(const C in g)o[C]=g[C]}),o}const He=e=>e,{schedule:Oe,cancel:dn,state:ze,steps:ss}=jh(typeof requestAnimationFrame<"u"?requestAnimationFrame:He,!0),D6={useVisualState:rb({scrapeMotionValuesFromProps:tb,createRenderState:Xh,onMount:(e,t,{renderState:n,latestValues:r})=>{Oe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Oe.render(()=>{wu(n,r,{enableHardwareAcceleration:!1},Cu(t.tagName),e.transformTemplate),eb(t,n)})}})},E6={useVisualState:rb({scrapeMotionValuesFromProps:Du,createRenderState:xu})};function ob(e,{forwardMotionProps:t=!1},n,r){return{...gu(e)?D6:E6,preloadedFeatures:n,useRender:y6(t),createVisualElement:r,Component:e}}function Kt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ib=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function pa(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const P6=e=>t=>ib(t)&&e(t,pa(t));function _t(e,t,n,r){return Kt(e,t,P6(n),r)}const S6=(e,t)=>n=>t(e(n)),zt=(...e)=>e.reduce(S6);function ab(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const qd=ab("dragHorizontal"),Zd=ab("dragVertical");function sb(e){let t=!1;if(e==="y")t=Zd();else if(e==="x")t=qd();else{const n=qd(),r=Zd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function lb(){const e=sb(!0);return e?(e(),!1):!0}class pn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Xd(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,a)=>{if(i.pointerType==="touch"||lb())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const l=s[r];l&&l(i,a)};return _t(e.current,n,o,{passive:!e.getProps()[r]})}class T6 extends pn{mount(){this.unmount=zt(Xd(this.node,!0),Xd(this.node,!1))}unmount(){}}class A6 extends pn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=zt(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ub=(e,t)=>t?e===t?!0:ub(e,t.parentElement):!1;function ls(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,pa(n))}class M6 extends pn{constructor(){super(...arguments),this.removeStartListeners=He,this.removeEndListeners=He,this.removeAccessibleListeners=He,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=_t(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:f}=this.node.getProps();!f&&!ub(this.node.current,s.target)?u&&u(s,l):c&&c(s,l)},{passive:!(r.onTap||r.onPointerUp)}),a=_t(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=zt(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||ls("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&u(l,c)})};this.removeEndListeners(),this.removeEndListeners=Kt(this.node.current,"keyup",a),ls("down",(s,l)=>{this.startPress(s,l)})},n=Kt(this.node.current,"keydown",t),r=()=>{this.isPressing&&ls("cancel",(i,a)=>this.cancelPress(i,a))},o=Kt(this.node.current,"blur",r);this.removeAccessibleListeners=zt(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!lb()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=_t(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Kt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=zt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ol=new WeakMap,us=new WeakMap,k6=e=>{const t=ol.get(e.target);t&&t(e)},R6=e=>{e.forEach(k6)};function F6({root:e,...t}){const n=e||document;us.has(n)||us.set(n,{});const r=us.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(R6,{root:e,...t})),r[o]}function B6(e,t,n){const r=F6(t);return ol.set(e,n),r.observe(e),()=>{ol.delete(e),r.unobserve(e)}}const I6={some:0,all:1};class L6 extends pn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:I6[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),p=c?u:f;p&&p(l)};return B6(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(V6(t,n))&&this.startObserver()}unmount(){}}function V6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const cb={inView:{Feature:L6},tap:{Feature:M6},focus:{Feature:A6},hover:{Feature:T6}};function db(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function O6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function N6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function ha(e,t,n){const r=e.getProps();return Eu(r,t,n!==void 0?n:r.custom,O6(e),N6(e))}const Ut=e=>e*1e3,Ht=e=>e/1e3,K6={type:"spring",stiffness:500,damping:25,restSpeed:10},j6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_6={type:"keyframes",duration:.8},z6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},U6=(e,{keyframes:t})=>t.length>2?_6:Ln.has(e)?e.startsWith("scale")?j6(t[1]):K6:z6;function H6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function Pu(e,t){return e[t]||e.default||e}const G6=e=>e!==null;function ba(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(G6),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let gi;function W6(){gi=void 0}const an={now:()=>(gi===void 0&&an.set(ze.isProcessing||K2.useManualTiming?ze.timestamp:performance.now()),gi),set:e=>{gi=e,queueMicrotask(W6)}},fb=e=>/^0[^.\s]+$/u.test(e);function Y6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||fb(e):!0}let Do=He,Mt=He;process.env.NODE_ENV!=="production"&&(Do=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Mt=(e,t)=>{if(!e)throw new Error(t)});const pb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),q6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Z6(e){const t=q6.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const X6=4;function hb(e,t,n=1){Mt(n<=X6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=Z6(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return pb(a)?parseFloat(a):a}return vu(o)?hb(o,t,n+1):o}const J6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Jd=e=>e===vr||e===re,Qd=(e,t)=>parseFloat(e.split(", ")[t]),ef=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Qd(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Qd(i[1],e):0}},Q6=new Set(["x","y","z"]),ew=xo.filter(e=>!Q6.has(e));function tw(e){const t=[];return ew.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ef(4,13),y:ef(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const bb=e=>t=>t.test(e),nw={test:e=>e==="auto",parse:e=>e},mb=[vr,re,At,en,s6,a6,nw],tf=e=>mb.find(bb(e)),Sn=new Set;let il=!1,al=!1;function gb(){if(al){const e=Array.from(Sn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=tw(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{var s;(s=r.getValue(i))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}al=!1,il=!1,Sn.forEach(e=>e.complete()),Sn.clear()}function vb(){Sn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(al=!0)})}function rw(){vb(),gb()}class Su{constructor(t,n,r,o,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Sn.add(this),il||(il=!0,Oe.read(vb),Oe.resolveKeyframes(gb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=o==null?void 0:o.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),o&&a===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Sn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Sn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Tu=(e,t)=>n=>!!(wo(n)&&i6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),yb=(e,t,n)=>r=>{if(!wo(r))return r;const[o,i,a,s]=r.match(yu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},ow=e=>cn(0,255,e),cs={...vr,transform:e=>Math.round(ow(e))},Pn={test:Tu("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cs.transform(e)+", "+cs.transform(t)+", "+cs.transform(n)+", "+Zr(qr.transform(r))+")"};function iw(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const sl={test:Tu("#"),parse:iw,transform:Pn.transform},tr={test:Tu("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+At.transform(Zr(t))+", "+At.transform(Zr(n))+", "+Zr(qr.transform(r))+")"},We={test:e=>Pn.test(e)||sl.test(e)||tr.test(e),parse:e=>Pn.test(e)?Pn.parse(e):tr.test(e)?tr.parse(e):sl.parse(e),transform:e=>wo(e)?e:e.hasOwnProperty("red")?Pn.transform(e):tr.transform(e)};function aw(e){var t,n;return isNaN(e)&&wo(e)&&(((t=e.match(yu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(o6))===null||n===void 0?void 0:n.length)||0)>0}const $b="number",xb="color",sw="var",lw="var(",nf="${}",uw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Hi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(uw,l=>(We.test(l)?(r.color.push(i),o.push(xb),n.push(We.parse(l))):l.startsWith(lw)?(r.var.push(i),o.push(sw),n.push(l)):(r.number.push(i),o.push($b),n.push(parseFloat(l))),++i,nf)).split(nf);return{values:n,split:s,indexes:r,types:o}}function wb(e){return Hi(e).values}function Cb(e){const{split:t,types:n}=Hi(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const s=n[a];s===$b?i+=Zr(o[a]):s===xb?i+=We.transform(o[a]):i+=o[a]}return i}}const cw=e=>typeof e=="number"?0:e;function dw(e){const t=wb(e);return Cb(e)(t.map(cw))}const fn={test:aw,parse:wb,createTransformer:Cb,getAnimatableNone:dw},fw=new Set(["brightness","contrast","saturate","opacity"]);function pw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yu)||[];if(!r)return e;const o=n.replace(r,"");let i=fw.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const hw=/\b([a-z-]*)\(.*?\)/gu,ll={...fn,getAnimatableNone:e=>{const t=e.match(hw);return t?t.map(pw).join(" "):e}},bw={...Yh,color:We,backgroundColor:We,outlineColor:We,fill:We,stroke:We,borderColor:We,borderTopColor:We,borderRightColor:We,borderBottomColor:We,borderLeftColor:We,filter:ll,WebkitFilter:ll},Au=e=>bw[e];function Db(e,t){let n=Au(e);return n!==ll&&(n=fn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function mw(e,t,n){let r=0,o;for(;r<e.length&&!o;)typeof e[r]=="string"&&e[r]!=="none"&&e[r]!=="0"&&(o=e[r]),r++;if(o&&n)for(const i of t)e[i]=Db(n,o)}class Eb extends Su{constructor(t,n,r,o){super(t,n,r,o,o==null?void 0:o.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){const c=t[l];if(typeof c=="string"&&vu(c)){const u=hb(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(!J6.has(r)||t.length!==2)return this.resolveNoneKeyframes();const[o,i]=t,a=tf(o),s=tf(i);if(a!==s)if(Jd(a)&&Jd(s))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)Y6(t[o])&&r.push(o);r.length&&mw(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=o.length-1,s=o[a];o[a]=cr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function gw(e){let t;return()=>(t===void 0&&(t=e()),t)}const rf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fn.test(e)||e==="0")&&!e.startsWith("url("));function vw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function yw(e,t,n,r){const o=e[0];if(o===null)return!1;const i=e[e.length-1],a=rf(o,t),s=rf(i,t);return Do(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!a||!s?!1:vw(e)||n==="spring"&&r}class Pb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,...s},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&rw(),this._resolved}onKeyframesResolved(t,n){this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:a,onComplete:s,onUpdate:l,isGenerator:c}=this.options;if(!c&&!yw(t,r,o,i))if(a)this.options.duration=0;else{l==null||l(ba(t,this.options,n)),s==null||s(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Sb(e,t){return t?e*(1e3/t):0}const $w=5;function Tb(e,t,n){const r=Math.max(t-$w,0);return Sb(n-e(r),t-r)}const ds=.001,xw=.01,of=10,ww=.05,Cw=1;function Dw({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Do(e<=Ut(of),"Spring duration must be 10 seconds or less");let a=1-t;a=cn(ww,Cw,a),e=cn(xw,of,Ht(e)),a<1?(o=c=>{const u=c*a,f=u*e,p=u-n,h=ul(c,a),b=Math.exp(-f);return ds-p/h*b},i=c=>{const f=c*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(c,2)*e,b=Math.exp(-f),g=ul(Math.pow(c,2),a);return(-o(c)+ds>0?-1:1)*((p-h)*b)/g}):(o=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-ds+u*f},i=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const s=5/e,l=Pw(o,i,s);if(e=Ut(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const Ew=12;function Pw(e,t,n){let r=n;for(let o=1;o<Ew;o++)r=r-e(r)/t(r);return r}function ul(e,t){return e*Math.sqrt(1-t*t)}const Sw=["duration","bounce"],Tw=["stiffness","damping","mass"];function af(e,t){return t.some(n=>e[n]!==void 0)}function Aw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!af(e,Tw)&&af(e,Sw)){const n=Dw(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Ab({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,duration:u,velocity:f,isResolvedFromDuration:p}=Aw({...r,velocity:-Ht(r.velocity||0)}),h=f||0,b=l/(2*Math.sqrt(s*c)),g=i-o,y=Ht(Math.sqrt(s/c)),$=Math.abs(g)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(b<1){const w=ul(y,b);C=E=>{const P=Math.exp(-b*y*E);return i-P*((h+b*y*g)/w*Math.sin(w*E)+g*Math.cos(w*E))}}else if(b===1)C=w=>i-Math.exp(-y*w)*(g+(h+y*g)*w);else{const w=y*Math.sqrt(b*b-1);C=E=>{const P=Math.exp(-b*y*E),k=Math.min(w*E,300);return i-P*((h+b*y*g)*Math.sinh(k)+w*g*Math.cosh(k))/w}}return{calculatedDuration:p&&u||null,next:w=>{const E=C(w);if(p)a.done=w>=u;else{let P=h;w!==0&&(b<1?P=Tb(C,w,E):P=0);const k=Math.abs(P)<=n,K=Math.abs(i-E)<=t;a.done=k&&K}return a.value=a.done?i:E,a}}}function sf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],p={done:!1,value:f},h=v=>s!==void 0&&v<s||l!==void 0&&v>l,b=v=>s===void 0?l:l===void 0||Math.abs(s-v)<Math.abs(l-v)?s:l;let g=n*t;const y=f+g,$=a===void 0?y:a(y);$!==y&&(g=$-f);const C=v=>-g*Math.exp(-v/r),w=v=>$+C(v),E=v=>{const V=C(v),F=w(v);p.done=Math.abs(V)<=c,p.value=p.done?$:F};let P,k;const K=v=>{h(p.value)&&(P=v,k=Ab({keyframes:[p.value,b(p.value)],velocity:Tb(w,v,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return K(0),{calculatedDuration:null,next:v=>{let V=!1;return!k&&P===void 0&&(V=!0,E(v),K(v)),P!==void 0&&v>=P?k.next(v-P):(!V&&E(v),p)}}}const Mb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Mw=1e-7,kw=12;function Rw(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=Mb(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>Mw&&++s<kw);return a}function Eo(e,t,n,r){if(e===t&&n===r)return He;const o=i=>Rw(i,0,1,e,n);return i=>i===0||i===1?i:Mb(o(i),t,r)}const Fw=Eo(.42,0,1,1),Bw=Eo(0,0,.58,1),kb=Eo(.42,0,.58,1),Iw=e=>Array.isArray(e)&&typeof e[0]!="number",Rb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fb=e=>t=>1-e(1-t),Mu=e=>1-Math.sin(Math.acos(e)),Bb=Fb(Mu),Lw=Rb(Mu),Ib=Eo(.33,1.53,.69,.99),ku=Fb(Ib),Vw=Rb(ku),Ow=e=>(e*=2)<1?.5*ku(e):.5*(2-Math.pow(2,-10*(e-1))),lf={linear:He,easeIn:Fw,easeInOut:kb,easeOut:Bw,circIn:Mu,circInOut:Lw,circOut:Bb,backIn:ku,backInOut:Vw,backOut:Ib,anticipate:Ow},uf=e=>{if(Array.isArray(e)){Mt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Eo(t,n,r,o)}else if(typeof e=="string")return Mt(lf[e]!==void 0,`Invalid easing type '${e}'`),lf[e];return e},lo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Se=(e,t,n)=>e+(t-e)*n;function fs(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Nw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=fs(l,s,e+1/3),i=fs(l,s,e),a=fs(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const ps=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Kw=[sl,Pn,tr],jw=e=>Kw.find(t=>t.test(e));function cf(e){const t=jw(e);Mt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===tr&&(n=Nw(n)),n}const df=(e,t)=>{const n=cf(e),r=cf(t),o={...n};return i=>(o.red=ps(n.red,r.red,i),o.green=ps(n.green,r.green,i),o.blue=ps(n.blue,r.blue,i),o.alpha=Se(n.alpha,r.alpha,i),Pn.transform(o))};function cl(e,t){return n=>n>0?t:e}function _w(e,t){return n=>Se(e,t,n)}function Ru(e){return typeof e=="number"?_w:typeof e=="string"?vu(e)?cl:We.test(e)?df:Hw:Array.isArray(e)?Lb:typeof e=="object"?We.test(e)?df:zw:cl}function Lb(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>Ru(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function zw(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Ru(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function Uw(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=(n=e.values[s])!==null&&n!==void 0?n:0;r[i]=l,o[a]++}return r}const Hw=(e,t)=>{const n=fn.createTransformer(t),r=Hi(e),o=Hi(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?zt(Lb(Uw(r,o),o.values),n):(Do(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),cl(e,t))};function Vb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Se(e,t,n):Ru(e)(e,t)}function Gw(e,t,n){const r=[],o=n||Vb,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||He:t;s=zt(l,s)}r.push(s)}return r}function Ww(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Mt(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Gw(t,r,o),s=a.length,l=c=>{let u=0;if(s>1)for(;u<e.length-2&&!(c<e[u+1]);u++);const f=lo(e[u],e[u+1],c);return a[u](f)};return n?c=>l(cn(e[0],e[i-1],c)):l}function Yw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=lo(0,t,r);e.push(Se(n,1,o))}}function qw(e){const t=[0];return Yw(t,e.length-1),t}function Zw(e,t){return e.map(n=>n*t)}function Xw(e,t){return e.map(()=>t||kb).splice(0,e.length-1)}function Gi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Iw(r)?r.map(uf):uf(r),i={done:!1,value:t[0]},a=Zw(n&&n.length===t.length?n:qw(t),e),s=Ww(a,t,{ease:Array.isArray(o)?o:Xw(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const ff=2e4;function Jw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ff;)t+=n,r=e.next(t);return t>=ff?1/0:t}const Qw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Oe.update(t,!0),stop:()=>dn(t),now:()=>ze.isProcessing?ze.timestamp:an.now()}},e7={decay:sf,inertia:sf,tween:Gi,keyframes:Gi,spring:Ab},t7=e=>e/100;class Fu extends Pb{constructor({KeyframeResolver:t=Su,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:s}=this.options;s&&s()};const{name:r,motionValue:o,keyframes:i}=this.options,a=(s,l)=>this.onKeyframesResolved(s,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,a,r,o):this.resolver=new t(i,a,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=this.options,s=e7[n]||Gi;let l,c;s!==Gi&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Mt(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=zt(t7,Vb(t[0],t[1])),t=[0,100]);const u=s({...this.options,keyframes:t});i==="mirror"&&(c=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=Jw(u));const{calculatedDuration:f}=u,p=f+o,h=p*(r+1)-o;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:v}=this.options;return{done:!0,value:v[v.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:h,repeatType:b,repeatDelay:g,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const $=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?$<0:$>u;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,E=i;if(h){const v=Math.min(this.currentTime,u)/f;let V=Math.floor(v),F=v%1;!F&&v>=1&&(F=1),F===1&&V--,V=Math.min(V,h+1),!!(V%2)&&(b==="reverse"?(F=1-F,g&&(F-=g/f)):b==="mirror"&&(E=a)),w=cn(0,1,F)*f}const P=C?{done:!1,value:l[0]}:E.next(w);s&&(P.value=s(P.value));let{done:k}=P;!C&&c!==null&&(k=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return K&&o!==void 0&&(P.value=ba(l,this.options,o)),y&&y(P.value),K&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Ht(t.calculatedDuration):0}get time(){return Ht(this.currentTime)}set time(t){t=Ut(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ht(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Qw,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Ob=e=>Array.isArray(e)&&typeof e[0]=="number";function Nb(e){return!!(!e||typeof e=="string"&&e in Bu||Ob(e)||Array.isArray(e)&&e.every(Nb))}const Hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Bu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hr([0,.65,.55,1]),circOut:Hr([.55,0,1,.45]),backIn:Hr([.31,.01,.66,-.59]),backOut:Hr([.33,1.53,.69,.99])};function n7(e){return Kb(e)||Bu.easeOut}function Kb(e){if(e)return Ob(e)?Hr(e):Array.isArray(e)?e.map(n7):Bu[e]}function r7(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Kb(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const o7=gw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),i7=new Set(["opacity","clipPath","filter","transform"]),Wi=10,a7=2e4;function s7(e){return e.type==="spring"||e.name==="backgroundColor"||!Nb(e.ease)}function l7(e,t){const n=new Fu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<a7;)r=n.sample(i),o.push(r.value),i+=Wi;return{times:void 0,keyframes:o,duration:i-Wi,ease:"linear"}}class pf extends Pb{constructor(t){super(t);const{name:n,motionValue:r,keyframes:o}=this.options;this.resolver=new Eb(o,(i,a)=>this.onKeyframesResolved(i,a),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:a,type:s,motionValue:l,name:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(s7(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,...b}=this.options,g=l7(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),o=g.duration,i=g.times,a=g.ease,s="keyframes"}const u=r7(l.owner.current,c,t,{...this.options,duration:o,times:i,ease:a});return u.startTime=an.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:f}=this.options;l.set(ba(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:o,times:i,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ht(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ht(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ut(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return He;const{animation:r}=n;r.timeline=t,r.onfinish=null}return He}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:a,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:c,onComplete:u,...f}=this.options,p=new Fu({...f,keyframes:r,duration:o,type:i,ease:a,times:s,isGenerator:!0}),h=Ut(this.time);l.setWithVelocity(p.sample(h-Wi).value,p.sample(h).value,Wi)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:a,type:s}=t;return o7()&&r&&i7.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&a!==0&&s!=="inertia"}}const Iu=(e,t,n,r={},o,i)=>a=>{const s=Pu(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Ut(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};H6(s)||(u={...u,...U6(e,u)}),u.duration&&(u.duration=Ut(u.duration)),u.repeatDelay&&(u.repeatDelay=Ut(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=ba(u.keyframes,s);if(p!==void 0){Oe.update(()=>{u.onUpdate(p),u.onComplete()});return}}return!i&&pf.supports(u)?new pf(u):new Fu(u)};function Yi(e){return!!(qe(e)&&e.add)}function Lu(e,t){e.indexOf(t)===-1&&e.push(t)}function Vu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ou{constructor(){this.subscriptions=[]}add(t){return Lu(this.subscriptions,t),()=>Vu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const hf=new Set;function Nu(e,t,n){e||hf.has(t)||(console.warn(t),n&&console.warn(n),hf.add(t))}const bf=30,u7=e=>!isNaN(parseFloat(e));class c7{constructor(t,n={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=an.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=u7(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=an.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Nu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ou);const r=this.events[t].add(n);return t==="change"?()=>{r(),Oe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=an.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>bf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,bf);return Sb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uo(e,t){return new c7(e,t)}function d7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uo(n))}function f7(e,t){const n=ha(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=x6(i[a]);d7(e,a,s)}}function p7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function jb(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const c=e.getValue("willChange");r&&(a=r);const u=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const p in l){const h=e.getValue(p,(i=e.latestValues[p])!==null&&i!==void 0?i:null),b=l[p];if(b===void 0||f&&p7(f,p))continue;const g={delay:n,elapsed:0,...Pu(a||{},p)};let y=!1;if(window.HandoffAppearAnimations){const w=e.getProps()[Kh];if(w){const E=window.HandoffAppearAnimations(w,p);E!==null&&(g.elapsed=E,y=!0)}}h.start(Iu(p,h,b,e.shouldReduceMotion&&Ln.has(p)?{type:!1}:g,e,y));const $=h.animation;$&&(Yi(c)&&(c.add(p),$.then(()=>c.remove(p))),u.push($))}return s&&Promise.all(u).then(()=>{Oe.update(()=>{s&&f7(e,s)})}),u}function dl(e,t,n={}){var r;const o=ha(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(jb(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:p}=i;return h7(e,t,u+c,f,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[a,s]:[s,a];return c().then(()=>u())}else return Promise.all([a(),s(n.delay)])}function h7(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(b7).forEach((c,u)=>{c.notify("AnimationStart",t),a.push(dl(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function b7(e,t){return e.sortNodePosition(t)}function m7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>dl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=dl(e,t,n);else{const o=typeof t=="function"?ha(e,t,n.custom):t;r=Promise.all(jb(e,o,n))}return r.then(()=>{Oe.postRender(()=>{e.notify("AnimationComplete",t)})})}const g7=[...hu].reverse(),v7=hu.length;function y7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>m7(e,n,r)))}function $7(e){let t=y7(e);const n=w7();let r=!0;const o=l=>(c,u)=>{var f;const p=ha(e,u,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:b,...g}=p;c={...c,...g,...b}}return c};function i(l){t=l(e)}function a(l){const c=e.getProps(),u=e.getVariantContext(!0)||{},f=[],p=new Set;let h={},b=1/0;for(let y=0;y<v7;y++){const $=g7[y],C=n[$],w=c[$]!==void 0?c[$]:u[$],E=ao(w),P=$===l?C.isActive:null;P===!1&&(b=y);let k=w===u[$]&&w!==c[$]&&E;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...h},!C.isActive&&P===null||!w&&!C.prevProp||da(w)||typeof w=="boolean")continue;let v=x7(C.prevProp,w)||$===l&&C.isActive&&!k&&E||y>b&&E,V=!1;const F=Array.isArray(w)?w:[w];let A=F.reduce(o($),{});P===!1&&(A={});const{prevResolvedValues:I={}}=C,R={...I,...A},L=j=>{v=!0,p.has(j)&&(V=!0,p.delete(j)),C.needsAnimating[j]=!0;const O=e.getValue(j);O&&(O.liveStyle=!1)};for(const j in R){const O=A[j],T=I[j];if(h.hasOwnProperty(j))continue;let W=!1;rl(O)&&rl(T)?W=!db(O,T):W=O!==T,W?O!=null?L(j):p.add(j):O!==void 0&&p.has(j)?L(j):C.protectedKeys[j]=!0}C.prevProp=w,C.prevResolvedValues=A,C.isActive&&(h={...h,...A}),r&&e.blockInitialAnimation&&(v=!1),v&&(!k||V)&&f.push(...F.map(j=>({animation:j,options:{type:$}})))}if(p.size){const y={};p.forEach($=>{const C=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),y[$]=C??null}),f.push({animation:y})}let g=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function s(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const f=a(l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function x7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!db(t,e):!1}function bn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function w7(){return{animate:bn(!0),whileInView:bn(),whileHover:bn(),whileTap:bn(),whileDrag:bn(),whileFocus:bn(),exit:bn()}}class C7 extends pn{constructor(t){super(t),t.animationState||(t.animationState=$7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),da(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let D7=0;class E7 extends pn{constructor(){super(...arguments),this.id=D7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const _b={animation:{Feature:C7},exit:{Feature:E7}},mf=(e,t)=>Math.abs(e-t);function P7(e,t){const n=mf(e.x,t.x),r=mf(e.y,t.y);return Math.sqrt(n**2+r**2)}class zb{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=bs(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=P7(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:b}=f,{timestamp:g}=ze;this.history.push({...b,timestamp:g});const{onStart:y,onMove:$}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=hs(p,this.transformPagePoint),Oe.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:b,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=bs(f.type==="pointercancel"?this.lastMoveEventInfo:hs(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,y),b&&b(f,y)},!ib(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=pa(t),s=hs(a,this.transformPagePoint),{point:l}=s,{timestamp:c}=ze;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,bs(s,this.history)),this.removeListeners=zt(_t(this.contextWindow,"pointermove",this.handlePointerMove),_t(this.contextWindow,"pointerup",this.handlePointerUp),_t(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),dn(this.updatePoint)}}function hs(e,t){return t?{point:t(e.point)}:e}function gf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bs({point:e},t){return{point:e,delta:gf(e,Ub(t)),offset:gf(e,S7(t)),velocity:T7(t,.1)}}function S7(e){return e[0]}function Ub(e){return e[e.length-1]}function T7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ub(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ut(t)));)n--;if(!r)return{x:0,y:0};const i=Ht(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function it(e){return e.max-e.min}function fl(e,t=0,n=.01){return Math.abs(e-t)<=n}function vf(e,t,n,r=.5){e.origin=r,e.originPoint=Se(t.min,t.max,e.origin),e.scale=it(n)/it(t),(fl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Se(n.min,n.max,e.origin)-e.originPoint,(fl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Xr(e,t,n,r){vf(e.x,t.x,n.x,r?r.originX:void 0),vf(e.y,t.y,n.y,r?r.originY:void 0)}function yf(e,t,n){e.min=n.min+t.min,e.max=e.min+it(t)}function A7(e,t,n){yf(e.x,t.x,n.x),yf(e.y,t.y,n.y)}function $f(e,t,n){e.min=t.min-n.min,e.max=e.min+it(t)}function Jr(e,t,n){$f(e.x,t.x,n.x),$f(e.y,t.y,n.y)}function M7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Se(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Se(n,e,r.max):Math.min(e,n)),e}function xf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function k7(e,{top:t,left:n,bottom:r,right:o}){return{x:xf(e.x,n,o),y:xf(e.y,t,r)}}function wf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function R7(e,t){return{x:wf(e.x,t.x),y:wf(e.y,t.y)}}function F7(e,t){let n=.5;const r=it(e),o=it(t);return o>r?n=lo(t.min,t.max-r,e.min):r>o&&(n=lo(e.min,e.max-o,t.min)),cn(0,1,n)}function B7(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const pl=.35;function I7(e=pl){return e===!1?e=0:e===!0&&(e=pl),{x:Cf(e,"left","right"),y:Cf(e,"top","bottom")}}function Cf(e,t,n){return{min:Df(e,t),max:Df(e,n)}}function Df(e,t){return typeof e=="number"?e:e[t]||0}const Ef=()=>({translate:0,scale:1,origin:0,originPoint:0}),nr=()=>({x:Ef(),y:Ef()}),Pf=()=>({min:0,max:0}),ke=()=>({x:Pf(),y:Pf()});function ut(e){return[e("x"),e("y")]}function Hb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function L7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function V7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ms(e){return e===void 0||e===1}function hl({scale:e,scaleX:t,scaleY:n}){return!ms(e)||!ms(t)||!ms(n)}function vn(e){return hl(e)||Gb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Gb(e){return Sf(e.x)||Sf(e.y)}function Sf(e){return e&&e!=="0%"}function qi(e,t,n){const r=e-n,o=t*r;return n+o}function Tf(e,t,n,r,o){return o!==void 0&&(e=qi(e,o,r)),qi(e,n,r)+t}function bl(e,t=0,n=1,r,o){e.min=Tf(e.min,t,n,r,o),e.max=Tf(e.max,t,n,r,o)}function Wb(e,{x:t,y:n}){bl(e.x,t.translate,t.scale,t.originPoint),bl(e.y,n.translate,n.scale,n.originPoint)}function O7(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const l=i.instance;l&&l.style&&l.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Wb(e,a)),r&&vn(i.latestValues)&&rr(e,i.latestValues))}t.x=Af(t.x),t.y=Af(t.y)}function Af(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function nn(e,t){e.min=e.min+t,e.max=e.max+t}function Mf(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Se(e.min,e.max,i);bl(e,t[n],t[r],a,t.scale)}const N7=["x","scaleX","originX"],K7=["y","scaleY","originY"];function rr(e,t){Mf(e.x,t,N7),Mf(e.y,t,K7)}function Yb(e,t){return Hb(V7(e.getBoundingClientRect(),t))}function j7(e,t,n){const r=Yb(e,n),{scroll:o}=t;return o&&(nn(r.x,o.offset.x),nn(r.y,o.offset.y)),r}const qb=({current:e})=>e?e.ownerDocument.defaultView:null,_7=new WeakMap;class z7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ke(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(pa(u,"page").point)},i=(u,f)=>{const{drag:p,dragPropagation:h,onDragStart:b}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=sb(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ut(y=>{let $=this.getAxisMotionValue(y).get()||0;if(At.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const w=C.layout.layoutBox[y];w&&($=it(w)*(parseFloat($)/100))}}this.originPoint[y]=$}),b&&b(u,f);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(u,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:b,onDrag:g}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:y}=f;if(h&&this.currentDirection===null){this.currentDirection=U7(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&g(u,f)},s=(u,f)=>this.stop(u,f),l=()=>ut(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new zb(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:qb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&i(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!si(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=M7(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&er(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=k7(o.layoutBox,n):this.constraints=!1,this.elastic=I7(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ut(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=B7(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!er(t))return!1;const r=t.current;Mt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=j7(r,o.root,this.visualElement.getTransformPagePoint());let a=R7(o.layout.layoutBox,i);if(n){const s=n(L7(a));this.hasMutatedConstraints=!!s,s&&(a=Hb(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=ut(u=>{if(!si(u,n,this.currentDirection))return;let f=l&&l[u]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,b={type:"inertia",velocity:r?t[u]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,b)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Iu(t,r,0,n,this.visualElement))}stopAnimation(){ut(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ut(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ut(n=>{const{drag:r}=this.getProps();if(!si(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Se(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!er(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ut(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=F7({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ut(a=>{if(!si(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(Se(l,c,o[a]))})}addListeners(){if(!this.visualElement.current)return;_7.set(this.visualElement,this);const t=this.visualElement.current,n=_t(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();er(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(ut(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=pl,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function si(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function U7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class H7 extends pn{constructor(t){super(t),this.removeGroupControls=He,this.removeListeners=He,this.controls=new z7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}unmount(){this.removeGroupControls(),this.removeListeners()}}const kf=e=>(t,n)=>{e&&e(t,n)};class G7 extends pn{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(t){this.session=new zb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:kf(t),onStart:kf(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&o(i,a)}}}mount(){this.removePointerDownListener=_t(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function W7(){const e=d.useContext(ca);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=d.useId();return d.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const vi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Rf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(re.test(e))e=parseFloat(e);else return e;const n=Rf(e,t.target.x),r=Rf(e,t.target.y);return`${n}% ${r}%`}},Y7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=fn.parse(e);if(o.length>5)return r;const i=fn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Se(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}};class q7 extends d.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;X2(Z7),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),vi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Oe.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),pu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Zb(e){const[t,n]=W7(),r=d.useContext(mu);return S.jsx(q7,{...e,layoutGroup:r,switchLayoutGroup:d.useContext(zh),isPresent:t,safeToRemove:n})}const Z7={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:Y7},Xb=["TopLeft","TopRight","BottomLeft","BottomRight"],X7=Xb.length,Ff=e=>typeof e=="string"?parseFloat(e):e,Bf=e=>typeof e=="number"||re.test(e);function J7(e,t,n,r,o,i){o?(e.opacity=Se(0,n.opacity!==void 0?n.opacity:1,Q7(r)),e.opacityExit=Se(t.opacity!==void 0?t.opacity:1,0,eC(r))):i&&(e.opacity=Se(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<X7;a++){const s=`border${Xb[a]}Radius`;let l=If(t,s),c=If(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Bf(l)===Bf(c)?(e[s]=Math.max(Se(Ff(l),Ff(c),r),0),(At.test(c)||At.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Se(t.rotate||0,n.rotate||0,r))}function If(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Q7=Jb(0,.5,Bb),eC=Jb(.5,.95,He);function Jb(e,t,n){return r=>r<e?0:r>t?1:n(lo(e,t,r))}function Lf(e,t){e.min=t.min,e.max=t.max}function st(e,t){Lf(e.x,t.x),Lf(e.y,t.y)}function Vf(e,t,n,r,o){return e-=t,e=qi(e,1/n,r),o!==void 0&&(e=qi(e,1/o,r)),e}function tC(e,t=0,n=1,r=.5,o,i=e,a=e){if(At.test(t)&&(t=parseFloat(t),t=Se(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Se(i.min,i.max,r);e===i&&(s-=t),e.min=Vf(e.min,t,n,s,o),e.max=Vf(e.max,t,n,s,o)}function Of(e,t,[n,r,o],i,a){tC(e,t[n],t[r],t[o],t.scale,i,a)}const nC=["x","scaleX","originX"],rC=["y","scaleY","originY"];function Nf(e,t,n,r){Of(e.x,t,nC,n?n.x:void 0,r?r.x:void 0),Of(e.y,t,rC,n?n.y:void 0,r?r.y:void 0)}function Kf(e){return e.translate===0&&e.scale===1}function Qb(e){return Kf(e.x)&&Kf(e.y)}function oC(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function em(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function jf(e){return it(e.x)/it(e.y)}class iC{constructor(){this.members=[]}add(t){Lu(this.members,t),t.scheduleRender()}remove(t){if(Vu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _f(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:p,skewX:h,skewY:b}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),b&&(r+=`skewY(${b}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const aC=(e,t)=>e.depth-t.depth;class sC{constructor(){this.children=[],this.isDirty=!1}add(t){Lu(this.children,t),this.isDirty=!0}remove(t){Vu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(aC),this.isDirty=!1,this.children.forEach(t)}}function lC(e,t){const n=an.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(dn(r),e(i-t))};return Oe.read(r,!0),()=>dn(r)}function uC(e){window.MotionDebug&&window.MotionDebug.record(e)}function cC(e){return e instanceof SVGElement&&e.tagName!=="svg"}function dC(e,t,n){const r=qe(e)?e:uo(e);return r.start(Iu("",r,t,n)),r.animation}const gs=["","X","Y","Z"],fC={visibility:"hidden"},zf=1e3;let pC=0;const yn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function vs(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function tm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=pC++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,yn.totalNodes=yn.resolvedTargetDeltas=yn.recalculatedProjection=0,this.nodes.forEach(mC),this.nodes.forEach(xC),this.nodes.forEach(wC),this.nodes.forEach(gC),uC(yn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new sC)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Ou),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=cC(a),this.instance=a;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(c||l)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=lC(p,250),vi.hasAnimatedSinceResize&&(vi.hasAnimatedSinceResize=!1,this.nodes.forEach(Hf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||SC,{onLayoutAnimationStart:y,onLayoutAnimationComplete:$}=u.getProps(),C=!this.targetLayout||!em(this.targetLayout,b)||h,w=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,w);const E={...Pu(g,"layout"),onPlay:y,onComplete:$};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||Hf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,dn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(CC),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Uf);return}this.isUpdating||this.nodes.forEach(yC),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach($C),this.nodes.forEach(hC),this.nodes.forEach(bC),this.clearAllSnapshots();const s=an.now();ze.delta=cn(0,1e3/60,s-ze.timestamp),ze.timestamp=s,ze.isProcessing=!0,ss.update.process(ze),ss.preRender.process(ze),ss.render.process(ze),ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pu.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(vC),this.sharedNodes.forEach(DC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Oe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Oe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ke(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Qb(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;a&&(s||vn(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),TC(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return ke();const s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(nn(s.x,l.offset.x),nn(s.y,l.offset.y)),s}removeElementScroll(a){const s=ke();st(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:f}=c;if(c!==this.root&&u&&f.layoutScroll){if(u.isRoot){st(s,a);const{scroll:p}=this.root;p&&(nn(s.x,-p.offset.x),nn(s.y,-p.offset.y))}nn(s.x,u.offset.x),nn(s.y,u.offset.y)}}return s}applyTransform(a,s=!1){const l=ke();st(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&rr(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),vn(u.latestValues)&&rr(l,u.latestValues)}return vn(this.latestValues)&&rr(l,this.latestValues),l}removeTransform(a){const s=ke();st(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!vn(c.latestValues))continue;hl(c.latestValues)&&c.updateSnapshot();const u=ke(),f=c.measurePageBox();st(u,f),Nf(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return vn(this.latestValues)&&Nf(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ze.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=ze.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ke(),this.relativeTargetOrigin=ke(),Jr(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),st(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ke(),this.targetWithTransforms=ke()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),A7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):st(this.target,this.layout.layoutBox),Wb(this.target,this.targetDelta)):st(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ke(),this.relativeTargetOrigin=ke(),Jr(this.relativeTargetOrigin,this.target,h.target),st(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}yn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||hl(this.parent.latestValues)||Gb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ze.timestamp&&(c=!1),c)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;st(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;O7(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ke());const{target:b}=s;if(!b){this.projectionTransform&&(this.projectionDelta=nr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nr(),this.projectionDeltaWithTransform=nr());const g=this.projectionTransform;Xr(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=_f(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),yn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=nr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=ke(),h=l?l.source:void 0,b=this.layout?this.layout.source:void 0,g=h!==b,y=this.getStack(),$=!y||y.members.length<=1,C=!!(g&&!$&&this.options.crossfade===!0&&!this.path.some(PC));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;Gf(f.x,a.x,P),Gf(f.y,a.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jr(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),EC(this.relativeTarget,this.relativeTargetOrigin,p,P),w&&oC(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ke()),st(w,this.relativeTarget)),g&&(this.animationValues=u,J7(u,c,this.latestValues,P,C,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(dn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Oe.update(()=>{vi.hasAnimatedSinceResize=!0,this.currentAnimation=dC(0,zf,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&nm(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ke();const f=it(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=it(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}st(s,l),rr(s,u),Xr(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new iC),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&vs("z",a,c,this.animationValues);for(let u=0;u<gs.length;u++)vs(`rotate${gs[u]}`,a,c,this.animationValues),vs(`skew${gs[u]}`,a,c,this.animationValues);a.render();for(const u in c)a.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return fC;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=mi(a==null?void 0:a.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=mi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!vn(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=_f(this.projectionDeltaWithTransform,this.treeScale,p),u&&(c.transform=u(p,c.transform));const{x:h,y:b}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${b.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in zi){if(p[g]===void 0)continue;const{correct:y,applyTo:$}=zi[g],C=c.transform==="none"?p[g]:y(p[g],f);if($){const w=$.length;for(let E=0;E<w;E++)c[$[E]]=C}else c[g]=C}return this.options.layoutId&&(c.pointerEvents=f===this?mi(a==null?void 0:a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(Uf),this.root.sharedNodes.clear()}}}function hC(e){e.updateLayout()}function bC(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?ut(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=it(p);p.min=r[f].min,p.max=p.min+h}):nm(i,n.layoutBox,r)&&ut(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=it(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=nr();Xr(s,r,n.layoutBox);const l=nr();a?Xr(l,e.applyTransform(o,!0),n.measuredBox):Xr(l,r,n.layoutBox);const c=!Qb(s);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const b=ke();Jr(b,n.layoutBox,p.layoutBox);const g=ke();Jr(g,r,h.layoutBox),em(b,g)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function mC(e){yn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function gC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vC(e){e.clearSnapshot()}function Uf(e){e.clearMeasurements()}function yC(e){e.isLayoutDirty=!1}function $C(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Hf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xC(e){e.resolveTargetDelta()}function wC(e){e.calcProjection()}function CC(e){e.resetSkewAndRotation()}function DC(e){e.removeLeadSnapshot()}function Gf(e,t,n){e.translate=Se(t.translate,0,n),e.scale=Se(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Wf(e,t,n,r){e.min=Se(t.min,n.min,r),e.max=Se(t.max,n.max,r)}function EC(e,t,n,r){Wf(e.x,t.x,n.x,r),Wf(e.y,t.y,n.y,r)}function PC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const SC={duration:.45,ease:[.4,0,.1,1]},Yf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),qf=Yf("applewebkit/")&&!Yf("chrome/")?Math.round:He;function Zf(e){e.min=qf(e.min),e.max=qf(e.max)}function TC(e){Zf(e.x),Zf(e.y)}function nm(e,t,n){return e==="position"||e==="preserve-aspect"&&!fl(jf(t),jf(n),.2)}const AC=tm({attachResizeListener:(e,t)=>Kt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ys={current:void 0},rm=tm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ys.current){const e=new AC({});e.mount(window),e.setOptions({layoutScroll:!0}),ys.current=e}return ys.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),MC={pan:{Feature:G7},drag:{Feature:H7,ProjectionNode:rm,MeasureLayout:Zb}},ml={current:null},om={current:!1};function kC(){if(om.current=!0,!!uu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ml.current=e.matches;e.addListener(t),t()}else ml.current=!1}function RC(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(qe(i))e.addValue(o,i),Yi(r)&&r.add(o),process.env.NODE_ENV==="development"&&Nu(i.version==="11.1.7",`Attempting to mix Framer Motion versions ${i.version} with 11.1.7 may not work as expected.`);else if(qe(a))e.addValue(o,uo(i,{owner:e})),Yi(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,uo(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Xf=new WeakMap,FC=[...mb,We,fn],BC=e=>FC.find(bb(e)),im=Object.keys(so),IC=im.length,Jf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],LC=bu.length;function am(e){if(e)return e.options.allowProjection!==!1?e.projection:am(e.parent)}class VC{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.resolveKeyframes=(p,h,b,g)=>new this.KeyframeResolver(p,h,b,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Su,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Oe.render(this.render,!1,!0);const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=fa(n),this.isVariantNode=_h(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];l[p]!==void 0&&qe(h)&&(h.set(l[p],!1),Yi(u)&&u.add(p))}}mount(t){this.current=t,Xf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),om.current||kC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ml.current,process.env.NODE_ENV!=="production"&&Nu(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;Xf.delete(this.current),this.projection&&this.projection.unmount(),dn(this.notifyUpdate),dn(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=Ln.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Oe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,s;if(process.env.NODE_ENV!=="production"&&o&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Do(!1,l):Mt(!1,l)}for(let l=0;l<IC;l++){const c=im[l],{isEnabled:u,Feature:f,ProjectionNode:p,MeasureLayout:h}=so[c];p&&(a=p),u(n)&&(!this.features[c]&&f&&(this.features[c]=new f(this)),h&&(s=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,am(this.parent));const{layoutId:l,layout:c,drag:u,dragConstraints:f,layoutScroll:p,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||f&&er(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ke()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Jf.length;r++){const o=Jf[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=RC(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<LC;r++){const o=bu[r],i=this.props[o];(ao(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=uo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(pb(o)||fb(o))?o=parseFloat(o):!BC(o)&&fn.test(n)&&(o=Db(t,n)),this.setBaseTarget(t,qe(o)?o.get():o)),qe(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const a=Eu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(o=a[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!qe(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ou),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class sm extends VC{constructor(){super(...arguments),this.KeyframeResolver=Eb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function OC(e){return window.getComputedStyle(e)}class NC extends sm{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Ln.has(n)){const r=Au(n);return r&&r.default||0}else{const r=OC(t),o=(Wh(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Yb(t,n)}build(t,n,r,o){$u(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Du(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;qe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Jh(t,n,r,o)}}class KC extends sm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ln.has(n)){const r=Au(n);return r&&r.default||0}return n=Qh.has(n)?n:fu(n),t.getAttribute(n)}measureInstanceViewportBox(){return ke()}scrapeMotionValuesFromProps(t,n,r){return tb(t,n,r)}build(t,n,r,o){wu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){eb(t,n,r,o)}mount(t){this.isSVGTag=Cu(t.tagName),super.mount(t)}}const lm=(e,t)=>gu(e)?new KC(t,{enableHardwareAcceleration:!1}):new NC(t,{allowProjection:e!==d.Fragment,enableHardwareAcceleration:!0}),jC={layout:{ProjectionNode:rm,MeasureLayout:Zb}},_C={..._b,...cb,...MC,...jC},yr=Uh((e,t)=>ob(e,t,_C,lm)),zC=Uh(ob);function um(){const e=d.useRef(!1);return cu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function UC(){const e=um(),[t,n]=d.useState(0),r=d.useCallback(()=>{e.current&&n(t+1)},[t]);return[d.useCallback(()=>Oe.postRender(r),[r]),t]}class HC extends B.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function GC({children:e,isPresent:t}){const n=d.useId(),r=d.useRef(null),o=d.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=d.useContext(lu);return d.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:c}=o.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return i&&(u.nonce=i),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
103
+ `;function I2({children:e,isGrid:t,renderCount:n}){return S.jsx(B2,{isGrid:t,max:0,renderCount:n??void 0,children:e})}const au=u.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),sa=u.createContext({}),la=u.createContext(null),su=typeof document<"u",lu=su?u.useLayoutEffect:u.useEffect,uu=u.createContext({strict:!1}),cu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),L2="framerAppearId",Vh="data-"+cu(L2),V2={skipAnimations:!1,useManualTiming:!1};class jd{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function O2(e){let t=new jd,n=new jd,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,d=!1,c=!1)=>{const f=c&&o,p=f?t:n;return d&&a.add(l),p.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const c=t.order[d];a.has(c)&&(s.schedule(c),e()),c(l)}o=!1,i&&(i=!1,s.process(l))}};return s}const ri=["read","resolveKeyframes","update","preRender","render","postRender"],N2=40;function Oh(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=ri.reduce((f,p)=>(f[p]=O2(()=>n=!0),f),{}),a=f=>{i[f].process(o)},s=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,N2),1),o.timestamp=f,o.isProcessing=!0,ri.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:ri.reduce((f,p)=>{const h=i[p];return f[p]=(b,g=!1,y=!1)=>(n||l(),h.schedule(b,g,y)),f},{}),cancel:f=>ri.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:du,cancel:CA}=Oh(queueMicrotask,!1);function K2(e,t,n,r){const{visualElement:o}=u.useContext(sa),i=u.useContext(uu),a=u.useContext(la),s=u.useContext(au).reducedMotion,l=u.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const d=l.current;u.useInsertionEffect(()=>{d&&d.update(n,a)});const c=u.useRef(!!(n[Vh]&&!window.HandoffComplete));return lu(()=>{d&&(du.postRender(d.render),c.current&&d.animationState&&d.animationState.animateChanges())}),u.useEffect(()=>{d&&(d.updateFeatures(),!c.current&&d.animationState&&d.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),d}function er(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function j2(e,t,n){return u.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):er(n)&&(n.current=r))},[t])}function ao(e){return typeof e=="string"||Array.isArray(e)}function ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const fu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pu=["initial",...fu];function ca(e){return ua(e.animate)||pu.some(t=>ao(e[t]))}function Nh(e){return!!(ca(e)||e.variants)}function _2(e,t){if(ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ao(n)?n:void 0,animate:ao(r)?r:void 0}}return e.inherit!==!1?t:{}}function z2(e){const{initial:t,animate:n}=_2(e,u.useContext(sa));return u.useMemo(()=>({initial:t,animate:n}),[_d(t),_d(n)])}function _d(e){return Array.isArray(e)?e.join(" "):e}const zd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},so={};for(const e in zd)so[e]={isEnabled:t=>zd[e].some(n=>!!t[n])};function el(e){for(const t in e)so[t]={...so[t],...e[t]}}const hu=u.createContext({}),Kh=u.createContext({}),U2=Symbol.for("motionComponentSymbol");function H2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&el(e);function i(s,l){let d;const c={...u.useContext(au),...s,layoutId:G2(s)},{isStatic:f}=c,p=z2(s),h=r(s,f);if(!f&&su){p.visualElement=K2(o,h,c,t);const b=u.useContext(Kh),g=u.useContext(uu).strict;p.visualElement&&(d=p.visualElement.loadFeatures(c,g,e,b))}return S.jsxs(sa.Provider,{value:p,children:[d&&p.visualElement?S.jsx(d,{visualElement:p.visualElement,...c}):null,n(o,s,j2(h,p.visualElement,l),h,f,p.visualElement)]})}const a=u.forwardRef(i);return a[U2]=o,a}function G2({layoutId:e}){const t=u.useContext(hu).id;return t&&e!==void 0?t+"-"+e:e}function jh(e){function t(r,o={}){return H2(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const W2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function bu(e){return typeof e!="string"||e.includes("-")?!1:!!(W2.indexOf(e)>-1||/[A-Z]/u.test(e))}const ji={};function Y2(e){Object.assign(ji,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ln=new Set(yo);function _h(e,{layout:t,layoutId:n}){return Ln.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ji[e]||e==="opacity")}const We=e=>!!(e&&e.getVelocity),q2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z2=yo.length;function X2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<Z2;a++){const s=yo[a];if(e[s]!==void 0){const l=q2[s]||s;i+=`${l}(${e[s]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const zh=e=>t=>typeof t=="string"&&t.startsWith(e),Uh=zh("--"),J2=zh("var(--"),mu=e=>J2(e)?Q2.test(e.split("/*")[0].trim()):!1,Q2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,e6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,un=(e,t,n)=>n>t?t:n<e?e:n,vr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qr={...vr,transform:e=>un(0,1,e)},oi={...vr,default:1},Zr=e=>Math.round(e*1e5)/1e5,gu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,t6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,n6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function $o(e){return typeof e=="string"}const xo=e=>({test:t=>$o(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qt=xo("deg"),St=xo("%"),ne=xo("px"),r6=xo("vh"),o6=xo("vw"),Ud={...St,parse:e=>St.parse(e)/100,transform:e=>St.transform(e*100)},Hd={...vr,transform:Math.round},Hh={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,size:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,rotate:Qt,rotateX:Qt,rotateY:Qt,rotateZ:Qt,scale:oi,scaleX:oi,scaleY:oi,scaleZ:oi,skew:Qt,skewX:Qt,skewY:Qt,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:qr,originX:Ud,originY:Ud,originZ:ne,zIndex:Hd,backgroundPositionX:ne,backgroundPositionY:ne,fillOpacity:qr,strokeOpacity:qr,numOctaves:Hd};function vu(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,d=!1,c=!0;for(const f in t){const p=t[f];if(Uh(f)){i[f]=p;continue}const h=Hh[f],b=e6(p,h);if(Ln.has(f)){if(l=!0,a[f]=b,!c)continue;p!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(d=!0,s[f]=b):o[f]=b}if(t.transform||(l||r?o.transform=X2(e.transform,n,c,r):o.transform&&(o.transform="none")),d){const{originX:f="50%",originY:p="50%",originZ:h=0}=s;o.transformOrigin=`${f} ${p} ${h}`}}const yu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gh(e,t,n){for(const r in t)!We(t[r])&&!_h(r,n)&&(e[r]=t[r])}function i6({transformTemplate:e},t,n){return u.useMemo(()=>{const r=yu();return vu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function a6(e,t,n){const r=e.style||{},o={};return Gh(o,r,e),Object.assign(o,i6(e,t,n)),o}function s6(e,t,n){const r={},o=a6(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const l6=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _i(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||l6.has(e)}let Wh=e=>!_i(e);function u6(e){e&&(Wh=t=>t.startsWith("on")?!_i(t):e(t))}try{u6(require("@emotion/is-prop-valid").default)}catch{}function c6(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Wh(o)||n===!0&&_i(o)||!t&&!_i(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Gd(e,t,n){return typeof e=="string"?e:ne.transform(t+n*e)}function d6(e,t,n){const r=Gd(t,e.x,e.width),o=Gd(n,e.y,e.height);return`${r} ${o}`}const f6={offset:"stroke-dashoffset",array:"stroke-dasharray"},p6={offset:"strokeDashoffset",array:"strokeDasharray"};function h6(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?f6:p6;e[i.offset]=ne.transform(-r);const a=ne.transform(t),s=ne.transform(n);e[i.array]=`${a} ${s}`}function $u(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...d},c,f,p){if(vu(e,d,c,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:b,dimensions:g}=e;h.transform&&(g&&(b.transform=h.transform),delete h.transform),g&&(o!==void 0||i!==void 0||b.transform)&&(b.transformOrigin=d6(g,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&h6(h,a,s,l,!1)}const Yh=()=>({...yu(),attrs:{}}),xu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function b6(e,t,n,r){const o=u.useMemo(()=>{const i=Yh();return $u(i,t,{enableHardwareAcceleration:!1},xu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gh(i,e.style,e),o.style={...i,...o.style}}return o}function m6(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(bu(n)?b6:s6)(r,i,a,n),d=c6(r,typeof n=="string",e),c=n!==u.Fragment?{...d,...l,ref:o}:{},{children:f}=r,p=u.useMemo(()=>We(f)?f.get():f,[f]);return u.createElement(n,{...c,children:p})}}function qh(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Zh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Xh(e,t,n,r){qh(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Zh.has(o)?o:cu(o),t.attrs[o])}function wu(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(We(o[a])||t.style&&We(t.style[a])||_h(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=o[a]);return i}function Jh(e,t,n){const r=wu(e,t,n);for(const o in e)if(We(e[o])||We(t[o])){const i=yo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Cu(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function Qh(e){const t=u.useRef(null);return t.current===null&&(t.current=e()),t.current}const tl=e=>Array.isArray(e),g6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),v6=e=>tl(e)?e[e.length-1]||0:e;function hi(e){const t=We(e)?e.get():e;return g6(t)?t.toValue():t}function y6({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:$6(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const eb=e=>(t,n)=>{const r=u.useContext(sa),o=u.useContext(la),i=()=>y6(e,t,r,o);return n?i():Qh(i)};function $6(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=hi(i[p]);let{initial:a,animate:s}=e;const l=ca(e),d=Nh(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!ua(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const b=Cu(e,h);if(!b)return;const{transitionEnd:g,transition:y,...$}=b;for(const C in $){let w=$[C];if(Array.isArray(w)){const E=c?w.length-1:0;w=w[E]}w!==null&&(o[C]=w)}for(const C in g)o[C]=g[C]}),o}const ze=e=>e,{schedule:Le,cancel:cn,state:je,steps:is}=Oh(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0),x6={useVisualState:eb({scrapeMotionValuesFromProps:Jh,createRenderState:Yh,onMount:(e,t,{renderState:n,latestValues:r})=>{Le.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Le.render(()=>{$u(n,r,{enableHardwareAcceleration:!1},xu(t.tagName),e.transformTemplate),Xh(t,n)})}})},w6={useVisualState:eb({scrapeMotionValuesFromProps:wu,createRenderState:yu})};function tb(e,{forwardMotionProps:t=!1},n,r){return{...bu(e)?x6:w6,preloadedFeatures:n,useRender:m6(t),createVisualElement:r,Component:e}}function Ot(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const nb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function da(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const C6=e=>t=>nb(t)&&e(t,da(t));function Kt(e,t,n,r){return Ot(e,t,C6(n),r)}const D6=(e,t)=>n=>t(e(n)),jt=(...e)=>e.reduce(D6);function rb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Wd=rb("dragHorizontal"),Yd=rb("dragVertical");function ob(e){let t=!1;if(e==="y")t=Yd();else if(e==="x")t=Wd();else{const n=Wd(),r=Yd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ib(){const e=ob(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qd(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,a)=>{if(i.pointerType==="touch"||ib())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const l=s[r];l&&l(i,a)};return Kt(e.current,n,o,{passive:!e.getProps()[r]})}class E6 extends fn{mount(){this.unmount=jt(qd(this.node,!0),qd(this.node,!1))}unmount(){}}class P6 extends fn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=jt(Ot(this.node.current,"focus",()=>this.onFocus()),Ot(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ab=(e,t)=>t?e===t?!0:ab(e,t.parentElement):!1;function as(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,da(n))}class S6 extends fn{constructor(){super(...arguments),this.removeStartListeners=ze,this.removeEndListeners=ze,this.removeAccessibleListeners=ze,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Kt(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:c,globalTapTarget:f}=this.node.getProps();!f&&!ab(this.node.current,s.target)?c&&c(s,l):d&&d(s,l)},{passive:!(r.onTap||r.onPointerUp)}),a=Kt(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jt(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||as("up",(l,d)=>{const{onTap:c}=this.node.getProps();c&&c(l,d)})};this.removeEndListeners(),this.removeEndListeners=Ot(this.node.current,"keyup",a),as("down",(s,l)=>{this.startPress(s,l)})},n=Ot(this.node.current,"keydown",t),r=()=>{this.isPressing&&as("cancel",(i,a)=>this.cancelPress(i,a))},o=Ot(this.node.current,"blur",r);this.removeAccessibleListeners=jt(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ib()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Kt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Ot(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const nl=new WeakMap,ss=new WeakMap,T6=e=>{const t=nl.get(e.target);t&&t(e)},A6=e=>{e.forEach(T6)};function M6({root:e,...t}){const n=e||document;ss.has(n)||ss.set(n,{});const r=ss.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(A6,{root:e,...t})),r[o]}function k6(e,t,n){const r=M6(t);return nl.set(e,n),r.observe(e),()=>{nl.delete(e),r.unobserve(e)}}const R6={some:0,all:1};class F6 extends fn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:R6[o]},s=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),p=d?c:f;p&&p(l)};return k6(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(B6(t,n))&&this.startObserver()}unmount(){}}function B6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const sb={inView:{Feature:F6},tap:{Feature:S6},focus:{Feature:P6},hover:{Feature:E6}};function lb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function I6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function L6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function fa(e,t,n){const r=e.getProps();return Cu(r,t,n!==void 0?n:r.custom,I6(e),L6(e))}const _t=e=>e*1e3,zt=e=>e/1e3,V6={type:"spring",stiffness:500,damping:25,restSpeed:10},O6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),N6={type:"keyframes",duration:.8},K6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},j6=(e,{keyframes:t})=>t.length>2?N6:Ln.has(e)?e.startsWith("scale")?O6(t[1]):V6:K6;function _6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:d,...c}){return!!Object.keys(c).length}function Du(e,t){return e[t]||e.default||e}const z6=e=>e!==null;function pa(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(z6),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let bi;function U6(){bi=void 0}const on={now:()=>(bi===void 0&&on.set(je.isProcessing||V2.useManualTiming?je.timestamp:performance.now()),bi),set:e=>{bi=e,queueMicrotask(U6)}},ub=e=>/^0[^.\s]+$/u.test(e);function H6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ub(e):!0}let wo=ze,Tt=ze;process.env.NODE_ENV!=="production"&&(wo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Tt=(e,t)=>{if(!e)throw new Error(t)});const cb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),G6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function W6(e){const t=G6.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Y6=4;function db(e,t,n=1){Tt(n<=Y6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=W6(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return cb(a)?parseFloat(a):a}return mu(o)?db(o,t,n+1):o}const q6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Zd=e=>e===vr||e===ne,Xd=(e,t)=>parseFloat(e.split(", ")[t]),Jd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Xd(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Xd(i[1],e):0}},Z6=new Set(["x","y","z"]),X6=yo.filter(e=>!Z6.has(e));function J6(e){const t=[];return X6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Jd(4,13),y:Jd(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const fb=e=>t=>t.test(e),Q6={test:e=>e==="auto",parse:e=>e},pb=[vr,ne,St,Qt,o6,r6,Q6],Qd=e=>pb.find(fb(e)),Pn=new Set;let rl=!1,ol=!1;function hb(){if(ol){const e=Array.from(Pn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=J6(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{var s;(s=r.getValue(i))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ol=!1,rl=!1,Pn.forEach(e=>e.complete()),Pn.clear()}function bb(){Pn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ol=!0)})}function ew(){bb(),hb()}class Eu{constructor(t,n,r,o,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Pn.add(this),rl||(rl=!0,Le.read(bb),Le.resolveKeyframes(hb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=o==null?void 0:o.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),o&&a===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Pn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Pn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Pu=(e,t)=>n=>!!($o(n)&&n6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),mb=(e,t,n)=>r=>{if(!$o(r))return r;const[o,i,a,s]=r.match(gu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},tw=e=>un(0,255,e),ls={...vr,transform:e=>Math.round(tw(e))},En={test:Pu("rgb","red"),parse:mb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ls.transform(e)+", "+ls.transform(t)+", "+ls.transform(n)+", "+Zr(qr.transform(r))+")"};function nw(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const il={test:Pu("#"),parse:nw,transform:En.transform},tr={test:Pu("hsl","hue"),parse:mb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+St.transform(Zr(t))+", "+St.transform(Zr(n))+", "+Zr(qr.transform(r))+")"},He={test:e=>En.test(e)||il.test(e)||tr.test(e),parse:e=>En.test(e)?En.parse(e):tr.test(e)?tr.parse(e):il.parse(e),transform:e=>$o(e)?e:e.hasOwnProperty("red")?En.transform(e):tr.transform(e)};function rw(e){var t,n;return isNaN(e)&&$o(e)&&(((t=e.match(gu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(t6))===null||n===void 0?void 0:n.length)||0)>0}const gb="number",vb="color",ow="var",iw="var(",ef="${}",aw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(aw,l=>(He.test(l)?(r.color.push(i),o.push(vb),n.push(He.parse(l))):l.startsWith(iw)?(r.var.push(i),o.push(ow),n.push(l)):(r.number.push(i),o.push(gb),n.push(parseFloat(l))),++i,ef)).split(ef);return{values:n,split:s,indexes:r,types:o}}function yb(e){return zi(e).values}function $b(e){const{split:t,types:n}=zi(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const s=n[a];s===gb?i+=Zr(o[a]):s===vb?i+=He.transform(o[a]):i+=o[a]}return i}}const sw=e=>typeof e=="number"?0:e;function lw(e){const t=yb(e);return $b(e)(t.map(sw))}const dn={test:rw,parse:yb,createTransformer:$b,getAnimatableNone:lw},uw=new Set(["brightness","contrast","saturate","opacity"]);function cw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(gu)||[];if(!r)return e;const o=n.replace(r,"");let i=uw.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const dw=/\b([a-z-]*)\(.*?\)/gu,al={...dn,getAnimatableNone:e=>{const t=e.match(dw);return t?t.map(cw).join(" "):e}},fw={...Hh,color:He,backgroundColor:He,outlineColor:He,fill:He,stroke:He,borderColor:He,borderTopColor:He,borderRightColor:He,borderBottomColor:He,borderLeftColor:He,filter:al,WebkitFilter:al},Su=e=>fw[e];function xb(e,t){let n=Su(e);return n!==al&&(n=dn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function pw(e,t,n){let r=0,o;for(;r<e.length&&!o;)typeof e[r]=="string"&&e[r]!=="none"&&e[r]!=="0"&&(o=e[r]),r++;if(o&&n)for(const i of t)e[i]=xb(n,o)}class wb extends Eu{constructor(t,n,r,o){super(t,n,r,o,o==null?void 0:o.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){const d=t[l];if(typeof d=="string"&&mu(d)){const c=db(d,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=d)}}if(!q6.has(r)||t.length!==2)return this.resolveNoneKeyframes();const[o,i]=t,a=Qd(o),s=Qd(i);if(a!==s)if(Zd(a)&&Zd(s))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)H6(t[o])&&r.push(o);r.length&&pw(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=o.length-1,s=o[a];o[a]=cr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}}function hw(e){let t;return()=>(t===void 0&&(t=e()),t)}const tf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(dn.test(e)||e==="0")&&!e.startsWith("url("));function bw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mw(e,t,n,r){const o=e[0];if(o===null)return!1;const i=e[e.length-1],a=tf(o,t),s=tf(i,t);return wo(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!a||!s?!1:bw(e)||n==="spring"&&r}class Cb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,...s},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ew(),this._resolved}onKeyframesResolved(t,n){this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:a,onComplete:s,onUpdate:l,isGenerator:d}=this.options;if(!d&&!mw(t,r,o,i))if(a)this.options.duration=0;else{l==null||l(pa(t,this.options,n)),s==null||s(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Db(e,t){return t?e*(1e3/t):0}const gw=5;function Eb(e,t,n){const r=Math.max(t-gw,0);return Db(n-e(r),t-r)}const us=.001,vw=.01,nf=10,yw=.05,$w=1;function xw({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;wo(e<=_t(nf),"Spring duration must be 10 seconds or less");let a=1-t;a=un(yw,$w,a),e=un(vw,nf,zt(e)),a<1?(o=d=>{const c=d*a,f=c*e,p=c-n,h=sl(d,a),b=Math.exp(-f);return us-p/h*b},i=d=>{const f=d*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(d,2)*e,b=Math.exp(-f),g=sl(Math.pow(d,2),a);return(-o(d)+us>0?-1:1)*((p-h)*b)/g}):(o=d=>{const c=Math.exp(-d*e),f=(d-n)*e+1;return-us+c*f},i=d=>{const c=Math.exp(-d*e),f=(n-d)*(e*e);return c*f});const s=5/e,l=Cw(o,i,s);if(e=_t(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const ww=12;function Cw(e,t,n){let r=n;for(let o=1;o<ww;o++)r=r-e(r)/t(r);return r}function sl(e,t){return e*Math.sqrt(1-t*t)}const Dw=["duration","bounce"],Ew=["stiffness","damping","mass"];function rf(e,t){return t.some(n=>e[n]!==void 0)}function Pw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rf(e,Ew)&&rf(e,Dw)){const n=xw(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Pb({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:d,duration:c,velocity:f,isResolvedFromDuration:p}=Pw({...r,velocity:-zt(r.velocity||0)}),h=f||0,b=l/(2*Math.sqrt(s*d)),g=i-o,y=zt(Math.sqrt(s/d)),$=Math.abs(g)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(b<1){const w=sl(y,b);C=E=>{const P=Math.exp(-b*y*E);return i-P*((h+b*y*g)/w*Math.sin(w*E)+g*Math.cos(w*E))}}else if(b===1)C=w=>i-Math.exp(-y*w)*(g+(h+y*g)*w);else{const w=y*Math.sqrt(b*b-1);C=E=>{const P=Math.exp(-b*y*E),k=Math.min(w*E,300);return i-P*((h+b*y*g)*Math.sinh(k)+w*g*Math.cosh(k))/w}}return{calculatedDuration:p&&c||null,next:w=>{const E=C(w);if(p)a.done=w>=c;else{let P=h;w!==0&&(b<1?P=Eb(C,w,E):P=0);const k=Math.abs(P)<=n,N=Math.abs(i-E)<=t;a.done=k&&N}return a.value=a.done?i:E,a}}}function of({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:d=.5,restSpeed:c}){const f=e[0],p={done:!1,value:f},h=v=>s!==void 0&&v<s||l!==void 0&&v>l,b=v=>s===void 0?l:l===void 0||Math.abs(s-v)<Math.abs(l-v)?s:l;let g=n*t;const y=f+g,$=a===void 0?y:a(y);$!==y&&(g=$-f);const C=v=>-g*Math.exp(-v/r),w=v=>$+C(v),E=v=>{const L=C(v),F=w(v);p.done=Math.abs(L)<=d,p.value=p.done?$:F};let P,k;const N=v=>{h(p.value)&&(P=v,k=Pb({keyframes:[p.value,b(p.value)],velocity:Eb(w,v,p.value),damping:o,stiffness:i,restDelta:d,restSpeed:c}))};return N(0),{calculatedDuration:null,next:v=>{let L=!1;return!k&&P===void 0&&(L=!0,E(v),N(v)),P!==void 0&&v>=P?k.next(v-P):(!L&&E(v),p)}}}const Sb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Sw=1e-7,Tw=12;function Aw(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=Sb(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>Sw&&++s<Tw);return a}function Co(e,t,n,r){if(e===t&&n===r)return ze;const o=i=>Aw(i,0,1,e,n);return i=>i===0||i===1?i:Sb(o(i),t,r)}const Mw=Co(.42,0,1,1),kw=Co(0,0,.58,1),Tb=Co(.42,0,.58,1),Rw=e=>Array.isArray(e)&&typeof e[0]!="number",Ab=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mb=e=>t=>1-e(1-t),Tu=e=>1-Math.sin(Math.acos(e)),kb=Mb(Tu),Fw=Ab(Tu),Rb=Co(.33,1.53,.69,.99),Au=Mb(Rb),Bw=Ab(Au),Iw=e=>(e*=2)<1?.5*Au(e):.5*(2-Math.pow(2,-10*(e-1))),af={linear:ze,easeIn:Mw,easeInOut:Tb,easeOut:kw,circIn:Tu,circInOut:Fw,circOut:kb,backIn:Au,backInOut:Bw,backOut:Rb,anticipate:Iw},sf=e=>{if(Array.isArray(e)){Tt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Co(t,n,r,o)}else if(typeof e=="string")return Tt(af[e]!==void 0,`Invalid easing type '${e}'`),af[e];return e},lo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ee=(e,t,n)=>e+(t-e)*n;function cs(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Lw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=cs(l,s,e+1/3),i=cs(l,s,e),a=cs(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const ds=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Vw=[il,En,tr],Ow=e=>Vw.find(t=>t.test(e));function lf(e){const t=Ow(e);Tt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===tr&&(n=Lw(n)),n}const uf=(e,t)=>{const n=lf(e),r=lf(t),o={...n};return i=>(o.red=ds(n.red,r.red,i),o.green=ds(n.green,r.green,i),o.blue=ds(n.blue,r.blue,i),o.alpha=Ee(n.alpha,r.alpha,i),En.transform(o))};function ll(e,t){return n=>n>0?t:e}function Nw(e,t){return n=>Ee(e,t,n)}function Mu(e){return typeof e=="number"?Nw:typeof e=="string"?mu(e)?ll:He.test(e)?uf:_w:Array.isArray(e)?Fb:typeof e=="object"?He.test(e)?uf:Kw:ll}function Fb(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>Mu(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function Kw(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Mu(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function jw(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=(n=e.values[s])!==null&&n!==void 0?n:0;r[i]=l,o[a]++}return r}const _w=(e,t)=>{const n=dn.createTransformer(t),r=zi(e),o=zi(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?jt(Fb(jw(r,o),o.values),n):(wo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ll(e,t))};function Bb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ee(e,t,n):Mu(e)(e,t)}function zw(e,t,n){const r=[],o=n||Bb,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ze:t;s=jt(l,s)}r.push(s)}return r}function Uw(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Tt(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=zw(t,r,o),s=a.length,l=d=>{let c=0;if(s>1)for(;c<e.length-2&&!(d<e[c+1]);c++);const f=lo(e[c],e[c+1],d);return a[c](f)};return n?d=>l(un(e[0],e[i-1],d)):l}function Hw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=lo(0,t,r);e.push(Ee(n,1,o))}}function Gw(e){const t=[0];return Hw(t,e.length-1),t}function Ww(e,t){return e.map(n=>n*t)}function Yw(e,t){return e.map(()=>t||Tb).splice(0,e.length-1)}function Ui({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Rw(r)?r.map(sf):sf(r),i={done:!1,value:t[0]},a=Ww(n&&n.length===t.length?n:Gw(t),e),s=Uw(a,t,{ease:Array.isArray(o)?o:Yw(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const cf=2e4;function qw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<cf;)t+=n,r=e.next(t);return t>=cf?1/0:t}const Zw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Le.update(t,!0),stop:()=>cn(t),now:()=>je.isProcessing?je.timestamp:on.now()}},Xw={decay:of,inertia:of,tween:Ui,keyframes:Ui,spring:Pb},Jw=e=>e/100;class ku extends Cb{constructor({KeyframeResolver:t=Eu,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:s}=this.options;s&&s()};const{name:r,motionValue:o,keyframes:i}=this.options,a=(s,l)=>this.onKeyframesResolved(s,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,a,r,o):this.resolver=new t(i,a,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=this.options,s=Xw[n]||Ui;let l,d;s!==Ui&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Tt(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=jt(Jw,Bb(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});i==="mirror"&&(d=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=qw(c));const{calculatedDuration:f}=c,p=f+o,h=p*(r+1)-o;return{generator:c,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:v}=this.options;return{done:!0,value:v[v.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:d,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:h,repeatType:b,repeatDelay:g,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const $=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?$<0:$>c;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let w=this.currentTime,E=i;if(h){const v=Math.min(this.currentTime,c)/f;let L=Math.floor(v),F=v%1;!F&&v>=1&&(F=1),F===1&&L--,L=Math.min(L,h+1),!!(L%2)&&(b==="reverse"?(F=1-F,g&&(F-=g/f)):b==="mirror"&&(E=a)),w=un(0,1,F)*f}const P=C?{done:!1,value:l[0]}:E.next(w);s&&(P.value=s(P.value));let{done:k}=P;!C&&d!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&o!==void 0&&(P.value=pa(l,this.options,o)),y&&y(P.value),N&&this.finish(),P}get duration(){const{resolved:t}=this;return t?zt(t.calculatedDuration):0}get time(){return zt(this.currentTime)}set time(t){t=_t(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=zt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Zw,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Ib=e=>Array.isArray(e)&&typeof e[0]=="number";function Lb(e){return!!(!e||typeof e=="string"&&e in Ru||Ib(e)||Array.isArray(e)&&e.every(Lb))}const Hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ru={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hr([0,.65,.55,1]),circOut:Hr([.55,0,1,.45]),backIn:Hr([.31,.01,.66,-.59]),backOut:Hr([.33,1.53,.69,.99])};function Qw(e){return Vb(e)||Ru.easeOut}function Vb(e){if(e)return Ib(e)?Hr(e):Array.isArray(e)?e.map(Qw):Ru[e]}function e7(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const d={[t]:n};l&&(d.offset=l);const c=Vb(s);return Array.isArray(c)&&(d.easing=c),e.animate(d,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const t7=hw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),n7=new Set(["opacity","clipPath","filter","transform"]),Hi=10,r7=2e4;function o7(e){return e.type==="spring"||e.name==="backgroundColor"||!Lb(e.ease)}function i7(e,t){const n=new ku({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<r7;)r=n.sample(i),o.push(r.value),i+=Hi;return{times:void 0,keyframes:o,duration:i-Hi,ease:"linear"}}class df extends Cb{constructor(t){super(t);const{name:n,motionValue:r,keyframes:o}=this.options;this.resolver=new wb(o,(i,a)=>this.onKeyframesResolved(i,a),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:a,type:s,motionValue:l,name:d}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(o7(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,...b}=this.options,g=i7(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),o=g.duration,i=g.times,a=g.ease,s="keyframes"}const c=e7(l.owner.current,d,t,{...this.options,duration:o,times:i,ease:a});return c.startTime=on.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(pa(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=_t(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ze;const{animation:r}=n;r.timeline=t,r.onfinish=null}return ze}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:a,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:d,onComplete:c,...f}=this.options,p=new ku({...f,keyframes:r,duration:o,type:i,ease:a,times:s,isGenerator:!0}),h=_t(this.time);l.setWithVelocity(p.sample(h-Hi).value,p.sample(h).value,Hi)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:a,type:s}=t;return t7()&&r&&n7.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&a!==0&&s!=="inertia"}}const Fu=(e,t,n,r={},o,i)=>a=>{const s=Du(r,e)||{},l=s.delay||r.delay||0;let{elapsed:d=0}=r;d=d-_t(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-d,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};_6(s)||(c={...c,...j6(e,c)}),c.duration&&(c.duration=_t(c.duration)),c.repeatDelay&&(c.repeatDelay=_t(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=pa(c.keyframes,s);if(p!==void 0){Le.update(()=>{c.onUpdate(p),c.onComplete()});return}}return!i&&df.supports(c)?new df(c):new ku(c)};function Gi(e){return!!(We(e)&&e.add)}function Bu(e,t){e.indexOf(t)===-1&&e.push(t)}function Iu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Lu{constructor(){this.subscriptions=[]}add(t){return Bu(this.subscriptions,t),()=>Iu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ff=new Set;function Vu(e,t,n){e||ff.has(t)||(console.warn(t),n&&console.warn(n),ff.add(t))}const pf=30,a7=e=>!isNaN(parseFloat(e));class s7{constructor(t,n={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=on.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=a7(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=on.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Vu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Lu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=on.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pf);return Db(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uo(e,t){return new s7(e,t)}function l7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uo(n))}function u7(e,t){const n=fa(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=v6(i[a]);l7(e,a,s)}}function c7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ob(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const d=e.getValue("willChange");r&&(a=r);const c=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const p in l){const h=e.getValue(p,(i=e.latestValues[p])!==null&&i!==void 0?i:null),b=l[p];if(b===void 0||f&&c7(f,p))continue;const g={delay:n,elapsed:0,...Du(a||{},p)};let y=!1;if(window.HandoffAppearAnimations){const w=e.getProps()[Vh];if(w){const E=window.HandoffAppearAnimations(w,p);E!==null&&(g.elapsed=E,y=!0)}}h.start(Fu(p,h,b,e.shouldReduceMotion&&Ln.has(p)?{type:!1}:g,e,y));const $=h.animation;$&&(Gi(d)&&(d.add(p),$.then(()=>d.remove(p))),c.push($))}return s&&Promise.all(c).then(()=>{Le.update(()=>{s&&u7(e,s)})}),c}function ul(e,t,n={}){var r;const o=fa(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(Ob(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:p}=i;return d7(e,t,c+d,f,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[d,c]=l==="beforeChildren"?[a,s]:[s,a];return d().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function d7(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(d=0)=>d*r:(d=0)=>s-d*r;return Array.from(e.variantChildren).sort(f7).forEach((d,c)=>{d.notify("AnimationStart",t),a.push(ul(d,t,{...i,delay:n+l(c)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function f7(e,t){return e.sortNodePosition(t)}function p7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ul(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ul(e,t,n);else{const o=typeof t=="function"?fa(e,t,n.custom):t;r=Promise.all(Ob(e,o,n))}return r.then(()=>{Le.postRender(()=>{e.notify("AnimationComplete",t)})})}const h7=[...fu].reverse(),b7=fu.length;function m7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>p7(e,n,r)))}function g7(e){let t=m7(e);const n=y7();let r=!0;const o=l=>(d,c)=>{var f;const p=fa(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:b,...g}=p;d={...d,...g,...b}}return d};function i(l){t=l(e)}function a(l){const d=e.getProps(),c=e.getVariantContext(!0)||{},f=[],p=new Set;let h={},b=1/0;for(let y=0;y<b7;y++){const $=h7[y],C=n[$],w=d[$]!==void 0?d[$]:c[$],E=ao(w),P=$===l?C.isActive:null;P===!1&&(b=y);let k=w===c[$]&&w!==d[$]&&E;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...h},!C.isActive&&P===null||!w&&!C.prevProp||ua(w)||typeof w=="boolean")continue;let v=v7(C.prevProp,w)||$===l&&C.isActive&&!k&&E||y>b&&E,L=!1;const F=Array.isArray(w)?w:[w];let A=F.reduce(o($),{});P===!1&&(A={});const{prevResolvedValues:B={}}=C,R={...B,...A},I=K=>{v=!0,p.has(K)&&(L=!0,p.delete(K)),C.needsAnimating[K]=!0;const V=e.getValue(K);V&&(V.liveStyle=!1)};for(const K in R){const V=A[K],T=B[K];if(h.hasOwnProperty(K))continue;let G=!1;tl(V)&&tl(T)?G=!lb(V,T):G=V!==T,G?V!=null?I(K):p.add(K):V!==void 0&&p.has(K)?I(K):C.protectedKeys[K]=!0}C.prevProp=w,C.prevResolvedValues=A,C.isActive&&(h={...h,...A}),r&&e.blockInitialAnimation&&(v=!1),v&&(!k||L)&&f.push(...F.map(K=>({animation:K,options:{type:$}})))}if(p.size){const y={};p.forEach($=>{const C=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),y[$]=C??null}),f.push({animation:y})}let g=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function s(l,d){var c;if(n[l].isActive===d)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,d)}),n[l].isActive=d;const f=a(l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function v7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lb(t,e):!1}function hn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y7(){return{animate:hn(!0),whileInView:hn(),whileHover:hn(),whileTap:hn(),whileDrag:hn(),whileFocus:hn(),exit:hn()}}class $7 extends fn{constructor(t){super(t),t.animationState||(t.animationState=g7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ua(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let x7=0;class w7 extends fn{constructor(){super(...arguments),this.id=x7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Nb={animation:{Feature:$7},exit:{Feature:w7}},hf=(e,t)=>Math.abs(e-t);function C7(e,t){const n=hf(e.x,t.x),r=hf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Kb{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ps(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=C7(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:b}=f,{timestamp:g}=je;this.history.push({...b,timestamp:g});const{onStart:y,onMove:$}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=fs(p,this.transformPagePoint),Le.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:b,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ps(f.type==="pointercancel"?this.lastMoveEventInfo:fs(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,y),b&&b(f,y)},!nb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=da(t),s=fs(a,this.transformPagePoint),{point:l}=s,{timestamp:d}=je;this.history=[{...l,timestamp:d}];const{onSessionStart:c}=n;c&&c(t,ps(s,this.history)),this.removeListeners=jt(Kt(this.contextWindow,"pointermove",this.handlePointerMove),Kt(this.contextWindow,"pointerup",this.handlePointerUp),Kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cn(this.updatePoint)}}function fs(e,t){return t?{point:t(e.point)}:e}function bf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ps({point:e},t){return{point:e,delta:bf(e,jb(t)),offset:bf(e,D7(t)),velocity:E7(t,.1)}}function D7(e){return e[0]}function jb(e){return e[e.length-1]}function E7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=jb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>_t(t)));)n--;if(!r)return{x:0,y:0};const i=zt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function rt(e){return e.max-e.min}function cl(e,t=0,n=.01){return Math.abs(e-t)<=n}function mf(e,t,n,r=.5){e.origin=r,e.originPoint=Ee(t.min,t.max,e.origin),e.scale=rt(n)/rt(t),(cl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ee(n.min,n.max,e.origin)-e.originPoint,(cl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Xr(e,t,n,r){mf(e.x,t.x,n.x,r?r.originX:void 0),mf(e.y,t.y,n.y,r?r.originY:void 0)}function gf(e,t,n){e.min=n.min+t.min,e.max=e.min+rt(t)}function P7(e,t,n){gf(e.x,t.x,n.x),gf(e.y,t.y,n.y)}function vf(e,t,n){e.min=t.min-n.min,e.max=e.min+rt(t)}function Jr(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function S7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ee(n,e,r.max):Math.min(e,n)),e}function yf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function T7(e,{top:t,left:n,bottom:r,right:o}){return{x:yf(e.x,n,o),y:yf(e.y,t,r)}}function $f(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function A7(e,t){return{x:$f(e.x,t.x),y:$f(e.y,t.y)}}function M7(e,t){let n=.5;const r=rt(e),o=rt(t);return o>r?n=lo(t.min,t.max-r,e.min):r>o&&(n=lo(e.min,e.max-o,t.min)),un(0,1,n)}function k7(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const dl=.35;function R7(e=dl){return e===!1?e=0:e===!0&&(e=dl),{x:xf(e,"left","right"),y:xf(e,"top","bottom")}}function xf(e,t,n){return{min:wf(e,t),max:wf(e,n)}}function wf(e,t){return typeof e=="number"?e:e[t]||0}const Cf=()=>({translate:0,scale:1,origin:0,originPoint:0}),nr=()=>({x:Cf(),y:Cf()}),Df=()=>({min:0,max:0}),Ae=()=>({x:Df(),y:Df()});function st(e){return[e("x"),e("y")]}function _b({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function F7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function B7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function hs(e){return e===void 0||e===1}function fl({scale:e,scaleX:t,scaleY:n}){return!hs(e)||!hs(t)||!hs(n)}function gn(e){return fl(e)||zb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zb(e){return Ef(e.x)||Ef(e.y)}function Ef(e){return e&&e!=="0%"}function Wi(e,t,n){const r=e-n,o=t*r;return n+o}function Pf(e,t,n,r,o){return o!==void 0&&(e=Wi(e,o,r)),Wi(e,n,r)+t}function pl(e,t=0,n=1,r,o){e.min=Pf(e.min,t,n,r,o),e.max=Pf(e.max,t,n,r,o)}function Ub(e,{x:t,y:n}){pl(e.x,t.translate,t.scale,t.originPoint),pl(e.y,n.translate,n.scale,n.originPoint)}function I7(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const l=i.instance;l&&l.style&&l.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ub(e,a)),r&&gn(i.latestValues)&&rr(e,i.latestValues))}t.x=Sf(t.x),t.y=Sf(t.y)}function Sf(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function tn(e,t){e.min=e.min+t,e.max=e.max+t}function Tf(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Ee(e.min,e.max,i);pl(e,t[n],t[r],a,t.scale)}const L7=["x","scaleX","originX"],V7=["y","scaleY","originY"];function rr(e,t){Tf(e.x,t,L7),Tf(e.y,t,V7)}function Hb(e,t){return _b(B7(e.getBoundingClientRect(),t))}function O7(e,t,n){const r=Hb(e,n),{scroll:o}=t;return o&&(tn(r.x,o.offset.x),tn(r.y,o.offset.y)),r}const Gb=({current:e})=>e?e.ownerDocument.defaultView:null,N7=new WeakMap;class K7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ae(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(da(c,"page").point)},i=(c,f)=>{const{drag:p,dragPropagation:h,onDragStart:b}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ob(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),st(y=>{let $=this.getAxisMotionValue(y).get()||0;if(St.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const w=C.layout.layoutBox[y];w&&($=rt(w)*(parseFloat($)/100))}}this.originPoint[y]=$}),b&&b(c,f);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(c,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:b,onDrag:g}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:y}=f;if(h&&this.currentDirection===null){this.currentDirection=j7(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&g(c,f)},s=(c,f)=>this.stop(c,f),l=()=>st(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Kb(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Gb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&i(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ii(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=S7(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&er(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=T7(o.layoutBox,n):this.constraints=!1,this.elastic=R7(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&st(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=k7(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!er(t))return!1;const r=t.current;Tt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=O7(r,o.root,this.visualElement.getTransformPagePoint());let a=A7(o.layout.layoutBox,i);if(n){const s=n(F7(a));this.hasMutatedConstraints=!!s,s&&(a=_b(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},d=st(c=>{if(!ii(c,n,this.currentDirection))return;let f=l&&l[c]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,b)});return Promise.all(d).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Fu(t,r,0,n,this.visualElement))}stopAnimation(){st(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){st(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){st(n=>{const{drag:r}=this.getProps();if(!ii(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Ee(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!er(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};st(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=M7({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),st(a=>{if(!ii(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:d}=this.constraints[a];s.set(Ee(l,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;N7.set(this.visualElement,this);const t=this.visualElement.current,n=Kt(t,"pointerdown",l=>{const{drag:d,dragListener:c=!0}=this.getProps();d&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();er(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=Ot(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(st(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=dl,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ii(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function j7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _7 extends fn{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new K7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const Af=e=>(t,n)=>{e&&e(t,n)};class z7 extends fn{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new Kb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Af(t),onStart:Af(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&o(i,a)}}}mount(){this.removePointerDownListener=Kt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function U7(){const e=u.useContext(la);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=u.useId();return u.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const mi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const n=Mf(e,t.target.x),r=Mf(e,t.target.y);return`${n}% ${r}%`}},H7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=dn.parse(e);if(o.length>5)return r;const i=dn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const d=Ee(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),i(o)}};class G7 extends u.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Y2(W7),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),mi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Le.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),du.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wb(e){const[t,n]=U7(),r=u.useContext(hu);return S.jsx(G7,{...e,layoutGroup:r,switchLayoutGroup:u.useContext(Kh),isPresent:t,safeToRemove:n})}const W7={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:H7},Yb=["TopLeft","TopRight","BottomLeft","BottomRight"],Y7=Yb.length,kf=e=>typeof e=="string"?parseFloat(e):e,Rf=e=>typeof e=="number"||ne.test(e);function q7(e,t,n,r,o,i){o?(e.opacity=Ee(0,n.opacity!==void 0?n.opacity:1,Z7(r)),e.opacityExit=Ee(t.opacity!==void 0?t.opacity:1,0,X7(r))):i&&(e.opacity=Ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Y7;a++){const s=`border${Yb[a]}Radius`;let l=Ff(t,s),d=Ff(n,s);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||Rf(l)===Rf(d)?(e[s]=Math.max(Ee(kf(l),kf(d),r),0),(St.test(d)||St.test(l))&&(e[s]+="%")):e[s]=d}(t.rotate||n.rotate)&&(e.rotate=Ee(t.rotate||0,n.rotate||0,r))}function Ff(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Z7=qb(0,.5,kb),X7=qb(.5,.95,ze);function qb(e,t,n){return r=>r<e?0:r>t?1:n(lo(e,t,r))}function Bf(e,t){e.min=t.min,e.max=t.max}function it(e,t){Bf(e.x,t.x),Bf(e.y,t.y)}function If(e,t,n,r,o){return e-=t,e=Wi(e,1/n,r),o!==void 0&&(e=Wi(e,1/o,r)),e}function J7(e,t=0,n=1,r=.5,o,i=e,a=e){if(St.test(t)&&(t=parseFloat(t),t=Ee(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ee(i.min,i.max,r);e===i&&(s-=t),e.min=If(e.min,t,n,s,o),e.max=If(e.max,t,n,s,o)}function Lf(e,t,[n,r,o],i,a){J7(e,t[n],t[r],t[o],t.scale,i,a)}const Q7=["x","scaleX","originX"],eC=["y","scaleY","originY"];function Vf(e,t,n,r){Lf(e.x,t,Q7,n?n.x:void 0,r?r.x:void 0),Lf(e.y,t,eC,n?n.y:void 0,r?r.y:void 0)}function Of(e){return e.translate===0&&e.scale===1}function Zb(e){return Of(e.x)&&Of(e.y)}function tC(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Xb(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Nf(e){return rt(e.x)/rt(e.y)}class nC{constructor(){this.members=[]}add(t){Bu(this.members,t),t.scheduleRender()}remove(t){if(Iu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Kf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:c,rotateX:f,rotateY:p,skewX:h,skewY:b}=n;d&&(r=`perspective(${d}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),b&&(r+=`skewY(${b}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const rC=(e,t)=>e.depth-t.depth;class oC{constructor(){this.children=[],this.isDirty=!1}add(t){Bu(this.children,t),this.isDirty=!0}remove(t){Iu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rC),this.isDirty=!1,this.children.forEach(t)}}function iC(e,t){const n=on.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(cn(r),e(i-t))};return Le.read(r,!0),()=>cn(r)}function aC(e){window.MotionDebug&&window.MotionDebug.record(e)}function sC(e){return e instanceof SVGElement&&e.tagName!=="svg"}function lC(e,t,n){const r=We(e)?e:uo(e);return r.start(Fu("",r,t,n)),r.animation}const bs=["","X","Y","Z"],uC={visibility:"hidden"},jf=1e3;let cC=0;const vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ms(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Jb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=cC++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vn.totalNodes=vn.resolvedTargetDeltas=vn.recalculatedProjection=0,this.nodes.forEach(pC),this.nodes.forEach(vC),this.nodes.forEach(yC),this.nodes.forEach(hC),aC(vn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new oC)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Lu),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=sC(a),this.instance=a;const{layoutId:l,layout:d,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(d||l)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=iC(p,250),mi.hasAnimatedSinceResize&&(mi.hasAnimatedSinceResize=!1,this.nodes.forEach(zf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||d)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||DC,{onLayoutAnimationStart:y,onLayoutAnimationComplete:$}=c.getProps(),C=!this.targetLayout||!Xb(this.targetLayout,b)||h,w=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,w);const E={...Du(g,"layout"),onPlay:y,onComplete:$};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||zf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach($C),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_f);return}this.isUpdating||this.nodes.forEach(mC),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(gC),this.nodes.forEach(dC),this.nodes.forEach(fC),this.clearAllSnapshots();const s=on.now();je.delta=un(0,1e3/60,s-je.timestamp),je.timestamp=s,je.isProcessing=!0,is.update.process(je),is.preRender.process(je),is.render.process(je),je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,du.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(bC),this.sharedNodes.forEach(xC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ae(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Zb(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,c=d!==this.prevTransformTemplateValue;a&&(s||gn(this.latestValues)||c)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),EC(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Ae();const s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(tn(s.x,l.offset.x),tn(s.y,l.offset.y)),s}removeElementScroll(a){const s=Ae();it(s,a);for(let l=0;l<this.path.length;l++){const d=this.path[l],{scroll:c,options:f}=d;if(d!==this.root&&c&&f.layoutScroll){if(c.isRoot){it(s,a);const{scroll:p}=this.root;p&&(tn(s.x,-p.offset.x),tn(s.y,-p.offset.y))}tn(s.x,c.offset.x),tn(s.y,c.offset.y)}}return s}applyTransform(a,s=!1){const l=Ae();it(l,a);for(let d=0;d<this.path.length;d++){const c=this.path[d];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&rr(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),gn(c.latestValues)&&rr(l,c.latestValues)}return gn(this.latestValues)&&rr(l,this.latestValues),l}removeTransform(a){const s=Ae();it(s,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!gn(d.latestValues))continue;fl(d.latestValues)&&d.updateSnapshot();const c=Ae(),f=d.measurePageBox();it(c,f),Vf(s,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,c)}return gn(this.latestValues)&&Vf(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==je.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==l;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=je.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ae(),this.relativeTargetOrigin=Ae(),Jr(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ae(),this.targetWithTransforms=Ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),P7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):it(this.target,this.layout.layoutBox),Ub(this.target,this.targetDelta)):it(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ae(),this.relativeTargetOrigin=Ae(),Jr(this.relativeTargetOrigin,this.target,h.target),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||fl(this.parent.latestValues)||zb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===je.timestamp&&(d=!1),d)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;it(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;I7(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Ae());const{target:b}=s;if(!b){this.projectionTransform&&(this.projectionDelta=nr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nr(),this.projectionDeltaWithTransform=nr());const g=this.projectionTransform;Xr(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=Kf(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),vn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const l=this.snapshot,d=l?l.latestValues:{},c={...this.latestValues},f=nr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=Ae(),h=l?l.source:void 0,b=this.layout?this.layout.source:void 0,g=h!==b,y=this.getStack(),$=!y||y.members.length<=1,C=!!(g&&!$&&this.options.crossfade===!0&&!this.path.some(CC));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;Uf(f.x,a.x,P),Uf(f.y,a.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jr(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wC(this.relativeTarget,this.relativeTargetOrigin,p,P),w&&tC(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ae()),it(w,this.relativeTarget)),g&&(this.animationValues=c,q7(c,d,this.latestValues,P,C,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Le.update(()=>{mi.hasAnimatedSinceResize=!0,this.currentAnimation=lC(0,jf,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:d,latestValues:c}=a;if(!(!s||!l||!d)){if(this!==a&&this.layout&&d&&Qb(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Ae();const f=rt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=rt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}it(s,l),rr(s,c),Xr(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new nC),this.sharedNodes.get(a).add(s);const d=s.options.initialPromotionConfig;s.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const d={};l.z&&ms("z",a,d,this.animationValues);for(let c=0;c<bs.length;c++)ms(`rotate${bs[c]}`,a,d,this.animationValues),ms(`skew${bs[c]}`,a,d,this.animationValues);a.render();for(const c in d)a.setStaticValue(c,d[c]),this.animationValues&&(this.animationValues[c]=d[c]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return uC;const d={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=hi(a==null?void 0:a.pointerEvents)||"",d.transform=c?c(this.latestValues,""):"none",d;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=hi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gn(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),d.transform=Kf(this.projectionDeltaWithTransform,this.treeScale,p),c&&(d.transform=c(p,d.transform));const{x:h,y:b}=this.projectionDelta;d.transformOrigin=`${h.origin*100}% ${b.origin*100}% 0`,f.animationValues?d.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in ji){if(p[g]===void 0)continue;const{correct:y,applyTo:$}=ji[g],C=d.transform==="none"?p[g]:y(p[g],f);if($){const w=$.length;for(let E=0;E<w;E++)d[$[E]]=C}else d[g]=C}return this.options.layoutId&&(d.pointerEvents=f===this?hi(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(_f),this.root.sharedNodes.clear()}}}function dC(e){e.updateLayout()}function fC(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?st(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=rt(p);p.min=r[f].min,p.max=p.min+h}):Qb(i,n.layoutBox,r)&&st(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=rt(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=nr();Xr(s,r,n.layoutBox);const l=nr();a?Xr(l,e.applyTransform(o,!0),n.measuredBox):Xr(l,r,n.layoutBox);const d=!Zb(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const b=Ae();Jr(b,n.layoutBox,p.layoutBox);const g=Ae();Jr(g,r,h.layoutBox),Xb(b,g)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:d,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function pC(e){vn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function hC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function bC(e){e.clearSnapshot()}function _f(e){e.clearMeasurements()}function mC(e){e.isLayoutDirty=!1}function gC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vC(e){e.resolveTargetDelta()}function yC(e){e.calcProjection()}function $C(e){e.resetSkewAndRotation()}function xC(e){e.removeLeadSnapshot()}function Uf(e,t,n){e.translate=Ee(t.translate,0,n),e.scale=Ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hf(e,t,n,r){e.min=Ee(t.min,n.min,r),e.max=Ee(t.max,n.max,r)}function wC(e,t,n,r){Hf(e.x,t.x,n.x,r),Hf(e.y,t.y,n.y,r)}function CC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const DC={duration:.45,ease:[.4,0,.1,1]},Gf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wf=Gf("applewebkit/")&&!Gf("chrome/")?Math.round:ze;function Yf(e){e.min=Wf(e.min),e.max=Wf(e.max)}function EC(e){Yf(e.x),Yf(e.y)}function Qb(e,t,n){return e==="position"||e==="preserve-aspect"&&!cl(Nf(t),Nf(n),.2)}const PC=Jb({attachResizeListener:(e,t)=>Ot(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gs={current:void 0},em=Jb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gs.current){const e=new PC({});e.mount(window),e.setOptions({layoutScroll:!0}),gs.current=e}return gs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),SC={pan:{Feature:z7},drag:{Feature:_7,ProjectionNode:em,MeasureLayout:Wb}},hl={current:null},tm={current:!1};function TC(){if(tm.current=!0,!!su)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hl.current=e.matches;e.addListener(t),t()}else hl.current=!1}function AC(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(We(i))e.addValue(o,i),Gi(r)&&r.add(o),process.env.NODE_ENV==="development"&&Vu(i.version==="11.1.7",`Attempting to mix Framer Motion versions ${i.version} with 11.1.7 may not work as expected.`);else if(We(a))e.addValue(o,uo(i,{owner:e})),Gi(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,uo(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const qf=new WeakMap,MC=[...pb,He,dn],kC=e=>MC.find(fb(e)),nm=Object.keys(so),RC=nm.length,Zf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],FC=pu.length;function rm(e){if(e)return e.options.allowProjection!==!1?e.projection:rm(e.parent)}class BC{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.resolveKeyframes=(p,h,b,g)=>new this.KeyframeResolver(p,h,b,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Eu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Le.render(this.render,!1,!0);const{latestValues:l,renderState:d}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=ca(n),this.isVariantNode=Nh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];l[p]!==void 0&&We(h)&&(h.set(l[p],!1),Gi(c)&&c.add(p))}}mount(t){this.current=t,qf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),tm.current||TC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hl.current,process.env.NODE_ENV!=="production"&&Vu(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;qf.delete(this.current),this.projection&&this.projection.unmount(),cn(this.notifyUpdate),cn(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=Ln.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,s;if(process.env.NODE_ENV!=="production"&&o&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?wo(!1,l):Tt(!1,l)}for(let l=0;l<RC;l++){const d=nm[l],{isEnabled:c,Feature:f,ProjectionNode:p,MeasureLayout:h}=so[d];p&&(a=p),c(n)&&(!this.features[d]&&f&&(this.features[d]=new f(this)),h&&(s=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,rm(this.parent));const{layoutId:l,layout:d,drag:c,dragConstraints:f,layoutScroll:p,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:d,alwaysMeasureLayout:!!c||f&&er(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ae()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Zf.length;r++){const o=Zf[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=AC(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<FC;r++){const o=pu[r],i=this.props[o];(ao(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=uo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(cb(o)||ub(o))?o=parseFloat(o):!kC(o)&&dn.test(n)&&(o=xb(t,n)),this.setBaseTarget(t,We(o)?o.get():o)),We(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const a=Cu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(o=a[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!We(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Lu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class om extends BC{constructor(){super(...arguments),this.KeyframeResolver=wb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function IC(e){return window.getComputedStyle(e)}class LC extends om{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Ln.has(n)){const r=Su(n);return r&&r.default||0}else{const r=IC(t),o=(Uh(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hb(t,n)}build(t,n,r,o){vu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return wu(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;We(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){qh(t,n,r,o)}}class VC extends om{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ln.has(n)){const r=Su(n);return r&&r.default||0}return n=Zh.has(n)?n:cu(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ae()}scrapeMotionValuesFromProps(t,n,r){return Jh(t,n,r)}build(t,n,r,o){$u(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Xh(t,n,r,o)}mount(t){this.isSVGTag=xu(t.tagName),super.mount(t)}}const im=(e,t)=>bu(e)?new VC(t,{enableHardwareAcceleration:!1}):new LC(t,{allowProjection:e!==u.Fragment,enableHardwareAcceleration:!0}),OC={layout:{ProjectionNode:em,MeasureLayout:Wb}},NC={...Nb,...sb,...SC,...OC},yr=jh((e,t)=>tb(e,t,NC,im)),KC=jh(tb);function am(){const e=u.useRef(!1);return lu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function jC(){const e=am(),[t,n]=u.useState(0),r=u.useCallback(()=>{e.current&&n(t+1)},[t]);return[u.useCallback(()=>Le.postRender(r),[r]),t]}class _C extends Sn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function zC({children:e,isPresent:t}){const n=u.useId(),r=u.useRef(null),o=u.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=u.useContext(au);return u.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:d}=o.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
104
104
  [data-motion-pop-id="${n}"] {
105
105
  position: absolute !important;
106
106
  width: ${a}px !important;
107
107
  height: ${s}px !important;
108
108
  top: ${l}px !important;
109
- left: ${c}px !important;
109
+ left: ${d}px !important;
110
110
  }
111
- `),()=>{document.head.removeChild(u)}},[t]),S.jsx(HC,{isPresent:t,childRef:r,sizeRef:o,children:B.cloneElement(e,{ref:r})})}const $s=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=nb(WC),l=d.useId(),c=d.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:u=>{s.set(u,!0);for(const f of s.values())if(!f)return;r&&r()},register:u=>(s.set(u,!1),()=>s.delete(u))}),i?[Math.random()]:[n]);return d.useMemo(()=>{s.forEach((u,f)=>s.set(f,!1))},[n]),B.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=S.jsx(GC,{isPresent:n,children:e})),S.jsx(ca.Provider,{value:c,children:e})};function WC(){return new Map}function YC(e){return d.useEffect(()=>()=>e(),[])}const $n=e=>e.key||"";function qC(e,t){e.forEach(n=>{const r=$n(n);t.set(r,n)})}function ZC(e){const t=[];return d.Children.forEach(e,n=>{d.isValidElement(n)&&t.push(n)}),t}const cm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{Mt(!o,"Replace exitBeforeEnter with mode='wait'");const s=d.useContext(mu).forceRender||UC()[0],l=um(),c=ZC(e);let u=c;const f=d.useRef(new Map).current,p=d.useRef(u),h=d.useRef(new Map).current,b=d.useRef(!0);if(cu(()=>{b.current=!1,qC(c,h),p.current=u}),YC(()=>{b.current=!0,h.clear(),f.clear()}),b.current)return S.jsx(S.Fragment,{children:u.map(C=>S.jsx($s,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a,children:C},$n(C)))});u=[...u];const g=p.current.map($n),y=c.map($n),$=g.length;for(let C=0;C<$;C++){const w=g[C];y.indexOf(w)===-1&&!f.has(w)&&f.set(w,void 0)}return a==="wait"&&f.size&&(u=[]),f.forEach((C,w)=>{if(y.indexOf(w)!==-1)return;const E=h.get(w);if(!E)return;const P=g.indexOf(w);let k=C;if(!k){const K=()=>{f.delete(w);const v=Array.from(h.keys()).filter(V=>!y.includes(V));if(v.forEach(V=>h.delete(V)),p.current=c.filter(V=>{const F=$n(V);return F===w||v.includes(F)}),!f.size){if(l.current===!1)return;s(),r&&r()}};k=S.jsx($s,{isPresent:!1,onExitComplete:K,custom:t,presenceAffectsLayout:i,mode:a,children:E},$n(E)),f.set(w,k)}u.splice(P,0,k)}),u=u.map(C=>{const w=C.key;return f.has(w)?C:S.jsx($s,{isPresent:!0,presenceAffectsLayout:i,mode:a,children:C},$n(C))}),process.env.NODE_ENV!=="production"&&a==="wait"&&u.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),S.jsx(S.Fragment,{children:f.size?u:u.map(C=>d.cloneElement(C))})};function XC({children:e,features:t,strict:n=!1}){const[,r]=d.useState(!xs(t)),o=d.useRef(void 0);if(!xs(t)){const{renderer:i,...a}=t;o.current=i,nl(a)}return d.useEffect(()=>{xs(t)&&t().then(({renderer:i,...a})=>{nl(a),o.current=i,r(!0)})},[]),S.jsx(du.Provider,{value:{renderer:o.current,strict:n},children:e})}function xs(e){return typeof e=="function"}const JC={renderer:lm,..._b,...cb};function QC(e){const[t,n]=Ih(e,Jc.variantKeys),{as:r,children:o,className:i,content:a,classNames:s,...l}=t,c=r||"span",u=d.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===1||(e==null?void 0:e.isOneChar)},[a,e==null?void 0:e.isOneChar]),f=d.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===0},[a]),p=sr(s==null?void 0:s.badge,i),h=d.useMemo(()=>Jc({...n,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:u,isDot:f}),[Mp(n),u,f]),b=()=>({className:h.badge({class:p}),"data-invisible":e.isInvisible,...l});return{Component:c,children:o,content:a,slots:h,classNames:s,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:b}}var dm=la((e,t)=>{const{Component:n,children:r,content:o,slots:i,classNames:a,getBadgeProps:s}=QC({...e});return S.jsxs("div",{className:i.base({class:a==null?void 0:a.base}),children:[r,S.jsx(n,{ref:t,...s(),children:o})]})});dm.displayName="NextUI.Badge";var eD=dm;const tD=G.styled.div`
111
+ `),()=>{document.head.removeChild(c)}},[t]),S.jsx(_C,{isPresent:t,childRef:r,sizeRef:o,children:Sn.cloneElement(e,{ref:r})})}const vs=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Qh(UC),l=u.useId(),d=u.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?[Math.random()]:[n]);return u.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),Sn.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=S.jsx(zC,{isPresent:n,children:e})),S.jsx(la.Provider,{value:d,children:e})};function UC(){return new Map}function HC(e){return u.useEffect(()=>()=>e(),[])}const yn=e=>e.key||"";function GC(e,t){e.forEach(n=>{const r=yn(n);t.set(r,n)})}function WC(e){const t=[];return u.Children.forEach(e,n=>{u.isValidElement(n)&&t.push(n)}),t}const sm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{Tt(!o,"Replace exitBeforeEnter with mode='wait'");const s=u.useContext(hu).forceRender||jC()[0],l=am(),d=WC(e);let c=d;const f=u.useRef(new Map).current,p=u.useRef(c),h=u.useRef(new Map).current,b=u.useRef(!0);if(lu(()=>{b.current=!1,GC(d,h),p.current=c}),HC(()=>{b.current=!0,h.clear(),f.clear()}),b.current)return S.jsx(S.Fragment,{children:c.map(C=>S.jsx(vs,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a,children:C},yn(C)))});c=[...c];const g=p.current.map(yn),y=d.map(yn),$=g.length;for(let C=0;C<$;C++){const w=g[C];y.indexOf(w)===-1&&!f.has(w)&&f.set(w,void 0)}return a==="wait"&&f.size&&(c=[]),f.forEach((C,w)=>{if(y.indexOf(w)!==-1)return;const E=h.get(w);if(!E)return;const P=g.indexOf(w);let k=C;if(!k){const N=()=>{f.delete(w);const v=Array.from(h.keys()).filter(L=>!y.includes(L));if(v.forEach(L=>h.delete(L)),p.current=d.filter(L=>{const F=yn(L);return F===w||v.includes(F)}),!f.size){if(l.current===!1)return;s(),r&&r()}};k=S.jsx(vs,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:a,children:E},yn(E)),f.set(w,k)}c.splice(P,0,k)}),c=c.map(C=>{const w=C.key;return f.has(w)?C:S.jsx(vs,{isPresent:!0,presenceAffectsLayout:i,mode:a,children:C},yn(C))}),process.env.NODE_ENV!=="production"&&a==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),S.jsx(S.Fragment,{children:f.size?c:c.map(C=>u.cloneElement(C))})};function YC({children:e,features:t,strict:n=!1}){const[,r]=u.useState(!ys(t)),o=u.useRef(void 0);if(!ys(t)){const{renderer:i,...a}=t;o.current=i,el(a)}return u.useEffect(()=>{ys(t)&&t().then(({renderer:i,...a})=>{el(a),o.current=i,r(!0)})},[]),S.jsx(uu.Provider,{value:{renderer:o.current,strict:n},children:e})}function ys(e){return typeof e=="function"}const qC={renderer:im,...Nb,...sb};function ZC(e){const[t,n]=Rh(e,Zc.variantKeys),{as:r,children:o,className:i,content:a,classNames:s,...l}=t,d=r||"span",c=u.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===1||(e==null?void 0:e.isOneChar)},[a,e==null?void 0:e.isOneChar]),f=u.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===0},[a]),p=sr(s==null?void 0:s.badge,i),h=u.useMemo(()=>Zc({...n,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:c,isDot:f}),[Sp(n),c,f]),b=()=>({className:h.badge({class:p}),"data-invisible":e.isInvisible,...l});return{Component:d,children:o,content:a,slots:h,classNames:s,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:b}}var lm=aa((e,t)=>{const{Component:n,children:r,content:o,slots:i,classNames:a,getBadgeProps:s}=ZC({...e});return S.jsxs("div",{className:i.base({class:a==null?void 0:a.base}),children:[r,S.jsx(n,{ref:t,...s(),children:o})]})});lm.displayName="NextUI.Badge";var XC=lm;const JC=_.styled.div`
112
112
  position: relative;
113
113
  display: inline-flex;
114
114
  flex-shrink: 0;
115
- `,nD=G.styled.div`
115
+ `,QC=_.styled.div`
116
116
  position: absolute;
117
117
  z-index: 2;
118
118
 
119
119
  transform: ${({placement:e})=>{const t={"top-right":"translate(50%, -50%)","bottom-right":"translate(50%, 50%)","bottom-left":"translate(-50%, 50%)","top-left":"translate(-50%, -50%)"};return e&&t[e]?t[e]:t["top-right"]}};
120
120
 
121
121
  ${({placement:e,shape:t})=>{const n={rectangle:"5%",circle:"10%"};let r=n.rectangle;t&&n[t]&&(r=n[t]);const o={"top-right":{top:r,right:r},"bottom-right":{bottom:r,right:r},"top-left":{top:r,left:r},"bottom-left":{bottom:r,left:r}};return e&&o[e]?o[e]:o["top-right"]}};
122
- `,rD=G.styled(eD)`
122
+ `,eD=_.styled(XC)`
123
123
  display: flex;
124
124
  flex-wrap: wrap;
125
125
  place-content: center;
@@ -160,7 +160,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
160
160
  transparent 60%
161
161
  )
162
162
  0px 4px 6px -4px`:"none"}};
163
- `,oD={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function iD({children:e,isInvisible:t,disableAnimation:n,placement:r,shape:o,...i}){const a=d.useId(),s=n?{duration:0}:{type:"spring",bounce:.3};return S.jsxs(tD,{children:[e,S.jsx(nD,{placement:r,shape:o,children:S.jsx(cm,{children:!t&&S.jsx(yr.div,{variants:oD,initial:n?"show":"hidden",transition:s,animate:"show",exit:"hidden",children:S.jsx(rD,{...i,isInvisible:t,showOutline:i.showOutline??!0})},`badge-${a}`)})})]})}function aD({children:e,...t}){return S.jsx("span",{...t,"aria-hidden":"true",children:e??S.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{d:"M19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{d:"M5 13C5.55228 13 6 12.5523 6 12C6 11.4477 5.55228 11 5 11C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function sD(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...l}=e,c={};n!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:u}=mr(e,t),{pressProps:f,isPressed:p}=ln({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),h=ue(l,{labelable:!0,isLink:n==="a"}),b=J(u,f),g=go();return{isPressed:p,linkProps:J(h,{...b,...c,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:y=>{var $;($=f.onClick)===null||$===void 0||$.call(f,y),a&&(a(y),console.warn("onClick is deprecated, please use onPress")),!g.isNative&&y.currentTarget instanceof HTMLAnchorElement&&y.currentTarget.href&&!y.isDefaultPrevented()&&ux(y.currentTarget,y)&&(y.preventDefault(),g.open(y.currentTarget,y))}})}}function fm(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:f,href:p,target:h,rel:b,type:g="button"}=e,y;n==="button"?y={type:g,disabled:r}:y={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:p,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:$,isPressed:C}=ln({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:c,ref:t}),{focusableProps:w}=mr(e,t);u&&(w.tabIndex=r?-1:w.tabIndex);let E=J(w,$,ue(e,{labelable:!0}));return{isPressed:C,buttonProps:J(y,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:P=>{f&&(f(P),console.warn("onClick is deprecated, please use onPress"))}})}}function lD(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=fm({...e,onPress:sn(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:J(i,{"aria-pressed":r})}}const pm=7e3;let Qr=null;function yi(e,t="assertive",n=pm){Qr||(Qr=new cD),Qr.announce(e,t,n)}function uD(e){Qr&&Qr.clear(e)}class cD{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=pm){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Ku(e,t,n){let{validationBehavior:r,focus:o}=e;me(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(fD(n.current))}});let i=Te(()=>{t.resetValidation()}),a=Te(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let u=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&n&&u&&pD(u)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),a0("keyboard")}l.preventDefault()}),s=Te(()=>{t.commitValidation()});d.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",s),c==null||c.addEventListener("reset",i),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",s),c==null||c.removeEventListener("reset",i)}},[n,a,s,i,r])}function dD(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function fD(e){return{isInvalid:!e.validity.valid,validationDetails:dD(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function pD(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const hm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},bm={...hm,customError:!0,valid:!1},qn={isInvalid:!1,validationDetails:hm,validationErrors:[]},hD=d.createContext({}),co="__formValidationState"+Date.now();function $r(e){if(e[co]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[co];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return bD(e)}function bD(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:a,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:bm}:null,c=d.useMemo(()=>Qf(mD(a,o)),[a,o]);i!=null&&i.validationDetails.valid&&(i=null);let u=d.useContext(hD),f=d.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>gl(u[F])):gl(u[r]):[],[u,r]),[p,h]=d.useState(u),[b,g]=d.useState(!1);u!==p&&(h(u),g(!1));let y=d.useMemo(()=>Qf(b?[]:f),[b,f]),$=d.useRef(qn),[C,w]=d.useState(qn),E=d.useRef(qn),P=()=>{if(!k)return;K(!1);let F=c||i||$.current;ws(F,E.current)||(E.current=F,w(F))},[k,K]=d.useState(!1);return d.useEffect(P),{realtimeValidation:l||y||c||i||qn,displayValidation:s==="native"?l||y||C:l||y||c||i||C,updateValidation(F){s==="aria"&&!ws(C,F)?w(F):$.current=F},resetValidation(){let F=qn;ws(F,E.current)||(E.current=F,w(F)),s==="native"&&K(!1),g(!0)},commitValidation(){s==="native"&&K(!0),g(!0)}}}function gl(e){return e?Array.isArray(e)?e:[e]:[]}function mD(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return gl(n)}return[]}function Qf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:bm}:null}function ws(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function mm(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:a,children:s,"aria-label":l,"aria-labelledby":c,validationState:u="valid",isInvalid:f}=e,p=k=>{k.stopPropagation(),t.setSelected(k.target.checked)},h=s!=null,b=l!=null||c!=null;!h&&!b&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:g,isPressed:y}=ln({isDisabled:r}),{pressProps:$,isPressed:C}=ln({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:w}=mr(e,n),E=J(g,w),P=ue(e,{labelable:!0});return vo(n,t.isSelected,t.setSelected),{labelProps:J($,{onClick:k=>k.preventDefault()}),inputProps:J(P,{"aria-invalid":f||u==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:p,disabled:r,...i==null?{}:{value:i},name:a,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:y||C,isDisabled:r,isReadOnly:o,isInvalid:f||u==="invalid"}}function Po(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Ue(t);let a=Ue(),s={};n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=An({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function gm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:a}=Po(e),s=on([!!t,!!n,r,o]),l=on([!!t,!!n,r,o]);return a=J(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}function ma(e={}){let{isReadOnly:t}=e,[n,r]=gt(e.isSelected,e.defaultSelected||!1,e.onChange);function o(a){t||r(a)}function i(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function vm(e,t,n){let r=$r({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=r.displayValidation,{labelProps:s,inputProps:l,isSelected:c,isPressed:u,isDisabled:f,isReadOnly:p}=mm({...e,isInvalid:o},t,n);Ku(e,r,n);let{isIndeterminate:h,isRequired:b,validationBehavior:g="aria"}=e;return d.useEffect(()=>{n.current&&(n.current.indeterminate=!!h)}),{labelProps:s,inputProps:{...l,checked:c,"aria-required":b&&g==="aria"||void 0,required:b&&g==="native"},isSelected:c,isPressed:u,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:a}}const gD=new WeakMap;function vD(e,t,n){const r=ma({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(y){y?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(y)}});let{name:o,descriptionId:i,errorMessageId:a,validationBehavior:s}=gD.get(t);var l;s=(l=e.validationBehavior)!==null&&l!==void 0?l:s;let{realtimeValidation:c}=$r({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),u=d.useRef(qn),f=()=>{t.setInvalid(e.value,c.isInvalid?c:u.current)};d.useEffect(f);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:c,h=s==="native"?t.displayValidation:p;var b;let g=vm({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(b=e.isRequired)!==null&&b!==void 0?b:t.isRequired,validationBehavior:s,[co]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){u.current=y,f()}}},r,n);return{...g,inputProps:{...g.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,i].filter(Boolean).join(" ")||void 0}}}var ym={};ym={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var $m={};$m={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var xm={};xm={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var wm={};wm={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Cm={};Cm={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var Dm={};Dm={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var Em={};Em={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Pm={};Pm={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Sm={};Sm={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Tm={};Tm={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Am={};Am={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var Mm={};Mm={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var km={};km={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var Rm={};Rm={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Fm={};Fm={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var Bm={};Bm={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Im={};Im={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Lm={};Lm={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var Vm={};Vm={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var Om={};Om={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Nm={};Nm={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Km={};Km={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var jm={};jm={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var _m={};_m={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var zm={};zm={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var Um={};Um={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var Hm={};Hm={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var Gm={};Gm={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var Wm={};Wm={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var Ym={};Ym={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var qm={};qm={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var Zm={};Zm={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Xm={};Xm={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var Jm={};Jm={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};function vl(e){return di()?e.altKey:e.ctrlKey}function Zn(e){return Gt()?e.metaKey:e.ctrlKey}const yD=1e3;function $D(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=d.useRef({search:"",timeout:null}).current,i=a=>{let s=xD(a.key);if(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))return;s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s;let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},yD)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function xD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function ju(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:h=r,linkBehavior:b="action"}=e,{direction:g}=Ne(),y=go(),$=F=>{if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!r.current.contains(F.target))return;const A=(H,D)=>{if(H!=null){if(t.isLink(H)&&b==="selection"&&l&&!vl(F)){bo.flushSync(()=>{t.setFocusedKey(H,D)});let N=h.current.querySelector(`[data-key="${CSS.escape(H.toString())}"]`);y.open(N,F);return}if(t.setFocusedKey(H,D),t.isLink(H)&&b==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&!vl(F)&&t.replaceSelection(H)}};switch(F.key){case"ArrowDown":if(n.getKeyBelow){var I,R;F.preventDefault();let H=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n);H==null&&i&&(H=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n,t.focusedKey)),A(H)}break;case"ArrowUp":if(n.getKeyAbove){var L,j;F.preventDefault();let H=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(L=n.getLastKey)===null||L===void 0?void 0:L.call(n);H==null&&i&&(H=(j=n.getLastKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),A(H)}break;case"ArrowLeft":if(n.getKeyLeftOf){var O,T;F.preventDefault();let H=n.getKeyLeftOf(t.focusedKey);H==null&&i&&(H=g==="rtl"?(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n,t.focusedKey):(T=n.getLastKey)===null||T===void 0?void 0:T.call(n,t.focusedKey)),A(H,g==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var W,q;F.preventDefault();let H=n.getKeyRightOf(t.focusedKey);H==null&&i&&(H=g==="rtl"?(W=n.getLastKey)===null||W===void 0?void 0:W.call(n,t.focusedKey):(q=n.getFirstKey)===null||q===void 0?void 0:q.call(n,t.focusedKey)),A(H,g==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){F.preventDefault();let H=n.getFirstKey(t.focusedKey,Zn(F));t.setFocusedKey(H),Zn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&t.replaceSelection(H)}break;case"End":if(n.getLastKey){F.preventDefault();let H=n.getLastKey(t.focusedKey,Zn(F));t.setFocusedKey(H),Zn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&t.replaceSelection(H)}break;case"PageDown":if(n.getKeyPageBelow){F.preventDefault();let H=n.getKeyPageBelow(t.focusedKey);A(H)}break;case"PageUp":if(n.getKeyPageAbove){F.preventDefault();let H=n.getKeyPageAbove(t.focusedKey);A(H)}break;case"a":Zn(F)&&t.selectionMode==="multiple"&&s!==!0&&(F.preventDefault(),t.selectAll());break;case"Escape":F.preventDefault(),a||t.clearSelection();break;case"Tab":if(!f){if(F.shiftKey)r.current.focus();else{let H=Je(r.current,{tabbable:!0}),D,N;do N=H.lastChild(),N&&(D=N);while(N);D&&!D.contains(document.activeElement)&&Tt(D)}break}}},C=d.useRef({top:0,left:0});Pi(h,"scroll",p?null:()=>{C.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let w=F=>{if(t.isFocused){F.currentTarget.contains(F.target)||t.setFocused(!1);return}if(F.currentTarget.contains(F.target)){if(t.setFocused(!0),t.focusedKey==null){let R=j=>{j!=null&&(t.setFocusedKey(j),l&&t.replaceSelection(j))},L=F.relatedTarget;var A,I;L&&F.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?R((A=t.lastSelectedKey)!==null&&A!==void 0?A:n.getLastKey()):R((I=t.firstSelectedKey)!==null&&I!==void 0?I:n.getFirstKey())}else p||(h.current.scrollTop=C.current.top,h.current.scrollLeft=C.current.left);if(!p&&t.focusedKey!=null){let R=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);R&&(R.contains(document.activeElement)||Tt(R),Ai()==="keyboard"&&Os(R,{containingElement:r.current}))}}},E=F=>{F.currentTarget.contains(F.relatedTarget)||t.setFocused(!1)};const P=d.useRef(o);d.useEffect(()=>{if(P.current){let F=null;o==="first"&&(F=n.getFirstKey()),o==="last"&&(F=n.getLastKey());let A=t.selectedKeys;if(A.size){for(let I of A)if(t.canSelectItem(I)){F=I;break}}t.setFocused(!0),t.setFocusedKey(F),F==null&&!u&&kn(r.current)}},[]);let k=d.useRef(t.focusedKey);d.useEffect(()=>{let F=Ai();if(t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let A=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);A&&(F==="keyboard"||P.current)&&(p||Jp(h.current,A),F!=="virtual"&&Os(A,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&k.current!=null&&kn(r.current),k.current=t.focusedKey,P.current=!1},[p,h,t.focusedKey,t.isFocused,r]);let K={onKeyDown:$,onFocus:w,onBlur:E,onMouseDown(F){h.current===F.target&&F.preventDefault()}},{typeSelectProps:v}=$D({keyboardDelegate:n,selectionManager:t});c||(K=J(v,K));let V;return u||(V=t.focusedKey==null?0:-1),{collectionProps:{...K,tabIndex:V}}}function _u(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:a,isDisabled:s,onAction:l,allowsDifferentPressOrigin:c,linkBehavior:u="action"}=e,f=go(),p=T=>{if(T.pointerType==="keyboard"&&vl(T))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(u==="selection"){f.open(r.current,T),t.setSelectedKeys(t.selectedKeys);return}else if(u==="override"||u==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):T&&T.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||T&&(Zn(T)||T.pointerType==="touch"||T.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};d.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(a?a():document.activeElement!==r.current&&kn(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let h={};!i&&!s?h={tabIndex:n===t.focusedKey?0:-1,onFocus(T){T.target===r.current&&t.setFocusedKey(n)}}:s&&(h.onMouseDown=T=>{T.preventDefault()});let b=t.isLink(n)&&u==="override",g=t.isLink(n)&&u!=="selection"&&u!=="none",y=!s&&t.canSelectItem(n)&&!b,$=(l||g)&&!s,C=$&&(t.selectionBehavior==="replace"?!y:!y||t.isEmpty),w=$&&y&&t.selectionBehavior==="replace",E=C||w,P=d.useRef(null),k=E&&y,K=d.useRef(!1),v=d.useRef(!1),V=T=>{l&&l(),g&&f.open(r.current,T)},F={};o?(F.onPressStart=T=>{P.current=T.pointerType,K.current=k,T.pointerType==="keyboard"&&(!E||tp())&&p(T)},c?(F.onPressUp=C?null:T=>{T.pointerType!=="keyboard"&&y&&p(T)},F.onPress=C?V:null):F.onPress=T=>{if(C||w&&T.pointerType!=="mouse"){if(T.pointerType==="keyboard"&&!ep())return;V(T)}else T.pointerType!=="keyboard"&&y&&p(T)}):(F.onPressStart=T=>{P.current=T.pointerType,K.current=k,v.current=C,y&&(T.pointerType==="mouse"&&!C||T.pointerType==="keyboard"&&(!$||tp()))&&p(T)},F.onPress=T=>{(T.pointerType==="touch"||T.pointerType==="pen"||T.pointerType==="virtual"||T.pointerType==="keyboard"&&E&&ep()||T.pointerType==="mouse"&&v.current)&&(E?V(T):y&&p(T))}),h["data-key"]=n,F.preventFocusOnPress=i;let{pressProps:A,isPressed:I}=ln(F),R=w?T=>{P.current==="mouse"&&(T.stopPropagation(),T.preventDefault(),V(T))}:void 0,{longPressProps:L}=u0({isDisabled:!k,onLongPress(T){T.pointerType==="touch"&&(p(T),t.setSelectionBehavior("toggle"))}}),j=T=>{P.current==="touch"&&K.current&&T.preventDefault()},O=t.isLink(n)?T=>{Tn.isOpening||T.preventDefault()}:void 0;return{itemProps:J(h,y||C?A:{},k?L:{},{onDoubleClick:R,onDragStartCapture:j,onClick:O}),isPressed:I,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:y,hasAction:E}}function ep(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function tp(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class zu{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let n=this.collection.getItem(t);if((n==null?void 0:n.type)==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Ei(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.max(0,i.x-a+i.width-o.width);for(;r&&i.x-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.max(0,i.y-a+i.height-o.height);for(;r&&i.y-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Ei(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,i.x-a-i.width+o.width);for(;r&&i.x-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.min(n.scrollHeight,i.y-a-i.height+o.height);for(;r&&i.y-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o),a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Qm(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i}=e,a=iu({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,l=d.useMemo(()=>i||new zu(n,s==="selection"?new Set:r,o,a),[i,n,r,o,a,s]),{collectionProps:c}=ju({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:c}}class wD{build(t,n){return this.context=n,np(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];B.default.Children.forEach(n,a=>{o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}i=n.renderer(t.value)}if(B.default.isValidElement(i)){let l=i.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let p=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${p}> in collection.`)}let c=l.getCollectionNode(i.props,this.context),u=t.index,f=c.next();for(;!f.done&&f.value;){let p=f.value;t.index=u;let h=p.key;h||(h=p.element?null:this.getKey(i,t,n,r));let g=[...this.getFullNode({...p,key:h,index:u,wrapper:CD(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${i.key}`:i.key,o)];for(let y of g){if(y.value=p.value||t.value,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw new Error(`Unsupported type <${Cs(y.type)}> in <${Cs(o.type)}>. Only <${Cs(t.type)}> is supported.`);u++,yield y}f=c.next(g)}return}if(t.key==null)return;let a=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:np(function*(){if(!t.hasChildNodes)return;let l=0;for(let c of t.childNodes()){c.key!=null&&(c.key=`${s.key}${c.key}`),c.index=l;let u=a.getFullNode(c,a.getChildState(n,c),s.key,s);for(let f of u)l++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function np(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function CD(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Cs(e){return e[0].toUpperCase()+e.slice(1)}function eg(e,t,n){let r=d.useMemo(()=>new wD,[]),{children:o,items:i,collection:a}=e;return d.useMemo(()=>{if(a)return a;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,a,n,t])}function ga(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function DD(e){return ED(e,0)}function ED(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Ds(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...rp(e,t),t],o=[...rp(e,n),n],i=r.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function rp(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const op=new WeakMap;function Uu(e){let t=op.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(ga(o,e)):t++};return n(e),op.set(e,t),t}const va=new WeakMap;function PD(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function tg(e,t){let n=va.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${PD(t)}`}function SD(e,t,n){let r=ue(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:a}=Qm({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=br({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Ue(e.id);va.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:c,fieldProps:u}=Po({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:J(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...J(u,a)})}}function TD(e,t,n){var r;let{key:o}=e,i=va.get(t);var a;let s=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(o);var l;let c=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(o);var u;let f=(u=e.shouldSelectOnPressUp)!==null&&u!==void 0?u:i==null?void 0:i.shouldSelectOnPressUp;var p;let h=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:i==null?void 0:i.shouldFocusOnHover;var b;let g=(b=e.shouldUseVirtualFocus)!==null&&b!==void 0?b:i==null?void 0:i.shouldUseVirtualFocus;var y;let $=(y=e.isVirtualized)!==null&&y!==void 0?y:i==null?void 0:i.isVirtualized,C=on(),w=on(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};Gt()&&Kl()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=C,E["aria-describedby"]=w);let P=t.collection.getItem(o);if($){let R=Number(P==null?void 0:P.index);E["aria-posinset"]=Number.isNaN(R)?void 0:R+1,E["aria-setsize"]=Uu(t.collection)}let{itemProps:k,isPressed:K,isFocused:v,hasAction:V,allowsSelection:F}=_u({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:$,shouldUseVirtualFocus:g,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var R;return i==null||(R=i.onAction)===null||R===void 0?void 0:R.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:A}=Ie({isDisabled:s||!h,onHoverStart(){lr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),I=ue(P==null?void 0:P.props,{isLink:!!(!(P==null||(r=P.props)===null||r===void 0)&&r.href)});return delete I.id,{optionProps:{...E,...J(I,k,A),id:tg(t,o)},labelProps:{id:C},descriptionProps:{id:w},isFocused:v,isFocusVisible:v&&lr(),isSelected:c,isDisabled:s,isPressed:K,allowsSelection:F,hasAction:V}}function AD(e){let{heading:t,"aria-label":n}=e,r=Ue();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var ng={};ng={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var rg={};rg={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var og={};og={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var ig={};ig={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var ag={};ag={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var sg={};sg={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var lg={};lg={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var ug={};ug={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var cg={};cg={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var dg={};dg={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var fg={};fg={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var pg={};pg={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var hg={};hg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var bg={};bg={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var mg={};mg={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var gg={};gg={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var vg={};vg={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var yg={};yg={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var $g={};$g={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var xg={};xg={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var wg={};wg={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Cg={};Cg={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Dg={};Dg={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Eg={};Eg={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Pg={};Pg={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Sg={};Sg={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Tg={};Tg={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Ag={};Ag={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Mg={};Mg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var kg={};kg={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Rg={};Rg={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Fg={};Fg={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Bg={};Bg={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ig={};Ig={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function MD(e){return e&&e.__esModule?e.default:e}var Lg={};Lg={"ar-AE":ng,"bg-BG":rg,"cs-CZ":og,"da-DK":ig,"de-DE":ag,"el-GR":sg,"en-US":lg,"es-ES":ug,"et-EE":cg,"fi-FI":dg,"fr-FR":fg,"he-IL":pg,"hr-HR":hg,"hu-HU":bg,"it-IT":mg,"ja-JP":gg,"ko-KR":vg,"lt-LT":yg,"lv-LV":$g,"nb-NO":xg,"nl-NL":wg,"pl-PL":Cg,"pt-BR":Dg,"pt-PT":Eg,"ro-RO":Pg,"ru-RU":Sg,"sk-SK":Tg,"sl-SI":Ag,"sr-SP":Mg,"sv-SE":kg,"tr-TR":Rg,"uk-UA":Fg,"zh-CN":Bg,"zh-TW":Ig};function kD(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=Ue(),{triggerProps:s,overlayProps:l}=w2({type:r},t,n),c=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},u=gr(MD(Lg),"@react-aria/menu"),{longPressProps:f}=u0({isDisabled:o||i!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&t.toggle(h.pointerType==="virtual"?"first":null)},onPress(h){h.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?p:f,id:a,onKeyDown:c},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Vg=new WeakMap;function RD(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=ue(e,{labelable:!0}),{listProps:l}=Qm({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Vg.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:J(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...l,onKeyDown:c=>{c.key!=="Escape"&&l.onKeyDown(c)}})}}function Og(e,t,n){var r;let{key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:l,onPressUp:c,onPress:u,onPressChange:f,onPressEnd:p,onHoverStart:h,onHoverChange:b,onHoverEnd:g,onKeyDown:y,onKeyUp:$,onFocus:C,onFocusChange:w,onBlur:E}=e,P=!!s;var k;let K=(k=e.isDisabled)!==null&&k!==void 0?k:t.disabledKeys.has(o);var v;let V=(v=e.isSelected)!==null&&v!==void 0?v:t.selectionManager.isSelected(o),F=Vg.get(t),A=e.onClose||F.onClose,I=P?()=>{}:e.onAction||F.onAction,R=go(),L=le=>{I&&I(o),le.target instanceof HTMLAnchorElement&&R.open(le.target,le)},j="menuitem";P||(t.selectionManager.selectionMode==="single"?j="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(j="menuitemcheckbox"));let O=on(),T=on(),W=on(),q={"aria-disabled":K||void 0,role:j,"aria-label":e["aria-label"],"aria-labelledby":O,"aria-describedby":[T,W].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};t.selectionManager.selectionMode!=="none"&&!P&&(q["aria-checked"]=V);let H=t.collection.getItem(o);a&&(q["aria-posinset"]=H==null?void 0:H.index,q["aria-setsize"]=Uu(t.collection));let D=le=>{le.pointerType==="keyboard"&&L(le),l==null||l(le)},N=le=>{le.pointerType!=="keyboard"&&(L(le),!P&&A&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(o)))&&A()),c==null||c(le)},{itemProps:Y,isFocused:Q}=_u({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:ee,isPressed:oe}=ln({onPressStart:D,onPress:u,onPressUp:N,onPressChange:f,onPressEnd:p,isDisabled:K}),{hoverProps:z}=Ie({isDisabled:K,onHoverStart(le){lr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),h==null||h(le)},onHoverChange:b,onHoverEnd:g}),{keyboardProps:Z}=Hl({onKeyDown:le=>{if(le.repeat){le.continuePropagation();return}switch(le.key){case" ":!K&&t.selectionManager.selectionMode==="none"&&!P&&i!==!1&&A&&A();break;case"Enter":!K&&i!==!1&&!P&&A&&A();break;default:P||le.continuePropagation(),y==null||y(le);break}},onKeyUp:$}),{focusProps:ne}=na({onBlur:E,onFocus:C,onFocusChange:w}),se=ue(H.props,{isLink:!!(!(H==null||(r=H.props)===null||r===void 0)&&r.href)});return delete se.id,{menuItemProps:{...q,...J(se,P?{onFocus:Y.onFocus}:Y,ee,z,Z,ne),tabIndex:Y.tabIndex!=null?-1:void 0},labelProps:{id:O},descriptionProps:{id:T},keyboardShortcutProps:{id:W},isFocused:Q,isSelected:V,isPressed:oe,isDisabled:K}}function FD(e){let{heading:t,"aria-label":n}=e,r=Ue();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const li=2,BD=50,ID=1e3,ip=Math.PI/12;function LD(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:o}=e,i=d.useRef(),a=d.useRef(),s=d.useRef(0),l=d.useRef(),c=d.useRef(),u=d.useRef(),f=d.useRef(2),[p,h]=d.useState(!1);_l({ref:n,onResize:()=>{n.current&&(a.current=n.current.getBoundingClientRect(),u.current=void 0)}});let g=()=>{h(!1),f.current=li},y=Rx();d.useEffect(()=>{p&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,p]),d.useEffect(()=>{let $=n.current,C=t.current;if(o||!$||!r||y!=="pointer"){g();return}a.current=$.getBoundingClientRect();let w=E=>{if(E.pointerType==="touch"||E.pointerType==="pen")return;let P=Date.now();if(P-s.current<BD)return;clearTimeout(l.current),clearTimeout(c.current);let{clientX:k,clientY:K}=E;if(!i.current){i.current={x:k,y:K};return}if(!a.current)return;if(u.current||(u.current=k>a.current.right?"left":"right"),k<C.getBoundingClientRect().left||k>C.getBoundingClientRect().right||K<C.getBoundingClientRect().top||K>C.getBoundingClientRect().bottom){g();return}let v=i.current.x,V=i.current.y,F=u.current==="right"?a.current.left-v:v-a.current.right,A=Math.atan2(V-a.current.top,F)+ip,I=Math.atan2(V-a.current.bottom,F)-ip,R=Math.atan2(V-K,u.current==="left"?-(k-v):k-v),L=R<A&&R>I;f.current=L?Math.min(f.current+1,li):Math.max(f.current-1,0),f.current>=li?h(!0):h(!1),s.current=P,i.current={x:k,y:K},L&&(l.current=setTimeout(()=>{g(),c.current=setTimeout(()=>{let j=document.elementFromPoint(k,K);j&&C.contains(j)&&j.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},ID))};return window.addEventListener("pointermove",w),()=>{window.removeEventListener("pointermove",w),clearTimeout(l.current),clearTimeout(c.current),f.current=li}},[o,r,t,y,h,n])}function VD(e,t,n){let{parentMenuRef:r,submenuRef:o,type:i="menu",isDisabled:a,node:s,delay:l=200}=e,c=Ue(),u=Ue(),{direction:f}=Ne(),p=d.useRef(),h=d.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),b=Te(v=>{h(),t.open(v)}),g=Te(()=>{h(),t.close()});me(()=>()=>{h()},[h]);let y=v=>{switch(v.key){case"ArrowLeft":f==="ltr"&&v.currentTarget.contains(v.target)&&(v.stopPropagation(),g(),n.current.focus());break;case"ArrowRight":f==="rtl"&&v.currentTarget.contains(v.target)&&(v.stopPropagation(),g(),n.current.focus());break;case"Escape":v.stopPropagation(),t.closeAll();break}},$={id:u,"aria-label":s.textValue,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:t.focusStrategy,onKeyDown:y}},C=v=>{switch(v.key){case"ArrowRight":a||(f==="ltr"?(t.isOpen||b("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?g():v.continuePropagation());break;case"ArrowLeft":a||(f==="rtl"?(t.isOpen||b("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?g():v.continuePropagation());break;case"Escape":t.closeAll();break;default:v.continuePropagation();break}},w=v=>{!a&&(v.pointerType==="virtual"||v.pointerType==="keyboard")&&b("first")},E=v=>{!a&&(v.pointerType==="touch"||v.pointerType==="mouse")&&b()},P=v=>{a||(v&&!t.isOpen?p.current||(p.current=setTimeout(()=>{b()},l)):v||h())},k=v=>{t.isOpen&&r.current.contains(v.relatedTarget)&&g()},K=v=>v!==n.current;return LD({menuRef:r,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:c,"aria-controls":t.isOpen?u:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:w,onPress:E,onHoverChange:P,onKeyDown:C,onBlur:k,isOpen:t.isOpen},submenuProps:$,popoverProps:{isNonModal:!0,disableFocusManagement:!0,shouldCloseOnInteractOutside:K}}}function Hu(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,c]=gt(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=mr(e,t),f=$r({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:b}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:C}=gm({...e,isInvalid:p,errorMessage:e.errorMessage||h}),w=ue(e,{labelable:!0});const E={type:a,pattern:e.pattern};return vo(t,l,c),Ku(e,f,t),d.useEffect(()=>{if(t.current instanceof ht(t.current).HTMLTextAreaElement){let P=t.current;Object.defineProperty(P,"defaultValue",{get:()=>P.value,set:()=>{},configurable:!0})}},[t]),{labelProps:g,inputProps:J(w,n==="input"&&E,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:P=>c(P.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...y}),descriptionProps:$,errorMessageProps:C,isInvalid:p,validationErrors:h,validationDetails:b}}function ap(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function OD(e,t,n){let r=Te(f=>{let p=n.current,h;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":h=p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentForward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd+1):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentBackward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart-1)+p.value.slice(p.selectionStart):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":h=p.value.slice(p.selectionStart);break;default:f.data!=null&&(h=p.value.slice(0,p.selectionStart)+f.data+p.value.slice(p.selectionEnd));break}(h==null||!t.validate(h))&&f.preventDefault()});d.useEffect(()=>{if(!ap())return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=ap()?null:f=>{let p=f.target.value.slice(0,f.target.selectionStart)+f.data+f.target.value.slice(f.target.selectionEnd);t.validate(p)||f.preventDefault()},{labelProps:i,inputProps:a,descriptionProps:s,errorMessageProps:l,...c}=Hu(e,n),u=d.useRef(null);return{inputProps:J(a,{onBeforeInput:o,onCompositionStart(){let{value:f,selectionStart:p,selectionEnd:h}=n.current;u.current={value:f,selectionStart:p,selectionEnd:h}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:f,selectionStart:p,selectionEnd:h}=u.current;n.current.value=f,n.current.setSelectionRange(p,h),t.setInputValue(f)}}}),labelProps:i,descriptionProps:s,errorMessageProps:l,...c}}function ND(e){return e&&e.__esModule?e.default:e}var Ng={};Ng={"ar-AE":ym,"bg-BG":$m,"cs-CZ":xm,"da-DK":wm,"de-DE":Cm,"el-GR":Dm,"en-US":Em,"es-ES":Pm,"et-EE":Sm,"fi-FI":Tm,"fr-FR":Am,"he-IL":Mm,"hr-HR":km,"hu-HU":Rm,"it-IT":Fm,"ja-JP":Bm,"ko-KR":Im,"lt-LT":Lm,"lv-LV":Vm,"nb-NO":Om,"nl-NL":Nm,"pl-PL":Km,"pt-BR":jm,"pt-PT":_m,"ro-RO":zm,"ru-RU":Um,"sk-SK":Hm,"sl-SI":Gm,"sr-SP":Wm,"sv-SE":Ym,"tr-TR":qm,"uk-UA":Zm,"zh-CN":Xm,"zh-TW":Jm};function KD(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:a,shouldFocusWrap:s,isReadOnly:l,isDisabled:c}=e,u=gr(ND(Ng),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=kD({type:"listbox",isDisabled:c||l},t,n);va.set(t,{id:p.id});let h=d.useMemo(()=>a||new zu(t.collection,t.disabledKeys,i),[a,t.collection,t.disabledKeys,i]),{collectionProps:b}=ju({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),g=go(),y=z=>{switch(z.key){case"Enter":case"Tab":if(t.isOpen&&z.key==="Enter"&&z.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(z.key==="Enter"){let Z=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);Z instanceof HTMLAnchorElement&&g.open(Z,z)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&z.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},$=z=>{var Z;z.relatedTarget===(n==null?void 0:n.current)||!((Z=r.current)===null||Z===void 0)&&Z.contains(z.relatedTarget)||(e.onBlur&&e.onBlur(z),t.setFocused(!1))},C=z=>{t.isFocused||(e.onFocus&&e.onFocus(z),t.setFocused(!0))},{isInvalid:w,validationErrors:E,validationDetails:P}=t.displayValidation,{labelProps:k,inputProps:K,descriptionProps:v,errorMessageProps:V}=Hu({...e,onChange:t.setInputValue,onKeyDown:l?e.onKeyDown:sn(t.isOpen&&b.onKeyDown,y,e.onKeyDown),onBlur:$,value:t.inputValue,onFocus:C,autoComplete:"off",validate:void 0,[co]:t},o),F=z=>{z.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},A=z=>{z.pointerType!=="touch"&&(o.current.focus(),t.toggle(z.pointerType==="keyboard"||z.pointerType==="virtual"?"first":null,"manual"))},I=An({id:f.id,"aria-label":u.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),R=An({id:p.id,"aria-label":u.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),L=d.useRef(0),j=z=>{if(c||l)return;if(z.timeStamp-L.current<500){z.preventDefault(),o.current.focus();return}let Z=z.target.getBoundingClientRect(),ne=z.changedTouches[0],se=Math.ceil(Z.left+.5*Z.width),le=Math.ceil(Z.top+.5*Z.height);ne.clientX===se&&ne.clientY===le&&(z.preventDefault(),o.current.focus(),t.toggle(null,"manual"),L.current=z.timeStamp)},O=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var T;let W=(T=O==null?void 0:O.parentKey)!==null&&T!==void 0?T:null;var q;let H=(q=t.selectionManager.focusedKey)!==null&&q!==void 0?q:null,D=d.useRef(W),N=d.useRef(H);d.useEffect(()=>{if(di()&&O!=null&&H!==N.current){let z=t.selectionManager.isSelected(H),Z=W!=null?t.collection.getItem(W):null,ne=(Z==null?void 0:Z["aria-label"])||(typeof(Z==null?void 0:Z.rendered)=="string"?Z.rendered:"")||"",se=u.format("focusAnnouncement",{isGroupChange:Z&&W!==D.current,groupTitle:ne,groupCount:Z?[...ga(Z,t.collection)].length:0,optionText:O["aria-label"]||O.textValue||"",isSelected:z});yi(se)}D.current=W,N.current=H});let Y=Uu(t.collection),Q=d.useRef(Y),ee=d.useRef(t.isOpen);d.useEffect(()=>{let z=t.isOpen!==ee.current&&(t.selectionManager.focusedKey==null||di());if(t.isOpen&&(z||Y!==Q.current)){let Z=u.format("countAnnouncement",{optionCount:Y});yi(Z)}Q.current=Y,ee.current=t.isOpen});let oe=d.useRef(t.selectedKey);return d.useEffect(()=>{if(di()&&t.isFocused&&t.selectedItem&&t.selectedKey!==oe.current){let z=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Z=u.format("selectedAnnouncement",{optionText:z});yi(Z)}oe.current=t.selectedKey}),d.useEffect(()=>{if(t.isOpen)return su([o.current,r.current])},[t.isOpen,o,r]),{labelProps:k,buttonProps:{...f,...I,excludeFromTabOrder:!0,onPress:F,onPressStart:A,isDisabled:c||l},inputProps:J(K,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":O?tg(t,O.key):void 0,onTouchEnd:j,autoCorrect:"off",spellCheck:"false"}),listBoxProps:J(p,R,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:v,errorMessageProps:V,isInvalid:w,validationErrors:E,validationDetails:P}}var Kg={};Kg={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var jg={};jg={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var _g={};_g={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var zg={};zg={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Ug={};Ug={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var Hg={};Hg={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var Gg={};Gg={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var Wg={};Wg={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var Yg={};Yg={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var qg={};qg={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Zg={};Zg={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var Xg={};Xg={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var Jg={};Jg={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Qg={};Qg={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var ev={};ev={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var tv={};tv={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var nv={};nv={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var rv={};rv={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var ov={};ov={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var iv={};iv={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var av={};av={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var sv={};sv={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var lv={};lv={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var uv={};uv={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var cv={};cv={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var dv={};dv={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var fv={};fv={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var pv={};pv={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var hv={};hv={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var bv={};bv={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var mv={};mv={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var gv={};gv={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var vv={};vv={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var yv={};yv={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var $v={};$v={Empty:"فارغ"};var xv={};xv={Empty:"Изпразни"};var wv={};wv={Empty:"Prázdné"};var Cv={};Cv={Empty:"Tom"};var Dv={};Dv={Empty:"Leer"};var Ev={};Ev={Empty:"Άδειο"};var Pv={};Pv={Empty:"Empty"};var Sv={};Sv={Empty:"Vacío"};var Tv={};Tv={Empty:"Tühjenda"};var Av={};Av={Empty:"Tyhjä"};var Mv={};Mv={Empty:"Vide"};var kv={};kv={Empty:"ריק"};var Rv={};Rv={Empty:"Prazno"};var Fv={};Fv={Empty:"Üres"};var Bv={};Bv={Empty:"Vuoto"};var Iv={};Iv={Empty:"空"};var Lv={};Lv={Empty:"비어 있음"};var Vv={};Vv={Empty:"Tuščias"};var Ov={};Ov={Empty:"Tukšs"};var Nv={};Nv={Empty:"Tom"};var Kv={};Kv={Empty:"Leeg"};var jv={};jv={Empty:"Pusty"};var _v={};_v={Empty:"Vazio"};var zv={};zv={Empty:"Vazio"};var Uv={};Uv={Empty:"Gol"};var Hv={};Hv={Empty:"Не заполнено"};var Gv={};Gv={Empty:"Prázdne"};var Wv={};Wv={Empty:"Prazen"};var Yv={};Yv={Empty:"Prazno"};var qv={};qv={Empty:"Tomt"};var Zv={};Zv={Empty:"Boş"};var Xv={};Xv={Empty:"Пусто"};var Jv={};Jv={Empty:"空"};var Qv={};Qv={Empty:"空白"};function jD(e){return e&&e.__esModule?e.default:e}var ey={};ey={"ar-AE":$v,"bg-BG":xv,"cs-CZ":wv,"da-DK":Cv,"de-DE":Dv,"el-GR":Ev,"en-US":Pv,"es-ES":Sv,"et-EE":Tv,"fi-FI":Av,"fr-FR":Mv,"he-IL":kv,"hr-HR":Rv,"hu-HU":Fv,"it-IT":Bv,"ja-JP":Iv,"ko-KR":Lv,"lt-LT":Vv,"lv-LV":Ov,"nb-NO":Nv,"nl-NL":Kv,"pl-PL":jv,"pt-BR":_v,"pt-PT":zv,"ro-RO":Uv,"ru-RU":Hv,"sk-SK":Gv,"sl-SI":Wv,"sr-SP":Yv,"sv-SE":qv,"tr-TR":Zv,"uk-UA":Xv,"zh-CN":Jv,"zh-TW":Qv};function ty(e){const t=d.useRef();let{value:n,textValue:r,minValue:o,maxValue:i,isDisabled:a,isReadOnly:s,isRequired:l,onIncrement:c,onIncrementPage:u,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:b}=e;const g=gr(jD(ey),"@react-aria/spinbutton"),y=()=>clearTimeout(t.current);d.useEffect(()=>()=>y(),[]);let $=A=>{if(!(A.ctrlKey||A.metaKey||A.shiftKey||A.altKey||s))switch(A.key){case"PageUp":if(u){A.preventDefault(),u==null||u();break}case"ArrowUp":case"Up":c&&(A.preventDefault(),c==null||c());break;case"PageDown":if(p){A.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":f&&(A.preventDefault(),f==null||f());break;case"Home":h&&(A.preventDefault(),h==null||h());break;case"End":b&&(A.preventDefault(),b==null||b());break}},C=d.useRef(!1),w=()=>{C.current=!0},E=()=>{C.current=!1},P=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");d.useEffect(()=>{C.current&&(uD("assertive"),yi(P,"assertive"))},[P]);const k=Te(A=>{y(),c==null||c(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n<i)&&k(60)},A)}),K=Te(A=>{y(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&K(60)},A)});let v=A=>{A.preventDefault()},{addGlobalListener:V,removeAllGlobalListeners:F}=hr();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":a||void 0,"aria-readonly":s||void 0,"aria-required":l||void 0,onKeyDown:$,onFocus:w,onBlur:E},incrementButtonProps:{onPressStart:()=>{k(400),V(window,"contextmenu",v)},onPressEnd:()=>{y(),F()},onFocus:w,onBlur:E},decrementButtonProps:{onPressStart:()=>{K(400),V(window,"contextmenu",v)},onPressEnd:()=>{y(),F()},onFocus:w,onBlur:E}}}function ny(e){return e&&e.__esModule?e.default:e}var Gu={};Gu={"ar-AE":Kg,"bg-BG":jg,"cs-CZ":_g,"da-DK":zg,"de-DE":Ug,"el-GR":Hg,"en-US":Gg,"es-ES":Wg,"et-EE":Yg,"fi-FI":qg,"fr-FR":Zg,"he-IL":Xg,"hr-HR":Jg,"hu-HU":Qg,"it-IT":ev,"ja-JP":tv,"ko-KR":nv,"lt-LT":rv,"lv-LV":ov,"nb-NO":iv,"nl-NL":av,"pl-PL":sv,"pt-BR":lv,"pt-PT":uv,"ro-RO":cv,"ru-RU":dv,"sk-SK":fv,"sl-SI":pv,"sr-SP":hv,"sv-SE":bv,"tr-TR":mv,"uk-UA":gv,"zh-CN":vv,"zh-TW":yv};function _D(e,t,n){let{direction:r}=Ne(),o=d.useMemo(()=>f0(t),[t]),i=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusNext():o.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusPrevious():o.focusNext();break}},a=()=>{var l;let c=(l=window.event)===null||l===void 0?void 0:l.target,u=Je(t.current,{tabbable:!0});if(c&&(u.currentNode=c,c=u.previousNode()),!c){let f;do f=u.lastChild(),f&&(c=f);while(f)}for(;c!=null&&c.hasAttribute("data-placeholder");){let f=u.previousNode();if(f&&f.hasAttribute("data-placeholder"))c=f;else break}c&&c.focus()},{pressProps:s}=ln({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return J(s,{onKeyDown:i})}const ry=new WeakMap,Es="__role_"+Date.now(),zD="__focusManager_"+Date.now();function Wu(e,t,n){var r;let{isInvalid:o,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:c,errorMessageProps:u}=gm({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=d.useRef(null),{focusWithinProps:p}=br({...e,onFocusWithin(F){var A;f.current=t.value,(A=e.onFocus)===null||A===void 0||A.call(e,F)},onBlurWithin:F=>{var A;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),(A=e.onBlur)===null||A===void 0||A.call(e,F)},onFocusWithinChange:e.onFocusChange}),h=gr(ny(Gu),"@react-aria/datepicker"),b=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=t.maxGranularity==="hour"?"time":"date",y=t.value?h.format(b,{[g]:t.formatValue({month:"long"})}):"",$=Xp(y),C=e[Es]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[zD],E=d.useMemo(()=>w||f0(n),[w,n]),P=_D(t,n,e[Es]==="presentation");ry.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:E});let k=d.useRef(e.autoFocus),K;e[Es]==="presentation"?K={role:"presentation"}:K=J(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),d.useEffect(()=>{k.current&&E.focusFirst(),k.current=!1},[E]),vo(e.inputRef,t.value,t.setValue),Ku({...e,focus(){E.focusFirst()}},t,e.inputRef);let v={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||""};e.validationBehavior==="native"&&(v.type="text",v.hidden=!0,v.required=e.isRequired,v.onChange=()=>{});let V=ue(e);return{labelProps:{...s,onClick:()=>{E.focusFirst()}},fieldProps:J(V,K,P,p,{onKeyDown(F){e.onKeyDown&&e.onKeyDown(F)},onKeyUp(F){e.onKeyUp&&e.onKeyUp(F)}}),inputProps:v,descriptionProps:c,errorMessageProps:u,isInvalid:o,validationErrors:i,validationDetails:a}}function UD(e,t,n){var r;let o=Wu(e,t,n);return o.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",o}function HD(){let{locale:e}=Ne(),t=H0(ny(Gu),"@react-aria/datepicker");return d.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new GD(e,t)}},[e,t])}class GD{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function WD(e,t,n){let r=d.useRef(""),{locale:o}=Ne(),i=HD(),{ariaLabel:a,ariaLabelledBy:s,ariaDescribedBy:l,focusManager:c}=ry.get(t),u=e.isPlaceholder?"":e.text,f=d.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=ni({month:"long",timeZone:f.timeZone}),h=ni({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if(e.type==="month"&&!e.isPlaceholder){let T=p.format(t.dateValue);u=T!==u?`${u} – ${T}`:T}else e.type==="hour"&&!e.isPlaceholder&&(u=h.format(t.dateValue));let{spinButtonProps:b}=ty({value:e.value,textValue:u,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",t.setSegment(e.type,e.minValue)}}),g=d.useMemo(()=>new ou(o,{maximumFractionDigits:0}),[o]),y=()=>{if(g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let T=e.text.slice(0,-1),W=g.parse(T);T.length===0||W===0?t.clearSegment(e.type):t.setSegment(e.type,W),r.current=T}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=T=>{if(T.key==="a"&&(Gt()?T.metaKey:T.ctrlKey)&&T.preventDefault(),!(T.ctrlKey||T.metaKey||T.shiftKey||T.altKey))switch(T.key){case"Backspace":case"Delete":T.preventDefault(),T.stopPropagation(),y();break}},{startsWith:C}=G0({sensitivity:"base"}),w=ni({hour:"numeric",hour12:!0}),E=d.useMemo(()=>{let T=new Date;return T.setHours(0),w.formatToParts(T).find(W=>W.type==="dayPeriod").value},[w]),P=d.useMemo(()=>{let T=new Date;return T.setHours(12),w.formatToParts(T).find(W=>W.type==="dayPeriod").value},[w]),k=ni({year:"numeric",era:"narrow",timeZone:"UTC"}),K=d.useMemo(()=>{if(e.type!=="era")return[];let T=Qe(new Be(1,1,1),t.calendar),W=t.calendar.getEras().map(H=>{let D=T.set({year:1,month:1,day:1,era:H}).toDate("UTC"),Y=k.formatToParts(D).find(Q=>Q.type==="era").value;return{era:H,formatted:Y}}),q=YD(W.map(H=>H.formatted));if(q)for(let H of W)H.formatted=H.formatted.slice(q);return W},[k,t.calendar,e.type]),v=T=>{if(t.isDisabled||t.isReadOnly)return;let W=r.current+T;switch(e.type){case"dayPeriod":if(C(E,T))t.setSegment("dayPeriod",0);else if(C(P,T))t.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let q=K.find(H=>C(H.formatted,T));q&&(t.setSegment("era",q.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!g.isValidPartialNumber(W))return;let q=g.parse(W),H=q,D=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":q>11&&(H=g.parse(T));break;case"h12":D=!1,q>12&&(H=g.parse(T));break}e.value>=12&&q>1&&(q+=12)}else q>e.maxValue&&(H=g.parse(T));if(isNaN(q))return;let N=H!==0||D;N&&t.setSegment(e.type,H),+(q+"0")>e.maxValue||W.length>=String(e.maxValue).length?(r.current="",N&&c.focusNext()):r.current=W;break}}},V=()=>{r.current="",Os(n.current,{containingElement:to(n.current)}),window.getSelection().collapse(n.current)},F=d.useRef("");Pi(n,"beforeinput",T=>{switch(T.preventDefault(),T.inputType){case"deleteContentBackward":case"deleteContentForward":g.isValidPartialNumber(e.text)&&!t.isReadOnly&&y();break;case"insertCompositionText":F.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:T.data!=null&&v(T.data);break}}),Pi(n,"input",T=>{let{inputType:W,data:q}=T;switch(W){case"insertCompositionText":n.current.textContent=F.current,(C(E,q)||C(P,q))&&v(q);break}}),me(()=>{let T=n.current;return()=>{document.activeElement===T&&(c.focusPrevious()||c.focusNext())}},[n,c]);let A=pr()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},I=d.useMemo(()=>t.segments.find(T=>T.isEditable),[t.segments]);e!==I&&!t.isInvalid&&(l=void 0);let R=Ue(),L=!t.isDisabled&&!t.isReadOnly&&e.isEditable,j=e.type==="literal"?"":i.of(e.type),O=An({"aria-label":`${j}${a?`, ${a}`:""}${s?", ":""}`,"aria-labelledby":s});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:J(b,O,{id:R,...A,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:L,suppressContentEditableWarning:L,spellCheck:L?"false":void 0,autoCapitalize:L?"off":void 0,autoCorrect:L?"off":void 0,[parseInt(B.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:L?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!L?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:$,onFocus:V,style:{caretColor:"transparent"},onPointerDown(T){T.stopPropagation()},onMouseDown(T){T.stopPropagation()}})}}function YD(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function qD(e,t){let{role:n="dialog"}=e,r=on();r=e["aria-label"]?void 0:r;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){kn(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),kn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),Bh(),{dialogProps:{...ue(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function oy(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=ue(e,{labelable:!0}),{labelProps:l,fieldProps:c}=Po({...e,labelElementType:"span"});t=bt(t,n,r);let u=(t-n)/(r-n),f=ji(a);if(!i&&!o){let p=a.style==="percent"?u:t;o=f.format(p)}return{progressBarProps:J(s,{...c,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}function ZD(e){let{progressBarProps:t,labelProps:n}=oy(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}var iy={};iy={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var ay={};ay={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var sy={};sy={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var ly={};ly={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var uy={};uy={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var cy={};cy={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var dy={};dy={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var fy={};fy={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var py={};py={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var hy={};hy={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var by={};by={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var my={};my={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var gy={};gy={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var vy={};vy={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var yy={};yy={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var $y={};$y={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var xy={};xy={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var wy={};wy={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var Cy={};Cy={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var Dy={};Dy={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var Ey={};Ey={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var Py={};Py={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var Sy={};Sy={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Ty={};Ty={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var Ay={};Ay={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var My={};My={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var ky={};ky={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var Ry={};Ry={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var Fy={};Fy={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var By={};By={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Iy={};Iy={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var Ly={};Ly={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var Vy={};Vy={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var Oy={};Oy={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};function XD(e){return e&&e.__esModule?e.default:e}var Ny={};Ny={"ar-AE":iy,"bg-BG":ay,"cs-CZ":sy,"da-DK":ly,"de-DE":uy,"el-GR":cy,"en-US":dy,"es-ES":fy,"et-EE":py,"fi-FI":hy,"fr-FR":by,"he-IL":my,"hr-HR":gy,"hu-HU":vy,"it-IT":yy,"ja-JP":$y,"ko-KR":xy,"lt-LT":wy,"lv-LV":Cy,"nb-NO":Dy,"nl-NL":Ey,"pl-PL":Py,"pt-BR":Sy,"pt-PT":Ty,"ro-RO":Ay,"ru-RU":My,"sk-SK":ky,"sl-SI":Ry,"sr-SP":Fy,"sv-SE":By,"tr-TR":Iy,"uk-UA":Ly,"zh-CN":Vy,"zh-TW":Oy};function JD(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:a,isReadOnly:s,isRequired:l,minValue:c,maxValue:u,autoFocus:f,label:p,formatOptions:h,onBlur:b=()=>{},onFocus:g,onFocusChange:y,onKeyDown:$,onKeyUp:C,description:w,errorMessage:E,isWheelDisabled:P,...k}=e,{increment:K,incrementToMax:v,decrement:V,decrementToMin:F,numberValue:A,inputValue:I,commit:R,commitValidation:L}=t;const j=gr(XD(Ny),"@react-aria/numberfield");let O=Ue(r),{focusProps:T}=na({onBlur(){R()}}),W=ji(h),q=d.useMemo(()=>W.resolvedOptions(),[W]),H=ji({...h,currencySign:void 0}),D=d.useMemo(()=>isNaN(A)?"":H.format(A),[H,A]),{spinButtonProps:N,incrementButtonProps:Y,decrementButtonProps:Q}=ty({isDisabled:a,isReadOnly:s,isRequired:l,maxValue:u,minValue:c,onIncrement:K,onIncrementToMax:v,onDecrement:V,onDecrementToMin:F,value:A,textValue:D}),[ee,oe]=d.useState(!1),{focusWithinProps:z}=br({isDisabled:a,onFocusWithinChange:oe}),Z=d.useCallback(je=>{Math.abs(je.deltaY)<=Math.abs(je.deltaX)||(je.deltaY>0?K():je.deltaY<0&&V())},[V,K]);Vx({onScroll:Z,isDisabled:P||a||s||!ee},n);let se=q.maximumFractionDigits>0,le=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,Le="numeric";Yp()?le?Le="text":se&&(Le="decimal"):jl()&&(le?Le="numeric":se&&(Le="decimal"));let Ge=je=>{t.validate(je)&&t.setInputValue(je)},Ct=ue(e),Kn=d.useCallback(je=>{je.key==="Enter"?(R(),L()):je.continuePropagation()},[R,L]),{isInvalid:Xt,validationErrors:Jt,validationDetails:Dr}=t.displayValidation,{labelProps:ce,inputProps:pe,descriptionProps:we,errorMessageProps:Io}=OD({...k,...Ct,name:void 0,label:p,autoFocus:f,isDisabled:a,isReadOnly:s,isRequired:l,validate:void 0,[co]:t,value:I,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:O,type:"text",inputMode:Le,onChange:Ge,onBlur:b,onFocus:g,onFocusChange:y,onKeyDown:d.useMemo(()=>sn(Kn,$),[Kn,$]),onKeyUp:C,description:w,errorMessage:E},t,n);vo(n,t.numberValue,t.setNumberValue);let Er=J(N,T,pe,{role:null,"aria-roledescription":pr()?null:j.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Er["aria-required"]=void 0);let Pr=je=>{var Tr;document.activeElement!==n.current&&(je.pointerType==="mouse"?(Tr=n.current)===null||Tr===void 0||Tr.focus():je.target.focus())},hn=e["aria-label"]||(typeof e.label=="string"?e.label:""),Dt;hn||(Dt=e.label!=null?ce.id:e["aria-labelledby"]);let Sr=Ue(),Lo=Ue(),Aa=J(Y,{"aria-label":i||j.format("increase",{fieldLabel:hn}).trim(),id:Dt&&!i?Sr:null,"aria-labelledby":Dt&&!i?`${Sr} ${Dt}`:null,"aria-controls":O,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Pr}),Ma=J(Q,{"aria-label":o||j.format("decrease",{fieldLabel:hn}).trim(),id:Dt&&!o?Lo:null,"aria-labelledby":Dt&&!o?`${Lo} ${Dt}`:null,"aria-controls":O,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Pr});return{groupProps:{...z,role:"group","aria-disabled":a,"aria-invalid":Xt?"true":void 0},labelProps:ce,inputProps:Er,incrementButtonProps:Aa,decrementButtonProps:Ma,errorMessageProps:Io,descriptionProps:we,isInvalid:Xt,validationErrors:Jt,validationDetails:Dr}}function Ky(e){let t=ue(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}const Yu=new WeakMap;function yl(e,t){let n=Yu.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function QD(e,t,n){let{labelProps:r,fieldProps:o}=Po(e),i=e.orientation==="vertical";var a;Yu.set(t,{id:(a=r.id)!==null&&a!==void 0?a:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:s}=Ne(),{addGlobalListener:l,removeGlobalListener:c}=hr();const u=d.useRef(null),f=s==="rtl",p=d.useRef(null),{moveProps:h}=l0({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:C}){let{height:w,width:E}=n.current.getBoundingClientRect(),P=i?w:E;p.current==null&&(p.current=t.getThumbPercent(u.current)*P);let k=i?C:$;if((i||f)&&(k=-k),p.current+=k,u.current!=null&&n.current){const K=bt(p.current/P,0,1);t.setThumbPercent(u.current,K)}},onMoveEnd(){u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null)}});let b=d.useRef(void 0),g=($,C,w,E)=>{if(n.current&&!e.isDisabled&&t.values.every((P,k)=>!t.isThumbDragging(k))){let{height:P,width:k,top:K,left:v}=n.current.getBoundingClientRect(),V=i?P:k,R=((i?E:w)-(i?K:v))/V;(s==="rtl"||i)&&(R=1-R);let L=t.getPercentValue(R),j,O=t.values.findIndex(T=>L-T<0);if(O===0)j=O;else if(O===-1)j=t.values.length-1;else{let T=t.values[O-1],W=t.values[O];Math.abs(T-L)<Math.abs(W-L)?j=O-1:j=O}j>=0&&t.isThumbEditable(j)?($.preventDefault(),u.current=j,t.setFocusedThumb(j),b.current=C,t.setThumbDragging(u.current,!0),t.setThumbValue(j,L),l(window,"mouseup",y,!1),l(window,"touchend",y,!1),l(window,"pointerup",y,!1)):u.current=null}},y=$=>{var C,w;((w=$.pointerId)!==null&&w!==void 0?w:(C=$.changedTouches)===null||C===void 0?void 0:C[0].identifier)===b.current&&(u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null),c(window,"mouseup",y,!1),c(window,"touchend",y,!1),c(window,"pointerup",y,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var $;($=document.getElementById(yl(t,0)))===null||$===void 0||$.focus(),a0("keyboard")}),{labelProps:r,groupProps:{role:"group",...o},trackProps:J({onMouseDown($){$.button!==0||$.altKey||$.ctrlKey||$.metaKey||g($,void 0,$.clientX,$.clientY)},onPointerDown($){$.pointerType==="mouse"&&($.button!==0||$.altKey||$.ctrlKey||$.metaKey)||g($,$.pointerId,$.clientX,$.clientY)},onTouchStart($){g($,$.changedTouches[0].identifier,$.changedTouches[0].clientX,$.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map(($,C)=>yl(t,C)).join(" "),"aria-live":"off"}}}function eE(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:i,trackRef:a,inputRef:s,orientation:l=t.orientation,name:c}=e,u=e.isDisabled||t.isDisabled,f=l==="vertical",{direction:p}=Ne(),{addGlobalListener:h,removeGlobalListener:b}=hr(),g=Yu.get(t);var y;const{labelProps:$,fieldProps:C}=Po({...e,id:yl(t,n),"aria-labelledby":`${g.id} ${(y=e["aria-labelledby"])!==null&&y!==void 0?y:""}`.trim()}),w=t.values[n],E=d.useCallback(()=>{s.current&&Tt(s.current)},[s]),P=t.focusedThumb===n;d.useEffect(()=>{P&&E()},[P,E]);let k=p==="rtl",K=d.useRef(null),{keyboardProps:v}=Hl({onKeyDown(O){let{getThumbMaxValue:T,getThumbMinValue:W,decrementThumb:q,incrementThumb:H,setThumbValue:D,setThumbDragging:N,pageSize:Y}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(O.key)){O.continuePropagation();return}switch(O.preventDefault(),N(n,!0),O.key){case"PageUp":H(n,Y);break;case"PageDown":q(n,Y);break;case"Home":D(n,W(n));break;case"End":D(n,T(n));break}N(n,!1)}}),{moveProps:V}=l0({onMoveStart(){K.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:O,deltaY:T,pointerType:W,shiftKey:q}){const{getThumbPercent:H,setThumbPercent:D,decrementThumb:N,incrementThumb:Y,step:Q,pageSize:ee}=t;let{width:oe,height:z}=a.current.getBoundingClientRect(),Z=f?z:oe;if(K.current==null&&(K.current=H(n)*Z),W==="keyboard")O>0&&k||O<0&&!k||T>0?N(n,q?ee:Q):Y(n,q?ee:Q);else{let ne=f?T:O;(f||k)&&(ne=-ne),K.current+=ne,D(n,bt(K.current/Z,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!u);const{focusableProps:F}=mr(J(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let A=d.useRef(void 0),I=O=>{E(),A.current=O,t.setThumbDragging(n,!0),h(window,"mouseup",R,!1),h(window,"touchend",R,!1),h(window,"pointerup",R,!1)},R=O=>{var T,W;((W=O.pointerId)!==null&&W!==void 0?W:(T=O.changedTouches)===null||T===void 0?void 0:T[0].identifier)===A.current&&(E(),t.setThumbDragging(n,!1),b(window,"mouseup",R,!1),b(window,"touchend",R,!1),b(window,"pointerup",R,!1))},L=t.getThumbPercent(n);(f||p==="rtl")&&(L=1-L);let j=u?{}:J(v,V,{onMouseDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||I()},onPointerDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||I(O.pointerId)},onTouchStart:O=>{I(O.changedTouches[0].identifier)}});return vo(s,w,O=>{t.setThumbValue(n,O)}),{inputProps:J(F,C,{type:"range",tabIndex:u?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:w,name:c,disabled:u,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":i||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[g["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[g["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:O=>{t.setThumbValue(n,parseFloat(O.target.value))}}),thumbProps:{...j,style:{position:"absolute",[f?"top":"left"]:`${L*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:u,isFocused:P}}function tE(e,t,n){let{labelProps:r,inputProps:o,isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}=mm(e,t,n);return{labelProps:r,inputProps:{...o,role:"switch",checked:i},isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}}const jy=new WeakMap;function Zi(e,t,n){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${jy.get(e)}-${n}-${t}`}function nE(e,t,n){var r;let{key:o,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:s,selectedKey:l}=t,c=o===l,u=i||t.isDisabled||t.disabledKeys.has(o),{itemProps:f,isPressed:p}=_u({selectionManager:s,key:o,ref:n,isDisabled:u,shouldSelectOnPressUp:a,linkBehavior:"selection"}),h=Zi(t,o,"tab"),b=Zi(t,o,"tabpanel"),{tabIndex:g}=f,y=t.collection.getItem(o),$=ue(y==null?void 0:y.props,{isLink:!!(!(y==null||(r=y.props)===null||r===void 0)&&r.href),labelable:!0});return delete $.id,{tabProps:J($,f,{id:h,"aria-selected":c,"aria-disabled":u||void 0,"aria-controls":c?b:void 0,tabIndex:u?void 0:g,role:"tab"}),isSelected:c,isDisabled:u,isPressed:p}}function rE(e,t,n){let r=Jx(n)?void 0:0;var o;const i=Zi(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=An({...e,id:i,"aria-labelledby":Zi(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:J(a,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class oE{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,n,r,o=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=o}}function iE(e,t,n){let{orientation:r="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:s}=t,{direction:l}=Ne(),c=d.useMemo(()=>new oE(i,l,r,s),[i,s,r,l]),{collectionProps:u}=ju({ref:n,selectionManager:a,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ue();jy.set(t,f);let p=An({...e,id:f});return{tabListProps:{...J(u,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function aE(e,t){let n=ue(e,{labelable:!0}),{hoverProps:r}=Ie({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:J(n,r,{role:"tooltip"})}}function sE(e,t,n){let{isDisabled:r,trigger:o}=e,i=Ue(),a=d.useRef(!1),s=d.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},c=$=>{!a.current&&!s.current&&t.close($)};d.useEffect(()=>{let $=C=>{n&&n.current&&C.key==="Escape"&&(C.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[n,t]);let u=()=>{o!=="focus"&&(Ai()==="pointer"?a.current=!0:a.current=!1,l())},f=()=>{o!=="focus"&&(s.current=!1,a.current=!1,c())},p=()=>{s.current=!1,a.current=!1,c(!0)},h=()=>{lr()&&(s.current=!0,l())},b=()=>{s.current=!1,a.current=!1,c(!0)},{hoverProps:g}=Ie({isDisabled:r,onHoverStart:u,onHoverEnd:f}),{focusableProps:y}=mr({isDisabled:r,onFocus:h,onBlur:b},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...J(y,g,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:i}}}class $t extends Set{constructor(t,n,r){super(t),t instanceof $t?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function lE(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function _y(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=d.useRef(!1),[,s]=d.useState(!1),l=d.useRef(null),c=d.useRef(null),[,u]=d.useState(null),f=d.useMemo(()=>sp(e.selectedKeys),[e.selectedKeys]),p=d.useMemo(()=>sp(e.defaultSelectedKeys,new $t),[e.defaultSelectedKeys]),[h,b]=gt(f,p,e.onSelectionChange),g=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,$]=d.useState(o);o==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&$("replace");let C=d.useRef(o);return d.useEffect(()=>{o!==C.current&&($(o),C.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return a.current},setFocused(w){a.current=w,s(w)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(w,E="first"){l.current=w,c.current=E,u(w)},selectedKeys:h,setSelectedKeys(w){(r||!lE(w,h))&&b(w)},disabledKeys:g,disabledBehavior:i}}function sp(e,t){return e?e==="all"?"all":new $t(e):t}class zy{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ds(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ds(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new $t([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new $t(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Ds(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new $t(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new $t([t],t,t):new $t;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new $t;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(DD(ga(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new $t)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class $l{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let a of i.childNodes)n(a)};for(let i of t)n(i);let r,o=0;for(let[i,a]of this.keyMap)r?(r.nextKey=i,a.prevKey=r.key):(this.firstKey=i,a.prevKey=void 0),a.type==="item"&&(a.index=o++),r=a,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function Uy(e){let{filter:t}=e,n=_y(e),r=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=d.useCallback(c=>t?new $l(t(c)):new $l(c),[t]),i=d.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=eg(e,o,i),s=d.useMemo(()=>new zy(a,n),[a,n]);const l=d.useRef(null);return d.useEffect(()=>{if(n.focusedKey!=null&&!a.getItem(n.focusedKey)){const c=l.current.getItem(n.focusedKey),u=[...l.current.getKeys()].map(g=>{const y=l.current.getItem(g);return y.type==="item"?y:null}).filter(g=>g!==null),f=[...a.getKeys()].map(g=>{const y=a.getItem(g);return y.type==="item"?y:null}).filter(g=>g!==null),p=u.length-f.length;let h=Math.min(p>1?Math.max(c.index-p+1,0):c.index,f.length-1),b;for(;h>=0;){if(!s.isDisabled(f[h].key)){b=f[h];break}h<f.length-1?h++:(h>c.index&&(h=c.index),h--)}n.setFocusedKey(b?b.key:null)}l.current=a},[a,s,n,n.focusedKey]),{collection:a,disabledKeys:r,selectionManager:s}}function Hy(e){var t;let[n,r]=gt(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=d.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:a,selectionManager:s}=Uy({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{var u;let f=(u=c.values().next().value)!==null&&u!==void 0?u:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),l=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}function ya(e){let[t,n]=gt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=d.useCallback(()=>{n(!0)},[n]),o=d.useCallback(()=>{n(!1)},[n]),i=d.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function uE(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[l,c]=d.useState(!1),[u,f]=d.useState(!1),[p,h]=d.useState(null),b=ce=>{e.onSelectionChange&&e.onSelectionChange(ce),ce===C&&(Q(),D())};var g;let{collection:y,selectionManager:$,selectedKey:C,setSelectedKey:w,selectedItem:E,disabledKeys:P}=Hy({...e,onSelectionChange:b,items:(g=e.items)!==null&&g!==void 0?g:e.defaultItems});var k,K;let[v,V]=gt(e.inputValue,(K=(k=e.defaultInputValue)!==null&&k!==void 0?k:(t=y.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&K!==void 0?K:"",e.onInputChange),F=y,A=d.useMemo(()=>e.items!=null||!r?y:cE(y,v,r),[y,v,r,e.items]),[I,R]=d.useState(A),L=d.useRef("focus"),O=ya({...e,onOpenChange:ce=>{e.onOpenChange&&e.onOpenChange(ce,ce?L.current:void 0),$.setFocused(ce),ce||$.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),T=(ce=null,pe)=>{let we=pe==="manual"||pe==="focus"&&o==="focus";(i||A.size>0||we&&F.size>0||e.items)&&(we&&!O.isOpen&&e.items===void 0&&c(!0),L.current=pe,h(ce),O.open())},W=(ce=null,pe)=>{let we=pe==="manual"||pe==="focus"&&o==="focus";!(i||A.size>0||we&&F.size>0||e.items)&&!O.isOpen||(we&&!O.isOpen&&e.items===void 0&&c(!0),O.isOpen||(L.current=pe),H(ce))},q=d.useCallback(()=>{R(l?F:A)},[l,F,A]),H=d.useCallback((ce=null)=>{O.isOpen&&q(),h(ce),O.toggle()},[O,q]),D=d.useCallback(()=>{O.isOpen&&(q(),O.close())},[O,q]),[N,Y]=d.useState(v),Q=()=>{var ce,pe;let we=(pe=(ce=y.getItem(C))===null||ce===void 0?void 0:ce.textValue)!==null&&pe!==void 0?pe:"";Y(we),V(we)};var ee,oe;let z=d.useRef((oe=(ee=e.selectedKey)!==null&&ee!==void 0?ee:e.defaultSelectedKey)!==null&&oe!==void 0?oe:null);var Z;let ne=d.useRef((Z=(n=y.getItem(C))===null||n===void 0?void 0:n.textValue)!==null&&Z!==void 0?Z:"");d.useEffect(()=>{var ce;u&&(A.size>0||i)&&!O.isOpen&&v!==N&&o!=="manual"&&T(null,"input"),!l&&!i&&O.isOpen&&A.size===0&&D(),C!=null&&C!==z.current&&D(),v!==N&&($.setFocusedKey(null),c(!1),v===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&w(null)),C!==z.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Q():N!==v&&Y(v);var pe;let we=(pe=(ce=y.getItem(C))===null||ce===void 0?void 0:ce.textValue)!==null&&pe!==void 0?pe:"";!u&&C!=null&&e.inputValue===void 0&&C===z.current&&ne.current!==we&&(Y(we),V(we)),z.current=C,ne.current=we});let se=$r({...e,value:d.useMemo(()=>({inputValue:v,selectedKey:C}),[v,C])}),le=()=>{a&&C==null?Le():Ge()},Le=()=>{z.current=null,w(null),D()},Ge=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var ce;e.onSelectionChange(C);var pe;let we=(pe=(ce=y.getItem(C))===null||ce===void 0?void 0:ce.textValue)!==null&&pe!==void 0?pe:"";Y(we),D()}else Q(),D()};const Ct=()=>{if(a){var ce,pe;const we=(pe=(ce=y.getItem(C))===null||ce===void 0?void 0:ce.textValue)!==null&&pe!==void 0?pe:"";v===we?Ge():Le()}else Ge()};let Kn=()=>{O.isOpen&&$.focusedKey!=null?C===$.focusedKey?Ge():w($.focusedKey):Ct()},Xt=d.useRef(v),Jt=ce=>{ce?(Xt.current=v,o==="focus"&&T(null,"focus")):(s&&Ct(),v!==Xt.current&&se.commitValidation()),f(ce)},Dr=d.useMemo(()=>O.isOpen?l?F:A:I,[O.isOpen,F,A,l,I]);return{...se,...O,focusStrategy:p,toggle:W,open:T,close:Ct,selectionManager:$,selectedKey:C,setSelectedKey:w,disabledKeys:P,isFocused:u,setFocused:Jt,selectedItem:E,collection:Dr,inputValue:v,setInputValue:V,commit:Kn,revert:le}}function cE(e,t,n){return new $l(Gy(e,e,t,n))}function Gy(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let a=Gy(e,ga(i,e),n,r);[...a].some(s=>s.type==="item")&&o.push({...i,childNodes:a})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}var Wy={};Wy={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Yy={};Yy={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var qy={};qy={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var Zy={};Zy={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var Xy={};Xy={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var Jy={};Jy={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Qy={};Qy={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var e4={};e4={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var t4={};t4={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var n4={};n4={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var r4={};r4={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var o4={};o4={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var i4={};i4={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var a4={};a4={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var s4={};s4={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var l4={};l4={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var u4={};u4={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var c4={};c4={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var d4={};d4={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var f4={};f4={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var p4={};p4={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var h4={};h4={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var b4={};b4={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var m4={};m4={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var g4={};g4={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var v4={};v4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var y4={};y4={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var $4={};$4={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var x4={};x4={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var w4={};w4={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var C4={};C4={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var D4={};D4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var E4={};E4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var P4={};P4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};function dE(e){return e&&e.__esModule?e.default:e}var S4={};S4={"ar-AE":Wy,"bg-BG":Yy,"cs-CZ":qy,"da-DK":Zy,"de-DE":Xy,"el-GR":Jy,"en-US":Qy,"es-ES":e4,"et-EE":t4,"fi-FI":n4,"fr-FR":r4,"he-IL":o4,"hr-HR":i4,"hu-HU":a4,"it-IT":s4,"ja-JP":l4,"ko-KR":u4,"lt-LT":c4,"lv-LV":d4,"nb-NO":f4,"nl-NL":p4,"pl-PL":h4,"pt-BR":b4,"pt-PT":m4,"ro-RO":g4,"ru-RU":v4,"sk-SK":y4,"sl-SI":$4,"sr-SP":x4,"sv-SE":w4,"tr-TR":C4,"uk-UA":D4,"zh-CN":E4,"zh-TW":P4};const fE=new In(dE(S4));function pE(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function hE(e,t,n,r,o){let i=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=i||a||s,c=[];if(l){let u=pE(),f=In.getGlobalDictionaryForPackage("@react-stately/datepicker")||fE,p=new h0(u,f),h=new Yr(u,xl({},o)),b=h.resolvedOptions().timeZone;a&&c.push(p.format("rangeUnderflow",{minValue:h.format(t.toDate(b))})),i&&c.push(p.format("rangeOverflow",{maxValue:h.format(n.toDate(b))})),s&&c.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:c,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}const bE={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},mE={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function xl(e,t){e={...t.shouldForceLeadingZeros?mE:bE,...e};let r=t.granularity||"minute",o=Object.keys(e);var i;let a=o.indexOf((i=t.maxGranularity)!==null&&i!==void 0?i:"year");a<0&&(a=0);let s=o.indexOf(r);if(s<0&&(s=2),a>s)throw new Error("maxGranularity must be greater than granularity");let l=o.slice(a,s+1).reduce((u,f)=>(u[f]=e[f],u),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&a===0&&(l.era="short"),l}function T4(e,t){if(e===null)return null;if(e)return Qe(e,t)}function Or(e,t,n,r){if(e)return T4(e,n);let o=Qe(m0(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?w0(o):r?o:un(o)}function gE(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,i]=d.useState([r,n]);e&&(o[0]!==r||o[1]!==n)&&i([r,n]),t||(t=e?r:o[0]);let a=e?n:o[1];return[t,a]}const vE=new In({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function yE(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?vE.getStringForLocale(e,n):"––"}const ui={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},lp={year:5,month:2,day:7,hour:2,minute:15,second:15},$E={dayperiod:"dayPeriod"};function qu(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:o,isReadOnly:i,isRequired:a,minValue:s,maxValue:l,isDateUnavailable:c}=e,u=e.value||e.defaultValue||e.placeholderValue,[f,p]=gE(u,e.granularity),h=p||"UTC";if(u&&!(f in u))throw new Error("Invalid granularity "+f+" for value "+u.toString());let b=d.useMemo(()=>new Yr(t),[t]),g=d.useMemo(()=>n(b.resolvedOptions().calendar),[n,b]),[y,$]=gt(e.value,e.defaultValue,e.onChange),C=d.useMemo(()=>T4(y,g),[y,g]),[w,E]=d.useState(()=>Or(e.placeholderValue,f,g,p)),P=C||w,k=g.identifier==="gregory"&&P.era==="BC",K=d.useMemo(()=>{var z;return{granularity:f,maxGranularity:(z=e.maxGranularity)!==null&&z!==void 0?z:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:k,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,r,k]),v=d.useMemo(()=>xl({},K),[K]),V=d.useMemo(()=>new Yr(t,v),[t,v]),F=d.useMemo(()=>V.resolvedOptions(),[V]),A=d.useMemo(()=>V.formatToParts(new Date).filter(z=>ui[z.type]).reduce((z,Z)=>(z[Z.type]=!0,z),{}),[V]),[I,R]=d.useState(()=>e.value||e.defaultValue?{...A}:{}),L=d.useRef(),j=d.useRef(g.identifier);d.useEffect(()=>{g.identifier!==j.current&&(j.current=g.identifier,E(z=>Object.keys(I).length>0?Qe(z,g):Or(e.placeholderValue,f,g,p)))},[g,f,I,p,e.placeholderValue]),y&&Object.keys(I).length<Object.keys(A).length&&(I={...A},R(I)),y==null&&Object.keys(I).length===Object.keys(A).length&&(I={},R(I),E(Or(e.placeholderValue,f,g,p)));let O=C&&Object.keys(I).length>=Object.keys(A).length?C:w,T=z=>{if(e.isDisabled||e.isReadOnly)return;let Z=Object.keys(I),ne=Object.keys(A);z==null?($(null),E(Or(e.placeholderValue,f,g,p)),R({})):Z.length>=ne.length||Z.length===ne.length-1&&A.dayPeriod&&!I.dayPeriod&&L.current!=="dayPeriod"?(z=Qe(z,(u==null?void 0:u.calendar)||new ot),$(z)):E(z),L.current=null},W=d.useMemo(()=>O.toDate(h),[O,h]),q=d.useMemo(()=>V.formatToParts(W).map(z=>{let Z=ui[z.type];z.type==="era"&&g.getEras().length===1&&(Z=!1);let ne=ui[z.type]&&!I[z.type],se=ui[z.type]?yE(z.type,z.value,t):null;return{type:$E[z.type]||z.type,text:ne?se:z.value,...xE(O,z.type,F),isPlaceholder:ne,placeholder:se,isEditable:Z}}),[W,I,V,F,O,g,t]);A.era&&I.year&&!I.era?(I.era=!0,R({...I})):!A.era&&I.era&&(delete I.era,R({...I}));let H=z=>{I[z]=!0,z==="year"&&A.era&&(I.era=!0),R({...I})},D=(z,Z)=>{if(I[z])T(wE(O,z,Z,F));else{H(z);let ne=Object.keys(I),se=Object.keys(A);(ne.length>=se.length||ne.length===se.length-1&&A.dayPeriod&&!I.dayPeriod)&&T(O)}},N=d.useMemo(()=>hE(y,s,l,c,K),[y,s,l,c,K]),Y=$r({...e,value:y,builtinValidation:N}),Q=Y.displayValidation.isInvalid,ee=e.validationState||(Q?"invalid":null);var oe;return{...Y,value:C,dateValue:W,calendar:g,setValue:T,segments:q,dateFormatter:V,validationState:ee,isInvalid:Q,granularity:f,maxGranularity:(oe=e.maxGranularity)!==null&&oe!==void 0?oe:"year",isDisabled:o,isReadOnly:i,isRequired:a,increment(z){D(z,1)},decrement(z){D(z,-1)},incrementPage(z){D(z,lp[z]||1)},decrementPage(z){D(z,-(lp[z]||1))},setSegment(z,Z){H(z),T(CE(O,z,Z,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let z=Object.keys(I),Z=Object.keys(A);z.length===Z.length-1&&A.dayPeriod&&!I.dayPeriod&&(I={...A},R(I),T(O.copy()))},clearSegment(z){delete I[z],L.current=z,R({...I});let Z=Or(e.placeholderValue,f,g,p),ne=O;if(z==="dayPeriod"&&"hour"in O&&"hour"in Z){let se=O.hour>=12,le=Z.hour>=12;se&&!le?ne=O.set({hour:O.hour-12}):!se&&le&&(ne=O.set({hour:O.hour+12}))}else z in O&&(ne=O.set({[z]:Z[z]}));$(null),T(ne)},formatValue(z){if(!C)return"";let Z=xl(z,K);return new Yr(t,Z).format(W)}}}function xE(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:s5(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:l5(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function wE(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return e.set({hour:i?o-12:o+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}}function CE(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return n>=12===i?e:e.set({hour:i?o-12:o+12})}case"hour":if(r.hour12){let i=e.hour>=12;!i&&n===12&&(n=0),i&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}function DE(e){let{placeholderValue:t=new aa,minValue:n,maxValue:r,granularity:o,validate:i}=e,[a,s]=gt(e.value,e.defaultValue,e.onChange),l=a||t,c=l&&"day"in l?l:void 0,u=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,f=d.useMemo(()=>{let C=l&&"timeZone"in l?l.timeZone:void 0;return(C||u)&&t?C0(Nr(t),C||u):Nr(t)},[t,l,u]),p=d.useMemo(()=>Nr(n,c),[n,c]),h=d.useMemo(()=>Nr(r,c),[r,c]),b=d.useMemo(()=>a&&"day"in a?hd(a):a,[a]),g=d.useMemo(()=>a==null?null:Nr(a),[a]);return{...qu({...e,value:g,defaultValue:void 0,minValue:p,maxValue:h,onChange:C=>{s(c||u?C:C&&hd(C))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:f,createCalendar:()=>new ot,validate:d.useCallback(()=>i==null?void 0:i(a),[i,a])}),timeValue:b}}function Nr(e,t=a5(ql())){return e?"day"in e?e:un(t,e):null}function EE(e,t){let{triggerKey:n}=e,{UNSTABLE_expandedKeysStack:r,UNSTABLE_openSubmenu:o,UNSTABLE_closeSubmenu:i,close:a}=t,[s]=d.useState(r==null?void 0:r.length),l=d.useMemo(()=>r[s]===n,[r,n,s]),[c,u]=d.useState(null),f=d.useCallback((b=null)=>{u(b),o(n,s)},[o,s,n]),p=d.useCallback(()=>{u(null),i(n,s)},[i,s,n]),h=d.useCallback((b=null)=>{u(b),l?p():f(b)},[p,f,l]);return d.useMemo(()=>({focusStrategy:c,isOpen:l,open:f,close:p,closeAll:a,submenuLevel:s,setOpen:()=>{},toggle:h}),[l,f,p,a,c,h,s])}function PE(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:i,defaultValue:a=NaN,onChange:s,locale:l,isDisabled:c,isReadOnly:u}=e;i===null&&(i=NaN),i!==void 0&&!isNaN(i)&&(r!==void 0&&!isNaN(r)?i=tt(i,t,n,r):i=bt(i,t,n)),isNaN(a)||(r!==void 0&&!isNaN(r)?a=tt(a,t,n,r):a=bt(a,t,n));let[f,p]=gt(i,isNaN(a)?NaN:a,s),[h,b]=d.useState(()=>isNaN(f)?"":new Ki(l,o).format(f)),g=d.useMemo(()=>new ou(l,o),[l,o]),y=d.useMemo(()=>g.getNumberingSystem(h),[g,h]),$=d.useMemo(()=>new Ki(l,{...o,numberingSystem:y}),[l,o,y]),C=d.useMemo(()=>$.resolvedOptions(),[$]),w=d.useCallback(N=>isNaN(N)||N===null?"":$.format(N),[$]),E=$r({...e,value:f}),P=r!==void 0&&!isNaN(r)?r:1;C.style==="percent"&&(r===void 0||isNaN(r))&&(P=.01);let[k,K]=d.useState(f),[v,V]=d.useState(l),[F,A]=d.useState(o);(!Object.is(f,k)||l!==v||o!==F)&&(b(w(f)),K(f),V(l),A(o));let I=d.useMemo(()=>g.parse(h),[g,h]),R=()=>{if(!h.length){p(NaN),b(i===void 0?"":w(f));return}if(isNaN(I)){b(w(f));return}let N;r===void 0||isNaN(r)?N=bt(I,t,n):N=tt(I,t,n,r),N=g.parse(w(N)),p(N),b(w(i===void 0?N:f))},L=(N,Y=0)=>{let Q=I;if(isNaN(Q)){let ee=isNaN(Y)?0:Y;return tt(ee,t,n,P)}else{let ee=tt(Q,t,n,P);return N==="+"&&ee>Q||N==="-"&&ee<Q?ee:tt(Ps(N,Q,P),t,n,P)}},j=()=>{let N=L("+",t);N===f&&b(w(N)),p(N),E.commitValidation()},O=()=>{let N=L("-",n);N===f&&b(w(N)),p(N),E.commitValidation()},T=()=>{n!=null&&(p(tt(n,t,n,P)),E.commitValidation())},W=()=>{t!=null&&(p(t),E.commitValidation())},q=d.useMemo(()=>!c&&!u&&(isNaN(I)||n===void 0||isNaN(n)||tt(I,t,n,P)>I||Ps("+",I,P)<=n),[c,u,t,n,P,I]),H=d.useMemo(()=>!c&&!u&&(isNaN(I)||t===void 0||isNaN(t)||tt(I,t,n,P)<I||Ps("-",I,P)>=t),[c,u,t,n,P,I]);return{...E,validate:N=>g.isValidPartialNumber(N,t,n),increment:j,incrementToMax:T,decrement:O,decrementToMin:W,canIncrement:q,canDecrement:H,minValue:t,maxValue:n,numberValue:I,setNumberValue:p,setInputValue:b,inputValue:h,commit:R}}function Ps(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),r=e==="+"?t+n:t-n,r/=l}return r}const SE=0,TE=100,AE=1;function ME(e){const{isDisabled:t=!1,minValue:n=SE,maxValue:r=TE,numberFormatter:o,step:i=AE,orientation:a="horizontal"}=e;let s=d.useMemo(()=>{let D=(r-n)/10;return D=tt(D,0,D+i,i),Math.max(D,i)},[i,r,n]),l=d.useCallback(D=>D==null?void 0:D.map((N,Y)=>{let Q=Y===0?n:N[Y-1],ee=Y===D.length-1?r:N[Y+1];return tt(N,Q,ee,i)}),[n,r,i]),c=d.useMemo(()=>l(cp(e.value)),[e.value]),u=d.useMemo(()=>{var D;return l((D=cp(e.defaultValue))!==null&&D!==void 0?D:[n])},[e.defaultValue,n]),f=dp(e.value,e.defaultValue,e.onChange),p=dp(e.value,e.defaultValue,e.onChangeEnd);const[h,b]=gt(c,u,f),[g,y]=d.useState(new Array(h.length).fill(!1)),$=d.useRef(new Array(h.length).fill(!0)),[C,w]=d.useState(void 0),E=d.useRef(h),P=d.useRef(g);let k=D=>{E.current=D,b(D)},K=D=>{P.current=D,y(D)};function v(D){return(D-n)/(r-n)}function V(D){return D===0?n:h[D-1]}function F(D){return D===h.length-1?r:h[D+1]}function A(D){return $.current[D]}function I(D,N){$.current[D]=N}function R(D,N){if(t||!A(D))return;const Y=V(D),Q=F(D);N=tt(N,Y,Q,i);let ee=up(E.current,D,N);k(ee)}function L(D,N){if(t||!A(D))return;N&&(E.current=h);const Y=P.current[D];P.current=up(P.current,D,N),K(P.current),p&&Y&&!P.current.some(Boolean)&&p(E.current)}function j(D){return o.format(D)}function O(D,N){R(D,W(N))}function T(D){return Math.round((D-n)/i)*i+n}function W(D){const N=D*(r-n)+n;return bt(T(N),n,r)}function q(D,N=1){let Y=Math.max(N,i);R(D,tt(h[D]+Y,n,r,i))}function H(D,N=1){let Y=Math.max(N,i);R(D,tt(h[D]-Y,n,r,i))}return{values:h,getThumbValue:D=>h[D],setThumbValue:R,setThumbPercent:O,isThumbDragging:D=>g[D],setThumbDragging:L,focusedThumb:C,setFocusedThumb:w,getThumbPercent:D=>v(h[D]),getValuePercent:v,getThumbValueLabel:D=>j(h[D]),getFormattedValue:j,getThumbMinValue:V,getThumbMaxValue:F,getPercentValue:W,isThumbEditable:A,setThumbEditable:I,incrementThumb:q,decrementThumb:H,step:i,pageSize:s,orientation:a,isDisabled:t}}function up(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function cp(e){if(e!=null)return Array.isArray(e)?e:[e]}function dp(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}function kE(e){var t;let n=Hy({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:fp(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:r,collection:o,selectedKey:i}=n,a=d.useRef(i);return d.useEffect(()=>{let s=i;(r.isEmpty||!o.getItem(s))&&(s=fp(o,n.disabledKeys),s!=null&&r.setSelectedKeys([s])),(s!=null&&r.focusedKey==null||!r.isFocused&&s!==a.current)&&r.setFocusedKey(s),a.current=s}),{...n,isDisabled:e.isDisabled||!1}}function fp(e,t){let n=null;if(e){for(n=e.getFirstKey();t.has(n)&&n!==e.getLastKey();)n=e.getKeyAfter(n);t.has(n)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const RE=1500,pp=500;let mn={},FE=0,Kr=!1,It=null,gn=null;function BE(e={}){let{delay:t=RE,closeDelay:n=pp}=e,{isOpen:r,open:o,close:i}=ya(e),a=d.useMemo(()=>`${++FE}`,[]),s=d.useRef(),l=()=>{mn[a]=f},c=()=>{for(let h in mn)h!==a&&(mn[h](!0),delete mn[h])},u=()=>{clearTimeout(s.current),s.current=null,c(),l(),Kr=!0,o(),It&&(clearTimeout(It),It=null),gn&&(clearTimeout(gn),gn=null)},f=h=>{h||n<=0?(clearTimeout(s.current),s.current=null,i()):s.current||(s.current=setTimeout(()=>{s.current=null,i()},n)),It&&(clearTimeout(It),It=null),Kr&&(gn&&clearTimeout(gn),gn=setTimeout(()=>{delete mn[a],gn=null,Kr=!1},Math.max(pp,n)))},p=()=>{c(),l(),!r&&!It&&!Kr?It=setTimeout(()=>{It=null,Kr=!0,u()},t):r||u()};return d.useEffect(()=>()=>{clearTimeout(s.current),mn[a]&&delete mn[a]},[a]),{isOpen:r,open:h=>{!h&&t>0&&!s.current?p():u()},close:f}}class IE{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.iterable=t,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of t)r(a);let o,i=0;for(let[a,s]of this.keyMap)o?(o.nextKey=a,s.prevKey=o.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=i++),o=s,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function LE(e){let[t,n]=gt(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=_y(e),o=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=eg(e,d.useCallback(s=>new IE(s,{expandedKeys:t}),[t]),null);return d.useEffect(()=>{r.focusedKey!=null&&!i.getItem(r.focusedKey)&&r.setFocusedKey(null)},[i,r.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:o,toggleKey:s=>{n(VE(t,s))},setExpandedKeys:n,selectionManager:new zy(i,r)}}function VE(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var wl={exports:{}},Ss={};/**
163
+ `,tD={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function nD({children:e,isInvisible:t,disableAnimation:n,placement:r,shape:o,...i}){const a=u.useId(),s=n?{duration:0}:{type:"spring",bounce:.3};return S.jsxs(JC,{children:[e,S.jsx(QC,{placement:r,shape:o,children:S.jsx(sm,{children:!t&&S.jsx(yr.div,{variants:tD,initial:n?"show":"hidden",transition:s,animate:"show",exit:"hidden",children:S.jsx(eD,{...i,isInvisible:t,showOutline:i.showOutline??!0})},`badge-${a}`)})})]})}function rD({children:e,...t}){return S.jsx("span",{...t,"aria-hidden":"true",children:e??S.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{d:"M19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{d:"M5 13C5.55228 13 6 12.5523 6 12C6 11.4477 5.55228 11 5 11C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function oD(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...l}=e,d={};n!=="a"&&(d={role:"link",tabIndex:s?void 0:0});let{focusableProps:c}=mr(e,t),{pressProps:f,isPressed:p}=sn({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),h=le(l,{labelable:!0,isLink:n==="a"}),b=X(c,f),g=bo();return{isPressed:p,linkProps:X(h,{...b,...d,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:y=>{var $;($=f.onClick)===null||$===void 0||$.call(f,y),a&&(a(y),console.warn("onClick is deprecated, please use onPress")),!g.isNative&&y.currentTarget instanceof HTMLAnchorElement&&y.currentTarget.href&&!y.isDefaultPrevented()&&ax(y.currentTarget,y)&&(y.preventDefault(),g.open(y.currentTarget,y))}})}}function um(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:f,href:p,target:h,rel:b,type:g="button"}=e,y;n==="button"?y={type:g,disabled:r}:y={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:p,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:$,isPressed:C}=sn({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:w}=mr(e,t);c&&(w.tabIndex=r?-1:w.tabIndex);let E=X(w,$,le(e,{labelable:!0}));return{isPressed:C,buttonProps:X(y,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:P=>{f&&(f(P),console.warn("onClick is deprecated, please use onPress"))}})}}function iD(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=um({...e,onPress:an(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:X(i,{"aria-pressed":r})}}const cm=7e3;let Qr=null;function gi(e,t="assertive",n=cm){Qr||(Qr=new sD),Qr.announce(e,t,n)}function aD(e){Qr&&Qr.clear(e)}class sD{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=cm){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Ou(e,t,n){let{validationBehavior:r,focus:o}=e;be(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(uD(n.current))}});let i=Pe(()=>{t.resetValidation()}),a=Pe(l=>{var d;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!l.defaultPrevented&&n&&c&&cD(c)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),r0("keyboard")}l.preventDefault()}),s=Pe(()=>{t.commitValidation()});u.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let d=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",s),d==null||d.addEventListener("reset",i),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",s),d==null||d.removeEventListener("reset",i)}},[n,a,s,i,r])}function lD(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function uD(e){return{isInvalid:!e.validity.valid,validationDetails:lD(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function cD(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const dm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},fm={...dm,customError:!0,valid:!1},qn={isInvalid:!1,validationDetails:dm,validationErrors:[]},dD=u.createContext({}),co="__formValidationState"+Date.now();function $r(e){if(e[co]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[co];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return fD(e)}function fD(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:a,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:fm}:null,d=u.useMemo(()=>Xf(pD(a,o)),[a,o]);i!=null&&i.validationDetails.valid&&(i=null);let c=u.useContext(dD),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>bl(c[F])):bl(c[r]):[],[c,r]),[p,h]=u.useState(c),[b,g]=u.useState(!1);c!==p&&(h(c),g(!1));let y=u.useMemo(()=>Xf(b?[]:f),[b,f]),$=u.useRef(qn),[C,w]=u.useState(qn),E=u.useRef(qn),P=()=>{if(!k)return;N(!1);let F=d||i||$.current;$s(F,E.current)||(E.current=F,w(F))},[k,N]=u.useState(!1);return u.useEffect(P),{realtimeValidation:l||y||d||i||qn,displayValidation:s==="native"?l||y||C:l||y||d||i||C,updateValidation(F){s==="aria"&&!$s(C,F)?w(F):$.current=F},resetValidation(){let F=qn;$s(F,E.current)||(E.current=F,w(F)),s==="native"&&N(!1),g(!0)},commitValidation(){s==="native"&&N(!0),g(!0)}}}function bl(e){return e?Array.isArray(e)?e:[e]:[]}function pD(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return bl(n)}return[]}function Xf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:fm}:null}function $s(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function pm(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:a,children:s,"aria-label":l,"aria-labelledby":d,validationState:c="valid",isInvalid:f}=e,p=k=>{k.stopPropagation(),t.setSelected(k.target.checked)},h=s!=null,b=l!=null||d!=null;!h&&!b&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:g,isPressed:y}=sn({isDisabled:r}),{pressProps:$,isPressed:C}=sn({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:w}=mr(e,n),E=X(g,w),P=le(e,{labelable:!0});return mo(n,t.isSelected,t.setSelected),{labelProps:X($,{onClick:k=>k.preventDefault()}),inputProps:X(P,{"aria-invalid":f||c==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:p,disabled:r,...i==null?{}:{value:i},name:a,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:y||C,isDisabled:r,isReadOnly:o,isInvalid:f||c==="invalid"}}function Do(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=_e(t);let a=_e(),s={};n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=An({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function hm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:a}=Do(e),s=rn([!!t,!!n,r,o]),l=rn([!!t,!!n,r,o]);return a=X(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}function ha(e={}){let{isReadOnly:t}=e,[n,r]=bt(e.isSelected,e.defaultSelected||!1,e.onChange);function o(a){t||r(a)}function i(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function bm(e,t,n){let r=$r({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=r.displayValidation,{labelProps:s,inputProps:l,isSelected:d,isPressed:c,isDisabled:f,isReadOnly:p}=pm({...e,isInvalid:o},t,n);Ou(e,r,n);let{isIndeterminate:h,isRequired:b,validationBehavior:g="aria"}=e;return u.useEffect(()=>{n.current&&(n.current.indeterminate=!!h)}),{labelProps:s,inputProps:{...l,checked:d,"aria-required":b&&g==="aria"||void 0,required:b&&g==="native"},isSelected:d,isPressed:c,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:a}}const hD=new WeakMap;function bD(e,t,n){const r=ha({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(y){y?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(y)}});let{name:o,descriptionId:i,errorMessageId:a,validationBehavior:s}=hD.get(t);var l;s=(l=e.validationBehavior)!==null&&l!==void 0?l:s;let{realtimeValidation:d}=$r({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),c=u.useRef(qn),f=()=>{t.setInvalid(e.value,d.isInvalid?d:c.current)};u.useEffect(f);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:d,h=s==="native"?t.displayValidation:p;var b;let g=bm({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(b=e.isRequired)!==null&&b!==void 0?b:t.isRequired,validationBehavior:s,[co]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){c.current=y,f()}}},r,n);return{...g,inputProps:{...g.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,i].filter(Boolean).join(" ")||void 0}}}var mm={};mm={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var gm={};gm={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var vm={};vm={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var ym={};ym={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var $m={};$m={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var xm={};xm={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var wm={};wm={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Cm={};Cm={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Dm={};Dm={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Em={};Em={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Pm={};Pm={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var Sm={};Sm={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Tm={};Tm={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var Am={};Am={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Mm={};Mm={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var km={};km={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Rm={};Rm={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Fm={};Fm={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var Bm={};Bm={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var Im={};Im={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Lm={};Lm={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Vm={};Vm={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var Om={};Om={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Nm={};Nm={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Km={};Km={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var jm={};jm={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var _m={};_m={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var zm={};zm={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var Um={};Um={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var Hm={};Hm={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var Gm={};Gm={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var Wm={};Wm={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Ym={};Ym={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var qm={};qm={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};function ml(e){return ui()?e.altKey:e.ctrlKey}function Zn(e){return Ut()?e.metaKey:e.ctrlKey}const mD=1e3;function gD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=u.useRef({search:"",timeout:null}).current,i=a=>{let s=vD(a.key);if(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))return;s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s;let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},mD)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function vD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Nu(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:h=r,linkBehavior:b="action"}=e,{direction:g}=Ve(),y=bo(),$=F=>{if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!r.current.contains(F.target))return;const A=(H,D)=>{if(H!=null){if(t.isLink(H)&&b==="selection"&&l&&!ml(F)){Wt.flushSync(()=>{t.setFocusedKey(H,D)});let O=h.current.querySelector(`[data-key="${CSS.escape(H.toString())}"]`);y.open(O,F);return}if(t.setFocusedKey(H,D),t.isLink(H)&&b==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&!ml(F)&&t.replaceSelection(H)}};switch(F.key){case"ArrowDown":if(n.getKeyBelow){var B,R;F.preventDefault();let H=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n);H==null&&i&&(H=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n,t.focusedKey)),A(H)}break;case"ArrowUp":if(n.getKeyAbove){var I,K;F.preventDefault();let H=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n);H==null&&i&&(H=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,t.focusedKey)),A(H)}break;case"ArrowLeft":if(n.getKeyLeftOf){var V,T;F.preventDefault();let H=n.getKeyLeftOf(t.focusedKey);H==null&&i&&(H=g==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,t.focusedKey):(T=n.getLastKey)===null||T===void 0?void 0:T.call(n,t.focusedKey)),A(H,g==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var G,Y;F.preventDefault();let H=n.getKeyRightOf(t.focusedKey);H==null&&i&&(H=g==="rtl"?(G=n.getLastKey)===null||G===void 0?void 0:G.call(n,t.focusedKey):(Y=n.getFirstKey)===null||Y===void 0?void 0:Y.call(n,t.focusedKey)),A(H,g==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){F.preventDefault();let H=n.getFirstKey(t.focusedKey,Zn(F));t.setFocusedKey(H),Zn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&t.replaceSelection(H)}break;case"End":if(n.getLastKey){F.preventDefault();let H=n.getLastKey(t.focusedKey,Zn(F));t.setFocusedKey(H),Zn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&t.replaceSelection(H)}break;case"PageDown":if(n.getKeyPageBelow){F.preventDefault();let H=n.getKeyPageBelow(t.focusedKey);A(H)}break;case"PageUp":if(n.getKeyPageAbove){F.preventDefault();let H=n.getKeyPageAbove(t.focusedKey);A(H)}break;case"a":Zn(F)&&t.selectionMode==="multiple"&&s!==!0&&(F.preventDefault(),t.selectAll());break;case"Escape":F.preventDefault(),a||t.clearSelection();break;case"Tab":if(!f){if(F.shiftKey)r.current.focus();else{let H=Ze(r.current,{tabbable:!0}),D,O;do O=H.lastChild(),O&&(D=O);while(O);D&&!D.contains(document.activeElement)&&Pt(D)}break}}},C=u.useRef({top:0,left:0});Di(h,"scroll",p?null:()=>{C.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let w=F=>{if(t.isFocused){F.currentTarget.contains(F.target)||t.setFocused(!1);return}if(F.currentTarget.contains(F.target)){if(t.setFocused(!0),t.focusedKey==null){let R=K=>{K!=null&&(t.setFocusedKey(K),l&&t.replaceSelection(K))},I=F.relatedTarget;var A,B;I&&F.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?R((A=t.lastSelectedKey)!==null&&A!==void 0?A:n.getLastKey()):R((B=t.firstSelectedKey)!==null&&B!==void 0?B:n.getFirstKey())}else p||(h.current.scrollTop=C.current.top,h.current.scrollLeft=C.current.left);if(!p&&t.focusedKey!=null){let R=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);R&&(R.contains(document.activeElement)||Pt(R),Si()==="keyboard"&&Ls(R,{containingElement:r.current}))}}},E=F=>{F.currentTarget.contains(F.relatedTarget)||t.setFocused(!1)};const P=u.useRef(o);u.useEffect(()=>{if(P.current){let F=null;o==="first"&&(F=n.getFirstKey()),o==="last"&&(F=n.getLastKey());let A=t.selectedKeys;if(A.size){for(let B of A)if(t.canSelectItem(B)){F=B;break}}t.setFocused(!0),t.setFocusedKey(F),F==null&&!c&&kn(r.current)}},[]);let k=u.useRef(t.focusedKey);u.useEffect(()=>{let F=Si();if(t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let A=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);A&&(F==="keyboard"||P.current)&&(p||qp(h.current,A),F!=="virtual"&&Ls(A,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&k.current!=null&&kn(r.current),k.current=t.focusedKey,P.current=!1},[p,h,t.focusedKey,t.isFocused,r]);let N={onKeyDown:$,onFocus:w,onBlur:E,onMouseDown(F){h.current===F.target&&F.preventDefault()}},{typeSelectProps:v}=gD({keyboardDelegate:n,selectionManager:t});d||(N=X(v,N));let L;return c||(L=t.focusedKey==null?0:-1),{collectionProps:{...N,tabIndex:L}}}function Ku(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:a,isDisabled:s,onAction:l,allowsDifferentPressOrigin:d,linkBehavior:c="action"}=e,f=bo(),p=T=>{if(T.pointerType==="keyboard"&&ml(T))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){f.open(r.current,T),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):T&&T.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||T&&(Zn(T)||T.pointerType==="touch"||T.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};u.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(a?a():document.activeElement!==r.current&&kn(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let h={};!i&&!s?h={tabIndex:n===t.focusedKey?0:-1,onFocus(T){T.target===r.current&&t.setFocusedKey(n)}}:s&&(h.onMouseDown=T=>{T.preventDefault()});let b=t.isLink(n)&&c==="override",g=t.isLink(n)&&c!=="selection"&&c!=="none",y=!s&&t.canSelectItem(n)&&!b,$=(l||g)&&!s,C=$&&(t.selectionBehavior==="replace"?!y:!y||t.isEmpty),w=$&&y&&t.selectionBehavior==="replace",E=C||w,P=u.useRef(null),k=E&&y,N=u.useRef(!1),v=u.useRef(!1),L=T=>{l&&l(),g&&f.open(r.current,T)},F={};o?(F.onPressStart=T=>{P.current=T.pointerType,N.current=k,T.pointerType==="keyboard"&&(!E||Qf())&&p(T)},d?(F.onPressUp=C?null:T=>{T.pointerType!=="keyboard"&&y&&p(T)},F.onPress=C?L:null):F.onPress=T=>{if(C||w&&T.pointerType!=="mouse"){if(T.pointerType==="keyboard"&&!Jf())return;L(T)}else T.pointerType!=="keyboard"&&y&&p(T)}):(F.onPressStart=T=>{P.current=T.pointerType,N.current=k,v.current=C,y&&(T.pointerType==="mouse"&&!C||T.pointerType==="keyboard"&&(!$||Qf()))&&p(T)},F.onPress=T=>{(T.pointerType==="touch"||T.pointerType==="pen"||T.pointerType==="virtual"||T.pointerType==="keyboard"&&E&&Jf()||T.pointerType==="mouse"&&v.current)&&(E?L(T):y&&p(T))}),h["data-key"]=n,F.preventFocusOnPress=i;let{pressProps:A,isPressed:B}=sn(F),R=w?T=>{P.current==="mouse"&&(T.stopPropagation(),T.preventDefault(),L(T))}:void 0,{longPressProps:I}=a0({isDisabled:!k,onLongPress(T){T.pointerType==="touch"&&(p(T),t.setSelectionBehavior("toggle"))}}),K=T=>{P.current==="touch"&&N.current&&T.preventDefault()},V=t.isLink(n)?T=>{Tn.isOpening||T.preventDefault()}:void 0;return{itemProps:X(h,y||C?A:{},k?I:{},{onDoubleClick:R,onDragStartCapture:K,onClick:V}),isPressed:B,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:y,hasAction:E}}function Jf(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Qf(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class ju{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let n=this.collection.getItem(t);if((n==null?void 0:n.type)==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Ci(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.max(0,i.x-a+i.width-o.width);for(;r&&i.x-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.max(0,i.y-a+i.height-o.height);for(;r&&i.y-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Ci(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,i.x-a-i.width+o.width);for(;r&&i.x-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.min(n.scrollHeight,i.y-a-i.height+o.height);for(;r&&i.y-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o),a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Zm(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i}=e,a=ru({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,l=u.useMemo(()=>i||new ju(n,s==="selection"?new Set:r,o,a),[i,n,r,o,a,s]),{collectionProps:d}=Nu({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:d}}class yD{build(t,n){return this.context=n,ep(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];u.Children.forEach(n,a=>{o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}i=n.renderer(t.value)}if(u.isValidElement(i)){let l=i.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let p=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${p}> in collection.`)}let d=l.getCollectionNode(i.props,this.context),c=t.index,f=d.next();for(;!f.done&&f.value;){let p=f.value;t.index=c;let h=p.key;h||(h=p.element?null:this.getKey(i,t,n,r));let g=[...this.getFullNode({...p,key:h,index:c,wrapper:$D(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${i.key}`:i.key,o)];for(let y of g){if(y.value=p.value||t.value,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw new Error(`Unsupported type <${xs(y.type)}> in <${xs(o.type)}>. Only <${xs(t.type)}> is supported.`);c++,yield y}f=d.next(g)}return}if(t.key==null)return;let a=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:ep(function*(){if(!t.hasChildNodes)return;let l=0;for(let d of t.childNodes()){d.key!=null&&(d.key=`${s.key}${d.key}`),d.index=l;let c=a.getFullNode(d,a.getChildState(n,d),s.key,s);for(let f of c)l++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function ep(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function $D(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function xs(e){return e[0].toUpperCase()+e.slice(1)}function Xm(e,t,n){let r=u.useMemo(()=>new yD,[]),{children:o,items:i,collection:a}=e;return u.useMemo(()=>{if(a)return a;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,a,n,t])}function ba(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function xD(e){return wD(e,0)}function wD(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function ws(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...tp(e,t),t],o=[...tp(e,n),n],i=r.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function tp(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const np=new WeakMap;function _u(e){let t=np.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(ba(o,e)):t++};return n(e),np.set(e,t),t}const ma=new WeakMap;function CD(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Jm(e,t){let n=ma.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${CD(t)}`}function DD(e,t,n){let r=le(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:a}=Zm({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=br({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=_e(e.id);ma.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:d,fieldProps:c}=Do({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:X(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...X(c,a)})}}function ED(e,t,n){var r;let{key:o}=e,i=ma.get(t);var a;let s=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(o);var l;let d=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(o);var c;let f=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c:i==null?void 0:i.shouldSelectOnPressUp;var p;let h=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:i==null?void 0:i.shouldFocusOnHover;var b;let g=(b=e.shouldUseVirtualFocus)!==null&&b!==void 0?b:i==null?void 0:i.shouldUseVirtualFocus;var y;let $=(y=e.isVirtualized)!==null&&y!==void 0?y:i==null?void 0:i.isVirtualized,C=rn(),w=rn(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?d:void 0};Ut()&&Ol()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=C,E["aria-describedby"]=w);let P=t.collection.getItem(o);if($){let R=Number(P==null?void 0:P.index);E["aria-posinset"]=Number.isNaN(R)?void 0:R+1,E["aria-setsize"]=_u(t.collection)}let{itemProps:k,isPressed:N,isFocused:v,hasAction:L,allowsSelection:F}=Ku({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:$,shouldUseVirtualFocus:g,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var R;return i==null||(R=i.onAction)===null||R===void 0?void 0:R.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:A}=Fe({isDisabled:s||!h,onHoverStart(){lr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),B=le(P==null?void 0:P.props,{isLink:!!(!(P==null||(r=P.props)===null||r===void 0)&&r.href)});return delete B.id,{optionProps:{...E,...X(B,k,A),id:Jm(t,o)},labelProps:{id:C},descriptionProps:{id:w},isFocused:v,isFocusVisible:v&&lr(),isSelected:d,isDisabled:s,isPressed:N,allowsSelection:F,hasAction:L}}function PD(e){let{heading:t,"aria-label":n}=e,r=_e();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Qm={};Qm={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var eg={};eg={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var tg={};tg={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var ng={};ng={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var rg={};rg={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var og={};og={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var ig={};ig={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var ag={};ag={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var sg={};sg={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var lg={};lg={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var ug={};ug={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var cg={};cg={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var dg={};dg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var fg={};fg={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var pg={};pg={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var hg={};hg={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var bg={};bg={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var mg={};mg={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var gg={};gg={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var vg={};vg={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var yg={};yg={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var $g={};$g={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var xg={};xg={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var wg={};wg={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Cg={};Cg={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Dg={};Dg={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Eg={};Eg={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Pg={};Pg={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Sg={};Sg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Tg={};Tg={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Ag={};Ag={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Mg={};Mg={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var kg={};kg={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Rg={};Rg={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function SD(e){return e&&e.__esModule?e.default:e}var Fg={};Fg={"ar-AE":Qm,"bg-BG":eg,"cs-CZ":tg,"da-DK":ng,"de-DE":rg,"el-GR":og,"en-US":ig,"es-ES":ag,"et-EE":sg,"fi-FI":lg,"fr-FR":ug,"he-IL":cg,"hr-HR":dg,"hu-HU":fg,"it-IT":pg,"ja-JP":hg,"ko-KR":bg,"lt-LT":mg,"lv-LV":gg,"nb-NO":vg,"nl-NL":yg,"pl-PL":$g,"pt-BR":xg,"pt-PT":wg,"ro-RO":Cg,"ru-RU":Dg,"sk-SK":Eg,"sl-SI":Pg,"sr-SP":Sg,"sv-SE":Tg,"tr-TR":Ag,"uk-UA":Mg,"zh-CN":kg,"zh-TW":Rg};function TD(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=_e(),{triggerProps:s,overlayProps:l}=y2({type:r},t,n),d=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},c=gr(SD(Fg),"@react-aria/menu"),{longPressProps:f}=a0({isDisabled:o||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&t.toggle(h.pointerType==="virtual"?"first":null)},onPress(h){h.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?p:f,id:a,onKeyDown:d},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Bg=new WeakMap;function AD(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=le(e,{labelable:!0}),{listProps:l}=Zm({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Bg.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:X(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...l,onKeyDown:d=>{d.key!=="Escape"&&l.onKeyDown(d)}})}}function Ig(e,t,n){var r;let{key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:l,onPressUp:d,onPress:c,onPressChange:f,onPressEnd:p,onHoverStart:h,onHoverChange:b,onHoverEnd:g,onKeyDown:y,onKeyUp:$,onFocus:C,onFocusChange:w,onBlur:E}=e,P=!!s;var k;let N=(k=e.isDisabled)!==null&&k!==void 0?k:t.disabledKeys.has(o);var v;let L=(v=e.isSelected)!==null&&v!==void 0?v:t.selectionManager.isSelected(o),F=Bg.get(t),A=e.onClose||F.onClose,B=P?()=>{}:e.onAction||F.onAction,R=bo(),I=se=>{B&&B(o),se.target instanceof HTMLAnchorElement&&R.open(se.target,se)},K="menuitem";P||(t.selectionManager.selectionMode==="single"?K="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(K="menuitemcheckbox"));let V=rn(),T=rn(),G=rn(),Y={"aria-disabled":N||void 0,role:K,"aria-label":e["aria-label"],"aria-labelledby":V,"aria-describedby":[T,G].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};t.selectionManager.selectionMode!=="none"&&!P&&(Y["aria-checked"]=L);let H=t.collection.getItem(o);a&&(Y["aria-posinset"]=H==null?void 0:H.index,Y["aria-setsize"]=_u(t.collection));let D=se=>{se.pointerType==="keyboard"&&I(se),l==null||l(se)},O=se=>{se.pointerType!=="keyboard"&&(I(se),!P&&A&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(o)))&&A()),d==null||d(se)},{itemProps:W,isFocused:J}=Ku({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:Q,isPressed:re}=sn({onPressStart:D,onPress:c,onPressUp:O,onPressChange:f,onPressEnd:p,isDisabled:N}),{hoverProps:z}=Fe({isDisabled:N,onHoverStart(se){lr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),h==null||h(se)},onHoverChange:b,onHoverEnd:g}),{keyboardProps:q}=zl({onKeyDown:se=>{if(se.repeat){se.continuePropagation();return}switch(se.key){case" ":!N&&t.selectionManager.selectionMode==="none"&&!P&&i!==!1&&A&&A();break;case"Enter":!N&&i!==!1&&!P&&A&&A();break;default:P||se.continuePropagation(),y==null||y(se);break}},onKeyUp:$}),{focusProps:te}=ea({onBlur:E,onFocus:C,onFocusChange:w}),ae=le(H.props,{isLink:!!(!(H==null||(r=H.props)===null||r===void 0)&&r.href)});return delete ae.id,{menuItemProps:{...Y,...X(ae,P?{onFocus:W.onFocus}:W,Q,z,q,te),tabIndex:W.tabIndex!=null?-1:void 0},labelProps:{id:V},descriptionProps:{id:T},keyboardShortcutProps:{id:G},isFocused:J,isSelected:L,isPressed:re,isDisabled:N}}function MD(e){let{heading:t,"aria-label":n}=e,r=_e();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const ai=2,kD=50,RD=1e3,rp=Math.PI/12;function FD(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:o}=e,i=u.useRef(),a=u.useRef(),s=u.useRef(0),l=u.useRef(),d=u.useRef(),c=u.useRef(),f=u.useRef(2),[p,h]=u.useState(!1);Kl({ref:n,onResize:()=>{n.current&&(a.current=n.current.getBoundingClientRect(),c.current=void 0)}});let g=()=>{h(!1),f.current=ai},y=Ax();u.useEffect(()=>{p&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,p]),u.useEffect(()=>{let $=n.current,C=t.current;if(o||!$||!r||y!=="pointer"){g();return}a.current=$.getBoundingClientRect();let w=E=>{if(E.pointerType==="touch"||E.pointerType==="pen")return;let P=Date.now();if(P-s.current<kD)return;clearTimeout(l.current),clearTimeout(d.current);let{clientX:k,clientY:N}=E;if(!i.current){i.current={x:k,y:N};return}if(!a.current)return;if(c.current||(c.current=k>a.current.right?"left":"right"),k<C.getBoundingClientRect().left||k>C.getBoundingClientRect().right||N<C.getBoundingClientRect().top||N>C.getBoundingClientRect().bottom){g();return}let v=i.current.x,L=i.current.y,F=c.current==="right"?a.current.left-v:v-a.current.right,A=Math.atan2(L-a.current.top,F)+rp,B=Math.atan2(L-a.current.bottom,F)-rp,R=Math.atan2(L-N,c.current==="left"?-(k-v):k-v),I=R<A&&R>B;f.current=I?Math.min(f.current+1,ai):Math.max(f.current-1,0),f.current>=ai?h(!0):h(!1),s.current=P,i.current={x:k,y:N},I&&(l.current=setTimeout(()=>{g(),d.current=setTimeout(()=>{let K=document.elementFromPoint(k,N);K&&C.contains(K)&&K.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},RD))};return window.addEventListener("pointermove",w),()=>{window.removeEventListener("pointermove",w),clearTimeout(l.current),clearTimeout(d.current),f.current=ai}},[o,r,t,y,h,n])}function BD(e,t,n){let{parentMenuRef:r,submenuRef:o,type:i="menu",isDisabled:a,node:s,delay:l=200}=e,d=_e(),c=_e(),{direction:f}=Ve(),p=u.useRef(),h=u.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),b=Pe(v=>{h(),t.open(v)}),g=Pe(()=>{h(),t.close()});be(()=>()=>{h()},[h]);let y=v=>{switch(v.key){case"ArrowLeft":f==="ltr"&&v.currentTarget.contains(v.target)&&(v.stopPropagation(),g(),n.current.focus());break;case"ArrowRight":f==="rtl"&&v.currentTarget.contains(v.target)&&(v.stopPropagation(),g(),n.current.focus());break;case"Escape":v.stopPropagation(),t.closeAll();break}},$={id:c,"aria-label":s.textValue,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:t.focusStrategy,onKeyDown:y}},C=v=>{switch(v.key){case"ArrowRight":a||(f==="ltr"?(t.isOpen||b("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?g():v.continuePropagation());break;case"ArrowLeft":a||(f==="rtl"?(t.isOpen||b("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?g():v.continuePropagation());break;case"Escape":t.closeAll();break;default:v.continuePropagation();break}},w=v=>{!a&&(v.pointerType==="virtual"||v.pointerType==="keyboard")&&b("first")},E=v=>{!a&&(v.pointerType==="touch"||v.pointerType==="mouse")&&b()},P=v=>{a||(v&&!t.isOpen?p.current||(p.current=setTimeout(()=>{b()},l)):v||h())},k=v=>{t.isOpen&&r.current.contains(v.relatedTarget)&&g()},N=v=>v!==n.current;return FD({menuRef:r,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:d,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:w,onPress:E,onHoverChange:P,onKeyDown:C,onBlur:k,isOpen:t.isOpen},submenuProps:$,popoverProps:{isNonModal:!0,disableFocusManagement:!0,shouldCloseOnInteractOutside:N}}}function zu(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,d]=bt(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=mr(e,t),f=$r({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:b}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:C}=hm({...e,isInvalid:p,errorMessage:e.errorMessage||h}),w=le(e,{labelable:!0});const E={type:a,pattern:e.pattern};return mo(t,l,d),Ou(e,f,t),u.useEffect(()=>{if(t.current instanceof ft(t.current).HTMLTextAreaElement){let P=t.current;Object.defineProperty(P,"defaultValue",{get:()=>P.value,set:()=>{},configurable:!0})}},[t]),{labelProps:g,inputProps:X(w,n==="input"&&E,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:P=>d(P.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...y}),descriptionProps:$,errorMessageProps:C,isInvalid:p,validationErrors:h,validationDetails:b}}function op(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function ID(e,t,n){let r=Pe(f=>{let p=n.current,h;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":h=p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentForward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd+1):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentBackward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart-1)+p.value.slice(p.selectionStart):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":h=p.value.slice(p.selectionStart);break;default:f.data!=null&&(h=p.value.slice(0,p.selectionStart)+f.data+p.value.slice(p.selectionEnd));break}(h==null||!t.validate(h))&&f.preventDefault()});u.useEffect(()=>{if(!op())return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=op()?null:f=>{let p=f.target.value.slice(0,f.target.selectionStart)+f.data+f.target.value.slice(f.target.selectionEnd);t.validate(p)||f.preventDefault()},{labelProps:i,inputProps:a,descriptionProps:s,errorMessageProps:l,...d}=zu(e,n),c=u.useRef(null);return{inputProps:X(a,{onBeforeInput:o,onCompositionStart(){let{value:f,selectionStart:p,selectionEnd:h}=n.current;c.current={value:f,selectionStart:p,selectionEnd:h}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:f,selectionStart:p,selectionEnd:h}=c.current;n.current.value=f,n.current.setSelectionRange(p,h),t.setInputValue(f)}}}),labelProps:i,descriptionProps:s,errorMessageProps:l,...d}}function LD(e){return e&&e.__esModule?e.default:e}var Lg={};Lg={"ar-AE":mm,"bg-BG":gm,"cs-CZ":vm,"da-DK":ym,"de-DE":$m,"el-GR":xm,"en-US":wm,"es-ES":Cm,"et-EE":Dm,"fi-FI":Em,"fr-FR":Pm,"he-IL":Sm,"hr-HR":Tm,"hu-HU":Am,"it-IT":Mm,"ja-JP":km,"ko-KR":Rm,"lt-LT":Fm,"lv-LV":Bm,"nb-NO":Im,"nl-NL":Lm,"pl-PL":Vm,"pt-BR":Om,"pt-PT":Nm,"ro-RO":Km,"ru-RU":jm,"sk-SK":_m,"sl-SI":zm,"sr-SP":Um,"sv-SE":Hm,"tr-TR":Gm,"uk-UA":Wm,"zh-CN":Ym,"zh-TW":qm};function VD(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:a,shouldFocusWrap:s,isReadOnly:l,isDisabled:d}=e,c=gr(LD(Lg),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=TD({type:"listbox",isDisabled:d||l},t,n);ma.set(t,{id:p.id});let h=u.useMemo(()=>a||new ju(t.collection,t.disabledKeys,i),[a,t.collection,t.disabledKeys,i]),{collectionProps:b}=Nu({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),g=bo(),y=z=>{switch(z.key){case"Enter":case"Tab":if(t.isOpen&&z.key==="Enter"&&z.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(z.key==="Enter"){let q=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);q instanceof HTMLAnchorElement&&g.open(q,z)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&z.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},$=z=>{var q;z.relatedTarget===(n==null?void 0:n.current)||!((q=r.current)===null||q===void 0)&&q.contains(z.relatedTarget)||(e.onBlur&&e.onBlur(z),t.setFocused(!1))},C=z=>{t.isFocused||(e.onFocus&&e.onFocus(z),t.setFocused(!0))},{isInvalid:w,validationErrors:E,validationDetails:P}=t.displayValidation,{labelProps:k,inputProps:N,descriptionProps:v,errorMessageProps:L}=zu({...e,onChange:t.setInputValue,onKeyDown:l?e.onKeyDown:an(t.isOpen&&b.onKeyDown,y,e.onKeyDown),onBlur:$,value:t.inputValue,onFocus:C,autoComplete:"off",validate:void 0,[co]:t},o),F=z=>{z.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},A=z=>{z.pointerType!=="touch"&&(o.current.focus(),t.toggle(z.pointerType==="keyboard"||z.pointerType==="virtual"?"first":null,"manual"))},B=An({id:f.id,"aria-label":c.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),R=An({id:p.id,"aria-label":c.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),I=u.useRef(0),K=z=>{if(d||l)return;if(z.timeStamp-I.current<500){z.preventDefault(),o.current.focus();return}let q=z.target.getBoundingClientRect(),te=z.changedTouches[0],ae=Math.ceil(q.left+.5*q.width),se=Math.ceil(q.top+.5*q.height);te.clientX===ae&&te.clientY===se&&(z.preventDefault(),o.current.focus(),t.toggle(null,"manual"),I.current=z.timeStamp)},V=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var T;let G=(T=V==null?void 0:V.parentKey)!==null&&T!==void 0?T:null;var Y;let H=(Y=t.selectionManager.focusedKey)!==null&&Y!==void 0?Y:null,D=u.useRef(G),O=u.useRef(H);u.useEffect(()=>{if(ui()&&V!=null&&H!==O.current){let z=t.selectionManager.isSelected(H),q=G!=null?t.collection.getItem(G):null,te=(q==null?void 0:q["aria-label"])||(typeof(q==null?void 0:q.rendered)=="string"?q.rendered:"")||"",ae=c.format("focusAnnouncement",{isGroupChange:q&&G!==D.current,groupTitle:te,groupCount:q?[...ba(q,t.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:z});gi(ae)}D.current=G,O.current=H});let W=_u(t.collection),J=u.useRef(W),Q=u.useRef(t.isOpen);u.useEffect(()=>{let z=t.isOpen!==Q.current&&(t.selectionManager.focusedKey==null||ui());if(t.isOpen&&(z||W!==J.current)){let q=c.format("countAnnouncement",{optionCount:W});gi(q)}J.current=W,Q.current=t.isOpen});let re=u.useRef(t.selectedKey);return u.useEffect(()=>{if(ui()&&t.isFocused&&t.selectedItem&&t.selectedKey!==re.current){let z=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",q=c.format("selectedAnnouncement",{optionText:z});gi(q)}re.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return iu([o.current,r.current])},[t.isOpen,o,r]),{labelProps:k,buttonProps:{...f,...B,excludeFromTabOrder:!0,onPress:F,onPressStart:A,isDisabled:d||l},inputProps:X(N,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?Jm(t,V.key):void 0,onTouchEnd:K,autoCorrect:"off",spellCheck:"false"}),listBoxProps:X(p,R,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:v,errorMessageProps:L,isInvalid:w,validationErrors:E,validationDetails:P}}var Vg={};Vg={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Og={};Og={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Ng={};Ng={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Kg={};Kg={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var jg={};jg={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var _g={};_g={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var zg={};zg={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var Ug={};Ug={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var Hg={};Hg={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var Gg={};Gg={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Wg={};Wg={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var Yg={};Yg={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var qg={};qg={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Zg={};Zg={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var Xg={};Xg={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var Jg={};Jg={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var Qg={};Qg={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var ev={};ev={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var tv={};tv={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var nv={};nv={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var rv={};rv={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var ov={};ov={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var iv={};iv={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var av={};av={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var sv={};sv={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var lv={};lv={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var uv={};uv={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var cv={};cv={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var dv={};dv={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var fv={};fv={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var pv={};pv={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var hv={};hv={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var bv={};bv={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var mv={};mv={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var gv={};gv={Empty:"فارغ"};var vv={};vv={Empty:"Изпразни"};var yv={};yv={Empty:"Prázdné"};var $v={};$v={Empty:"Tom"};var xv={};xv={Empty:"Leer"};var wv={};wv={Empty:"Άδειο"};var Cv={};Cv={Empty:"Empty"};var Dv={};Dv={Empty:"Vacío"};var Ev={};Ev={Empty:"Tühjenda"};var Pv={};Pv={Empty:"Tyhjä"};var Sv={};Sv={Empty:"Vide"};var Tv={};Tv={Empty:"ריק"};var Av={};Av={Empty:"Prazno"};var Mv={};Mv={Empty:"Üres"};var kv={};kv={Empty:"Vuoto"};var Rv={};Rv={Empty:"空"};var Fv={};Fv={Empty:"비어 있음"};var Bv={};Bv={Empty:"Tuščias"};var Iv={};Iv={Empty:"Tukšs"};var Lv={};Lv={Empty:"Tom"};var Vv={};Vv={Empty:"Leeg"};var Ov={};Ov={Empty:"Pusty"};var Nv={};Nv={Empty:"Vazio"};var Kv={};Kv={Empty:"Vazio"};var jv={};jv={Empty:"Gol"};var _v={};_v={Empty:"Не заполнено"};var zv={};zv={Empty:"Prázdne"};var Uv={};Uv={Empty:"Prazen"};var Hv={};Hv={Empty:"Prazno"};var Gv={};Gv={Empty:"Tomt"};var Wv={};Wv={Empty:"Boş"};var Yv={};Yv={Empty:"Пусто"};var qv={};qv={Empty:"空"};var Zv={};Zv={Empty:"空白"};function OD(e){return e&&e.__esModule?e.default:e}var Xv={};Xv={"ar-AE":gv,"bg-BG":vv,"cs-CZ":yv,"da-DK":$v,"de-DE":xv,"el-GR":wv,"en-US":Cv,"es-ES":Dv,"et-EE":Ev,"fi-FI":Pv,"fr-FR":Sv,"he-IL":Tv,"hr-HR":Av,"hu-HU":Mv,"it-IT":kv,"ja-JP":Rv,"ko-KR":Fv,"lt-LT":Bv,"lv-LV":Iv,"nb-NO":Lv,"nl-NL":Vv,"pl-PL":Ov,"pt-BR":Nv,"pt-PT":Kv,"ro-RO":jv,"ru-RU":_v,"sk-SK":zv,"sl-SI":Uv,"sr-SP":Hv,"sv-SE":Gv,"tr-TR":Wv,"uk-UA":Yv,"zh-CN":qv,"zh-TW":Zv};function Jv(e){const t=u.useRef();let{value:n,textValue:r,minValue:o,maxValue:i,isDisabled:a,isReadOnly:s,isRequired:l,onIncrement:d,onIncrementPage:c,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:b}=e;const g=gr(OD(Xv),"@react-aria/spinbutton"),y=()=>clearTimeout(t.current);u.useEffect(()=>()=>y(),[]);let $=A=>{if(!(A.ctrlKey||A.metaKey||A.shiftKey||A.altKey||s))switch(A.key){case"PageUp":if(c){A.preventDefault(),c==null||c();break}case"ArrowUp":case"Up":d&&(A.preventDefault(),d==null||d());break;case"PageDown":if(p){A.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":f&&(A.preventDefault(),f==null||f());break;case"Home":h&&(A.preventDefault(),h==null||h());break;case"End":b&&(A.preventDefault(),b==null||b());break}},C=u.useRef(!1),w=()=>{C.current=!0},E=()=>{C.current=!1},P=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{C.current&&(aD("assertive"),gi(P,"assertive"))},[P]);const k=Pe(A=>{y(),d==null||d(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n<i)&&k(60)},A)}),N=Pe(A=>{y(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&N(60)},A)});let v=A=>{A.preventDefault()},{addGlobalListener:L,removeAllGlobalListeners:F}=hr();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":a||void 0,"aria-readonly":s||void 0,"aria-required":l||void 0,onKeyDown:$,onFocus:w,onBlur:E},incrementButtonProps:{onPressStart:()=>{k(400),L(window,"contextmenu",v)},onPressEnd:()=>{y(),F()},onFocus:w,onBlur:E},decrementButtonProps:{onPressStart:()=>{N(400),L(window,"contextmenu",v)},onPressEnd:()=>{y(),F()},onFocus:w,onBlur:E}}}function Qv(e){return e&&e.__esModule?e.default:e}var Uu={};Uu={"ar-AE":Vg,"bg-BG":Og,"cs-CZ":Ng,"da-DK":Kg,"de-DE":jg,"el-GR":_g,"en-US":zg,"es-ES":Ug,"et-EE":Hg,"fi-FI":Gg,"fr-FR":Wg,"he-IL":Yg,"hr-HR":qg,"hu-HU":Zg,"it-IT":Xg,"ja-JP":Jg,"ko-KR":Qg,"lt-LT":ev,"lv-LV":tv,"nb-NO":nv,"nl-NL":rv,"pl-PL":ov,"pt-BR":iv,"pt-PT":av,"ro-RO":sv,"ru-RU":lv,"sk-SK":uv,"sl-SI":cv,"sr-SP":dv,"sv-SE":fv,"tr-TR":pv,"uk-UA":hv,"zh-CN":bv,"zh-TW":mv};function ND(e,t,n){let{direction:r}=Ve(),o=u.useMemo(()=>u0(t),[t]),i=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusNext():o.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusPrevious():o.focusNext();break}},a=()=>{var l;let d=(l=window.event)===null||l===void 0?void 0:l.target,c=Ze(t.current,{tabbable:!0});if(d&&(c.currentNode=d,d=c.previousNode()),!d){let f;do f=c.lastChild(),f&&(d=f);while(f)}for(;d!=null&&d.hasAttribute("data-placeholder");){let f=c.previousNode();if(f&&f.hasAttribute("data-placeholder"))d=f;else break}d&&d.focus()},{pressProps:s}=sn({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return X(s,{onKeyDown:i})}const ey=new WeakMap,Cs="__role_"+Date.now(),KD="__focusManager_"+Date.now();function Hu(e,t,n){var r;let{isInvalid:o,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:d,errorMessageProps:c}=hm({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=u.useRef(null),{focusWithinProps:p}=br({...e,onFocusWithin(F){var A;f.current=t.value,(A=e.onFocus)===null||A===void 0||A.call(e,F)},onBlurWithin:F=>{var A;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),(A=e.onBlur)===null||A===void 0||A.call(e,F)},onFocusWithinChange:e.onFocusChange}),h=gr(Qv(Uu),"@react-aria/datepicker"),b=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=t.maxGranularity==="hour"?"time":"date",y=t.value?h.format(b,{[g]:t.formatValue({month:"long"})}):"",$=Yp(y),C=e[Cs]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[KD],E=u.useMemo(()=>w||u0(n),[w,n]),P=ND(t,n,e[Cs]==="presentation");ey.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:E});let k=u.useRef(e.autoFocus),N;e[Cs]==="presentation"?N={role:"presentation"}:N=X(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),u.useEffect(()=>{k.current&&E.focusFirst(),k.current=!1},[E]),mo(e.inputRef,t.value,t.setValue),Ou({...e,focus(){E.focusFirst()}},t,e.inputRef);let v={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||""};e.validationBehavior==="native"&&(v.type="text",v.hidden=!0,v.required=e.isRequired,v.onChange=()=>{});let L=le(e);return{labelProps:{...s,onClick:()=>{E.focusFirst()}},fieldProps:X(L,N,P,p,{onKeyDown(F){e.onKeyDown&&e.onKeyDown(F)},onKeyUp(F){e.onKeyUp&&e.onKeyUp(F)}}),inputProps:v,descriptionProps:d,errorMessageProps:c,isInvalid:o,validationErrors:i,validationDetails:a}}function jD(e,t,n){var r;let o=Hu(e,t,n);return o.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",o}function _D(){let{locale:e}=Ve(),t=_0(Qv(Uu),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new zD(e,t)}},[e,t])}class zD{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function UD(e,t,n){let r=u.useRef(""),{locale:o}=Ve(),i=_D(),{ariaLabel:a,ariaLabelledBy:s,ariaDescribedBy:l,focusManager:d}=ey.get(t),c=e.isPlaceholder?"":e.text,f=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=ei({month:"long",timeZone:f.timeZone}),h=ei({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if(e.type==="month"&&!e.isPlaceholder){let T=p.format(t.dateValue);c=T!==c?`${c} – ${T}`:T}else e.type==="hour"&&!e.isPlaceholder&&(c=h.format(t.dateValue));let{spinButtonProps:b}=Jv({value:e.value,textValue:c,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",t.setSegment(e.type,e.minValue)}}),g=u.useMemo(()=>new nu(o,{maximumFractionDigits:0}),[o]),y=()=>{if(g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let T=e.text.slice(0,-1),G=g.parse(T);T.length===0||G===0?t.clearSegment(e.type):t.setSegment(e.type,G),r.current=T}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=T=>{if(T.key==="a"&&(Ut()?T.metaKey:T.ctrlKey)&&T.preventDefault(),!(T.ctrlKey||T.metaKey||T.shiftKey||T.altKey))switch(T.key){case"Backspace":case"Delete":T.preventDefault(),T.stopPropagation(),y();break}},{startsWith:C}=z0({sensitivity:"base"}),w=ei({hour:"numeric",hour12:!0}),E=u.useMemo(()=>{let T=new Date;return T.setHours(0),w.formatToParts(T).find(G=>G.type==="dayPeriod").value},[w]),P=u.useMemo(()=>{let T=new Date;return T.setHours(12),w.formatToParts(T).find(G=>G.type==="dayPeriod").value},[w]),k=ei({year:"numeric",era:"narrow",timeZone:"UTC"}),N=u.useMemo(()=>{if(e.type!=="era")return[];let T=Xe(new Re(1,1,1),t.calendar),G=t.calendar.getEras().map(H=>{let D=T.set({year:1,month:1,day:1,era:H}).toDate("UTC"),W=k.formatToParts(D).find(J=>J.type==="era").value;return{era:H,formatted:W}}),Y=HD(G.map(H=>H.formatted));if(Y)for(let H of G)H.formatted=H.formatted.slice(Y);return G},[k,t.calendar,e.type]),v=T=>{if(t.isDisabled||t.isReadOnly)return;let G=r.current+T;switch(e.type){case"dayPeriod":if(C(E,T))t.setSegment("dayPeriod",0);else if(C(P,T))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let Y=N.find(H=>C(H.formatted,T));Y&&(t.setSegment("era",Y.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!g.isValidPartialNumber(G))return;let Y=g.parse(G),H=Y,D=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":Y>11&&(H=g.parse(T));break;case"h12":D=!1,Y>12&&(H=g.parse(T));break}e.value>=12&&Y>1&&(Y+=12)}else Y>e.maxValue&&(H=g.parse(T));if(isNaN(Y))return;let O=H!==0||D;O&&t.setSegment(e.type,H),+(Y+"0")>e.maxValue||G.length>=String(e.maxValue).length?(r.current="",O&&d.focusNext()):r.current=G;break}}},L=()=>{r.current="",Ls(n.current,{containingElement:to(n.current)}),window.getSelection().collapse(n.current)},F=u.useRef("");Di(n,"beforeinput",T=>{switch(T.preventDefault(),T.inputType){case"deleteContentBackward":case"deleteContentForward":g.isValidPartialNumber(e.text)&&!t.isReadOnly&&y();break;case"insertCompositionText":F.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:T.data!=null&&v(T.data);break}}),Di(n,"input",T=>{let{inputType:G,data:Y}=T;switch(G){case"insertCompositionText":n.current.textContent=F.current,(C(E,Y)||C(P,Y))&&v(Y);break}}),be(()=>{let T=n.current;return()=>{document.activeElement===T&&(d.focusPrevious()||d.focusNext())}},[n,d]);let A=pr()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},B=u.useMemo(()=>t.segments.find(T=>T.isEditable),[t.segments]);e!==B&&!t.isInvalid&&(l=void 0);let R=_e(),I=!t.isDisabled&&!t.isReadOnly&&e.isEditable,K=e.type==="literal"?"":i.of(e.type),V=An({"aria-label":`${K}${a?`, ${a}`:""}${s?", ":""}`,"aria-labelledby":s});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:X(b,V,{id:R,...A,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:I,suppressContentEditableWarning:I,spellCheck:I?"false":void 0,autoCapitalize:I?"off":void 0,autoCorrect:I?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:I?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!I?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:$,onFocus:L,style:{caretColor:"transparent"},onPointerDown(T){T.stopPropagation()},onMouseDown(T){T.stopPropagation()}})}}function HD(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function GD(e,t){let{role:n="dialog"}=e,r=rn();r=e["aria-label"]?void 0:r;let o=u.useRef(!1);return u.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){kn(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),kn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),kh(),{dialogProps:{...le(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function ty(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=le(e,{labelable:!0}),{labelProps:l,fieldProps:d}=Do({...e,labelElementType:"span"});t=pt(t,n,r);let c=(t-n)/(r-n),f=Ni(a);if(!i&&!o){let p=a.style==="percent"?c:t;o=f.format(p)}return{progressBarProps:X(s,{...d,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}function WD(e){let{progressBarProps:t,labelProps:n}=ty(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}var ny={};ny={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var ry={};ry={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var oy={};oy={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var iy={};iy={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var ay={};ay={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var sy={};sy={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var ly={};ly={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var uy={};uy={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var cy={};cy={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var dy={};dy={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var fy={};fy={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var py={};py={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var hy={};hy={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var by={};by={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var my={};my={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var gy={};gy={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var vy={};vy={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var yy={};yy={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var $y={};$y={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var xy={};xy={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var wy={};wy={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var Cy={};Cy={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var Dy={};Dy={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Ey={};Ey={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var Py={};Py={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var Sy={};Sy={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var Ty={};Ty={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var Ay={};Ay={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var My={};My={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var ky={};ky={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Ry={};Ry={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var Fy={};Fy={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var By={};By={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var Iy={};Iy={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};function YD(e){return e&&e.__esModule?e.default:e}var Ly={};Ly={"ar-AE":ny,"bg-BG":ry,"cs-CZ":oy,"da-DK":iy,"de-DE":ay,"el-GR":sy,"en-US":ly,"es-ES":uy,"et-EE":cy,"fi-FI":dy,"fr-FR":fy,"he-IL":py,"hr-HR":hy,"hu-HU":by,"it-IT":my,"ja-JP":gy,"ko-KR":vy,"lt-LT":yy,"lv-LV":$y,"nb-NO":xy,"nl-NL":wy,"pl-PL":Cy,"pt-BR":Dy,"pt-PT":Ey,"ro-RO":Py,"ru-RU":Sy,"sk-SK":Ty,"sl-SI":Ay,"sr-SP":My,"sv-SE":ky,"tr-TR":Ry,"uk-UA":Fy,"zh-CN":By,"zh-TW":Iy};function qD(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:a,isReadOnly:s,isRequired:l,minValue:d,maxValue:c,autoFocus:f,label:p,formatOptions:h,onBlur:b=()=>{},onFocus:g,onFocusChange:y,onKeyDown:$,onKeyUp:C,description:w,errorMessage:E,isWheelDisabled:P,...k}=e,{increment:N,incrementToMax:v,decrement:L,decrementToMin:F,numberValue:A,inputValue:B,commit:R,commitValidation:I}=t;const K=gr(YD(Ly),"@react-aria/numberfield");let V=_e(r),{focusProps:T}=ea({onBlur(){R()}}),G=Ni(h),Y=u.useMemo(()=>G.resolvedOptions(),[G]),H=Ni({...h,currencySign:void 0}),D=u.useMemo(()=>isNaN(A)?"":H.format(A),[H,A]),{spinButtonProps:O,incrementButtonProps:W,decrementButtonProps:J}=Jv({isDisabled:a,isReadOnly:s,isRequired:l,maxValue:c,minValue:d,onIncrement:N,onIncrementToMax:v,onDecrement:L,onDecrementToMin:F,value:A,textValue:D}),[Q,re]=u.useState(!1),{focusWithinProps:z}=br({isDisabled:a,onFocusWithinChange:re}),q=u.useCallback(Ne=>{Math.abs(Ne.deltaY)<=Math.abs(Ne.deltaX)||(Ne.deltaY>0?N():Ne.deltaY<0&&L())},[L,N]);Bx({onScroll:q,isDisabled:P||a||s||!Q},n);let ae=Y.maximumFractionDigits>0,se=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,Be="numeric";Hp()?se?Be="text":ae&&(Be="decimal"):Nl()&&(se?Be="numeric":ae&&(Be="decimal"));let Ue=Ne=>{t.validate(Ne)&&t.setInputValue(Ne)},xt=le(e),Kn=u.useCallback(Ne=>{Ne.key==="Enter"?(R(),I()):Ne.continuePropagation()},[R,I]),{isInvalid:Zt,validationErrors:Xt,validationDetails:Dr}=t.displayValidation,{labelProps:ue,inputProps:fe,descriptionProps:$e,errorMessageProps:Fo}=ID({...k,...xt,name:void 0,label:p,autoFocus:f,isDisabled:a,isReadOnly:s,isRequired:l,validate:void 0,[co]:t,value:B,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:V,type:"text",inputMode:Be,onChange:Ue,onBlur:b,onFocus:g,onFocusChange:y,onKeyDown:u.useMemo(()=>an(Kn,$),[Kn,$]),onKeyUp:C,description:w,errorMessage:E},t,n);mo(n,t.numberValue,t.setNumberValue);let Er=X(O,T,fe,{role:null,"aria-roledescription":pr()?null:K.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Er["aria-required"]=void 0);let Pr=Ne=>{var Tr;document.activeElement!==n.current&&(Ne.pointerType==="mouse"?(Tr=n.current)===null||Tr===void 0||Tr.focus():Ne.target.focus())},pn=e["aria-label"]||(typeof e.label=="string"?e.label:""),wt;pn||(wt=e.label!=null?ue.id:e["aria-labelledby"]);let Sr=_e(),Bo=_e(),Sa=X(W,{"aria-label":i||K.format("increase",{fieldLabel:pn}).trim(),id:wt&&!i?Sr:null,"aria-labelledby":wt&&!i?`${Sr} ${wt}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Pr}),Ta=X(J,{"aria-label":o||K.format("decrease",{fieldLabel:pn}).trim(),id:wt&&!o?Bo:null,"aria-labelledby":wt&&!o?`${Bo} ${wt}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Pr});return{groupProps:{...z,role:"group","aria-disabled":a,"aria-invalid":Zt?"true":void 0},labelProps:ue,inputProps:Er,incrementButtonProps:Sa,decrementButtonProps:Ta,errorMessageProps:Fo,descriptionProps:$e,isInvalid:Zt,validationErrors:Xt,validationDetails:Dr}}function Vy(e){let t=le(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}const Gu=new WeakMap;function gl(e,t){let n=Gu.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function ZD(e,t,n){let{labelProps:r,fieldProps:o}=Do(e),i=e.orientation==="vertical";var a;Gu.set(t,{id:(a=r.id)!==null&&a!==void 0?a:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:s}=Ve(),{addGlobalListener:l,removeGlobalListener:d}=hr();const c=u.useRef(null),f=s==="rtl",p=u.useRef(null),{moveProps:h}=i0({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:C}){let{height:w,width:E}=n.current.getBoundingClientRect(),P=i?w:E;p.current==null&&(p.current=t.getThumbPercent(c.current)*P);let k=i?C:$;if((i||f)&&(k=-k),p.current+=k,c.current!=null&&n.current){const N=pt(p.current/P,0,1);t.setThumbPercent(c.current,N)}},onMoveEnd(){c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null)}});let b=u.useRef(void 0),g=($,C,w,E)=>{if(n.current&&!e.isDisabled&&t.values.every((P,k)=>!t.isThumbDragging(k))){let{height:P,width:k,top:N,left:v}=n.current.getBoundingClientRect(),L=i?P:k,R=((i?E:w)-(i?N:v))/L;(s==="rtl"||i)&&(R=1-R);let I=t.getPercentValue(R),K,V=t.values.findIndex(T=>I-T<0);if(V===0)K=V;else if(V===-1)K=t.values.length-1;else{let T=t.values[V-1],G=t.values[V];Math.abs(T-I)<Math.abs(G-I)?K=V-1:K=V}K>=0&&t.isThumbEditable(K)?($.preventDefault(),c.current=K,t.setFocusedThumb(K),b.current=C,t.setThumbDragging(c.current,!0),t.setThumbValue(K,I),l(window,"mouseup",y,!1),l(window,"touchend",y,!1),l(window,"pointerup",y,!1)):c.current=null}},y=$=>{var C,w;((w=$.pointerId)!==null&&w!==void 0?w:(C=$.changedTouches)===null||C===void 0?void 0:C[0].identifier)===b.current&&(c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null),d(window,"mouseup",y,!1),d(window,"touchend",y,!1),d(window,"pointerup",y,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var $;($=document.getElementById(gl(t,0)))===null||$===void 0||$.focus(),r0("keyboard")}),{labelProps:r,groupProps:{role:"group",...o},trackProps:X({onMouseDown($){$.button!==0||$.altKey||$.ctrlKey||$.metaKey||g($,void 0,$.clientX,$.clientY)},onPointerDown($){$.pointerType==="mouse"&&($.button!==0||$.altKey||$.ctrlKey||$.metaKey)||g($,$.pointerId,$.clientX,$.clientY)},onTouchStart($){g($,$.changedTouches[0].identifier,$.changedTouches[0].clientX,$.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map(($,C)=>gl(t,C)).join(" "),"aria-live":"off"}}}function XD(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:i,trackRef:a,inputRef:s,orientation:l=t.orientation,name:d}=e,c=e.isDisabled||t.isDisabled,f=l==="vertical",{direction:p}=Ve(),{addGlobalListener:h,removeGlobalListener:b}=hr(),g=Gu.get(t);var y;const{labelProps:$,fieldProps:C}=Do({...e,id:gl(t,n),"aria-labelledby":`${g.id} ${(y=e["aria-labelledby"])!==null&&y!==void 0?y:""}`.trim()}),w=t.values[n],E=u.useCallback(()=>{s.current&&Pt(s.current)},[s]),P=t.focusedThumb===n;u.useEffect(()=>{P&&E()},[P,E]);let k=p==="rtl",N=u.useRef(null),{keyboardProps:v}=zl({onKeyDown(V){let{getThumbMaxValue:T,getThumbMinValue:G,decrementThumb:Y,incrementThumb:H,setThumbValue:D,setThumbDragging:O,pageSize:W}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(V.key)){V.continuePropagation();return}switch(V.preventDefault(),O(n,!0),V.key){case"PageUp":H(n,W);break;case"PageDown":Y(n,W);break;case"Home":D(n,G(n));break;case"End":D(n,T(n));break}O(n,!1)}}),{moveProps:L}=i0({onMoveStart(){N.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:V,deltaY:T,pointerType:G,shiftKey:Y}){const{getThumbPercent:H,setThumbPercent:D,decrementThumb:O,incrementThumb:W,step:J,pageSize:Q}=t;let{width:re,height:z}=a.current.getBoundingClientRect(),q=f?z:re;if(N.current==null&&(N.current=H(n)*q),G==="keyboard")V>0&&k||V<0&&!k||T>0?O(n,Y?Q:J):W(n,Y?Q:J);else{let te=f?T:V;(f||k)&&(te=-te),N.current+=te,D(n,pt(N.current/q,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!c);const{focusableProps:F}=mr(X(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let A=u.useRef(void 0),B=V=>{E(),A.current=V,t.setThumbDragging(n,!0),h(window,"mouseup",R,!1),h(window,"touchend",R,!1),h(window,"pointerup",R,!1)},R=V=>{var T,G;((G=V.pointerId)!==null&&G!==void 0?G:(T=V.changedTouches)===null||T===void 0?void 0:T[0].identifier)===A.current&&(E(),t.setThumbDragging(n,!1),b(window,"mouseup",R,!1),b(window,"touchend",R,!1),b(window,"pointerup",R,!1))},I=t.getThumbPercent(n);(f||p==="rtl")&&(I=1-I);let K=c?{}:X(v,L,{onMouseDown:V=>{V.button!==0||V.altKey||V.ctrlKey||V.metaKey||B()},onPointerDown:V=>{V.button!==0||V.altKey||V.ctrlKey||V.metaKey||B(V.pointerId)},onTouchStart:V=>{B(V.changedTouches[0].identifier)}});return mo(s,w,V=>{t.setThumbValue(n,V)}),{inputProps:X(F,C,{type:"range",tabIndex:c?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:w,name:d,disabled:c,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":i||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[g["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[g["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:V=>{t.setThumbValue(n,parseFloat(V.target.value))}}),thumbProps:{...K,style:{position:"absolute",[f?"top":"left"]:`${I*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:c,isFocused:P}}function JD(e,t,n){let{labelProps:r,inputProps:o,isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}=pm(e,t,n);return{labelProps:r,inputProps:{...o,role:"switch",checked:i},isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}}const Oy=new WeakMap;function Yi(e,t,n){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Oy.get(e)}-${n}-${t}`}function QD(e,t,n){var r;let{key:o,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:s,selectedKey:l}=t,d=o===l,c=i||t.isDisabled||t.disabledKeys.has(o),{itemProps:f,isPressed:p}=Ku({selectionManager:s,key:o,ref:n,isDisabled:c,shouldSelectOnPressUp:a,linkBehavior:"selection"}),h=Yi(t,o,"tab"),b=Yi(t,o,"tabpanel"),{tabIndex:g}=f,y=t.collection.getItem(o),$=le(y==null?void 0:y.props,{isLink:!!(!(y==null||(r=y.props)===null||r===void 0)&&r.href),labelable:!0});return delete $.id,{tabProps:X($,f,{id:h,"aria-selected":d,"aria-disabled":c||void 0,"aria-controls":d?b:void 0,tabIndex:c?void 0:g,role:"tab"}),isSelected:d,isDisabled:c,isPressed:p}}function eE(e,t,n){let r=qx(n)?void 0:0;var o;const i=Yi(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=An({...e,id:i,"aria-labelledby":Yi(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:X(a,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class tE{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,n,r,o=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=o}}function nE(e,t,n){let{orientation:r="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:s}=t,{direction:l}=Ve(),d=u.useMemo(()=>new tE(i,l,r,s),[i,s,r,l]),{collectionProps:c}=Nu({ref:n,selectionManager:a,keyboardDelegate:d,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=_e();Oy.set(t,f);let p=An({...e,id:f});return{tabListProps:{...X(c,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function rE(e,t){let n=le(e,{labelable:!0}),{hoverProps:r}=Fe({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:X(n,r,{role:"tooltip"})}}function oE(e,t,n){let{isDisabled:r,trigger:o}=e,i=_e(),a=u.useRef(!1),s=u.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},d=$=>{!a.current&&!s.current&&t.close($)};u.useEffect(()=>{let $=C=>{n&&n.current&&C.key==="Escape"&&(C.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[n,t]);let c=()=>{o!=="focus"&&(Si()==="pointer"?a.current=!0:a.current=!1,l())},f=()=>{o!=="focus"&&(s.current=!1,a.current=!1,d())},p=()=>{s.current=!1,a.current=!1,d(!0)},h=()=>{lr()&&(s.current=!0,l())},b=()=>{s.current=!1,a.current=!1,d(!0)},{hoverProps:g}=Fe({isDisabled:r,onHoverStart:c,onHoverEnd:f}),{focusableProps:y}=mr({isDisabled:r,onFocus:h,onBlur:b},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...X(y,g,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:i}}}class vt extends Set{constructor(t,n,r){super(t),t instanceof vt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function iE(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Ny(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=u.useRef(!1),[,s]=u.useState(!1),l=u.useRef(null),d=u.useRef(null),[,c]=u.useState(null),f=u.useMemo(()=>ip(e.selectedKeys),[e.selectedKeys]),p=u.useMemo(()=>ip(e.defaultSelectedKeys,new vt),[e.defaultSelectedKeys]),[h,b]=bt(f,p,e.onSelectionChange),g=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,$]=u.useState(o);o==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&$("replace");let C=u.useRef(o);return u.useEffect(()=>{o!==C.current&&($(o),C.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return a.current},setFocused(w){a.current=w,s(w)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(w,E="first"){l.current=w,d.current=E,c(w)},selectedKeys:h,setSelectedKeys(w){(r||!iE(w,h))&&b(w)},disabledKeys:g,disabledBehavior:i}}function ip(e,t){return e?e==="all"?"all":new vt(e):t}class Ky{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&ws(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&ws(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new vt([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new vt(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?ws(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new vt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new vt([t],t,t):new vt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new vt;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(xD(ba(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new vt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class vl{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let a of i.childNodes)n(a)};for(let i of t)n(i);let r,o=0;for(let[i,a]of this.keyMap)r?(r.nextKey=i,a.prevKey=r.key):(this.firstKey=i,a.prevKey=void 0),a.type==="item"&&(a.index=o++),r=a,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function jy(e){let{filter:t}=e,n=Ny(e),r=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=u.useCallback(d=>t?new vl(t(d)):new vl(d),[t]),i=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=Xm(e,o,i),s=u.useMemo(()=>new Ky(a,n),[a,n]);const l=u.useRef(null);return u.useEffect(()=>{if(n.focusedKey!=null&&!a.getItem(n.focusedKey)){const d=l.current.getItem(n.focusedKey),c=[...l.current.getKeys()].map(g=>{const y=l.current.getItem(g);return y.type==="item"?y:null}).filter(g=>g!==null),f=[...a.getKeys()].map(g=>{const y=a.getItem(g);return y.type==="item"?y:null}).filter(g=>g!==null),p=c.length-f.length;let h=Math.min(p>1?Math.max(d.index-p+1,0):d.index,f.length-1),b;for(;h>=0;){if(!s.isDisabled(f[h].key)){b=f[h];break}h<f.length-1?h++:(h>d.index&&(h=d.index),h--)}n.setFocusedKey(b?b.key:null)}l.current=a},[a,s,n,n.focusedKey]),{collection:a,disabledKeys:r,selectionManager:s}}function _y(e){var t;let[n,r]=bt(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=u.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:a,selectionManager:s}=jy({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:d=>{var c;let f=(c=d.values().next().value)!==null&&c!==void 0?c:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),l=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}function ga(e){let[t,n]=bt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=u.useCallback(()=>{n(!0)},[n]),o=u.useCallback(()=>{n(!1)},[n]),i=u.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function aE(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[l,d]=u.useState(!1),[c,f]=u.useState(!1),[p,h]=u.useState(null),b=ue=>{e.onSelectionChange&&e.onSelectionChange(ue),ue===C&&(J(),D())};var g;let{collection:y,selectionManager:$,selectedKey:C,setSelectedKey:w,selectedItem:E,disabledKeys:P}=_y({...e,onSelectionChange:b,items:(g=e.items)!==null&&g!==void 0?g:e.defaultItems});var k,N;let[v,L]=bt(e.inputValue,(N=(k=e.defaultInputValue)!==null&&k!==void 0?k:(t=y.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&N!==void 0?N:"",e.onInputChange),F=y,A=u.useMemo(()=>e.items!=null||!r?y:sE(y,v,r),[y,v,r,e.items]),[B,R]=u.useState(A),I=u.useRef("focus"),V=ga({...e,onOpenChange:ue=>{e.onOpenChange&&e.onOpenChange(ue,ue?I.current:void 0),$.setFocused(ue),ue||$.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),T=(ue=null,fe)=>{let $e=fe==="manual"||fe==="focus"&&o==="focus";(i||A.size>0||$e&&F.size>0||e.items)&&($e&&!V.isOpen&&e.items===void 0&&d(!0),I.current=fe,h(ue),V.open())},G=(ue=null,fe)=>{let $e=fe==="manual"||fe==="focus"&&o==="focus";!(i||A.size>0||$e&&F.size>0||e.items)&&!V.isOpen||($e&&!V.isOpen&&e.items===void 0&&d(!0),V.isOpen||(I.current=fe),H(ue))},Y=u.useCallback(()=>{R(l?F:A)},[l,F,A]),H=u.useCallback((ue=null)=>{V.isOpen&&Y(),h(ue),V.toggle()},[V,Y]),D=u.useCallback(()=>{V.isOpen&&(Y(),V.close())},[V,Y]),[O,W]=u.useState(v),J=()=>{var ue,fe;let $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";W($e),L($e)};var Q,re;let z=u.useRef((re=(Q=e.selectedKey)!==null&&Q!==void 0?Q:e.defaultSelectedKey)!==null&&re!==void 0?re:null);var q;let te=u.useRef((q=(n=y.getItem(C))===null||n===void 0?void 0:n.textValue)!==null&&q!==void 0?q:"");u.useEffect(()=>{var ue;c&&(A.size>0||i)&&!V.isOpen&&v!==O&&o!=="manual"&&T(null,"input"),!l&&!i&&V.isOpen&&A.size===0&&D(),C!=null&&C!==z.current&&D(),v!==O&&($.setFocusedKey(null),d(!1),v===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&w(null)),C!==z.current&&(e.inputValue===void 0||e.selectedKey===void 0)?J():O!==v&&W(v);var fe;let $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";!c&&C!=null&&e.inputValue===void 0&&C===z.current&&te.current!==$e&&(W($e),L($e)),z.current=C,te.current=$e});let ae=$r({...e,value:u.useMemo(()=>({inputValue:v,selectedKey:C}),[v,C])}),se=()=>{a&&C==null?Be():Ue()},Be=()=>{z.current=null,w(null),D()},Ue=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var ue;e.onSelectionChange(C);var fe;let $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";W($e),D()}else J(),D()};const xt=()=>{if(a){var ue,fe;const $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";v===$e?Ue():Be()}else Ue()};let Kn=()=>{V.isOpen&&$.focusedKey!=null?C===$.focusedKey?Ue():w($.focusedKey):xt()},Zt=u.useRef(v),Xt=ue=>{ue?(Zt.current=v,o==="focus"&&T(null,"focus")):(s&&xt(),v!==Zt.current&&ae.commitValidation()),f(ue)},Dr=u.useMemo(()=>V.isOpen?l?F:A:B,[V.isOpen,F,A,l,B]);return{...ae,...V,focusStrategy:p,toggle:G,open:T,close:xt,selectionManager:$,selectedKey:C,setSelectedKey:w,disabledKeys:P,isFocused:c,setFocused:Xt,selectedItem:E,collection:Dr,inputValue:v,setInputValue:L,commit:Kn,revert:se}}function sE(e,t,n){return new vl(zy(e,e,t,n))}function zy(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let a=zy(e,ba(i,e),n,r);[...a].some(s=>s.type==="item")&&o.push({...i,childNodes:a})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}var Uy={};Uy={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Hy={};Hy={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Gy={};Gy={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var Wy={};Wy={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var Yy={};Yy={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var qy={};qy={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Zy={};Zy={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Xy={};Xy={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var Jy={};Jy={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var Qy={};Qy={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var e4={};e4={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var t4={};t4={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var n4={};n4={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var r4={};r4={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var o4={};o4={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var i4={};i4={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var a4={};a4={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var s4={};s4={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var l4={};l4={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var u4={};u4={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var c4={};c4={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var d4={};d4={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var f4={};f4={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var p4={};p4={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var h4={};h4={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var b4={};b4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var m4={};m4={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var g4={};g4={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var v4={};v4={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var y4={};y4={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var $4={};$4={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var x4={};x4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var w4={};w4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var C4={};C4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};function lE(e){return e&&e.__esModule?e.default:e}var D4={};D4={"ar-AE":Uy,"bg-BG":Hy,"cs-CZ":Gy,"da-DK":Wy,"de-DE":Yy,"el-GR":qy,"en-US":Zy,"es-ES":Xy,"et-EE":Jy,"fi-FI":Qy,"fr-FR":e4,"he-IL":t4,"hr-HR":n4,"hu-HU":r4,"it-IT":o4,"ja-JP":i4,"ko-KR":a4,"lt-LT":s4,"lv-LV":l4,"nb-NO":u4,"nl-NL":c4,"pl-PL":d4,"pt-BR":f4,"pt-PT":p4,"ro-RO":h4,"ru-RU":b4,"sk-SK":m4,"sl-SI":g4,"sr-SP":v4,"sv-SE":y4,"tr-TR":$4,"uk-UA":x4,"zh-CN":w4,"zh-TW":C4};const uE=new In(lE(D4));function cE(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function dE(e,t,n,r,o){let i=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=i||a||s,d=[];if(l){let c=cE(),f=In.getGlobalDictionaryForPackage("@react-stately/datepicker")||uE,p=new d0(c,f),h=new Yr(c,yl({},o)),b=h.resolvedOptions().timeZone;a&&d.push(p.format("rangeUnderflow",{minValue:h.format(t.toDate(b))})),i&&d.push(p.format("rangeOverflow",{maxValue:h.format(n.toDate(b))})),s&&d.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}const fE={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},pE={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function yl(e,t){e={...t.shouldForceLeadingZeros?pE:fE,...e};let r=t.granularity||"minute",o=Object.keys(e);var i;let a=o.indexOf((i=t.maxGranularity)!==null&&i!==void 0?i:"year");a<0&&(a=0);let s=o.indexOf(r);if(s<0&&(s=2),a>s)throw new Error("maxGranularity must be greater than granularity");let l=o.slice(a,s+1).reduce((c,f)=>(c[f]=e[f],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&a===0&&(l.era="short"),l}function E4(e,t){if(e===null)return null;if(e)return Xe(e,t)}function Or(e,t,n,r){if(e)return E4(e,n);let o=Xe(p0(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?y0(o):r?o:ln(o)}function hE(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,i]=u.useState([r,n]);e&&(o[0]!==r||o[1]!==n)&&i([r,n]),t||(t=e?r:o[0]);let a=e?n:o[1];return[t,a]}const bE=new In({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function mE(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?bE.getStringForLocale(e,n):"––"}const si={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},ap={year:5,month:2,day:7,hour:2,minute:15,second:15},gE={dayperiod:"dayPeriod"};function Wu(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:o,isReadOnly:i,isRequired:a,minValue:s,maxValue:l,isDateUnavailable:d}=e,c=e.value||e.defaultValue||e.placeholderValue,[f,p]=hE(c,e.granularity),h=p||"UTC";if(c&&!(f in c))throw new Error("Invalid granularity "+f+" for value "+c.toString());let b=u.useMemo(()=>new Yr(t),[t]),g=u.useMemo(()=>n(b.resolvedOptions().calendar),[n,b]),[y,$]=bt(e.value,e.defaultValue,e.onChange),C=u.useMemo(()=>E4(y,g),[y,g]),[w,E]=u.useState(()=>Or(e.placeholderValue,f,g,p)),P=C||w,k=g.identifier==="gregory"&&P.era==="BC",N=u.useMemo(()=>{var z;return{granularity:f,maxGranularity:(z=e.maxGranularity)!==null&&z!==void 0?z:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:k,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,r,k]),v=u.useMemo(()=>yl({},N),[N]),L=u.useMemo(()=>new Yr(t,v),[t,v]),F=u.useMemo(()=>L.resolvedOptions(),[L]),A=u.useMemo(()=>L.formatToParts(new Date).filter(z=>si[z.type]).reduce((z,q)=>(z[q.type]=!0,z),{}),[L]),[B,R]=u.useState(()=>e.value||e.defaultValue?{...A}:{}),I=u.useRef(),K=u.useRef(g.identifier);u.useEffect(()=>{g.identifier!==K.current&&(K.current=g.identifier,E(z=>Object.keys(B).length>0?Xe(z,g):Or(e.placeholderValue,f,g,p)))},[g,f,B,p,e.placeholderValue]),y&&Object.keys(B).length<Object.keys(A).length&&(B={...A},R(B)),y==null&&Object.keys(B).length===Object.keys(A).length&&(B={},R(B),E(Or(e.placeholderValue,f,g,p)));let V=C&&Object.keys(B).length>=Object.keys(A).length?C:w,T=z=>{if(e.isDisabled||e.isReadOnly)return;let q=Object.keys(B),te=Object.keys(A);z==null?($(null),E(Or(e.placeholderValue,f,g,p)),R({})):q.length>=te.length||q.length===te.length-1&&A.dayPeriod&&!B.dayPeriod&&I.current!=="dayPeriod"?(z=Xe(z,(c==null?void 0:c.calendar)||new nt),$(z)):E(z),I.current=null},G=u.useMemo(()=>V.toDate(h),[V,h]),Y=u.useMemo(()=>L.formatToParts(G).map(z=>{let q=si[z.type];z.type==="era"&&g.getEras().length===1&&(q=!1);let te=si[z.type]&&!B[z.type],ae=si[z.type]?mE(z.type,z.value,t):null;return{type:gE[z.type]||z.type,text:te?ae:z.value,...vE(V,z.type,F),isPlaceholder:te,placeholder:ae,isEditable:q}}),[G,B,L,F,V,g,t]);A.era&&B.year&&!B.era?(B.era=!0,R({...B})):!A.era&&B.era&&(delete B.era,R({...B}));let H=z=>{B[z]=!0,z==="year"&&A.era&&(B.era=!0),R({...B})},D=(z,q)=>{if(B[z])T(yE(V,z,q,F));else{H(z);let te=Object.keys(B),ae=Object.keys(A);(te.length>=ae.length||te.length===ae.length-1&&A.dayPeriod&&!B.dayPeriod)&&T(V)}},O=u.useMemo(()=>dE(y,s,l,d,N),[y,s,l,d,N]),W=$r({...e,value:y,builtinValidation:O}),J=W.displayValidation.isInvalid,Q=e.validationState||(J?"invalid":null);var re;return{...W,value:C,dateValue:G,calendar:g,setValue:T,segments:Y,dateFormatter:L,validationState:Q,isInvalid:J,granularity:f,maxGranularity:(re=e.maxGranularity)!==null&&re!==void 0?re:"year",isDisabled:o,isReadOnly:i,isRequired:a,increment(z){D(z,1)},decrement(z){D(z,-1)},incrementPage(z){D(z,ap[z]||1)},decrementPage(z){D(z,-(ap[z]||1))},setSegment(z,q){H(z),T($E(V,z,q,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let z=Object.keys(B),q=Object.keys(A);z.length===q.length-1&&A.dayPeriod&&!B.dayPeriod&&(B={...A},R(B),T(V.copy()))},clearSegment(z){delete B[z],I.current=z,R({...B});let q=Or(e.placeholderValue,f,g,p),te=V;if(z==="dayPeriod"&&"hour"in V&&"hour"in q){let ae=V.hour>=12,se=q.hour>=12;ae&&!se?te=V.set({hour:V.hour-12}):!ae&&se&&(te=V.set({hour:V.hour+12}))}else z in V&&(te=V.set({[z]:q[z]}));$(null),T(te)},formatValue(z){if(!C)return"";let q=yl(z,N);return new Yr(t,q).format(G)}}}function vE(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:o5(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:i5(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function yE(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return e.set({hour:i?o-12:o+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}}function $E(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return n>=12===i?e:e.set({hour:i?o-12:o+12})}case"hour":if(r.hour12){let i=e.hour>=12;!i&&n===12&&(n=0),i&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}function xE(e){let{placeholderValue:t=new oa,minValue:n,maxValue:r,granularity:o,validate:i}=e,[a,s]=bt(e.value,e.defaultValue,e.onChange),l=a||t,d=l&&"day"in l?l:void 0,c=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,f=u.useMemo(()=>{let C=l&&"timeZone"in l?l.timeZone:void 0;return(C||c)&&t?$0(Nr(t),C||c):Nr(t)},[t,l,c]),p=u.useMemo(()=>Nr(n,d),[n,d]),h=u.useMemo(()=>Nr(r,d),[r,d]),b=u.useMemo(()=>a&&"day"in a?fd(a):a,[a]),g=u.useMemo(()=>a==null?null:Nr(a),[a]);return{...Wu({...e,value:g,defaultValue:void 0,minValue:p,maxValue:h,onChange:C=>{s(d||c?C:C&&fd(C))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:f,createCalendar:()=>new nt,validate:u.useCallback(()=>i==null?void 0:i(a),[i,a])}),timeValue:b}}function Nr(e,t=r5(Wl())){return e?"day"in e?e:ln(t,e):null}function wE(e,t){let{triggerKey:n}=e,{UNSTABLE_expandedKeysStack:r,UNSTABLE_openSubmenu:o,UNSTABLE_closeSubmenu:i,close:a}=t,[s]=u.useState(r==null?void 0:r.length),l=u.useMemo(()=>r[s]===n,[r,n,s]),[d,c]=u.useState(null),f=u.useCallback((b=null)=>{c(b),o(n,s)},[o,s,n]),p=u.useCallback(()=>{c(null),i(n,s)},[i,s,n]),h=u.useCallback((b=null)=>{c(b),l?p():f(b)},[p,f,l]);return u.useMemo(()=>({focusStrategy:d,isOpen:l,open:f,close:p,closeAll:a,submenuLevel:s,setOpen:()=>{},toggle:h}),[l,f,p,a,d,h,s])}function CE(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:i,defaultValue:a=NaN,onChange:s,locale:l,isDisabled:d,isReadOnly:c}=e;i===null&&(i=NaN),i!==void 0&&!isNaN(i)&&(r!==void 0&&!isNaN(r)?i=Qe(i,t,n,r):i=pt(i,t,n)),isNaN(a)||(r!==void 0&&!isNaN(r)?a=Qe(a,t,n,r):a=pt(a,t,n));let[f,p]=bt(i,isNaN(a)?NaN:a,s),[h,b]=u.useState(()=>isNaN(f)?"":new Oi(l,o).format(f)),g=u.useMemo(()=>new nu(l,o),[l,o]),y=u.useMemo(()=>g.getNumberingSystem(h),[g,h]),$=u.useMemo(()=>new Oi(l,{...o,numberingSystem:y}),[l,o,y]),C=u.useMemo(()=>$.resolvedOptions(),[$]),w=u.useCallback(O=>isNaN(O)||O===null?"":$.format(O),[$]),E=$r({...e,value:f}),P=r!==void 0&&!isNaN(r)?r:1;C.style==="percent"&&(r===void 0||isNaN(r))&&(P=.01);let[k,N]=u.useState(f),[v,L]=u.useState(l),[F,A]=u.useState(o);(!Object.is(f,k)||l!==v||o!==F)&&(b(w(f)),N(f),L(l),A(o));let B=u.useMemo(()=>g.parse(h),[g,h]),R=()=>{if(!h.length){p(NaN),b(i===void 0?"":w(f));return}if(isNaN(B)){b(w(f));return}let O;r===void 0||isNaN(r)?O=pt(B,t,n):O=Qe(B,t,n,r),O=g.parse(w(O)),p(O),b(w(i===void 0?O:f))},I=(O,W=0)=>{let J=B;if(isNaN(J)){let Q=isNaN(W)?0:W;return Qe(Q,t,n,P)}else{let Q=Qe(J,t,n,P);return O==="+"&&Q>J||O==="-"&&Q<J?Q:Qe(Ds(O,J,P),t,n,P)}},K=()=>{let O=I("+",t);O===f&&b(w(O)),p(O),E.commitValidation()},V=()=>{let O=I("-",n);O===f&&b(w(O)),p(O),E.commitValidation()},T=()=>{n!=null&&(p(Qe(n,t,n,P)),E.commitValidation())},G=()=>{t!=null&&(p(t),E.commitValidation())},Y=u.useMemo(()=>!d&&!c&&(isNaN(B)||n===void 0||isNaN(n)||Qe(B,t,n,P)>B||Ds("+",B,P)<=n),[d,c,t,n,P,B]),H=u.useMemo(()=>!d&&!c&&(isNaN(B)||t===void 0||isNaN(t)||Qe(B,t,n,P)<B||Ds("-",B,P)>=t),[d,c,t,n,P,B]);return{...E,validate:O=>g.isValidPartialNumber(O,t,n),increment:K,incrementToMax:T,decrement:V,decrementToMin:G,canIncrement:Y,canDecrement:H,minValue:t,maxValue:n,numberValue:B,setNumberValue:p,setInputValue:b,inputValue:h,commit:R}}function Ds(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),r=e==="+"?t+n:t-n,r/=l}return r}const DE=0,EE=100,PE=1;function SE(e){const{isDisabled:t=!1,minValue:n=DE,maxValue:r=EE,numberFormatter:o,step:i=PE,orientation:a="horizontal"}=e;let s=u.useMemo(()=>{let D=(r-n)/10;return D=Qe(D,0,D+i,i),Math.max(D,i)},[i,r,n]),l=u.useCallback(D=>D==null?void 0:D.map((O,W)=>{let J=W===0?n:O[W-1],Q=W===D.length-1?r:O[W+1];return Qe(O,J,Q,i)}),[n,r,i]),d=u.useMemo(()=>l(lp(e.value)),[e.value]),c=u.useMemo(()=>{var D;return l((D=lp(e.defaultValue))!==null&&D!==void 0?D:[n])},[e.defaultValue,n]),f=up(e.value,e.defaultValue,e.onChange),p=up(e.value,e.defaultValue,e.onChangeEnd);const[h,b]=bt(d,c,f),[g,y]=u.useState(new Array(h.length).fill(!1)),$=u.useRef(new Array(h.length).fill(!0)),[C,w]=u.useState(void 0),E=u.useRef(h),P=u.useRef(g);let k=D=>{E.current=D,b(D)},N=D=>{P.current=D,y(D)};function v(D){return(D-n)/(r-n)}function L(D){return D===0?n:h[D-1]}function F(D){return D===h.length-1?r:h[D+1]}function A(D){return $.current[D]}function B(D,O){$.current[D]=O}function R(D,O){if(t||!A(D))return;const W=L(D),J=F(D);O=Qe(O,W,J,i);let Q=sp(E.current,D,O);k(Q)}function I(D,O){if(t||!A(D))return;O&&(E.current=h);const W=P.current[D];P.current=sp(P.current,D,O),N(P.current),p&&W&&!P.current.some(Boolean)&&p(E.current)}function K(D){return o.format(D)}function V(D,O){R(D,G(O))}function T(D){return Math.round((D-n)/i)*i+n}function G(D){const O=D*(r-n)+n;return pt(T(O),n,r)}function Y(D,O=1){let W=Math.max(O,i);R(D,Qe(h[D]+W,n,r,i))}function H(D,O=1){let W=Math.max(O,i);R(D,Qe(h[D]-W,n,r,i))}return{values:h,getThumbValue:D=>h[D],setThumbValue:R,setThumbPercent:V,isThumbDragging:D=>g[D],setThumbDragging:I,focusedThumb:C,setFocusedThumb:w,getThumbPercent:D=>v(h[D]),getValuePercent:v,getThumbValueLabel:D=>K(h[D]),getFormattedValue:K,getThumbMinValue:L,getThumbMaxValue:F,getPercentValue:G,isThumbEditable:A,setThumbEditable:B,incrementThumb:Y,decrementThumb:H,step:i,pageSize:s,orientation:a,isDisabled:t}}function sp(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function lp(e){if(e!=null)return Array.isArray(e)?e:[e]}function up(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}function TE(e){var t;let n=_y({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:cp(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:r,collection:o,selectedKey:i}=n,a=u.useRef(i);return u.useEffect(()=>{let s=i;(r.isEmpty||!o.getItem(s))&&(s=cp(o,n.disabledKeys),s!=null&&r.setSelectedKeys([s])),(s!=null&&r.focusedKey==null||!r.isFocused&&s!==a.current)&&r.setFocusedKey(s),a.current=s}),{...n,isDisabled:e.isDisabled||!1}}function cp(e,t){let n=null;if(e){for(n=e.getFirstKey();t.has(n)&&n!==e.getLastKey();)n=e.getKeyAfter(n);t.has(n)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const AE=1500,dp=500;let bn={},ME=0,Kr=!1,Ft=null,mn=null;function kE(e={}){let{delay:t=AE,closeDelay:n=dp}=e,{isOpen:r,open:o,close:i}=ga(e),a=u.useMemo(()=>`${++ME}`,[]),s=u.useRef(),l=()=>{bn[a]=f},d=()=>{for(let h in bn)h!==a&&(bn[h](!0),delete bn[h])},c=()=>{clearTimeout(s.current),s.current=null,d(),l(),Kr=!0,o(),Ft&&(clearTimeout(Ft),Ft=null),mn&&(clearTimeout(mn),mn=null)},f=h=>{h||n<=0?(clearTimeout(s.current),s.current=null,i()):s.current||(s.current=setTimeout(()=>{s.current=null,i()},n)),Ft&&(clearTimeout(Ft),Ft=null),Kr&&(mn&&clearTimeout(mn),mn=setTimeout(()=>{delete bn[a],mn=null,Kr=!1},Math.max(dp,n)))},p=()=>{d(),l(),!r&&!Ft&&!Kr?Ft=setTimeout(()=>{Ft=null,Kr=!0,c()},t):r||c()};return u.useEffect(()=>()=>{clearTimeout(s.current),bn[a]&&delete bn[a]},[a]),{isOpen:r,open:h=>{!h&&t>0&&!s.current?p():c()},close:f}}class RE{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.iterable=t,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of t)r(a);let o,i=0;for(let[a,s]of this.keyMap)o?(o.nextKey=a,s.prevKey=o.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=i++),o=s,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function FE(e){let[t,n]=bt(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=Ny(e),o=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=Xm(e,u.useCallback(s=>new RE(s,{expandedKeys:t}),[t]),null);return u.useEffect(()=>{r.focusedKey!=null&&!i.getItem(r.focusedKey)&&r.setFocusedKey(null)},[i,r.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:o,toggleKey:s=>{n(BE(t,s))},setExpandedKeys:n,selectionManager:new Ky(i,r)}}function BE(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var $l={exports:{}},Es={};/**
164
164
  * @license React
165
165
  * use-sync-external-store-shim.production.min.js
166
166
  *
@@ -168,7 +168,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
168
168
  *
169
169
  * This source code is licensed under the MIT license found in the
170
170
  * LICENSE file in the root directory of this source tree.
171
- */var hp;function OE(){if(hp)return Ss;hp=1;var e=B.default;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(f,p){var h=p(),b=r({inst:{value:h,getSnapshot:p}}),g=b[0].inst,y=b[1];return i(function(){g.value=h,g.getSnapshot=p,l(g)&&y({inst:g})},[f,h,p]),o(function(){return l(g)&&y({inst:g}),f(function(){l(g)&&y({inst:g})})},[f]),a(h),h}function l(f){var p=f.getSnapshot;f=f.value;try{var h=p();return!n(f,h)}catch{return!0}}function c(f,p){return p()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Ss.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Ss}var Ts={};/**
171
+ */var fp;function IE(){if(fp)return Es;fp=1;var e=u;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(f,p){var h=p(),b=r({inst:{value:h,getSnapshot:p}}),g=b[0].inst,y=b[1];return i(function(){g.value=h,g.getSnapshot=p,l(g)&&y({inst:g})},[f,h,p]),o(function(){return l(g)&&y({inst:g}),f(function(){l(g)&&y({inst:g})})},[f]),a(h),h}function l(f){var p=f.getSnapshot;f=f.value;try{var h=p();return!n(f,h)}catch{return!0}}function d(f,p){return p()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return Es.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Es}var Ps={};/**
172
172
  * @license React
173
173
  * use-sync-external-store-shim.development.js
174
174
  *
@@ -176,17 +176,17 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
176
176
  *
177
177
  * This source code is licensed under the MIT license found in the
178
178
  * LICENSE file in the root directory of this source tree.
179
- */var bp;function NE(){return bp||(bp=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=B.default,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var E=arguments.length,P=new Array(E>1?E-1:0),k=1;k<E;k++)P[k-1]=arguments[k];r("error",w,P)}}function r(w,E,P){{var k=t.ReactDebugCurrentFrame,K=k.getStackAddendum();K!==""&&(E+="%s",P=P.concat([K]));var v=P.map(function(V){return String(V)});v.unshift("Warning: "+E),Function.prototype.apply.call(console[w],console,v)}}function o(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue,u=!1,f=!1;function p(w,E,P){u||e.startTransition!==void 0&&(u=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var k=E();if(!f){var K=E();i(k,K)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var v=a({inst:{value:k,getSnapshot:E}}),V=v[0].inst,F=v[1];return l(function(){V.value=k,V.getSnapshot=E,h(V)&&F({inst:V})},[w,k,E]),s(function(){h(V)&&F({inst:V});var A=function(){h(V)&&F({inst:V})};return w(A)},[w]),c(k),k}function h(w){var E=w.getSnapshot,P=w.value;try{var k=E();return!i(P,k)}catch{return!0}}function b(w,E,P){return E()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,$=y?b:p,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:$;Ts.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ts}process.env.NODE_ENV==="production"?wl.exports=OE():wl.exports=NE();var KE=wl.exports;class Zu{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Zu(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=n}}class A4{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this)return;this.ownerDocument.startTransaction();let n=t.nextSibling;for(;n;)n.index--,n=n.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class fo extends A4{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof fo?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof fo?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var c;i.lastChildKey=(c=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&c!==void 0?c:null}setProps(t,n,r){let o=this.ownerDocument.getMutableNode(this),{value:i,textValue:a,id:s,...l}=t;if(l.ref=n,o.props=l,o.rendered=r,o.value=i,o.textValue=a||(typeof r=="string"?r:"")||t["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Zu(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class jE{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class _E extends A4{get isConnected(){return!0}createElement(t){return new fo(t,this)}getMutableNode(t){let n=t.node;return this.mutatedNodes.has(t)||(n=t.node.clone(),this.mutatedNodes.add(t),t.node=n),this.markDirty(t),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let n=this.getMutableCollection();if(!n.getItem(t.node.key)){n.addNode(t.node);for(let r of t)this.addNode(r)}this.markDirty(t)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof fo&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let i=this.getMutableCollection();for(let a of this.mutatedNodes)a.isConnected&&i.addNode(a.node);var r,o;i.commit((r=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function xr(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=d.useMemo(()=>new WeakMap,i);return d.useMemo(()=>{if(n&&typeof t=="function"){let c=[];for(let u of n){let f=a.get(u);if(!f){f=t(u);var s,l;let p=(l=(s=f.props.id)!==null&&s!==void 0?s:u.key)!==null&&l!==void 0?l:u.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=d.cloneElement(f,o?{key:p,id:p,value:u}:{key:p}),a.set(u,f)}c.push(f)}return c}else if(typeof t!="function")return t},[t,n,a,r,o])}function zE(e){return xr({...e,addIdAndValue:!0})}const M4=d.createContext(!1);function Xu(e,t){let{collection:n,document:r}=Ju(t);return{portal:k4(e,r),collection:n}}function UE(e,t,n){let r=kt(),o=d.useRef(r);o.current=r;let i=d.useCallback(()=>o.current?n():t(),[t,n]);return KE.useSyncExternalStore(e,i)}const HE=typeof B.default.useSyncExternalStore=="function"?B.default.useSyncExternalStore:UE;function Ju(e){let t=d.useMemo(()=>new _E(e||new jE),[e]),n=d.useCallback(a=>t.subscribe(a),[t]),r=d.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=d.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:HE(n,r,o),document:t}}const Cl=d.createContext(null),So=d.createContext(null);function k4(e,t){let n=d.useContext(So),r=t??n,o=zE(e),i=d.useMemo(()=>B.default.createElement(M4.Provider,{value:!0},o),[o]);return kt()?B.default.createElement(Cl.Provider,{value:r},i):bo.createPortal(i,r)}function R4(e){return B.default.createElement(B.default.Fragment,null,k4(e))}function F4(e,t,n){let r=d.useContext(M4);var o;return r?(o=$a(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:B.default.createElement(B.default.Fragment,null):null}function GE(e,t,n){return d.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function $a(e,t,n,r,o){let i=GE(t,n,r),a=d.useContext(Cl);if(a){let s=a.ownerDocument.nodesByProps.get(t);return s||(s=a.ownerDocument.createElement(e),s.setProps(t,n,r),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,s)),o?B.default.createElement(Cl.Provider,{value:s},o):null}return B.default.createElement(e,{ref:i},o)}const WE=Symbol("callback"),Dl=Symbol("default");function Ke({values:e,children:t}){for(let[n,r]of e)t=B.default.createElement(n.Provider,{value:r},t);return t}function be(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,values:a}=e;return d.useMemo(()=>{let s,l,c;return typeof t=="function"?s=t(a):s=t,typeof n=="function"?l=n(a):l=n,typeof r=="function"?c=r(a):r==null?c=i:c=r,{className:s??o,style:l,children:c,"data-rac":""}},[t,n,r,o,i,a])}function xa(e,t){let n=d.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`));if(!t&&!n.slots[Dl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||Dl;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function ve(e,t,n){let r=xa(n,e.slot)||{},{ref:o,[WE]:i,...a}=r,s=vt(d.useMemo(()=>ea(t,o),[t,o])),l=J(a,e);return"style"in a&&a.style&&typeof a.style=="object"&&"style"in e&&e.style&&typeof e.style=="object"&&(l.style={...a.style,...e.style}),d.useEffect(()=>{i&&i(e)},[i,e]),[l,s]}function xt(){let[e,t]=d.useState(!0),n=d.useRef(!1),r=d.useCallback(o=>{n.current=!0,t(!!o)},[]);return me(()=>{n.current||t(!1)},[]),[r,e]}function Qu(e,t=!0){let[n,r]=d.useState(!0);return B4(e,n&&t,d.useCallback(()=>r(!1),[])),n&&t}function El(e,t){let[n,r]=d.useState(!1),[o,i]=d.useState("idle");return!t&&e.current&&o==="idle"&&(n=!0,r(!0),i("exiting")),!e.current&&o==="exited"&&i("idle"),B4(e,n,d.useCallback(()=>{i("exited"),r(!1)},[])),n}function B4(e,t,n){let r=d.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),me(()=>{if(t&&e.current){let o=window.getComputedStyle(e.current);if(o.animationName&&o.animationName!=="none"&&o.animation!==r.current){let i=s=>{s.target===e.current&&(a.removeEventListener("animationend",i),mo.default.flushSync(()=>{n()}))},a=e.current;return a.addEventListener("animationend",i),()=>{a.removeEventListener("animationend",i)}}else n()}},[e,t,n])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const po=d.createContext(!1),YE=typeof DocumentFragment<"u"?new DocumentFragment:null;function I4(e){let t=d.useContext(po),n=kt();if(t)return B.default.createElement(B.default.Fragment,null,e.children);let r=B.default.createElement(po.Provider,{value:!0},e.children);return n?B.default.createElement("template",{"data-react-aria-hidden":!0},r):mo.default.createPortal(r,YE)}function wa(e){let t=(n,r)=>d.useContext(po)?null:e(n,r);return t.displayName=e.displayName||e.name,B.default.forwardRef(t)}function Fn(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const L4=d.createContext(null);function qE(e,t){[e,t]=ve(e,t,L4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=sD({...e,elementType:n},t),{hoverProps:i,isHovered:a}=Ie(e),{focusProps:s,isFocused:l,isFocusVisible:c}=Ze(),u=be({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:a,isFocused:l,isFocusVisible:c}});return B.default.createElement(n,{ref:t,slot:e.slot||void 0,...J(u,r,i,s),"data-focused":l||void 0,"data-hovered":a||void 0,"data-pressed":o||void 0,"data-focus-visible":c||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},u.children)}const Ca=d.forwardRef(qE),ZE=d.createContext(null);function XE(e,t){[e,t]=ve(e,t,ZE);let{portal:n,collection:r}=Xu(e);return B.default.createElement(B.default.Fragment,null,n,B.default.createElement(JE,{props:e,collection:r,breadcrumbsRef:t}))}function JE({props:e,collection:t,breadcrumbsRef:n}){var r;return B.default.createElement("ol",{ref:n,...ue(e,{labelable:!0}),slot:e.slot||void 0,style:e.style,className:(r=e.className)!==null&&r!==void 0?r:"react-aria-Breadcrumbs"},[...t].map((o,i)=>B.default.createElement(t8,{key:o.key,node:o,isCurrent:i===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const QE=d.forwardRef(XE);function e8(e,t){return $a("item",e,t,e.children)}const V4=d.forwardRef(e8);function t8({node:e,isCurrent:t,isDisabled:n,onAction:r}){let o={"aria-current":t?"page":null,isDisabled:n||t,onPress:()=>r==null?void 0:r(e.key)};var i;return B.default.createElement("li",{...ue(e.props),ref:e.props.ref,style:e.props.style,className:(i=e.props.className)!==null&&i!==void 0?i:"react-aria-Breadcrumb"},B.default.createElement(L4.Provider,{value:o},e.rendered))}const n8=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),ec=d.createContext({});function r8(e,t){[e,t]=ve(e,t,ec);let n=e,{buttonProps:r,isPressed:o}=fm(e,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ze(e),{hoverProps:l,isHovered:c}=Ie(e),u=be({...e,values:{isHovered:c,isPressed:o,isFocused:a,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return B.default.createElement("button",{...ue(e,{propNames:n8}),...J(r,i,l),...u,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":c||void 0,"data-focused":a||void 0,"data-focus-visible":s||void 0})}const O4=wa(r8),o8=d.createContext({}),qt=d.createContext({});function i8(e,t){[e,t]=ve(e,t,qt);let{elementType:n="span",...r}=e;return B.default.createElement(n,{className:"react-aria-Text",...r,ref:t})}const wr=d.forwardRef(i8),Vn=d.createContext(null);function a8(e,t){let n=d.useContext(Vn);return n!=null&&n.isInvalid?B.default.createElement(s8,{...e,ref:t}):null}const To=d.forwardRef(a8),s8=d.forwardRef((e,t)=>{let n=d.useContext(Vn),r=be({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return B.default.createElement(wr,{slot:"errorMessage",...r,ref:t})}),Rt=d.createContext({});function l8(e,t){[e,t]=ve(e,t,Rt);let{elementType:n="label",...r}=e;return B.default.createElement(n,{className:"react-aria-Label",...r,ref:t})}const Zt=wa(l8),u8=d.createContext(null),c8=d.createContext(null);function d8(e,t){[e,t]=ve(e,t,c8);let n=d.useRef(null),r=d.useContext(u8);var o;let{labelProps:i,inputProps:a,isSelected:s,isDisabled:l,isReadOnly:c,isPressed:u,isInvalid:f}=r?vD({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):vm({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},ma(e),n),{isFocused:p,isFocusVisible:h,focusProps:b}=Ze(),g=l||c,{hoverProps:y,isHovered:$}=Ie({...e,isDisabled:g}),C=be({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:s,isIndeterminate:e.isIndeterminate||!1,isPressed:u,isHovered:$,isFocused:p,isFocusVisible:h,isDisabled:l,isReadOnly:c,isInvalid:f,isRequired:e.isRequired||!1}}),w=ue(e);return delete w.id,B.default.createElement("label",{...J(w,i,y,C),ref:t,slot:e.slot||void 0,"data-selected":s||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":u||void 0,"data-hovered":$||void 0,"data-focused":p||void 0,"data-focus-visible":h||void 0,"data-disabled":l||void 0,"data-readonly":c||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},B.default.createElement(sa,{elementType:"span"},B.default.createElement("input",{...J(a,b),ref:n})),C.children)}const f8=d.forwardRef(d8),Cr=d.createContext({});function p8(e,t){[e,t]=ve(e,t,Cr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:i,onHoverEnd:a,...s}=e,{hoverProps:l,isHovered:c}=Ie({onHoverStart:o,onHoverChange:i,onHoverEnd:a,isDisabled:n}),{isFocused:u,isFocusVisible:f,focusProps:p}=Ze({within:!0});n??(n=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let h=be({...e,values:{isHovered:c,isFocusWithin:u,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var b,g;return B.default.createElement("div",{...J(s,p,l),...h,ref:t,role:(b=e.role)!==null&&b!==void 0?b:"group",slot:(g=e.slot)!==null&&g!==void 0?g:void 0,"data-focus-within":u||void 0,"data-hovered":c||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},h.children)}const tc=d.forwardRef(p8),On=d.createContext({});let h8=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function b8(e,t){[e,t]=ve(e,t,On);let{hoverProps:n,isHovered:r}=Ie(e),{isFocused:o,isFocusVisible:i,focusProps:a}=Ze({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",l=be({...e,values:{isHovered:r,isFocused:o,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return B.default.createElement("input",{...J(h8(e),a,n),...l,ref:t,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":i||void 0,"data-invalid":s||void 0})}const Ao=wa(b8),N4=d.createContext(null);function m8(e,t){let{render:n}=d.useContext(N4);return B.default.createElement(B.default.Fragment,null,n(e,t))}const g8=d.forwardRef(m8),nc=d.createContext({}),v8=d.createContext({});function y8(e,t){let[n,r]=ve(e,t,v8),o=F4("header",e,t);return o||B.default.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const K4=d.forwardRef(y8),rc=d.createContext({});function $8(e,t){let[n,r]=ve(e,t,rc),{elementType:o,orientation:i,style:a,className:s}=n,l=o||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:c}=Ky({elementType:o,orientation:i}),u=F4("separator",e,t);return u||B.default.createElement(l,{...ue(n),...c,style:a,className:s??"react-aria-Separator",ref:r,slot:n.slot||void 0})}const j4=d.forwardRef($8),Da=d.createContext(null),Mo=d.createContext(null);function x8(e,t){[e,t]=ve(e,t,Da);let n=d.useContext(po),r=d.useContext(Mo);return d.useContext(So)?B.default.createElement(R4,e):r?n?null:B.default.createElement(_4,{state:r,props:e,listBoxRef:t}):B.default.createElement(w8,{props:e,listBoxRef:t})}function w8({props:e,listBoxRef:t}){let{portal:n,collection:r}=Xu(e);e={...e,collection:r,children:null,items:null};let o=Uy(e);return B.default.createElement(B.default.Fragment,null,n,B.default.createElement(_4,{state:o,props:e,listBoxRef:t}))}const C8=d.forwardRef(x8);function _4({state:e,props:t,listBoxRef:n}){let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical"}=t,{collection:a,selectionManager:s}=e,l=!!(r!=null&&r.useDraggableCollectionState),c=!!(r!=null&&r.useDroppableCollectionState),{direction:u}=Ne(),{disabledBehavior:f,disabledKeys:p}=s,h=iu({usage:"search",sensitivity:"base"}),b=d.useMemo(()=>t.keyboardDelegate||new zu({collection:a,collator:h,ref:n,disabledKeys:f==="selection"?new Set:p,layout:o,orientation:i,direction:u}),[a,h,n,f,p,i,u,t.keyboardDelegate,o]),{listBoxProps:g}=SD({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:b},e,n),y=xr({items:a,children:j=>{switch(j.type){case"section":return B.default.createElement(D8,{section:j});case"separator":return B.default.createElement(j4,j.props);case"item":return B.default.createElement(z4,{item:j});default:throw new Error("Unsupported node type in Menu: "+j.type)}}}),$=d.useRef(l),C=d.useRef(c);d.useEffect(()=>{$.current!==l&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,c]);let w,E,P,k=!1,K=null,v=d.useRef(null);if(l&&r){w=r.useDraggableCollectionState({collection:a,selectionManager:s,preview:r.renderDragPreview?v:void 0}),r.useDraggableCollection({},w,n);let j=r.DragPreview;K=r.renderDragPreview?B.default.createElement(j,{ref:v},r.renderDragPreview):null}if(c&&r){E=r.useDroppableCollectionState({collection:a,selectionManager:s});let j=r.dropTargetDelegate||new r.ListDropTargetDelegate(a,n,{orientation:i,layout:o,direction:u});P=r.useDroppableCollection({keyboardDelegate:b,dropTargetDelegate:j},E,n),k=E.isDropTarget({type:"root"})}let{focusProps:V,isFocused:F,isFocusVisible:A}=Ze(),I={isDropTarget:k,isEmpty:e.collection.size===0,isFocused:F,isFocusVisible:A,layout:t.layout||"stack",state:e},R=be({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:I}),L=null;return e.collection.size===0&&t.renderEmptyState&&(L=B.default.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(I))),B.default.createElement(Gl,null,B.default.createElement("div",{...ue(t),...J(g,V,P==null?void 0:P.collectionProps),...R,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":k||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":F||void 0,"data-focus-visible":A||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},B.default.createElement(Ke,{values:[[Da,t],[Mo,e],[nc,{dragAndDropHooks:r,dragState:w,dropState:E}],[rc,{elementType:"div"}],[N4,{render:T8}]]},y),L,K))}function D8({section:e,className:t,style:n}){var r,o;let i=d.useContext(Mo),[a,s]=xt();var l;let{headingProps:c,groupProps:u}=AD({heading:s,"aria-label":(l=e.props["aria-label"])!==null&&l!==void 0?l:void 0}),f=xr({items:i.collection.getChildren(e.key),children:p=>{switch(p.type){case"header":return B.default.createElement(E8,{item:p,headingProps:c,headingRef:a});case"item":return B.default.createElement(z4,{item:p});default:throw new Error("Unsupported element type in Section: "+p.type)}}});return B.default.createElement("section",{...ue(e.props),...u,className:t||((r=e.props)===null||r===void 0?void 0:r.className)||"react-aria-Section",style:n||((o=e.props)===null||o===void 0?void 0:o.style),ref:e.props.ref},f)}function E8({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return B.default.createElement(K4,{...t,...o,ref:ea(n,r)},e.rendered)}function P8(e,t){return $a("item",e,t,e.children)}const S8=d.forwardRef(P8);function z4({item:e}){var t;let n=vt(e.props.ref),r=d.useContext(Mo),{dragAndDropHooks:o,dragState:i,dropState:a}=d.useContext(nc),{optionProps:s,labelProps:l,descriptionProps:c,...u}=TD({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Ie({isDisabled:!u.allowsSelection&&!u.hasAction}),h=null;i&&o&&(h=o.useDraggableItem({key:e.key},i));let b=null;a&&o&&(b=o.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},a,n));let g=e.props,y=i&&i.isDragging(e.key),$=be({...g,id:void 0,children:e.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...u,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!i,isDragging:y,isDropTarget:b==null?void 0:b.isDropTarget}}),C=(o==null?void 0:o.renderDropIndicator)||(E=>B.default.createElement(g8,{target:E}));d.useEffect(()=>{e.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[e.textValue]);let w=g.href?"a":"div";return B.default.createElement(B.default.Fragment,null,(o==null?void 0:o.useDropIndicator)&&C({type:"item",key:e.key,dropPosition:"before"}),B.default.createElement(w,{...J(s,f,h==null?void 0:h.dragProps,b==null?void 0:b.dropProps),...$,ref:n,"data-allows-dragging":!!i||void 0,"data-selected":u.isSelected||void 0,"data-disabled":u.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":u.isFocusVisible||void 0,"data-pressed":u.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},B.default.createElement(Ke,{values:[[qt,{slots:{label:l,description:c}}]]},$.children)),(o==null?void 0:o.useDropIndicator)&&r.collection.getKeyAfter(e.key)==null&&C({type:"item",key:e.key,dropPosition:"after"}))}function T8(e,t){t=vt(t);let{dragAndDropHooks:n,dropState:r}=d.useContext(nc),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:B.default.createElement(M8,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function A8(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=be({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return B.default.createElement("div",{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0})}const M8=d.forwardRef(A8),k8=d.createContext({placement:"bottom"}),dr=d.createContext(null);function R8(e,t){[e,t]=ve(e,t,dr);let n=d.useContext(Nn),r=ya(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=El(t,o.isOpen)||e.isExiting||!1;if(d.useContext(po)){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1})),B.default.createElement(B.default.Fragment,null,s)}return o&&!o.isOpen&&!i?null:B.default.createElement(F8,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i})}const U4=d.forwardRef(R8);function F8({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:i,underlayProps:a,arrowProps:s,placement:l}=M2({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),c=r.popoverRef,u=Qu(c,!!l)||r.isEntering||!1,f=be({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:l,isEntering:u,isExiting:t}}),p={...i.style,...f.style};return B.default.createElement(Fh,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&B.default.createElement("div",{"data-testid":"underlay",...a,style:{position:"fixed",inset:0}}),B.default.createElement("div",{...J(ue(r),i),...f,ref:c,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":l,"data-entering":u||void 0,"data-exiting":t||void 0},!r.isNonModal&&B.default.createElement(tl,{onDismiss:e.close}),B.default.createElement(k8.Provider,{value:{...s,placement:l}},f.children),B.default.createElement(tl,{onDismiss:e.close})))}const B8=d.createContext(null),Nn=d.createContext(null);function I8(e,t){let n=e["aria-labelledby"];[e,t]=ve(e,t,B8);let{dialogProps:r,titleProps:o}=qD({...e,"aria-labelledby":n},t),i=d.useContext(Nn),a=e.children;typeof a=="function"&&(a=a({close:(i==null?void 0:i.close)||(()=>{})})),!r["aria-label"]&&!r["aria-labelledby"]&&(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));var s;return B.default.createElement("section",{...ue(e),...r,ref:t,slot:e.slot||void 0,style:e.style,className:(s=e.className)!==null&&s!==void 0?s:"react-aria-Dialog"},B.default.createElement(Ke,{values:[[o8,{slots:{[Dl]:{},title:{...o,level:2}}}]]},a))}const H4=d.forwardRef(I8),L8=d.createContext(null),V8=d.createContext(null);function O8(e,t){[e,t]=ve(e,t,L8);let{collection:n,document:r}=Ju(),{children:o,isDisabled:i=!1,isInvalid:a=!1,isRequired:s=!1}=e;o=d.useMemo(()=>typeof o=="function"?o({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:s}):o,[o,i,a,s]);var l;return B.default.createElement(B.default.Fragment,null,B.default.createElement(I4,null,B.default.createElement(Ke,{values:[[So,r],[Da,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),B.default.createElement(N8,{props:e,collection:n,comboBoxRef:t}))}function N8({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{contains:a}=G0({sensitivity:"base"});var s;let l=uE({defaultFilter:e.defaultFilter||a,...e,items:e.items,children:void 0,collection:t,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"}),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),p=d.useRef(null),[h,b]=xt();var g;let{buttonProps:y,inputProps:$,listBoxProps:C,labelProps:w,descriptionProps:E,errorMessageProps:P,...k}=KD({...Fn(e),label:b,inputRef:u,buttonRef:c,listBoxRef:f,popoverRef:p,name:o==="text"?r:void 0,validationBehavior:(g=e.validationBehavior)!==null&&g!==void 0?g:"native"},l),[K,v]=d.useState(null),V=d.useCallback(()=>{if(u.current){var R;let L=(R=c.current)===null||R===void 0?void 0:R.getBoundingClientRect(),j=u.current.getBoundingClientRect(),O=L?Math.min(L.left,j.left):j.left,T=L?Math.max(L.right,j.right):j.right;v(T-O+"px")}},[c,u,v]);_l({ref:u,onResize:V});let F=d.useMemo(()=>({isOpen:l.isOpen,isDisabled:e.isDisabled||!1,isInvalid:k.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,e.isDisabled,k.isInvalid,e.isRequired]),A=be({...e,values:F,defaultClassName:"react-aria-ComboBox"}),I=ue(e);return delete I.id,B.default.createElement(Ke,{values:[[V8,l],[Rt,{...w,ref:h}],[ec,{...y,ref:c,isPressed:l.isOpen}],[On,{...$,ref:u}],[Nn,l],[dr,{ref:p,triggerRef:u,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":K}}],[Da,{...C,ref:f}],[Mo,l],[qt,{slots:{description:E,errorMessage:P}}],[Cr,{isInvalid:k.isInvalid,isDisabled:e.isDisabled||!1}],[Vn,k]]},B.default.createElement("div",{...I,...A,ref:n,slot:e.slot||void 0,"data-focused":l.isFocused||void 0,"data-open":l.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":k.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&B.default.createElement("input",{type:"hidden",name:r,value:l.selectedKey}))}const K8=d.forwardRef(O8),G4=d.createContext(null),j8=d.createContext(null),ko=d.createContext(null),Ea=d.createContext(null);function _8(e,t){[e,t]=ve(e,t,G4);let{locale:n}=Ne();var r;let o=qu({...e,locale:n,createCalendar:j0,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=d.useRef(null),[a,s]=xt(),l=d.useRef(null);var c;let{labelProps:u,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=Wu({...Fn(e),label:s,inputRef:l,validationBehavior:(c=e.validationBehavior)!==null&&c!==void 0?c:"native"},o,i),y=be({...Fn(e),values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-DateField"}),$=ue(e);return delete $.id,B.default.createElement(Ke,{values:[[ko,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Rt,{...u,ref:a,elementType:"span"}],[qt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},B.default.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const z8=d.forwardRef(_8);function U8(e,t){[e,t]=ve(e,t,j8);let{locale:n}=Ne();var r;let o=DE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=d.useRef(null),[a,s]=xt(),l=d.useRef(null);var c;let{labelProps:u,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=UD({...Fn(e),label:s,inputRef:l,validationBehavior:(c=e.validationBehavior)!==null&&c!==void 0?c:"native"},o,i),y=be({...e,values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-TimeField"}),$=ue(e);return delete $.id,B.default.createElement(Ke,{values:[[Ea,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Rt,{...u,ref:a,elementType:"span"}],[qt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},B.default.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const H8=d.forwardRef(U8);function G8(e,t){let n=d.useContext(ko),r=d.useContext(Ea);return n||r?B.default.createElement(W4,{...e,ref:t}):B.default.createElement(W8,{...e,ref:t})}const W8=d.forwardRef((e,t)=>{let[n,r]=ve({slot:e.slot},t,G4),{locale:o}=Ne(),i=qu({...n,locale:o,createCalendar:j0}),a=d.useRef(null),{fieldProps:s,inputProps:l}=Wu({...n,inputRef:a},i,r);return B.default.createElement(Ke,{values:[[ko,i],[On,{...l,ref:a}],[Cr,{...s,ref:r,isInvalid:i.isInvalid}]]},B.default.createElement(W4,e))}),W4=d.forwardRef((e,t)=>{let{className:n,children:r}=e,o=d.useContext(ko),i=d.useContext(Ea),a=o??i;return B.default.createElement(B.default.Fragment,null,B.default.createElement(tc,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isInvalid:a.isInvalid},a.segments.map((s,l)=>d.cloneElement(r(s),{key:l}))),B.default.createElement(Ao,null))}),Y4=d.forwardRef(G8);function Y8({segment:e,...t},n){let r=d.useContext(ko),o=d.useContext(Ea),i=r??o,a=vt(n),{segmentProps:s}=WD(e,i,a),{focusProps:l,isFocused:c,isFocusVisible:u}=Ze(),{hoverProps:f,isHovered:p}=Ie({...t,isDisabled:i.isDisabled||e.type==="literal"}),h=be({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:c,isFocusVisible:u},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return B.default.createElement("div",{...J(ue(t),s,l,f),...h,ref:a,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":i.isDisabled||void 0,"data-type":e.type,"data-hovered":p||void 0,"data-focused":c||void 0,"data-focus-visible":u||void 0})}const q4=d.forwardRef(Y8),Z4=d.createContext({}),X4=d.createContext(null),Ro=d.createContext(null),J4=d.createContext(null);function Q4(e){let{item:t,parentMenuRef:n}=e,r=d.useContext(Ro);return xr({items:r.collection.getChildren(t.key),children:i=>{switch(i.type){case"item":return B.default.createElement(Q8,{item:i,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function q8(e,t){[e,t]=ve(e,t,X4);let{portal:n,collection:r}=Xu(e);return B.default.createElement(B.default.Fragment,null,r.size>0&&B.default.createElement(Z8,{props:e,collection:r,menuRef:t}),n)}function Z8({props:e,collection:t,menuRef:n}){let r=LE({...e,collection:t,children:void 0}),[o,i]=d.useState(null),{menuProps:a}=RD(e,r,n),s=d.useContext(J4),l=d.useContext(dr),c=xr({items:r.collection,children:p=>{switch(p.type){case"section":return B.default.createElement(J8,{section:p,parentMenuRef:n});case"separator":return B.default.createElement(j4,p.props);case"item":return B.default.createElement(e1,{item:p});case"submenutrigger":return B.default.createElement(Q4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),u=(l==null?void 0:l.trigger)==="SubmenuTrigger";s0({ref:n,onInteractOutside:p=>{s&&!(o!=null&&o.contains(p.target))&&s.close()},isDisabled:u||(s==null?void 0:s.UNSTABLE_expandedKeysStack.length)===0});var f;return B.default.createElement(Gl,null,B.default.createElement("div",{...ue(e),...a,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,style:e.style,className:(f=e.className)!==null&&f!==void 0?f:"react-aria-Menu"},B.default.createElement(Ke,{values:[[Ro,r],[rc,{elementType:"div"}],[dr,{UNSTABLE_portalContainer:o||void 0}]]},c)),B.default.createElement("div",{ref:i,style:{width:"100vw",position:"absolute",top:0}}))}const X8=d.forwardRef(q8);function J8({section:e,className:t,style:n,parentMenuRef:r,...o}){var i,a;let s=d.useContext(Ro),[l,c]=xt();var u;let{headingProps:f,groupProps:p}=FD({heading:c,"aria-label":(u=e["aria-label"])!==null&&u!==void 0?u:void 0}),h=xr({items:s.collection.getChildren(e.key),children:b=>{switch(b.type){case"header":{let{ref:g,...y}=b.props;return B.default.createElement(K4,{...f,...y,ref:ea(l,g)},b.rendered)}case"item":return B.default.createElement(e1,{item:b});case"submenutrigger":return B.default.createElement(Q4,{item:b,parentMenuRef:r});default:throw new Error("Unsupported element type in Section: "+b.type)}}});return B.default.createElement("section",{...ue(o),...p,className:t||((i=e.props)===null||i===void 0?void 0:i.className)||"react-aria-Section",style:n||((a=e.props)===null||a===void 0?void 0:a.style),ref:e.props.ref},h)}function e1({item:e}){var t;let n=d.useContext(Ro),r=vt(e.props.ref),{menuItemProps:o,labelProps:i,descriptionProps:a,keyboardShortcutProps:s,...l}=Og({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},n,r),c=e.props,{isFocusVisible:u,focusProps:f}=Ze(),{hoverProps:p,isHovered:h}=Ie({isDisabled:l.isDisabled}),b=be({...c,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...l,isHovered:h,isFocusVisible:u,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),g=c.href?"a":"div";return B.default.createElement(g,{...J(o,f,p),...b,ref:r,"data-disabled":l.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":u||void 0,"data-pressed":l.isPressed||void 0,"data-selected":l.isSelected||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},B.default.createElement(Ke,{values:[[qt,{slots:{label:i,description:a}}],[Z4,s]]},b.children))}function Q8({item:e,popover:t,parentMenuRef:n,delay:r}){let o=d.useContext(Ro),i=xa(dr),a=vt(e.props.ref),s=d.useContext(J4),l=EE({triggerKey:e.key},s),c=d.useRef(null),{submenuTriggerProps:u,submenuProps:f,popoverProps:p}=VD({node:e,parentMenuRef:n,submenuRef:c,delay:r},l,a),{menuItemProps:h,labelProps:b,descriptionProps:g,keyboardShortcutProps:y,...$}=Og({key:e.key,...u},o,a),C=e.props,{hoverProps:w,isHovered:E}=Ie({isDisabled:$.isDisabled}),{isFocusVisible:P,focusProps:k}=Ze(),K=be({...C,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...$,isHovered:E,isFocusVisible:P,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:l.isOpen}});return B.default.createElement(Ke,{values:[[qt,{slots:{label:b,description:g}}],[Z4,y],[X4,f],[Nn,l],[dr,{ref:c,trigger:"SubmenuTrigger",triggerRef:a,placement:"end top",UNSTABLE_portalContainer:i.UNSTABLE_portalContainer||void 0,...p}]]},B.default.createElement("div",{...J(h,k,w),...K,ref:a,"data-disabled":$.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":$.isFocused||void 0,"data-focus-visible":P||void 0,"data-pressed":$.isPressed||void 0,"data-selected":$.isSelected||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":l.isOpen||void 0},K.children),t)}const eP=d.createContext(null);function tP(e,t){[e,t]=ve(e,t,eP);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=bt(n,r,o);let[i,a]=xt(),{meterProps:s,labelProps:l}=ZD({...e,label:a}),c=(n-r)/(o-r)*100,u=be({...e,defaultClassName:"react-aria-Meter",values:{percentage:c,valueText:s["aria-valuetext"]}});return B.default.createElement("div",{...s,...u,ref:t,slot:e.slot||void 0},B.default.createElement(Rt.Provider,{value:{...l,ref:i,elementType:"span"}},u.children))}const nP=d.forwardRef(tP),rP=d.createContext(null),oc=d.createContext(null);function oP(e,t){if(d.useContext(oc))return B.default.createElement(mp,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:c,isExiting:u,UNSTABLE_portalContainer:f,...p}=e;return B.default.createElement(t1,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:c,isExiting:u,UNSTABLE_portalContainer:f},B.default.createElement(mp,{...p,modalRef:t},l))}const iP=d.forwardRef(oP);function aP(e,t){[e,t]=ve(e,t,rP);let n=d.useContext(Nn),r=ya(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=vt(t),a=d.useRef(null),s=El(i,o.isOpen),l=El(a,o.isOpen),c=s||l||e.isExiting||!1,u=kt();return!o.isOpen&&!c||u?null:B.default.createElement(sP,{...e,state:o,isExiting:c,overlayRef:i,modalRef:a})}const t1=d.forwardRef(aP);function sP({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=k2(t,r,n),a=Qu(t.overlayRef)||t.isEntering||!1,s=be({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=px(),c={...s.style,"--visual-viewport-height":l.height+"px"};return B.default.createElement(Fh,{isExiting:t.isExiting,portalContainer:e},B.default.createElement("div",{...J(ue(t),i),...s,style:c,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},B.default.createElement(Ke,{values:[[oc,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Nn,r]]},s.children)))}function mp(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=d.useContext(oc),i=d.useContext(Nn),a=d.useMemo(()=>ea(e.modalRef,n),[e.modalRef,n]),s=vt(a),l=Qu(s),c=be({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return B.default.createElement("div",{...J(ue(e),t),...c,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&B.default.createElement(tl,{onDismiss:i.close}),c.children)}const lP=d.createContext(null),uP=d.createContext(null);function cP(e,t){[e,t]=ve(e,t,lP);let{locale:n}=Ne();var r;let o=PE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=d.useRef(null),[a,s]=xt();var l;let{labelProps:c,groupProps:u,inputProps:f,incrementButtonProps:p,decrementButtonProps:h,descriptionProps:b,errorMessageProps:g,...y}=JD({...Fn(e),label:s,validationBehavior:(l=e.validationBehavior)!==null&&l!==void 0?l:"native"},o,i),$=be({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),C=ue(e);return delete C.id,B.default.createElement(Ke,{values:[[uP,o],[Cr,u],[On,{...f,ref:i}],[Rt,{...c,ref:a}],[ec,{slots:{increment:p,decrement:h}}],[qt,{slots:{description:b,errorMessage:g}}],[Vn,y]]},B.default.createElement("div",{...C,...$,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0}),e.name&&B.default.createElement("input",{type:"hidden",name:e.name,value:isNaN(o.numberValue)?"":o.numberValue}))}const dP=d.forwardRef(cP),fP=d.createContext(null);function pP(e,t){[e,t]=ve(e,t,fP);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:i=!1}=e;n=bt(n,r,o);let[a,s]=xt(),{progressBarProps:l,labelProps:c}=oy({...e,label:s}),u=i?void 0:(n-r)/(o-r)*100,f=be({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:u,valueText:l["aria-valuetext"],isIndeterminate:i}});return B.default.createElement("div",{...l,...f,ref:t,slot:e.slot||void 0},B.default.createElement(Rt.Provider,{value:{...c,ref:a,elementType:"span"}},f.children))}const n1=d.forwardRef(pP),hP=d.createContext(null),Pa=d.createContext(null),ic=d.createContext(null),r1=d.createContext(null);function bP(e,t){[e,t]=ve(e,t,hP);let n=d.useRef(null),r=ji(e.formatOptions),o=ME({...e,numberFormatter:r}),[i,a]=xt(),{groupProps:s,trackProps:l,labelProps:c,outputProps:u}=QD({...e,label:a},o,n),f=be({...e,values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-Slider"}),p=ue(e);return delete p.id,B.default.createElement(Ke,{values:[[Pa,o],[ic,{...l,ref:n}],[r1,u],[Rt,{...c,ref:i}]]},B.default.createElement("div",{...p,...s,...f,ref:t,slot:e.slot||void 0,"data-orientation":o.orientation,"data-disabled":o.isDisabled||void 0}))}const mP=d.forwardRef(bP);function gP(e,t){[e,t]=ve(e,t,r1);let{children:n,style:r,className:o,...i}=e,a=d.useContext(Pa),s=be({className:o,style:r,children:n,defaultChildren:a.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:a.orientation,isDisabled:a.isDisabled,state:a}});return B.default.createElement("output",{...i,...s,ref:t,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0})}const vP=d.forwardRef(gP);function yP(e,t){[e,t]=ve(e,t,ic);let n=d.useContext(Pa),{onHoverStart:r,onHoverEnd:o,onHoverChange:i,...a}=e,{hoverProps:s,isHovered:l}=Ie({onHoverStart:r,onHoverEnd:o,onHoverChange:i}),c=be({...e,defaultClassName:"react-aria-SliderTrack",values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:l,state:n}});return B.default.createElement("div",{...J(a,s),...c,ref:t,"data-hovered":l||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}const $P=d.forwardRef(yP);function xP(e,t){let n=d.useContext(Pa),{ref:r}=xa(ic),{index:o=0}=e,i=d.useRef(null),[a,s]=xt(),{thumbProps:l,inputProps:c,labelProps:u,isDragging:f,isFocused:p,isDisabled:h}=eE({...e,index:o,trackRef:r,inputRef:i,label:s},n),{focusProps:b,isFocusVisible:g}=Ze(),{hoverProps:y,isHovered:$}=Ie(e),C=be({...e,defaultClassName:"react-aria-SliderThumb",values:{state:n,isHovered:$,isDragging:f,isFocused:p,isFocusVisible:g,isDisabled:h}}),w=ue(e);return delete w.id,B.default.createElement("div",{...J(w,l,y),...C,ref:t,style:{...l.style,...C.style},"data-hovered":$||void 0,"data-dragging":f||void 0,"data-focused":p||void 0,"data-focus-visible":g||void 0,"data-disabled":h||void 0},B.default.createElement(sa,null,B.default.createElement("input",{ref:i,...J(c,b)})),B.default.createElement(Ke,{values:[[Rt,{...u,ref:a}]]},C.children))}const wP=d.forwardRef(xP),CP=d.createContext(null);function DP(e,t){[e,t]=ve(e,t,CP);let n=d.useRef(null),r=ma(e),{labelProps:o,inputProps:i,isSelected:a,isDisabled:s,isReadOnly:l,isPressed:c}=tE({...Fn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:u,isFocusVisible:f,focusProps:p}=Ze(),h=e.isDisabled||e.isReadOnly,{hoverProps:b,isHovered:g}=Ie({...e,isDisabled:h}),y=be({...e,defaultClassName:"react-aria-Switch",values:{isSelected:a,isPressed:c,isHovered:g,isFocused:u,isFocusVisible:f,isDisabled:s,isReadOnly:l,state:r}}),$=ue(e);return delete $.id,B.default.createElement("label",{...J($,o,b,y),ref:t,slot:e.slot||void 0,"data-selected":a||void 0,"data-pressed":c||void 0,"data-hovered":g||void 0,"data-focused":u||void 0,"data-focus-visible":f||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0},B.default.createElement(sa,{elementType:"span"},B.default.createElement("input",{...i,...p,ref:n})),y.children)}const EP=d.forwardRef(DP),ac=d.createContext(null),sc=d.createContext(null);function PP(e,t){[e,t]=ve(e,t,ac);let{collection:n,document:r}=Ju(),{children:o,orientation:i="horizontal"}=e;return o=d.useMemo(()=>typeof o=="function"?o({orientation:i}):o,[o,i]),B.default.createElement(B.default.Fragment,null,B.default.createElement(I4,null,B.default.createElement(So.Provider,{value:r},o)),B.default.createElement(SP,{props:e,collection:n,tabsRef:t}))}function SP({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=kE({...e,collection:n,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:s}=Ze({within:!0}),l=d.useMemo(()=>({orientation:r,isFocusWithin:a,isFocusVisible:s}),[r,a,s]),c=be({...e,defaultClassName:"react-aria-Tabs",values:l});return B.default.createElement("div",{...ue(e),...i,...c,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":o.isDisabled||void 0},B.default.createElement(Ke,{values:[[ac,e],[sc,o]]},c.children))}const TP=d.forwardRef(PP);function AP(e,t){return d.useContext(So)?B.default.createElement(R4,e):B.default.createElement(MP,{props:e,forwardedRef:t})}function MP({props:e,forwardedRef:t}){let n=d.useContext(sc),{orientation:r="horizontal",keyboardActivation:o="automatic"}=xa(ac),i=vt(t),{tabListProps:a}=iE({...e,orientation:r,keyboardActivation:o},n,i),s=be({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}}),l=ue(e);return delete l.id,B.default.createElement("div",{...l,...a,ref:i,...s,"data-orientation":r||void 0},[...n.collection].map(c=>B.default.createElement(BP,{key:c.key,item:c,state:n})))}const kP=d.forwardRef(AP);function RP(e,t){return $a("item",e,t,e.children)}const FP=d.forwardRef(RP);function BP({item:e,state:t}){let n=vt(e.props.ref),{tabProps:r,isSelected:o,isDisabled:i,isPressed:a}=nE({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:c}=Ze(),{hoverProps:u,isHovered:f}=Ie({isDisabled:i}),p=be({...e.props,children:e.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:i,isFocused:l,isFocusVisible:c,isPressed:a,isHovered:f,state:t}}),h=e.props.href?"a":"div";return B.default.createElement(h,{...J(r,s,u,p),ref:n,"data-selected":o||void 0,"data-disabled":i||void 0,"data-focus-visible":c||void 0,"data-pressed":a||void 0,"data-hovered":f||void 0})}function IP(e,t){const n=d.useContext(sc);let r=vt(t),{tabPanelProps:o}=rE(e,n,r),{focusProps:i,isFocused:a,isFocusVisible:s}=Ze(),l=n.selectedKey===e.id,c=be({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!l,state:n}});if(!l&&!e.shouldForceMount)return null;let u=ue(e);delete u.id;let f=l?J(u,o,i,c):c;return B.default.createElement("div",{...f,ref:r,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:l?void 0:"true","data-inert":l?void 0:"true"})}const LP=wa(IP),VP=d.createContext({}),OP=d.createContext(null);function NP(e,t){[e,t]=ve(e,t,OP);let n=d.useRef(null),[r,o]=xt(),[i,a]=d.useState("input");var s;let{labelProps:l,inputProps:c,descriptionProps:u,errorMessageProps:f,...p}=Hu({...Fn(e),inputElementType:i,label:o,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"},n),h=d.useCallback(g=>{n.current=g,g&&a(g instanceof HTMLTextAreaElement?"textarea":"input")},[]),b=be({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid},defaultClassName:"react-aria-TextField"});return B.default.createElement("div",{...ue(e),...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0},B.default.createElement(Ke,{values:[[Rt,{...l,ref:r}],[On,{...c,ref:h}],[VP,{...c,ref:h}],[qt,{slots:{description:u,errorMessage:f}}],[Vn,p]]},b.children))}const Sa=d.forwardRef(NP),KP=d.createContext({});function jP(e,t){[e,t]=ve(e,t,KP);let n=ma(e),{buttonProps:r,isPressed:o}=lD(e,n,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ze(e),{hoverProps:l,isHovered:c}=Ie(e),u=be({...e,values:{isHovered:c,isPressed:o,isFocused:a,isSelected:n.isSelected,isFocusVisible:s,isDisabled:e.isDisabled||!1,state:n},defaultClassName:"react-aria-ToggleButton"});return B.default.createElement("button",{...J(r,i,l),...u,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":o||void 0,"data-selected":n.isSelected||void 0,"data-hovered":c||void 0,"data-focus-visible":s||void 0})}const _P=d.forwardRef(jP),zP=G.styled(QE)`
179
+ */var pp;function LE(){return pp||(pp=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=u,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var E=arguments.length,P=new Array(E>1?E-1:0),k=1;k<E;k++)P[k-1]=arguments[k];r("error",w,P)}}function r(w,E,P){{var k=t.ReactDebugCurrentFrame,N=k.getStackAddendum();N!==""&&(E+="%s",P=P.concat([N]));var v=P.map(function(L){return String(L)});v.unshift("Warning: "+E),Function.prototype.apply.call(console[w],console,v)}}function o(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,d=e.useDebugValue,c=!1,f=!1;function p(w,E,P){c||e.startTransition!==void 0&&(c=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var k=E();if(!f){var N=E();i(k,N)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var v=a({inst:{value:k,getSnapshot:E}}),L=v[0].inst,F=v[1];return l(function(){L.value=k,L.getSnapshot=E,h(L)&&F({inst:L})},[w,k,E]),s(function(){h(L)&&F({inst:L});var A=function(){h(L)&&F({inst:L})};return w(A)},[w]),d(k),k}function h(w){var E=w.getSnapshot,P=w.value;try{var k=E();return!i(P,k)}catch{return!0}}function b(w,E,P){return E()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,$=y?b:p,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:$;Ps.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ps}process.env.NODE_ENV==="production"?$l.exports=IE():$l.exports=LE();var VE=$l.exports;class Yu{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Yu(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=n}}class P4{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this)return;this.ownerDocument.startTransaction();let n=t.nextSibling;for(;n;)n.index--,n=n.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class fo extends P4{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof fo?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof fo?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var d;i.lastChildKey=(d=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&d!==void 0?d:null}setProps(t,n,r){let o=this.ownerDocument.getMutableNode(this),{value:i,textValue:a,id:s,...l}=t;if(l.ref=n,o.props=l,o.rendered=r,o.value=i,o.textValue=a||(typeof r=="string"?r:"")||t["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Yu(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class OE{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class NE extends P4{get isConnected(){return!0}createElement(t){return new fo(t,this)}getMutableNode(t){let n=t.node;return this.mutatedNodes.has(t)||(n=t.node.clone(),this.mutatedNodes.add(t),t.node=n),this.markDirty(t),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let n=this.getMutableCollection();if(!n.getItem(t.node.key)){n.addNode(t.node);for(let r of t)this.addNode(r)}this.markDirty(t)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof fo&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let i=this.getMutableCollection();for(let a of this.mutatedNodes)a.isConnected&&i.addNode(a.node);var r,o;i.commit((r=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function xr(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=u.useMemo(()=>new WeakMap,i);return u.useMemo(()=>{if(n&&typeof t=="function"){let d=[];for(let c of n){let f=a.get(c);if(!f){f=t(c);var s,l;let p=(l=(s=f.props.id)!==null&&s!==void 0?s:c.key)!==null&&l!==void 0?l:c.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=u.cloneElement(f,o?{key:p,id:p,value:c}:{key:p}),a.set(c,f)}d.push(f)}return d}else if(typeof t!="function")return t},[t,n,a,r,o])}function KE(e){return xr({...e,addIdAndValue:!0})}const S4=u.createContext(!1);function qu(e,t){let{collection:n,document:r}=Zu(t);return{portal:T4(e,r),collection:n}}function jE(e,t,n){let r=At(),o=u.useRef(r);o.current=r;let i=u.useCallback(()=>o.current?n():t(),[t,n]);return VE.useSyncExternalStore(e,i)}const _E=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:jE;function Zu(e){let t=u.useMemo(()=>new NE(e||new OE),[e]),n=u.useCallback(a=>t.subscribe(a),[t]),r=u.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:_E(n,r,o),document:t}}const xl=u.createContext(null),Eo=u.createContext(null);function T4(e,t){let n=u.useContext(Eo),r=t??n,o=KE(e),i=u.useMemo(()=>u.createElement(S4.Provider,{value:!0},o),[o]);return At()?u.createElement(xl.Provider,{value:r},i):Wt.createPortal(i,r)}function A4(e){return u.createElement(u.Fragment,null,T4(e))}function M4(e,t,n){let r=u.useContext(S4);var o;return r?(o=va(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:u.createElement(u.Fragment,null):null}function zE(e,t,n){return u.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function va(e,t,n,r,o){let i=zE(t,n,r),a=u.useContext(xl);if(a){let s=a.ownerDocument.nodesByProps.get(t);return s||(s=a.ownerDocument.createElement(e),s.setProps(t,n,r),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,s)),o?u.createElement(xl.Provider,{value:s},o):null}return u.createElement(e,{ref:i},o)}const UE=Symbol("callback"),wl=Symbol("default");function Oe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function he(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,values:a}=e;return u.useMemo(()=>{let s,l,d;return typeof t=="function"?s=t(a):s=t,typeof n=="function"?l=n(a):l=n,typeof r=="function"?d=r(a):r==null?d=i:d=r,{className:s??o,style:l,children:d,"data-rac":""}},[t,n,r,o,i,a])}function ya(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`));if(!t&&!n.slots[wl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||wl;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function me(e,t,n){let r=ya(n,e.slot)||{},{ref:o,[UE]:i,...a}=r,s=mt(u.useMemo(()=>Ji(t,o),[t,o])),l=X(a,e);return"style"in a&&a.style&&typeof a.style=="object"&&"style"in e&&e.style&&typeof e.style=="object"&&(l.style={...a.style,...e.style}),u.useEffect(()=>{i&&i(e)},[i,e]),[l,s]}function yt(){let[e,t]=u.useState(!0),n=u.useRef(!1),r=u.useCallback(o=>{n.current=!0,t(!!o)},[]);return be(()=>{n.current||t(!1)},[]),[r,e]}function Xu(e,t=!0){let[n,r]=u.useState(!0);return k4(e,n&&t,u.useCallback(()=>r(!1),[])),n&&t}function Cl(e,t){let[n,r]=u.useState(!1),[o,i]=u.useState("idle");return!t&&e.current&&o==="idle"&&(n=!0,r(!0),i("exiting")),!e.current&&o==="exited"&&i("idle"),k4(e,n,u.useCallback(()=>{i("exited"),r(!1)},[])),n}function k4(e,t,n){let r=u.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),be(()=>{if(t&&e.current){let o=window.getComputedStyle(e.current);if(o.animationName&&o.animationName!=="none"&&o.animation!==r.current){let i=s=>{s.target===e.current&&(a.removeEventListener("animationend",i),Wt.flushSync(()=>{n()}))},a=e.current;return a.addEventListener("animationend",i),()=>{a.removeEventListener("animationend",i)}}else n()}},[e,t,n])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const po=u.createContext(!1),HE=typeof DocumentFragment<"u"?new DocumentFragment:null;function R4(e){let t=u.useContext(po),n=At();if(t)return u.createElement(u.Fragment,null,e.children);let r=u.createElement(po.Provider,{value:!0},e.children);return n?u.createElement("template",{"data-react-aria-hidden":!0},r):Wt.createPortal(r,HE)}function $a(e){let t=(n,r)=>u.useContext(po)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function Fn(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const F4=u.createContext(null);function GE(e,t){[e,t]=me(e,t,F4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=oD({...e,elementType:n},t),{hoverProps:i,isHovered:a}=Fe(e),{focusProps:s,isFocused:l,isFocusVisible:d}=Ye(),c=he({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:a,isFocused:l,isFocusVisible:d}});return u.createElement(n,{ref:t,slot:e.slot||void 0,...X(c,r,i,s),"data-focused":l||void 0,"data-hovered":a||void 0,"data-pressed":o||void 0,"data-focus-visible":d||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},c.children)}const xa=u.forwardRef(GE),WE=u.createContext(null);function YE(e,t){[e,t]=me(e,t,WE);let{portal:n,collection:r}=qu(e);return u.createElement(u.Fragment,null,n,u.createElement(qE,{props:e,collection:r,breadcrumbsRef:t}))}function qE({props:e,collection:t,breadcrumbsRef:n}){var r;return u.createElement("ol",{ref:n,...le(e,{labelable:!0}),slot:e.slot||void 0,style:e.style,className:(r=e.className)!==null&&r!==void 0?r:"react-aria-Breadcrumbs"},[...t].map((o,i)=>u.createElement(JE,{key:o.key,node:o,isCurrent:i===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const ZE=u.forwardRef(YE);function XE(e,t){return va("item",e,t,e.children)}const B4=u.forwardRef(XE);function JE({node:e,isCurrent:t,isDisabled:n,onAction:r}){let o={"aria-current":t?"page":null,isDisabled:n||t,onPress:()=>r==null?void 0:r(e.key)};var i;return u.createElement("li",{...le(e.props),ref:e.props.ref,style:e.props.style,className:(i=e.props.className)!==null&&i!==void 0?i:"react-aria-Breadcrumb"},u.createElement(F4.Provider,{value:o},e.rendered))}const QE=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ju=u.createContext({});function e8(e,t){[e,t]=me(e,t,Ju);let n=e,{buttonProps:r,isPressed:o}=um(e,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:d}=Fe(e),c=he({...e,values:{isHovered:d,isPressed:o,isFocused:a,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return u.createElement("button",{...le(e,{propNames:QE}),...X(r,i,l),...c,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":d||void 0,"data-focused":a||void 0,"data-focus-visible":s||void 0})}const I4=$a(e8),t8=u.createContext({}),Yt=u.createContext({});function n8(e,t){[e,t]=me(e,t,Yt);let{elementType:n="span",...r}=e;return u.createElement(n,{className:"react-aria-Text",...r,ref:t})}const wr=u.forwardRef(n8),Vn=u.createContext(null);function r8(e,t){let n=u.useContext(Vn);return n!=null&&n.isInvalid?u.createElement(o8,{...e,ref:t}):null}const Po=u.forwardRef(r8),o8=u.forwardRef((e,t)=>{let n=u.useContext(Vn),r=he({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return u.createElement(wr,{slot:"errorMessage",...r,ref:t})}),Mt=u.createContext({});function i8(e,t){[e,t]=me(e,t,Mt);let{elementType:n="label",...r}=e;return u.createElement(n,{className:"react-aria-Label",...r,ref:t})}const qt=$a(i8),a8=u.createContext(null),s8=u.createContext(null);function l8(e,t){[e,t]=me(e,t,s8);let n=u.useRef(null),r=u.useContext(a8);var o;let{labelProps:i,inputProps:a,isSelected:s,isDisabled:l,isReadOnly:d,isPressed:c,isInvalid:f}=r?bD({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):bm({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},ha(e),n),{isFocused:p,isFocusVisible:h,focusProps:b}=Ye(),g=l||d,{hoverProps:y,isHovered:$}=Fe({...e,isDisabled:g}),C=he({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:s,isIndeterminate:e.isIndeterminate||!1,isPressed:c,isHovered:$,isFocused:p,isFocusVisible:h,isDisabled:l,isReadOnly:d,isInvalid:f,isRequired:e.isRequired||!1}}),w=le(e);return delete w.id,u.createElement("label",{...X(w,i,y,C),ref:t,slot:e.slot||void 0,"data-selected":s||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":c||void 0,"data-hovered":$||void 0,"data-focused":p||void 0,"data-focus-visible":h||void 0,"data-disabled":l||void 0,"data-readonly":d||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},u.createElement(ia,{elementType:"span"},u.createElement("input",{...X(a,b),ref:n})),C.children)}const u8=u.forwardRef(l8),Cr=u.createContext({});function c8(e,t){[e,t]=me(e,t,Cr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:i,onHoverEnd:a,...s}=e,{hoverProps:l,isHovered:d}=Fe({onHoverStart:o,onHoverChange:i,onHoverEnd:a,isDisabled:n}),{isFocused:c,isFocusVisible:f,focusProps:p}=Ye({within:!0});n??(n=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let h=he({...e,values:{isHovered:d,isFocusWithin:c,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var b,g;return u.createElement("div",{...X(s,p,l),...h,ref:t,role:(b=e.role)!==null&&b!==void 0?b:"group",slot:(g=e.slot)!==null&&g!==void 0?g:void 0,"data-focus-within":c||void 0,"data-hovered":d||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},h.children)}const Qu=u.forwardRef(c8),On=u.createContext({});let d8=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function f8(e,t){[e,t]=me(e,t,On);let{hoverProps:n,isHovered:r}=Fe(e),{isFocused:o,isFocusVisible:i,focusProps:a}=Ye({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",l=he({...e,values:{isHovered:r,isFocused:o,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement("input",{...X(d8(e),a,n),...l,ref:t,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":i||void 0,"data-invalid":s||void 0})}const So=$a(f8),L4=u.createContext(null);function p8(e,t){let{render:n}=u.useContext(L4);return u.createElement(u.Fragment,null,n(e,t))}const h8=u.forwardRef(p8),ec=u.createContext({}),b8=u.createContext({});function m8(e,t){let[n,r]=me(e,t,b8),o=M4("header",e,t);return o||u.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const V4=u.forwardRef(m8),tc=u.createContext({});function g8(e,t){let[n,r]=me(e,t,tc),{elementType:o,orientation:i,style:a,className:s}=n,l=o||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:d}=Vy({elementType:o,orientation:i}),c=M4("separator",e,t);return c||u.createElement(l,{...le(n),...d,style:a,className:s??"react-aria-Separator",ref:r,slot:n.slot||void 0})}const O4=u.forwardRef(g8),wa=u.createContext(null),To=u.createContext(null);function v8(e,t){[e,t]=me(e,t,wa);let n=u.useContext(po),r=u.useContext(To);return u.useContext(Eo)?u.createElement(A4,e):r?n?null:u.createElement(N4,{state:r,props:e,listBoxRef:t}):u.createElement(y8,{props:e,listBoxRef:t})}function y8({props:e,listBoxRef:t}){let{portal:n,collection:r}=qu(e);e={...e,collection:r,children:null,items:null};let o=jy(e);return u.createElement(u.Fragment,null,n,u.createElement(N4,{state:o,props:e,listBoxRef:t}))}const $8=u.forwardRef(v8);function N4({state:e,props:t,listBoxRef:n}){let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical"}=t,{collection:a,selectionManager:s}=e,l=!!(r!=null&&r.useDraggableCollectionState),d=!!(r!=null&&r.useDroppableCollectionState),{direction:c}=Ve(),{disabledBehavior:f,disabledKeys:p}=s,h=ru({usage:"search",sensitivity:"base"}),b=u.useMemo(()=>t.keyboardDelegate||new ju({collection:a,collator:h,ref:n,disabledKeys:f==="selection"?new Set:p,layout:o,orientation:i,direction:c}),[a,h,n,f,p,i,c,t.keyboardDelegate,o]),{listBoxProps:g}=DD({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:b},e,n),y=xr({items:a,children:K=>{switch(K.type){case"section":return u.createElement(x8,{section:K});case"separator":return u.createElement(O4,K.props);case"item":return u.createElement(K4,{item:K});default:throw new Error("Unsupported node type in Menu: "+K.type)}}}),$=u.useRef(l),C=u.useRef(d);u.useEffect(()=>{$.current!==l&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==d&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,d]);let w,E,P,k=!1,N=null,v=u.useRef(null);if(l&&r){w=r.useDraggableCollectionState({collection:a,selectionManager:s,preview:r.renderDragPreview?v:void 0}),r.useDraggableCollection({},w,n);let K=r.DragPreview;N=r.renderDragPreview?u.createElement(K,{ref:v},r.renderDragPreview):null}if(d&&r){E=r.useDroppableCollectionState({collection:a,selectionManager:s});let K=r.dropTargetDelegate||new r.ListDropTargetDelegate(a,n,{orientation:i,layout:o,direction:c});P=r.useDroppableCollection({keyboardDelegate:b,dropTargetDelegate:K},E,n),k=E.isDropTarget({type:"root"})}let{focusProps:L,isFocused:F,isFocusVisible:A}=Ye(),B={isDropTarget:k,isEmpty:e.collection.size===0,isFocused:F,isFocusVisible:A,layout:t.layout||"stack",state:e},R=he({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:B}),I=null;return e.collection.size===0&&t.renderEmptyState&&(I=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(B))),u.createElement(Ul,null,u.createElement("div",{...le(t),...X(g,L,P==null?void 0:P.collectionProps),...R,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":k||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":F||void 0,"data-focus-visible":A||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},u.createElement(Oe,{values:[[wa,t],[To,e],[ec,{dragAndDropHooks:r,dragState:w,dropState:E}],[tc,{elementType:"div"}],[L4,{render:E8}]]},y),I,N))}function x8({section:e,className:t,style:n}){var r,o;let i=u.useContext(To),[a,s]=yt();var l;let{headingProps:d,groupProps:c}=PD({heading:s,"aria-label":(l=e.props["aria-label"])!==null&&l!==void 0?l:void 0}),f=xr({items:i.collection.getChildren(e.key),children:p=>{switch(p.type){case"header":return u.createElement(w8,{item:p,headingProps:d,headingRef:a});case"item":return u.createElement(K4,{item:p});default:throw new Error("Unsupported element type in Section: "+p.type)}}});return u.createElement("section",{...le(e.props),...c,className:t||((r=e.props)===null||r===void 0?void 0:r.className)||"react-aria-Section",style:n||((o=e.props)===null||o===void 0?void 0:o.style),ref:e.props.ref},f)}function w8({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return u.createElement(V4,{...t,...o,ref:Ji(n,r)},e.rendered)}function C8(e,t){return va("item",e,t,e.children)}const D8=u.forwardRef(C8);function K4({item:e}){var t;let n=mt(e.props.ref),r=u.useContext(To),{dragAndDropHooks:o,dragState:i,dropState:a}=u.useContext(ec),{optionProps:s,labelProps:l,descriptionProps:d,...c}=ED({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Fe({isDisabled:!c.allowsSelection&&!c.hasAction}),h=null;i&&o&&(h=o.useDraggableItem({key:e.key},i));let b=null;a&&o&&(b=o.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},a,n));let g=e.props,y=i&&i.isDragging(e.key),$=he({...g,id:void 0,children:e.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...c,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!i,isDragging:y,isDropTarget:b==null?void 0:b.isDropTarget}}),C=(o==null?void 0:o.renderDropIndicator)||(E=>u.createElement(h8,{target:E}));u.useEffect(()=>{e.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[e.textValue]);let w=g.href?"a":"div";return u.createElement(u.Fragment,null,(o==null?void 0:o.useDropIndicator)&&C({type:"item",key:e.key,dropPosition:"before"}),u.createElement(w,{...X(s,f,h==null?void 0:h.dragProps,b==null?void 0:b.dropProps),...$,ref:n,"data-allows-dragging":!!i||void 0,"data-selected":c.isSelected||void 0,"data-disabled":c.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":c.isFocused||void 0,"data-focus-visible":c.isFocusVisible||void 0,"data-pressed":c.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},u.createElement(Oe,{values:[[Yt,{slots:{label:l,description:d}}]]},$.children)),(o==null?void 0:o.useDropIndicator)&&r.collection.getKeyAfter(e.key)==null&&C({type:"item",key:e.key,dropPosition:"after"}))}function E8(e,t){t=mt(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ec),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:u.createElement(S8,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function P8(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=he({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0})}const S8=u.forwardRef(P8),T8=u.createContext({placement:"bottom"}),dr=u.createContext(null);function A8(e,t){[e,t]=me(e,t,dr);let n=u.useContext(Nn),r=ga(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Cl(t,o.isOpen)||e.isExiting||!1;if(u.useContext(po)){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1})),u.createElement(u.Fragment,null,s)}return o&&!o.isOpen&&!i?null:u.createElement(M8,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i})}const j4=u.forwardRef(A8);function M8({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:i,underlayProps:a,arrowProps:s,placement:l}=S2({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),d=r.popoverRef,c=Xu(d,!!l)||r.isEntering||!1,f=he({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:l,isEntering:c,isExiting:t}}),p={...i.style,...f.style};return u.createElement(Mh,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...a,style:{position:"fixed",inset:0}}),u.createElement("div",{...X(le(r),i),...f,ref:d,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":l,"data-entering":c||void 0,"data-exiting":t||void 0},!r.isNonModal&&u.createElement(Qs,{onDismiss:e.close}),u.createElement(T8.Provider,{value:{...s,placement:l}},f.children),u.createElement(Qs,{onDismiss:e.close})))}const k8=u.createContext(null),Nn=u.createContext(null);function R8(e,t){let n=e["aria-labelledby"];[e,t]=me(e,t,k8);let{dialogProps:r,titleProps:o}=GD({...e,"aria-labelledby":n},t),i=u.useContext(Nn),a=e.children;typeof a=="function"&&(a=a({close:(i==null?void 0:i.close)||(()=>{})})),!r["aria-label"]&&!r["aria-labelledby"]&&(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));var s;return u.createElement("section",{...le(e),...r,ref:t,slot:e.slot||void 0,style:e.style,className:(s=e.className)!==null&&s!==void 0?s:"react-aria-Dialog"},u.createElement(Oe,{values:[[t8,{slots:{[wl]:{},title:{...o,level:2}}}]]},a))}const _4=u.forwardRef(R8),F8=u.createContext(null),B8=u.createContext(null);function I8(e,t){[e,t]=me(e,t,F8);let{collection:n,document:r}=Zu(),{children:o,isDisabled:i=!1,isInvalid:a=!1,isRequired:s=!1}=e;o=u.useMemo(()=>typeof o=="function"?o({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:s}):o,[o,i,a,s]);var l;return u.createElement(u.Fragment,null,u.createElement(R4,null,u.createElement(Oe,{values:[[Eo,r],[wa,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),u.createElement(L8,{props:e,collection:n,comboBoxRef:t}))}function L8({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{contains:a}=z0({sensitivity:"base"});var s;let l=aE({defaultFilter:e.defaultFilter||a,...e,items:e.items,children:void 0,collection:t,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"}),d=u.useRef(null),c=u.useRef(null),f=u.useRef(null),p=u.useRef(null),[h,b]=yt();var g;let{buttonProps:y,inputProps:$,listBoxProps:C,labelProps:w,descriptionProps:E,errorMessageProps:P,...k}=VD({...Fn(e),label:b,inputRef:c,buttonRef:d,listBoxRef:f,popoverRef:p,name:o==="text"?r:void 0,validationBehavior:(g=e.validationBehavior)!==null&&g!==void 0?g:"native"},l),[N,v]=u.useState(null),L=u.useCallback(()=>{if(c.current){var R;let I=(R=d.current)===null||R===void 0?void 0:R.getBoundingClientRect(),K=c.current.getBoundingClientRect(),V=I?Math.min(I.left,K.left):K.left,T=I?Math.max(I.right,K.right):K.right;v(T-V+"px")}},[d,c,v]);Kl({ref:c,onResize:L});let F=u.useMemo(()=>({isOpen:l.isOpen,isDisabled:e.isDisabled||!1,isInvalid:k.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,e.isDisabled,k.isInvalid,e.isRequired]),A=he({...e,values:F,defaultClassName:"react-aria-ComboBox"}),B=le(e);return delete B.id,u.createElement(Oe,{values:[[B8,l],[Mt,{...w,ref:h}],[Ju,{...y,ref:d,isPressed:l.isOpen}],[On,{...$,ref:c}],[Nn,l],[dr,{ref:p,triggerRef:c,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":N}}],[wa,{...C,ref:f}],[To,l],[Yt,{slots:{description:E,errorMessage:P}}],[Cr,{isInvalid:k.isInvalid,isDisabled:e.isDisabled||!1}],[Vn,k]]},u.createElement("div",{...B,...A,ref:n,slot:e.slot||void 0,"data-focused":l.isFocused||void 0,"data-open":l.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":k.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&u.createElement("input",{type:"hidden",name:r,value:l.selectedKey}))}const V8=u.forwardRef(I8),z4=u.createContext(null),O8=u.createContext(null),Ao=u.createContext(null),Ca=u.createContext(null);function N8(e,t){[e,t]=me(e,t,z4);let{locale:n}=Ve();var r;let o=Wu({...e,locale:n,createCalendar:O0,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt(),l=u.useRef(null);var d;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=Hu({...Fn(e),label:s,inputRef:l,validationBehavior:(d=e.validationBehavior)!==null&&d!==void 0?d:"native"},o,i),y=he({...Fn(e),values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-DateField"}),$=le(e);return delete $.id,u.createElement(Oe,{values:[[Ao,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Mt,{...c,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const K8=u.forwardRef(N8);function j8(e,t){[e,t]=me(e,t,O8);let{locale:n}=Ve();var r;let o=xE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt(),l=u.useRef(null);var d;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=jD({...Fn(e),label:s,inputRef:l,validationBehavior:(d=e.validationBehavior)!==null&&d!==void 0?d:"native"},o,i),y=he({...e,values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-TimeField"}),$=le(e);return delete $.id,u.createElement(Oe,{values:[[Ca,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Mt,{...c,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const _8=u.forwardRef(j8);function z8(e,t){let n=u.useContext(Ao),r=u.useContext(Ca);return n||r?u.createElement(U4,{...e,ref:t}):u.createElement(U8,{...e,ref:t})}const U8=u.forwardRef((e,t)=>{let[n,r]=me({slot:e.slot},t,z4),{locale:o}=Ve(),i=Wu({...n,locale:o,createCalendar:O0}),a=u.useRef(null),{fieldProps:s,inputProps:l}=Hu({...n,inputRef:a},i,r);return u.createElement(Oe,{values:[[Ao,i],[On,{...l,ref:a}],[Cr,{...s,ref:r,isInvalid:i.isInvalid}]]},u.createElement(U4,e))}),U4=u.forwardRef((e,t)=>{let{className:n,children:r}=e,o=u.useContext(Ao),i=u.useContext(Ca),a=o??i;return u.createElement(u.Fragment,null,u.createElement(Qu,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isInvalid:a.isInvalid},a.segments.map((s,l)=>u.cloneElement(r(s),{key:l}))),u.createElement(So,null))}),H4=u.forwardRef(z8);function H8({segment:e,...t},n){let r=u.useContext(Ao),o=u.useContext(Ca),i=r??o,a=mt(n),{segmentProps:s}=UD(e,i,a),{focusProps:l,isFocused:d,isFocusVisible:c}=Ye(),{hoverProps:f,isHovered:p}=Fe({...t,isDisabled:i.isDisabled||e.type==="literal"}),h=he({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:d,isFocusVisible:c},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return u.createElement("div",{...X(le(t),s,l,f),...h,ref:a,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":i.isDisabled||void 0,"data-type":e.type,"data-hovered":p||void 0,"data-focused":d||void 0,"data-focus-visible":c||void 0})}const G4=u.forwardRef(H8),W4=u.createContext({}),Y4=u.createContext(null),Mo=u.createContext(null),q4=u.createContext(null);function Z4(e){let{item:t,parentMenuRef:n}=e,r=u.useContext(Mo);return xr({items:r.collection.getChildren(t.key),children:i=>{switch(i.type){case"item":return u.createElement(Z8,{item:i,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function G8(e,t){[e,t]=me(e,t,Y4);let{portal:n,collection:r}=qu(e);return u.createElement(u.Fragment,null,r.size>0&&u.createElement(W8,{props:e,collection:r,menuRef:t}),n)}function W8({props:e,collection:t,menuRef:n}){let r=FE({...e,collection:t,children:void 0}),[o,i]=u.useState(null),{menuProps:a}=AD(e,r,n),s=u.useContext(q4),l=u.useContext(dr),d=xr({items:r.collection,children:p=>{switch(p.type){case"section":return u.createElement(q8,{section:p,parentMenuRef:n});case"separator":return u.createElement(O4,p.props);case"item":return u.createElement(X4,{item:p});case"submenutrigger":return u.createElement(Z4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),c=(l==null?void 0:l.trigger)==="SubmenuTrigger";o0({ref:n,onInteractOutside:p=>{s&&!(o!=null&&o.contains(p.target))&&s.close()},isDisabled:c||(s==null?void 0:s.UNSTABLE_expandedKeysStack.length)===0});var f;return u.createElement(Ul,null,u.createElement("div",{...le(e),...a,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,style:e.style,className:(f=e.className)!==null&&f!==void 0?f:"react-aria-Menu"},u.createElement(Oe,{values:[[Mo,r],[tc,{elementType:"div"}],[dr,{UNSTABLE_portalContainer:o||void 0}]]},d)),u.createElement("div",{ref:i,style:{width:"100vw",position:"absolute",top:0}}))}const Y8=u.forwardRef(G8);function q8({section:e,className:t,style:n,parentMenuRef:r,...o}){var i,a;let s=u.useContext(Mo),[l,d]=yt();var c;let{headingProps:f,groupProps:p}=MD({heading:d,"aria-label":(c=e["aria-label"])!==null&&c!==void 0?c:void 0}),h=xr({items:s.collection.getChildren(e.key),children:b=>{switch(b.type){case"header":{let{ref:g,...y}=b.props;return u.createElement(V4,{...f,...y,ref:Ji(l,g)},b.rendered)}case"item":return u.createElement(X4,{item:b});case"submenutrigger":return u.createElement(Z4,{item:b,parentMenuRef:r});default:throw new Error("Unsupported element type in Section: "+b.type)}}});return u.createElement("section",{...le(o),...p,className:t||((i=e.props)===null||i===void 0?void 0:i.className)||"react-aria-Section",style:n||((a=e.props)===null||a===void 0?void 0:a.style),ref:e.props.ref},h)}function X4({item:e}){var t;let n=u.useContext(Mo),r=mt(e.props.ref),{menuItemProps:o,labelProps:i,descriptionProps:a,keyboardShortcutProps:s,...l}=Ig({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},n,r),d=e.props,{isFocusVisible:c,focusProps:f}=Ye(),{hoverProps:p,isHovered:h}=Fe({isDisabled:l.isDisabled}),b=he({...d,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...l,isHovered:h,isFocusVisible:c,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),g=d.href?"a":"div";return u.createElement(g,{...X(o,f,p),...b,ref:r,"data-disabled":l.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":c||void 0,"data-pressed":l.isPressed||void 0,"data-selected":l.isSelected||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},u.createElement(Oe,{values:[[Yt,{slots:{label:i,description:a}}],[W4,s]]},b.children))}function Z8({item:e,popover:t,parentMenuRef:n,delay:r}){let o=u.useContext(Mo),i=ya(dr),a=mt(e.props.ref),s=u.useContext(q4),l=wE({triggerKey:e.key},s),d=u.useRef(null),{submenuTriggerProps:c,submenuProps:f,popoverProps:p}=BD({node:e,parentMenuRef:n,submenuRef:d,delay:r},l,a),{menuItemProps:h,labelProps:b,descriptionProps:g,keyboardShortcutProps:y,...$}=Ig({key:e.key,...c},o,a),C=e.props,{hoverProps:w,isHovered:E}=Fe({isDisabled:$.isDisabled}),{isFocusVisible:P,focusProps:k}=Ye(),N=he({...C,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...$,isHovered:E,isFocusVisible:P,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:l.isOpen}});return u.createElement(Oe,{values:[[Yt,{slots:{label:b,description:g}}],[W4,y],[Y4,f],[Nn,l],[dr,{ref:d,trigger:"SubmenuTrigger",triggerRef:a,placement:"end top",UNSTABLE_portalContainer:i.UNSTABLE_portalContainer||void 0,...p}]]},u.createElement("div",{...X(h,k,w),...N,ref:a,"data-disabled":$.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":$.isFocused||void 0,"data-focus-visible":P||void 0,"data-pressed":$.isPressed||void 0,"data-selected":$.isSelected||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":l.isOpen||void 0},N.children),t)}const X8=u.createContext(null);function J8(e,t){[e,t]=me(e,t,X8);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=pt(n,r,o);let[i,a]=yt(),{meterProps:s,labelProps:l}=WD({...e,label:a}),d=(n-r)/(o-r)*100,c=he({...e,defaultClassName:"react-aria-Meter",values:{percentage:d,valueText:s["aria-valuetext"]}});return u.createElement("div",{...s,...c,ref:t,slot:e.slot||void 0},u.createElement(Mt.Provider,{value:{...l,ref:i,elementType:"span"}},c.children))}const Q8=u.forwardRef(J8),eP=u.createContext(null),nc=u.createContext(null);function tP(e,t){if(u.useContext(nc))return u.createElement(hp,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:d,isExiting:c,UNSTABLE_portalContainer:f,...p}=e;return u.createElement(J4,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:d,isExiting:c,UNSTABLE_portalContainer:f},u.createElement(hp,{...p,modalRef:t},l))}const nP=u.forwardRef(tP);function rP(e,t){[e,t]=me(e,t,eP);let n=u.useContext(Nn),r=ga(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=mt(t),a=u.useRef(null),s=Cl(i,o.isOpen),l=Cl(a,o.isOpen),d=s||l||e.isExiting||!1,c=At();return!o.isOpen&&!d||c?null:u.createElement(oP,{...e,state:o,isExiting:d,overlayRef:i,modalRef:a})}const J4=u.forwardRef(rP);function oP({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=T2(t,r,n),a=Xu(t.overlayRef)||t.isEntering||!1,s=he({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=cx(),d={...s.style,"--visual-viewport-height":l.height+"px"};return u.createElement(Mh,{isExiting:t.isExiting,portalContainer:e},u.createElement("div",{...X(le(t),i),...s,style:d,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Oe,{values:[[nc,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Nn,r]]},s.children)))}function hp(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=u.useContext(nc),i=u.useContext(Nn),a=u.useMemo(()=>Ji(e.modalRef,n),[e.modalRef,n]),s=mt(a),l=Xu(s),d=he({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return u.createElement("div",{...X(le(e),t),...d,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&u.createElement(Qs,{onDismiss:i.close}),d.children)}const iP=u.createContext(null),aP=u.createContext(null);function sP(e,t){[e,t]=me(e,t,iP);let{locale:n}=Ve();var r;let o=CE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt();var l;let{labelProps:d,groupProps:c,inputProps:f,incrementButtonProps:p,decrementButtonProps:h,descriptionProps:b,errorMessageProps:g,...y}=qD({...Fn(e),label:s,validationBehavior:(l=e.validationBehavior)!==null&&l!==void 0?l:"native"},o,i),$=he({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),C=le(e);return delete C.id,u.createElement(Oe,{values:[[aP,o],[Cr,c],[On,{...f,ref:i}],[Mt,{...d,ref:a}],[Ju,{slots:{increment:p,decrement:h}}],[Yt,{slots:{description:b,errorMessage:g}}],[Vn,y]]},u.createElement("div",{...C,...$,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0}),e.name&&u.createElement("input",{type:"hidden",name:e.name,value:isNaN(o.numberValue)?"":o.numberValue}))}const lP=u.forwardRef(sP),uP=u.createContext(null);function cP(e,t){[e,t]=me(e,t,uP);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:i=!1}=e;n=pt(n,r,o);let[a,s]=yt(),{progressBarProps:l,labelProps:d}=ty({...e,label:s}),c=i?void 0:(n-r)/(o-r)*100,f=he({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:l["aria-valuetext"],isIndeterminate:i}});return u.createElement("div",{...l,...f,ref:t,slot:e.slot||void 0},u.createElement(Mt.Provider,{value:{...d,ref:a,elementType:"span"}},f.children))}const Q4=u.forwardRef(cP),dP=u.createContext(null),Da=u.createContext(null),rc=u.createContext(null),e1=u.createContext(null);function fP(e,t){[e,t]=me(e,t,dP);let n=u.useRef(null),r=Ni(e.formatOptions),o=SE({...e,numberFormatter:r}),[i,a]=yt(),{groupProps:s,trackProps:l,labelProps:d,outputProps:c}=ZD({...e,label:a},o,n),f=he({...e,values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-Slider"}),p=le(e);return delete p.id,u.createElement(Oe,{values:[[Da,o],[rc,{...l,ref:n}],[e1,c],[Mt,{...d,ref:i}]]},u.createElement("div",{...p,...s,...f,ref:t,slot:e.slot||void 0,"data-orientation":o.orientation,"data-disabled":o.isDisabled||void 0}))}const pP=u.forwardRef(fP);function hP(e,t){[e,t]=me(e,t,e1);let{children:n,style:r,className:o,...i}=e,a=u.useContext(Da),s=he({className:o,style:r,children:n,defaultChildren:a.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:a.orientation,isDisabled:a.isDisabled,state:a}});return u.createElement("output",{...i,...s,ref:t,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0})}const bP=u.forwardRef(hP);function mP(e,t){[e,t]=me(e,t,rc);let n=u.useContext(Da),{onHoverStart:r,onHoverEnd:o,onHoverChange:i,...a}=e,{hoverProps:s,isHovered:l}=Fe({onHoverStart:r,onHoverEnd:o,onHoverChange:i}),d=he({...e,defaultClassName:"react-aria-SliderTrack",values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:l,state:n}});return u.createElement("div",{...X(a,s),...d,ref:t,"data-hovered":l||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}const gP=u.forwardRef(mP);function vP(e,t){let n=u.useContext(Da),{ref:r}=ya(rc),{index:o=0}=e,i=u.useRef(null),[a,s]=yt(),{thumbProps:l,inputProps:d,labelProps:c,isDragging:f,isFocused:p,isDisabled:h}=XD({...e,index:o,trackRef:r,inputRef:i,label:s},n),{focusProps:b,isFocusVisible:g}=Ye(),{hoverProps:y,isHovered:$}=Fe(e),C=he({...e,defaultClassName:"react-aria-SliderThumb",values:{state:n,isHovered:$,isDragging:f,isFocused:p,isFocusVisible:g,isDisabled:h}}),w=le(e);return delete w.id,u.createElement("div",{...X(w,l,y),...C,ref:t,style:{...l.style,...C.style},"data-hovered":$||void 0,"data-dragging":f||void 0,"data-focused":p||void 0,"data-focus-visible":g||void 0,"data-disabled":h||void 0},u.createElement(ia,null,u.createElement("input",{ref:i,...X(d,b)})),u.createElement(Oe,{values:[[Mt,{...c,ref:a}]]},C.children))}const yP=u.forwardRef(vP),$P=u.createContext(null);function xP(e,t){[e,t]=me(e,t,$P);let n=u.useRef(null),r=ha(e),{labelProps:o,inputProps:i,isSelected:a,isDisabled:s,isReadOnly:l,isPressed:d}=JD({...Fn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:c,isFocusVisible:f,focusProps:p}=Ye(),h=e.isDisabled||e.isReadOnly,{hoverProps:b,isHovered:g}=Fe({...e,isDisabled:h}),y=he({...e,defaultClassName:"react-aria-Switch",values:{isSelected:a,isPressed:d,isHovered:g,isFocused:c,isFocusVisible:f,isDisabled:s,isReadOnly:l,state:r}}),$=le(e);return delete $.id,u.createElement("label",{...X($,o,b,y),ref:t,slot:e.slot||void 0,"data-selected":a||void 0,"data-pressed":d||void 0,"data-hovered":g||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0},u.createElement(ia,{elementType:"span"},u.createElement("input",{...i,...p,ref:n})),y.children)}const wP=u.forwardRef(xP),oc=u.createContext(null),ic=u.createContext(null);function CP(e,t){[e,t]=me(e,t,oc);let{collection:n,document:r}=Zu(),{children:o,orientation:i="horizontal"}=e;return o=u.useMemo(()=>typeof o=="function"?o({orientation:i}):o,[o,i]),u.createElement(u.Fragment,null,u.createElement(R4,null,u.createElement(Eo.Provider,{value:r},o)),u.createElement(DP,{props:e,collection:n,tabsRef:t}))}function DP({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=TE({...e,collection:n,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye({within:!0}),l=u.useMemo(()=>({orientation:r,isFocusWithin:a,isFocusVisible:s}),[r,a,s]),d=he({...e,defaultClassName:"react-aria-Tabs",values:l});return u.createElement("div",{...le(e),...i,...d,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":o.isDisabled||void 0},u.createElement(Oe,{values:[[oc,e],[ic,o]]},d.children))}const EP=u.forwardRef(CP);function PP(e,t){return u.useContext(Eo)?u.createElement(A4,e):u.createElement(SP,{props:e,forwardedRef:t})}function SP({props:e,forwardedRef:t}){let n=u.useContext(ic),{orientation:r="horizontal",keyboardActivation:o="automatic"}=ya(oc),i=mt(t),{tabListProps:a}=nE({...e,orientation:r,keyboardActivation:o},n,i),s=he({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}}),l=le(e);return delete l.id,u.createElement("div",{...l,...a,ref:i,...s,"data-orientation":r||void 0},[...n.collection].map(d=>u.createElement(kP,{key:d.key,item:d,state:n})))}const TP=u.forwardRef(PP);function AP(e,t){return va("item",e,t,e.children)}const MP=u.forwardRef(AP);function kP({item:e,state:t}){let n=mt(e.props.ref),{tabProps:r,isSelected:o,isDisabled:i,isPressed:a}=QD({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:d}=Ye(),{hoverProps:c,isHovered:f}=Fe({isDisabled:i}),p=he({...e.props,children:e.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:i,isFocused:l,isFocusVisible:d,isPressed:a,isHovered:f,state:t}}),h=e.props.href?"a":"div";return u.createElement(h,{...X(r,s,c,p),ref:n,"data-selected":o||void 0,"data-disabled":i||void 0,"data-focus-visible":d||void 0,"data-pressed":a||void 0,"data-hovered":f||void 0})}function RP(e,t){const n=u.useContext(ic);let r=mt(t),{tabPanelProps:o}=eE(e,n,r),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(),l=n.selectedKey===e.id,d=he({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!l,state:n}});if(!l&&!e.shouldForceMount)return null;let c=le(e);delete c.id;let f=l?X(c,o,i,d):d;return u.createElement("div",{...f,ref:r,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:l?void 0:"true","data-inert":l?void 0:"true"})}const FP=$a(RP),BP=u.createContext({}),IP=u.createContext(null);function LP(e,t){[e,t]=me(e,t,IP);let n=u.useRef(null),[r,o]=yt(),[i,a]=u.useState("input");var s;let{labelProps:l,inputProps:d,descriptionProps:c,errorMessageProps:f,...p}=zu({...Fn(e),inputElementType:i,label:o,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"},n),h=u.useCallback(g=>{n.current=g,g&&a(g instanceof HTMLTextAreaElement?"textarea":"input")},[]),b=he({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid},defaultClassName:"react-aria-TextField"});return u.createElement("div",{...le(e),...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0},u.createElement(Oe,{values:[[Mt,{...l,ref:r}],[On,{...d,ref:h}],[BP,{...d,ref:h}],[Yt,{slots:{description:c,errorMessage:f}}],[Vn,p]]},b.children))}const Ea=u.forwardRef(LP),VP=u.createContext({});function OP(e,t){[e,t]=me(e,t,VP);let n=ha(e),{buttonProps:r,isPressed:o}=iD(e,n,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:d}=Fe(e),c=he({...e,values:{isHovered:d,isPressed:o,isFocused:a,isSelected:n.isSelected,isFocusVisible:s,isDisabled:e.isDisabled||!1,state:n},defaultClassName:"react-aria-ToggleButton"});return u.createElement("button",{...X(r,i,l),...c,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":o||void 0,"data-selected":n.isSelected||void 0,"data-hovered":d||void 0,"data-focus-visible":s||void 0})}const NP=u.forwardRef(OP),KP=_.styled(ZE)`
180
180
  display: flex;
181
181
  align-items: center;
182
182
  list-style: none;
183
183
  margin: 0 0 1rem;
184
184
  padding: 0.3125rem 0 0;
185
185
  font-size: 0.9rem;
186
- `,UP=G.styled(V4)`
186
+ `,jP=_.styled(B4)`
187
187
  display: flex;
188
188
  align-items: center;
189
- `,HP=G.styled(V4)`
189
+ `,_P=_.styled(B4)`
190
190
  display: flex;
191
191
  align-items: center;
192
192
  margin: 0 0.5rem;
@@ -196,7 +196,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
196
196
  width: 1rem;
197
197
  height: 1rem;
198
198
  }
199
- `,GP=G.styled(Ca)`
199
+ `,zP=_.styled(xa)`
200
200
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[600])??x.colors.slate[600]}};
201
201
  text-decoration: none;
202
202
  cursor: pointer;
@@ -222,7 +222,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
222
222
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
223
223
  }
224
224
  }
225
- `;function WP({children:e,...t}){return S.jsx(UP,{...t,children:e})}function YP(e){return S.jsx(GP,{...e})}function qP({children:e,...t}){return S.jsx(HP,{...t,children:e??S.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:S.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function ZP({children:e,...t}){return S.jsx(zP,{...t,children:e})}const Pt=G.styled(O4)`
225
+ `;function UP({children:e,...t}){return S.jsx(jP,{...t,children:e})}function HP(e){return S.jsx(zP,{...e})}function GP({children:e,...t}){return S.jsx(_P,{...t,children:e??S.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:S.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function WP({children:e,...t}){return S.jsx(KP,{...t,children:e})}const Dt=_.styled(I4)`
226
226
  display: flex;
227
227
  align-items: center;
228
228
  padding: 0.4rem 2rem;
@@ -257,13 +257,13 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
257
257
 
258
258
  &[data-disabled] {
259
259
  background-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a;switch(n){case"ghost":case"outline":return"transparent";case"solid":default:return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[900])??x.colors.slate[900]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[100])??x.colors.slate[100]}}};
260
- border-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,c,u;switch(n){case"ghost":return"transparent";case"outline":return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[300])??x.colors.slate[300]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[200])??x.colors.slate[200];case"solid":default:return e?((l=(s=t==null?void 0:t.colors)==null?void 0:s.slate)==null?void 0:l[900])??x.colors.slate[900]:((u=(c=t==null?void 0:t.colors)==null?void 0:c.slate)==null?void 0:u[200])??x.colors.slate[200]}}};
261
- color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,c;switch(n){case"ghost":case"outline":return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[900])??x.colors.slate[900]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[500])??x.colors.slate[500];case"solid":default:return e?((s=t==null?void 0:t.colors)==null?void 0:s.white)??x.colors.white:((c=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:c[400])??x.colors.slate[400]}}};
260
+ border-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,d,c;switch(n){case"ghost":return"transparent";case"outline":return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[300])??x.colors.slate[300]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[200])??x.colors.slate[200];case"solid":default:return e?((l=(s=t==null?void 0:t.colors)==null?void 0:s.slate)==null?void 0:l[900])??x.colors.slate[900]:((c=(d=t==null?void 0:t.colors)==null?void 0:d.slate)==null?void 0:c[200])??x.colors.slate[200]}}};
261
+ color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,d;switch(n){case"ghost":case"outline":return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[900])??x.colors.slate[900]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[500])??x.colors.slate[500];case"solid":default:return e?((s=t==null?void 0:t.colors)==null?void 0:s.white)??x.colors.white:((d=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:d[400])??x.colors.slate[400]}}};
262
262
  }
263
- `;function XP({children:e,isDisabled:t=!1,isLoading:n=!1,size:r="md",variant:o="solid",...i}){return S.jsx(Pt,{isDisabled:t||n,isLoading:n,size:r,variant:o,...i,children:e})}const JP=G.styled.div`
263
+ `;function YP({children:e,isDisabled:t=!1,isLoading:n=!1,size:r="md",variant:o="solid",...i}){return S.jsx(Dt,{isDisabled:t||n,isLoading:n,size:r,variant:o,...i,children:e})}const qP=_.styled.div`
264
264
  display: flex;
265
265
  flex-direction: column;
266
- `;function QP({children:e,...t}){return S.jsx(JP,{...t,children:e})}const lt=G.styled.div`
266
+ `;function ZP({children:e,...t}){return S.jsx(qP,{...t,children:e})}const at=_.styled.div`
267
267
  width: 1.5rem;
268
268
  height: 1.5rem;
269
269
  border: 1px solid
@@ -273,7 +273,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
273
273
  display: flex;
274
274
  align-items: center;
275
275
  justify-content: center;
276
- `,$i=G.styled.svg`
276
+ `,vi=_.styled.svg`
277
277
  width: 1rem;
278
278
  height: 1rem;
279
279
  fill: none;
@@ -282,7 +282,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
282
282
  stroke-dasharray: 22px;
283
283
  stroke-dashoffset: 66;
284
284
  transition: all 200ms;
285
- `,e9=G.styled(f8)`
285
+ `,XP=_.styled(u8)`
286
286
  display: flex;
287
287
  align-items: center;
288
288
  gap: 0.5rem;
@@ -290,11 +290,11 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
290
290
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
291
291
  forced-color-adjust: none;
292
292
 
293
- &[data-hovered] ${lt} {
293
+ &[data-hovered] ${at} {
294
294
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
295
295
  }
296
296
 
297
- &[data-focused] ${lt} {
297
+ &[data-focused] ${at} {
298
298
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
299
299
  outline: 2px solid
300
300
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
@@ -304,18 +304,18 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
304
304
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
305
305
 
306
306
  &[data-indeterminate] {
307
- & ${$i} {
307
+ & ${vi} {
308
308
  stroke: none;
309
309
  fill: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
310
310
  }
311
311
  }
312
312
 
313
- &[data-indeterminate] ${lt} {
313
+ &[data-indeterminate] ${at} {
314
314
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
315
315
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
316
316
  }
317
317
  }
318
- &[data-disabled] ${lt} {
318
+ &[data-disabled] ${at} {
319
319
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
320
320
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
321
321
  }
@@ -323,19 +323,19 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
323
323
  &[data-invalid] {
324
324
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
325
325
 
326
- ${lt} {
326
+ ${at} {
327
327
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[100])??x.colors.red[100]}};
328
328
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
329
329
  border: 1px solid
330
330
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
331
331
  }
332
332
 
333
- &[data-hovered] ${lt} {
333
+ &[data-hovered] ${at} {
334
334
  border: 1px solid
335
335
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
336
336
  }
337
337
 
338
- &[data-focused] ${lt} {
338
+ &[data-focused] ${at} {
339
339
  border: 1px solid
340
340
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
341
341
  outline: 2px solid
@@ -344,13 +344,13 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
344
344
 
345
345
  &[data-selected],
346
346
  &[data-indeterminate] {
347
- ${lt} {
347
+ ${at} {
348
348
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
349
349
  border: 1px solid
350
350
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
351
351
  }
352
352
 
353
- &[data-pressed] ${lt} {
353
+ &[data-pressed] ${at} {
354
354
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
355
355
  border: 1px solid
356
356
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
@@ -360,43 +360,43 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
360
360
 
361
361
  &[data-selected],
362
362
  &[data-indeterminate] {
363
- ${lt} {
363
+ ${at} {
364
364
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
365
365
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
366
366
  }
367
367
 
368
- &[data-pressed] ${lt} {
368
+ &[data-pressed] ${at} {
369
369
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
370
370
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
371
371
  }
372
372
 
373
- ${$i} {
373
+ ${vi} {
374
374
  stroke-dashoffset: 44;
375
375
  }
376
376
  }
377
377
 
378
378
  &[data-indeterminate] {
379
- & ${$i} {
379
+ & ${vi} {
380
380
  stroke: none;
381
381
  fill: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
382
382
  }
383
383
  }
384
- `;function t9({children:e,...t}){return S.jsx(e9,{...t,children:({isIndeterminate:n})=>S.jsxs(S.Fragment,{children:[S.jsx(lt,{children:S.jsx($i,{viewBox:"0 0 18 18","aria-hidden":"true",children:n?S.jsx("rect",{x:1,y:7.5,width:15,height:3}):S.jsx("polyline",{points:"1 9 7 14 15 4"})})}),e]})})}const n9=G.styled.div`
384
+ `;function JP({children:e,...t}){return S.jsx(XP,{...t,children:({isIndeterminate:n})=>S.jsxs(S.Fragment,{children:[S.jsx(at,{children:S.jsx(vi,{viewBox:"0 0 18 18","aria-hidden":"true",children:n?S.jsx("rect",{x:1,y:7.5,width:15,height:3}):S.jsx("polyline",{points:"1 9 7 14 15 4"})})}),e]})})}const QP=_.styled.div`
385
385
  width: 100%;
386
- `,r9=G.styled(yr.div)`
386
+ `,e9=_.styled(yr.div)`
387
387
  width: 100%;
388
388
  overflow: hidden;
389
- `,lc=d.createContext({});function o9({children:e,...t}){const n=d.useId(),[r,o]=gt(t.isOpen,t.defaultOpen||!1,t.onOpenChange),i=d.useRef(null),a=d.useCallback(()=>{o(!r)},[o,r]);return S.jsx(Ke,{values:[[lc,{isOpen:r,id:n,defaultOpen:t.defaultOpen||!1}]],children:S.jsx(Px,{ref:i,isPressed:r,onPress:a,"aria-expanded":r,"aria-controls":n,children:S.jsx(n9,{children:e})})})}function i9({children:e}){const{isOpen:t,id:n,defaultOpen:r}=d.useContext(lc);return S.jsx(r9,{id:n,variants:{hidden:{height:"0px",opacity:0},visible:{height:"auto",opacity:1}},initial:r?"visible":"hidden",animate:t?"visible":"hidden",transition:{type:"spring",bounce:0},children:e})}const a9=e=>{let t="";return Object.values(e).forEach(n=>{t+=`
389
+ `,ac=u.createContext({});function t9({children:e,...t}){const n=u.useId(),[r,o]=bt(t.isOpen,t.defaultOpen||!1,t.onOpenChange),i=u.useRef(null),a=u.useCallback(()=>{o(!r)},[o,r]);return S.jsx(Oe,{values:[[ac,{isOpen:r,id:n,defaultOpen:t.defaultOpen||!1}]],children:S.jsx(Cx,{ref:i,isPressed:r,onPress:a,"aria-expanded":r,"aria-controls":n,children:S.jsx(QP,{children:e})})})}function n9({children:e}){const{isOpen:t,id:n,defaultOpen:r}=u.useContext(ac);return S.jsx(e9,{id:n,variants:{hidden:{height:"0px",opacity:0},visible:{height:"auto",opacity:1}},initial:r?"visible":"hidden",animate:t?"visible":"hidden",transition:{type:"spring",bounce:0},children:e})}const r9=e=>{let t="";return Object.values(e).forEach(n=>{t+=`
390
390
  @media (min-width: ${n}) {
391
391
  max-width: ${n};
392
392
  }
393
- `}),t},s9=G.styled.div`
393
+ `}),t},o9=_.styled.div`
394
394
  width: 100%;
395
395
  margin: 0 auto;
396
396
  padding: 0 1rem;
397
397
 
398
- ${({theme:e})=>a9((e==null?void 0:e.screens)??x.screens)}
399
- `,l9=d.forwardRef(({children:e,...t},n)=>S.jsx(s9,{...t,ref:n,children:e})),u9=G.styled(yr(U4))`
398
+ ${({theme:e})=>r9((e==null?void 0:e.screens)??x.screens)}
399
+ `,i9=u.forwardRef(({children:e,...t},n)=>S.jsx(o9,{...t,ref:n,children:e})),a9=_.styled(yr(j4))`
400
400
  padding: 0.4rem 0;
401
401
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
402
402
  border-radius: 0.375rem;
@@ -404,9 +404,9 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
404
404
  background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
405
405
  border: 1px solid
406
406
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
407
- `;function o1({children:e,key:t,onAction:n,setAnimation:r,animation:o="hidden",...i}){return S.jsx(u9,{isExiting:o==="hidden",onAnimationComplete:a=>{r(s=>a==="hidden"&&s==="hidden"?"unmounted":s)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:o,...i,children:S.jsx(X8,{style:{outline:"none"},onAction:n,children:e})},t)}o1.defaultProps={key:void 0,onAction:void 0};const c9=G.styled(z8)`
407
+ `;function t1({children:e,key:t,onAction:n,setAnimation:r,animation:o="hidden",...i}){return S.jsx(a9,{isExiting:o==="hidden",onAnimationComplete:a=>{r(s=>a==="hidden"&&s==="hidden"?"unmounted":s)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:o,...i,children:S.jsx(Y8,{style:{outline:"none"},onAction:n,children:e})},t)}t1.defaultProps={key:void 0,onAction:void 0};const s9=_.styled(K8)`
408
408
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
409
- `,d9=G.styled(Y4)`
409
+ `,l9=_.styled(H4)`
410
410
  display: flex;
411
411
  align-items: center;
412
412
  border: 1px solid
@@ -457,7 +457,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
457
457
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
458
458
  }
459
459
  }
460
- `,f9=G.styled(q4)`
460
+ `,u9=_.styled(G4)`
461
461
  padding: 0.25rem;
462
462
  font-variant-numeric: tabular-nums;
463
463
  text-align: end;
@@ -507,24 +507,24 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
507
507
  color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
508
508
  }
509
509
  }
510
- `,p9=G.styled(Zt)`
510
+ `,c9=_.styled(qt)`
511
511
  display: flex;
512
512
  font-size: 0.8rem;
513
513
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
514
- `,h9=G.styled(To)`
514
+ `,d9=_.styled(Po)`
515
515
  display: flex;
516
516
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
517
517
  font-size: 0.8rem;
518
- `,b9=G.styled(wr)`
518
+ `,f9=_.styled(wr)`
519
519
  display: flex;
520
520
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
521
521
  font-size: 0.8rem;
522
- `;function i1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(c9,{...r,children:[S.jsx(p9,{children:e}),S.jsx(d9,{children:o=>S.jsx(f9,{segment:o})}),S.jsx(b9,{slot:"description",children:t}),S.jsx(h9,{children:n})]})}i1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const m9=G.styled.div`
522
+ `;function n1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(s9,{...r,children:[S.jsx(c9,{children:e}),S.jsx(l9,{children:o=>S.jsx(u9,{segment:o})}),S.jsx(f9,{slot:"description",children:t}),S.jsx(d9,{children:n})]})}n1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const p9=_.styled.div`
523
523
  width: ${({orientation:e})=>e==="vertical"?"1px":"100%"};
524
524
  height: ${({orientation:e})=>e==="vertical"?"auto":"1px"};
525
525
  margin: ${({orientation:e})=>e==="vertical"?"0 1rem":"1rem 0"};
526
526
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
527
- `;function g9(e){const{orientation:t}=e,{separatorProps:n}=Ky(e);return S.jsx(m9,{...n,orientation:t})}const wn=G.styled(Ao)`
527
+ `;function h9(e){const{orientation:t}=e,{separatorProps:n}=Vy(e);return S.jsx(p9,{...n,orientation:t})}const xn=_.styled(So)`
528
528
  border: 1px solid
529
529
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
530
530
  font-size: 0.9rem;
@@ -577,24 +577,24 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
577
577
  ::placeholder {
578
578
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
579
579
  }
580
- `,a1=G.styled(Zt)`
580
+ `,r1=_.styled(qt)`
581
581
  display: flex;
582
582
  font-size: 0.8rem;
583
583
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
584
- `,v9=G.styled(Sa)`
584
+ `,b9=_.styled(Ea)`
585
585
  display: flex;
586
586
  flex-direction: column;
587
587
  width: 100%;
588
588
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
589
- `,s1=G.styled(To)`
589
+ `,o1=_.styled(Po)`
590
590
  display: flex;
591
591
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
592
592
  font-size: 0.8rem;
593
- `,l1=G.styled(wr)`
593
+ `,i1=_.styled(wr)`
594
594
  display: flex;
595
595
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
596
596
  font-size: 0.8rem;
597
- `;function u1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(v9,{...r,children:[S.jsx(a1,{children:e}),S.jsx(wn,{}),t&&S.jsx(l1,{slot:"description",children:t}),S.jsx(s1,{children:n})]})}u1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const y9=G.styled(Ca)`
597
+ `;function a1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(b9,{...r,children:[S.jsx(r1,{children:e}),S.jsx(xn,{}),t&&S.jsx(i1,{slot:"description",children:t}),S.jsx(o1,{children:n})]})}a1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const m9=_.styled(xa)`
598
598
  color: ${({isDisabled:e,theme:t})=>{var n,r,o,i;return e?((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[300])??x.colors.slate[300]:((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[500])??x.colors.slate[500]}};
599
599
  cursor: ${({isDisabled:e})=>e?"default":"pointer"};
600
600
  text-decoration: none;
@@ -604,33 +604,33 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
604
604
  &:hover {
605
605
  color: ${({isDisabled:e,theme:t})=>{var n,r,o,i;return e?((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[300])??x.colors.slate[300]:((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[800])??x.colors.slate[800]}};
606
606
  }
607
- `;function $9({children:e,...t}){return S.jsx(y9,{...t,children:e})}const x9=G.styled(nP)`
607
+ `;function g9({children:e,...t}){return S.jsx(m9,{...t,children:e})}const v9=_.styled(Q8)`
608
608
  display: flex;
609
609
  flex-direction: column;
610
610
  gap: 0.5rem;
611
- `,w9=G.styled.div`
611
+ `,y9=_.styled.div`
612
612
  display: flex;
613
613
  justify-content: space-between;
614
614
  gap: 1rem;
615
- `,C9=G.styled(Zt)`
615
+ `,$9=_.styled(qt)`
616
616
  font-size: 0.875rem;
617
- `,D9=G.styled.span`
617
+ `,x9=_.styled.span`
618
618
  font-size: 0.875rem;
619
619
  font-variant-numeric: tabular-nums;
620
620
  margin-left: auto;
621
- `,E9=G.styled.div`
621
+ `,w9=_.styled.div`
622
622
  height: 0.625rem;
623
623
  border-radius: 0.3rem;
624
624
  background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
625
625
  forced-color-adjust: none;
626
626
  overflow: hidden;
627
- `,P9=G.styled(yr.div)`
627
+ `,C9=_.styled(yr.div)`
628
628
  height: 100%;
629
629
  background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
630
- `;function S9({label:e,showValue:t=!0,value:n=0,minValue:r=0,maxValue:o=100,formatOptions:i={style:"percent"},...a}){return S.jsx(x9,{value:n,minValue:r,maxValue:o,formatOptions:i,...a,children:({percentage:s,valueText:l})=>S.jsxs(S.Fragment,{children:[(e||t)&&S.jsxs(w9,{children:[e&&S.jsx(C9,{children:e}),t&&S.jsx(D9,{children:l})]}),S.jsx(E9,{children:S.jsx(P9,{initial:{width:`${s}%`},animate:{width:`${s}%`},transition:{type:"spring",bounce:0}})})]})})}const T9=G.styled(iP)`
630
+ `;function D9({label:e,showValue:t=!0,value:n=0,minValue:r=0,maxValue:o=100,formatOptions:i={style:"percent"},...a}){return S.jsx(v9,{value:n,minValue:r,maxValue:o,formatOptions:i,...a,children:({percentage:s,valueText:l})=>S.jsxs(S.Fragment,{children:[(e||t)&&S.jsxs(y9,{children:[e&&S.jsx($9,{children:e}),t&&S.jsx(x9,{children:l})]}),S.jsx(w9,{children:S.jsx(C9,{initial:{width:`${s}%`},animate:{width:`${s}%`},transition:{type:"spring",bounce:0}})})]})})}const E9=_.styled(nP)`
631
631
  position: absolute;
632
632
  inset: 50%;
633
- `;function A9(e){return S.jsx(T9,{...e})}const gp=G.keyframes`
633
+ `;function P9(e){return S.jsx(E9,{...e})}const bp=_.keyframes`
634
634
  0% {
635
635
  opacity: 0;
636
636
  backdrop-filter: blur(0);
@@ -640,7 +640,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
640
640
  opacity: 1;
641
641
  backdrop-filter: blur(10px);
642
642
  }
643
- `,M9=ge.default(t1)`
643
+ `,S9=_.styled(J4)`
644
644
  backdrop-filter: blur(10px);
645
645
  background: ${({theme:e})=>{var t;return`rgb(from ${((t=e==null?void 0:e.colors)==null?void 0:t.black)??x.colors.black} r g b / 30%)`}};
646
646
  position: fixed;
@@ -651,13 +651,13 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
651
651
  height: var(--visual-viewport-height);
652
652
 
653
653
  &[data-entering] {
654
- animation: ${gp} 300ms;
654
+ animation: ${bp} 300ms;
655
655
  }
656
656
 
657
657
  &[data-exiting] {
658
- animation: ${gp} 300ms reverse;
658
+ animation: ${bp} 300ms reverse;
659
659
  }
660
- `;function k9(e){return S.jsx(M9,{...e})}const vp=G.keyframes`
660
+ `;function T9(e){return S.jsx(S9,{...e})}const mp=_.keyframes`
661
661
  from {
662
662
  transform: translate(-50%, -50%) scale(0.8);
663
663
  }
@@ -665,7 +665,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
665
665
  to {
666
666
  transform: translate(-50%, -50%) scale(1);
667
667
  }
668
- `,Pl=ge.default(H4)`
668
+ `,Dl=_.styled(_4)`
669
669
  padding: 2rem;
670
670
  outline: none;
671
671
  box-shadow: 0 0.5rem 1.5rem rgba(0 0 0 / 0.1);
@@ -680,27 +680,27 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
680
680
  top: 50%;
681
681
  left: 50%;
682
682
  transform: translate(-50%, -50%);
683
- `,R9=G.createGlobalStyle`
684
- [data-entering] ${Pl} {
685
- animation: ${vp} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
683
+ `,A9=_.createGlobalStyle`
684
+ [data-entering] ${Dl} {
685
+ animation: ${mp} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
686
686
  }
687
687
 
688
- [data-exiting] ${Pl} {
689
- animation: ${vp} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) reverse;
688
+ [data-exiting] ${Dl} {
689
+ animation: ${mp} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) reverse;
690
690
  }
691
- `;function F9(e){return S.jsxs(S.Fragment,{children:[S.jsx(R9,{}),S.jsx(Pl,{...e})]})}const B9=G.keyframes`
691
+ `;function M9(e){return S.jsxs(S.Fragment,{children:[S.jsx(A9,{}),S.jsx(Dl,{...e})]})}const k9=_.keyframes`
692
692
  from { transform: translateY(-100%); }
693
693
  to { transform: translateY(0); }
694
- `,I9=G.keyframes`
694
+ `,R9=_.keyframes`
695
695
  from { transform: translateX(100%); }
696
696
  to { transform: translateX(0); }
697
- `,L9=G.keyframes`
697
+ `,F9=_.keyframes`
698
698
  from { transform: translateY(100%); }
699
699
  to { transform: translateY(0); }
700
- `,V9=G.keyframes`
700
+ `,B9=_.keyframes`
701
701
  from { transform: translateX(-100%); }
702
702
  to { transform: translateX(0); }
703
- `,Sl=ge.default(H4)`
703
+ `,El=_.styled(_4)`
704
704
  padding: 2rem;
705
705
  position: fixed;
706
706
  outline: none;
@@ -733,41 +733,41 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
733
733
  border-right-width: 1px;
734
734
  box-shadow: 0.5rem 0 1.5rem rgba(0 0 0 / 0.1);
735
735
  }
736
- `,O9=G.createGlobalStyle`
737
- [data-exiting] ${Sl} {
736
+ `,I9=_.createGlobalStyle`
737
+ [data-exiting] ${El} {
738
738
  animation-direction: reverse;
739
739
  animation-timing-function: ease-in;
740
740
  }
741
741
 
742
742
  [data-entering],
743
743
  [data-exiting] {
744
- ${Sl} {
744
+ ${El} {
745
745
  &[data-direction='top'] {
746
- animation-name: ${B9};
746
+ animation-name: ${k9};
747
747
  }
748
748
 
749
749
  &[data-direction='right'] {
750
- animation-name: ${I9};
750
+ animation-name: ${R9};
751
751
  }
752
752
 
753
753
  &[data-direction='bottom'] {
754
- animation-name: ${L9};
754
+ animation-name: ${F9};
755
755
  }
756
756
 
757
757
  &[data-direction='left'] {
758
- animation-name: ${V9};
758
+ animation-name: ${B9};
759
759
  }
760
760
  }
761
761
  }
762
- `;function c1({direction:e,...t}){return S.jsxs(S.Fragment,{children:[S.jsx(O9,{}),S.jsx(Sl,{"data-direction":e,...t})]})}c1.defaultProps={direction:"right"};const N9=G.styled(dP)`
762
+ `;function s1({direction:e,...t}){return S.jsxs(S.Fragment,{children:[S.jsx(I9,{}),S.jsx(El,{"data-direction":e,...t})]})}s1.defaultProps={direction:"right"};const L9=_.styled(lP)`
763
763
  display: flex;
764
764
  flex-direction: column;
765
765
  width: 100%;
766
- `,K9=G.styled(tc)`
766
+ `,V9=_.styled(Qu)`
767
767
  display: flex;
768
768
  border-radius: 0.375rem;
769
769
 
770
- ${Pt} {
770
+ ${Dt} {
771
771
  cursor: pointer;
772
772
  padding: 0;
773
773
  width: 2.5rem;
@@ -787,7 +787,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
787
787
  }
788
788
  }
789
789
 
790
- ${wn} {
790
+ ${xn} {
791
791
  border-radius: 0;
792
792
 
793
793
  &[data-focused] {
@@ -796,7 +796,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
796
796
  }
797
797
 
798
798
  &[data-hovered] {
799
- ${Pt}, ${wn} {
799
+ ${Dt}, ${xn} {
800
800
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
801
801
  }
802
802
  }
@@ -810,7 +810,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
810
810
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
811
811
  }
812
812
 
813
- ${Pt}, ${wn} {
813
+ ${Dt}, ${xn} {
814
814
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
815
815
  }
816
816
  }
@@ -818,17 +818,17 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
818
818
  &[data-disabled] {
819
819
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
820
820
 
821
- ${Pt} {
821
+ ${Dt} {
822
822
  cursor: default;
823
823
  }
824
824
 
825
- ${Pt}, ${wn} {
825
+ ${Dt}, ${xn} {
826
826
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
827
827
  }
828
828
  }
829
829
 
830
830
  &[data-invalid] {
831
- ${Pt}, ${wn} {
831
+ ${Dt}, ${xn} {
832
832
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
833
833
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[100])??x.colors.red[100]}};
834
834
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
@@ -844,18 +844,18 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
844
844
  }
845
845
 
846
846
  &[aria-readonly] {
847
- ${Pt} {
847
+ ${Dt} {
848
848
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
849
849
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
850
850
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
851
851
  cursor: default;
852
852
  }
853
853
  }
854
- `,j9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),_9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function d1({label:e,description:t,errorMessage:n,isInvalid:r,isReadOnly:o,slots:i,...a}){return S.jsxs(N9,{isInvalid:r,...a,children:[S.jsx(a1,{children:e}),S.jsxs(K9,{isInvalid:r,"aria-readonly":o,children:[S.jsx(Pt,{variant:"outline",slot:"decrement",children:i==null?void 0:i.decrementIcon}),S.jsx(wn,{readOnly:o}),S.jsx(Pt,{variant:"outline",slot:"increment",children:i==null?void 0:i.incrementIcon})]}),t&&S.jsx(l1,{slot:"description",children:t}),S.jsx(s1,{children:n})]})}d1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:j9,incrementIcon:_9}};const z9=G.styled(tc)`
854
+ `,O9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),N9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function l1({label:e,description:t,errorMessage:n,isInvalid:r,isReadOnly:o,slots:i,...a}){return S.jsxs(L9,{isInvalid:r,...a,children:[S.jsx(r1,{children:e}),S.jsxs(V9,{isInvalid:r,"aria-readonly":o,children:[S.jsx(Dt,{variant:"outline",slot:"decrement",children:i==null?void 0:i.decrementIcon}),S.jsx(xn,{readOnly:o}),S.jsx(Dt,{variant:"outline",slot:"increment",children:i==null?void 0:i.incrementIcon})]}),t&&S.jsx(i1,{slot:"description",children:t}),S.jsx(o1,{children:n})]})}l1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:O9,incrementIcon:N9}};const K9=_.styled(Qu)`
855
855
  display: flex;
856
856
  flex-wrap: wrap;
857
857
  gap: 0.5rem;
858
- `,U9=G.styled(Ao)`
858
+ `,j9=_.styled(So)`
859
859
  border: 1px solid
860
860
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
861
861
  font-size: 0.9rem;
@@ -909,70 +909,70 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
909
909
  ::placeholder {
910
910
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
911
911
  }
912
- `,H9=G.styled(Zt)`
912
+ `,_9=_.styled(qt)`
913
913
  display: flex;
914
914
  flex: 1 0 100%;
915
915
  font-size: 0.8rem;
916
916
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
917
- `,G9=G.styled(Sa)`
917
+ `,z9=_.styled(Ea)`
918
918
  display: flex;
919
919
  flex-direction: column;
920
920
  width: 100%;
921
921
  flex: 1;
922
922
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
923
- `,W9=G.styled(Sa)`
923
+ `,U9=_.styled(Ea)`
924
924
  display: flex;
925
925
  flex-direction: row;
926
926
  flex-wrap: wrap;
927
927
  flex: 1 0 100%;
928
928
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
929
- `,Y9=G.styled(To)`
929
+ `,H9=_.styled(Po)`
930
930
  display: flex;
931
931
  flex: 1 0 100%;
932
932
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
933
933
  font-size: 0.8rem;
934
- `,q9=G.styled(wr)`
934
+ `,G9=_.styled(wr)`
935
935
  display: flex;
936
936
  flex: 1 0 100%;
937
937
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
938
938
  font-size: 0.8rem;
939
- `;function f1({description:e,errorMessage:t,isDisabled:n=!1,isInvalid:r=!1,isMasked:o=!1,isRequired:i=!0,label:a,length:s=6,name:l,onChange:c,value:u="",type:f="numeric",validationBehavior:p="native",...h}){d.useState(-1);const[b,g]=d.useState(u),[y,$]=d.useState(Array(s).fill("")),C=d.useRef([]);d.useEffect(()=>{C.current=C.current.slice(0,s)},[s]),d.useEffect(()=>{const k=y.join("");g(k),c&&c(k)},[c,y]);const w=k=>{var F,A;const K=k.target.value,v=Number(k.target.getAttribute("data-pin-input-index"));K!==""&&v<y.length-1&&((A=(F=C.current)==null?void 0:F[v+1])==null||A.focus());const V=y.map((I,R)=>R===v?K:I);$(V)},E=k=>{var F,A,I,R;const K=Number(k.currentTarget.getAttribute("data-pin-input-index"));if(k.ctrlKey||k.metaKey)return;const v=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Control","Alt","Meta","Shift","Tab","Enter","Escape"],V={alpha:/^[a-z]$/i,alphanumeric:/^[a-z0-9]$/i,numeric:/^[0-9]$/i};if(!k.key.match(V[f])&&!v.includes(k.key)&&k.preventDefault(),y[K]===""&&K>0&&k.key==="Backspace"){const L=y.map((j,O)=>O===K-1?"":j);$(L),(A=(F=C.current)==null?void 0:F[K-1])==null||A.focus(),k.preventDefault()}if(y[K]===""&&K<y.length-1&&k.key==="Delete"){const L=y.map((j,O)=>O===K+1?"":j);$(L),(R=(I=C.current)==null?void 0:I[K+1])==null||R.focus(),k.preventDefault()}},P=k=>{var R,L;const K=Number(k.currentTarget.getAttribute("data-pin-input-index"));k.preventDefault();const v=(R=k.clipboardData)==null?void 0:R.getData("text");if(!v)return;const V=v.split("").filter(j=>{switch(f){case"alpha":return/^[a-zA-Z]$/.test(j);case"alphanumeric":return/^[a-z0-9]$/i.test(j);case"numeric":default:return/^[0-9]$/.test(j)}});if(V.length===0)return;const F=[...y];let A=K;for(let j=0;j<V.length&&K+j<s;j++)F[K+j]=V[j],A=K+j;$(F);const I=A+1<s?A+1:s-1;(L=C.current[I])==null||L.focus()};return S.jsxs(z9,{...h,"aria-label":a,children:[S.jsx(H9,{children:a}),y.map((k,K)=>S.jsx(G9,{"aria-label":`Pin Input Digit ${K+1}`,isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:S.jsx(U9,{onChange:w,onKeyDown:E,onPaste:P,type:o?"password":"text",ref:v=>v?C.current[K]=v:null,value:k,maxLength:1,name:l&&`${l}-${K}`,"data-pin-input-index":K})},`pin-input-${K}`)),S.jsxs(W9,{"aria-label":"Pin Input",isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:[l&&S.jsx(Ao,{type:"hidden",name:l,value:b}),e&&S.jsx(q9,{slot:"description",children:e}),S.jsx(Y9,{children:t})]})]})}f1.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const Z9=G.styled(n1)`
939
+ `;function u1({description:e,errorMessage:t,isDisabled:n=!1,isInvalid:r=!1,isMasked:o=!1,isRequired:i=!0,label:a,length:s=6,name:l,onChange:d,value:c="",type:f="numeric",validationBehavior:p="native",...h}){u.useState(-1);const[b,g]=u.useState(c),[y,$]=u.useState(Array(s).fill("")),C=u.useRef([]);u.useEffect(()=>{C.current=C.current.slice(0,s)},[s]),u.useEffect(()=>{const k=y.join("");g(k),d&&d(k)},[d,y]);const w=k=>{var F,A;const N=k.target.value,v=Number(k.target.getAttribute("data-pin-input-index"));N!==""&&v<y.length-1&&((A=(F=C.current)==null?void 0:F[v+1])==null||A.focus());const L=y.map((B,R)=>R===v?N:B);$(L)},E=k=>{var F,A,B,R;const N=Number(k.currentTarget.getAttribute("data-pin-input-index"));if(k.ctrlKey||k.metaKey)return;const v=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Control","Alt","Meta","Shift","Tab","Enter","Escape"],L={alpha:/^[a-z]$/i,alphanumeric:/^[a-z0-9]$/i,numeric:/^[0-9]$/i};if(!k.key.match(L[f])&&!v.includes(k.key)&&k.preventDefault(),y[N]===""&&N>0&&k.key==="Backspace"){const I=y.map((K,V)=>V===N-1?"":K);$(I),(A=(F=C.current)==null?void 0:F[N-1])==null||A.focus(),k.preventDefault()}if(y[N]===""&&N<y.length-1&&k.key==="Delete"){const I=y.map((K,V)=>V===N+1?"":K);$(I),(R=(B=C.current)==null?void 0:B[N+1])==null||R.focus(),k.preventDefault()}},P=k=>{var R,I;const N=Number(k.currentTarget.getAttribute("data-pin-input-index"));k.preventDefault();const v=(R=k.clipboardData)==null?void 0:R.getData("text");if(!v)return;const L=v.split("").filter(K=>{switch(f){case"alpha":return/^[a-zA-Z]$/.test(K);case"alphanumeric":return/^[a-z0-9]$/i.test(K);case"numeric":default:return/^[0-9]$/.test(K)}});if(L.length===0)return;const F=[...y];let A=N;for(let K=0;K<L.length&&N+K<s;K++)F[N+K]=L[K],A=N+K;$(F);const B=A+1<s?A+1:s-1;(I=C.current[B])==null||I.focus()};return S.jsxs(K9,{...h,"aria-label":a,children:[S.jsx(_9,{children:a}),y.map((k,N)=>S.jsx(z9,{"aria-label":`Pin Input Digit ${N+1}`,isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:S.jsx(j9,{onChange:w,onKeyDown:E,onPaste:P,type:o?"password":"text",ref:v=>v?C.current[N]=v:null,value:k,maxLength:1,name:l&&`${l}-${N}`,"data-pin-input-index":N})},`pin-input-${N}`)),S.jsxs(U9,{"aria-label":"Pin Input",isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:[l&&S.jsx(So,{type:"hidden",name:l,value:b}),e&&S.jsx(G9,{slot:"description",children:e}),S.jsx(H9,{children:t})]})]})}u1.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const W9=_.styled(Q4)`
940
940
  display: flex;
941
- `,X9=G.styled.div`
941
+ `,Y9=_.styled.div`
942
942
  display: flex;
943
943
  flex-direction: column;
944
944
  align-items: center;
945
- `,J9=G.styled(Zt)`
945
+ `,q9=_.styled(qt)`
946
946
  font-size: 0.875rem;
947
- `,Q9=G.styled.circle`
947
+ `,Z9=_.styled.circle`
948
948
  stroke: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
949
- `,eS=G.styled.circle`
949
+ `,X9=_.styled.circle`
950
950
  stroke: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
951
951
  transition: stroke-dashoffset 600ms ease-in-out;
952
- `,tS=G.styled.text`
952
+ `,J9=_.styled.text`
953
953
  font-size: 0.875rem;
954
954
  fill: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
955
- `;function nS({label:e,value:t=0,showValue:n=!0,size:r=60,strokeWidth:o=6,...i}){const a=r/2,s=a-o,l=2*Math.PI*s;return S.jsx(Z9,{"aria-label":"Loading...",...i,value:t,children:({percentage:c=0})=>S.jsxs(X9,{children:[S.jsx(J9,{children:e}),S.jsxs("svg",{width:r,height:r,fill:"none",children:[S.jsx(Q9,{cx:a,cy:a,r:s,strokeWidth:o}),S.jsx(eS,{cx:a,cy:a,r:s,strokeWidth:o,strokeDasharray:`${l} ${l}`,strokeDashoffset:(100-c)/100*l,strokeLinecap:"round",transform:`rotate(-90 ${a} ${a})`}),n&&S.jsxs(tS,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[c,"%"]})]})]})})}const rS=G.styled(n1)`
955
+ `;function Q9({label:e,value:t=0,showValue:n=!0,size:r=60,strokeWidth:o=6,...i}){const a=r/2,s=a-o,l=2*Math.PI*s;return S.jsx(W9,{"aria-label":"Loading...",...i,value:t,children:({percentage:d=0})=>S.jsxs(Y9,{children:[S.jsx(q9,{children:e}),S.jsxs("svg",{width:r,height:r,fill:"none",children:[S.jsx(Z9,{cx:a,cy:a,r:s,strokeWidth:o}),S.jsx(X9,{cx:a,cy:a,r:s,strokeWidth:o,strokeDasharray:`${l} ${l}`,strokeDashoffset:(100-d)/100*l,strokeLinecap:"round",transform:`rotate(-90 ${a} ${a})`}),n&&S.jsxs(J9,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[d,"%"]})]})]})})}const eS=_.styled(Q4)`
956
956
  width: ${({width:e})=>e||"100%"};
957
957
  overflow: hidden;
958
- `,oS=G.styled.div`
958
+ `,tS=_.styled.div`
959
959
  display: flex;
960
960
  align-items: center;
961
961
  justify-content: space-between;
962
962
  gap: 0.5rem;
963
963
  margin-bottom: 0.3rem;
964
- `,iS=G.styled(Zt)`
964
+ `,nS=_.styled(qt)`
965
965
  font-size: 0.875rem;
966
- `,aS=G.styled.span`
966
+ `,rS=_.styled.span`
967
967
  font-size: 0.875rem;
968
- `,sS=G.styled.div`
968
+ `,oS=_.styled.div`
969
969
  forced-color-adjust: none;
970
970
  height: 0.625rem;
971
971
  border-radius: 0.3rem;
972
972
  overflow: hidden;
973
973
  will-change: transform;
974
974
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
975
- `,lS=G.styled.div`
975
+ `,iS=_.styled.div`
976
976
  width: ${({width:e,isIndeterminate:t})=>t?"40%":e};
977
977
  transition: ${({isIndeterminate:e})=>e?"none":"width 600ms ease-in-out"};
978
978
  height: 100%;
@@ -989,15 +989,15 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
989
989
  transform: translateX(250px);
990
990
  }
991
991
  }
992
- `;function uS({label:e,isIndeterminate:t,showValue:n=!0,width:r,...o}){return S.jsx(rS,{...o,width:r,children:({percentage:i,valueText:a})=>S.jsxs(S.Fragment,{children:[S.jsxs(oS,{children:[S.jsx(iS,{children:e}),n&&S.jsx(aS,{children:a})]}),S.jsx(sS,{children:S.jsx(lS,{isIndeterminate:t,width:typeof i=="number"?`${i}%`:""})})]})})}const cS=G.styled(K8)`
992
+ `;function aS({label:e,isIndeterminate:t,showValue:n=!0,width:r,...o}){return S.jsx(eS,{...o,width:r,children:({percentage:i,valueText:a})=>S.jsxs(S.Fragment,{children:[S.jsxs(tS,{children:[S.jsx(nS,{children:e}),n&&S.jsx(rS,{children:a})]}),S.jsx(oS,{children:S.jsx(iS,{isIndeterminate:t,width:typeof i=="number"?`${i}%`:""})})]})})}const sS=_.styled(V8)`
993
993
  display: flex;
994
994
  flex-direction: column;
995
995
  width: 100%;
996
- `,dS=G.styled.div`
996
+ `,lS=_.styled.div`
997
997
  display: flex;
998
998
  position: relative;
999
999
  width: 100%;
1000
- `,fS=G.styled(yr(U4))`
1000
+ `,uS=_.styled(yr(j4))`
1001
1001
  padding: 0.4rem 0;
1002
1002
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
1003
1003
  border-radius: 0.375rem;
@@ -1005,7 +1005,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1005
1005
  background: #fff;
1006
1006
  border: 1px solid
1007
1007
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1008
- `,pS=G.styled(Ao).withConfig({shouldForwardProp:e=>!["isLoading"].includes(e)})`
1008
+ `,cS=_.styled(So).withConfig({shouldForwardProp:e=>!["isLoading"].includes(e)})`
1009
1009
  border: 1px solid
1010
1010
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1011
1011
  font-size: 0.9rem;
@@ -1063,43 +1063,43 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1063
1063
  ::placeholder {
1064
1064
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1065
1065
  }
1066
- `,hS=G.styled.svg.withConfig({shouldForwardProp:e=>!["isDisabled","isInvalid","isOpen"].includes(e)})`
1066
+ `,dS=_.styled.svg.withConfig({shouldForwardProp:e=>!["isDisabled","isInvalid","isOpen"].includes(e)})`
1067
1067
  transition: all ease 200ms;
1068
1068
  transform: rotate(${({isOpen:e})=>e?"180deg":"0"});
1069
1069
 
1070
1070
  path {
1071
1071
  stroke: ${({isDisabled:e,isInvalid:t,theme:n})=>{var r,o,i,a,s,l;return t?((o=(r=n==null?void 0:n.colors)==null?void 0:r.red)==null?void 0:o[500])??x.colors.red[500]:e?((a=(i=n==null?void 0:n.colors)==null?void 0:i.slate)==null?void 0:a[400])??x.colors.slate[400]:((l=(s=n==null?void 0:n.colors)==null?void 0:s.slate)==null?void 0:l[900])??x.colors.slate[900]}};
1072
1072
  }
1073
- `,bS=G.styled.div`
1073
+ `,fS=_.styled.div`
1074
1074
  position: absolute;
1075
1075
  display: block;
1076
1076
  top: 0.5rem;
1077
1077
  right: 0.5rem;
1078
- `,mS=G.styled(O4)`
1078
+ `,pS=_.styled(I4)`
1079
1079
  position: absolute;
1080
1080
  display: block;
1081
1081
  top: 0.5rem;
1082
1082
  right: 0;
1083
1083
  border: none;
1084
1084
  background: none;
1085
- `,gS=G.styled(Zt)`
1085
+ `,hS=_.styled(qt)`
1086
1086
  display: flex;
1087
1087
  font-size: 0.8rem;
1088
1088
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1089
- `;G.styled(Sa)`
1089
+ `;_.styled(Ea)`
1090
1090
  display: flex;
1091
1091
  flex-direction: column;
1092
1092
  width: 100%;
1093
1093
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1094
- `;const vS=G.styled(To)`
1094
+ `;const bS=_.styled(Po)`
1095
1095
  display: flex;
1096
1096
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1097
1097
  font-size: 0.8rem;
1098
- `,yS=G.styled(wr)`
1098
+ `,mS=_.styled(wr)`
1099
1099
  display: flex;
1100
1100
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1101
1101
  font-size: 0.8rem;
1102
- `,$S=G.styled(S8)`
1102
+ `,gS=_.styled(D8)`
1103
1103
  display: flex;
1104
1104
  flex: 1 1 auto;
1105
1105
  align-items: center;
@@ -1142,11 +1142,11 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1142
1142
  background: none;
1143
1143
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1144
1144
  }
1145
- `;function xS(e){return S.jsx($S,{...e})}const wS=G.keyframes`
1145
+ `;function vS(e){return S.jsx(gS,{...e})}const yS=_.keyframes`
1146
1146
  100% {
1147
1147
  transform: rotate(360deg);
1148
1148
  }
1149
- `,CS=G.keyframes`
1149
+ `,$S=_.keyframes`
1150
1150
  0% {
1151
1151
  stroke-dasharray: 1, 200;
1152
1152
  stroke-dashoffset: 0;
@@ -1159,7 +1159,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1159
1159
  stroke-dasharray: 89, 200;
1160
1160
  stroke-dashoffset: -124px;
1161
1161
  }
1162
- `,DS=ge.default.div`
1162
+ `,xS=_.styled.div`
1163
1163
  position: relative;
1164
1164
  margin: 0;
1165
1165
  width: ${({width:e})=>e}px;
@@ -1168,8 +1168,8 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1168
1168
  display: block;
1169
1169
  padding-top: 100%;
1170
1170
  }
1171
- `,ES=ge.default.svg`
1172
- animation: ${wS} 2s linear infinite;
1171
+ `,wS=_.styled.svg`
1172
+ animation: ${yS} 2s linear infinite;
1173
1173
  height: 100%;
1174
1174
  transform-origin: center center;
1175
1175
  width: 100%;
@@ -1179,12 +1179,12 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1179
1179
  left: 0;
1180
1180
  right: 0;
1181
1181
  margin: auto;
1182
- `,PS=ge.default.circle`
1182
+ `,CS=_.styled.circle`
1183
1183
  stroke: ${({stroke:e})=>e};
1184
1184
  stroke-dasharray: 1, 200;
1185
1185
  stroke-dashoffset: 0;
1186
- animation: ${CS} 1.5s ease-in-out infinite;
1187
- `;function SS({width:e,stroke:t,strokeLinecap:n="round",strokeWidth:r=5,...o}){return S.jsx(DS,{width:e,...o,children:S.jsx(ES,{viewBox:"25 25 50 50",children:S.jsx(PS,{className:"path",cx:"50",cy:"50",fill:"none",r:"20",stroke:t,strokeLinecap:n,strokeMiterlimit:"10",strokeWidth:r})})})}const TS=G.keyframes`
1186
+ animation: ${$S} 1.5s ease-in-out infinite;
1187
+ `;function DS({width:e,stroke:t,strokeLinecap:n="round",strokeWidth:r=5,...o}){return S.jsx(xS,{width:e,...o,children:S.jsx(wS,{viewBox:"25 25 50 50",children:S.jsx(CS,{className:"path",cx:"50",cy:"50",fill:"none",r:"20",stroke:t,strokeLinecap:n,strokeMiterlimit:"10",strokeWidth:r})})})}const ES=_.keyframes`
1188
1188
  0% {
1189
1189
  transform: scale(1);
1190
1190
  opacity: 1;
@@ -1197,19 +1197,19 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1197
1197
  transform: scale(1);
1198
1198
  opacity: 1;
1199
1199
  }
1200
- `,As=ge.default.span`
1200
+ `,Ss=_.styled.span`
1201
1201
  background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1202
1202
  display: inline-block;
1203
1203
  width: 0.5rem;
1204
1204
  height: 0.5rem;
1205
1205
  margin: 0.1rem;
1206
1206
  border-radius: 0.5rem;
1207
- animation: ${TS}
1207
+ animation: ${ES}
1208
1208
  ${({speedMultiplier:e})=>.75/e}s
1209
1209
  ${({i:e,speedMultiplier:t})=>e*.12/t}s infinite
1210
1210
  cubic-bezier(0.2, 0.68, 0.18, 1.08);
1211
1211
  animation-fill-mode: both;
1212
- `;function p1(){return S.jsxs("span",{children:[S.jsx(As,{speedMultiplier:1,i:1}),S.jsx(As,{speedMultiplier:1,i:2}),S.jsx(As,{speedMultiplier:1,i:3})]})}function h1({label:e,description:t,errorMessage:n,children:r,placeholder:o,key:i,isLoading:a,...s}){const[l,c]=d.useState("unmounted"),u=d.useRef(null),[f,p]=d.useState(!1);return S.jsxs(cS,{ref:u,onOpenChange:()=>{c(l==="visible"?"hidden":"visible"),p(!f)},isDisabled:s.isDisabled||a,...s,children:[S.jsx(gS,{children:e}),S.jsxs(dS,{children:[S.jsx(pS,{placeholder:o,isLoading:a??!1}),a?S.jsx(bS,{children:S.jsx(p1,{})}):S.jsx(mS,{children:S.jsx(hS,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",isOpen:l==="visible",isDisabled:!!s.isDisabled,isInvalid:!!s.isInvalid,children:S.jsx("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t&&S.jsx(yS,{slot:"description",children:t}),S.jsx(vS,{children:n}),S.jsx(fS,{isOpen:f,style:{width:u.current?u.current.getBoundingClientRect().width:"14rem"},isExiting:l==="hidden",onAnimationComplete:h=>{c(b=>h==="hidden"&&b==="hidden"?"unmounted":b)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:l,children:S.jsx(C8,{style:{maxHeight:"20rem",overflowY:"scroll"},children:r})},i)]})}h1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1};const AS=G.styled(mP)`
1212
+ `;function c1(){return S.jsxs("span",{children:[S.jsx(Ss,{speedMultiplier:1,i:1}),S.jsx(Ss,{speedMultiplier:1,i:2}),S.jsx(Ss,{speedMultiplier:1,i:3})]})}function d1({label:e,description:t,errorMessage:n,children:r,placeholder:o,key:i,isLoading:a,...s}){const[l,d]=u.useState("unmounted"),c=u.useRef(null),[f,p]=u.useState(!1);return S.jsxs(sS,{ref:c,onOpenChange:()=>{d(l==="visible"?"hidden":"visible"),p(!f)},isDisabled:s.isDisabled||a,...s,children:[S.jsx(hS,{children:e}),S.jsxs(lS,{children:[S.jsx(cS,{placeholder:o,isLoading:a??!1}),a?S.jsx(fS,{children:S.jsx(c1,{})}):S.jsx(pS,{children:S.jsx(dS,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",isOpen:l==="visible",isDisabled:!!s.isDisabled,isInvalid:!!s.isInvalid,children:S.jsx("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t&&S.jsx(mS,{slot:"description",children:t}),S.jsx(bS,{children:n}),S.jsx(uS,{isOpen:f,style:{width:c.current?c.current.getBoundingClientRect().width:"14rem"},isExiting:l==="hidden",onAnimationComplete:h=>{d(b=>h==="hidden"&&b==="hidden"?"unmounted":b)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:l,children:S.jsx($8,{style:{maxHeight:"20rem",overflowY:"scroll"},children:r})},i)]})}d1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1};const PS=_.styled(pP)`
1213
1213
  --label-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1214
1214
  --track-background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1215
1215
  --thumb-background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
@@ -1235,19 +1235,19 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1235
1235
  height: 100%;
1236
1236
  width: 2rem;
1237
1237
  }
1238
- `,MS=G.styled(Zt)`
1238
+ `,SS=_.styled(qt)`
1239
1239
  display: flex;
1240
1240
  flex: 1 1 0;
1241
1241
  font-size: 0.8rem;
1242
1242
  color: var(--label-color);
1243
- `,kS=G.styled(vP)`
1243
+ `,TS=_.styled(bP)`
1244
1244
  display: flex;
1245
1245
  flex: 0 1 0;
1246
1246
  margin-left: auto;
1247
1247
  justify-content: flex-end;
1248
1248
  font-size: 0.8rem;
1249
1249
  color: var(--label-color);
1250
- `,Tl=G.styled(wP)`
1250
+ `,Pl=_.styled(yP)`
1251
1251
  background-color: var(--thumb-background);
1252
1252
  border: 2px solid var(--thumb-border-color);
1253
1253
  forced-color-adjust: none;
@@ -1265,7 +1265,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1265
1265
  &[data-dragging] {
1266
1266
  background-color: var(--thumb-background-dragging);
1267
1267
  }
1268
- `,RS=G.styled($P)`
1268
+ `,AS=_.styled(gP)`
1269
1269
  width: 100%;
1270
1270
  transition: all ease 0.25s;
1271
1271
 
@@ -1288,7 +1288,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1288
1288
  transform: translateY(-50%);
1289
1289
  }
1290
1290
 
1291
- ${Tl} {
1291
+ ${Pl} {
1292
1292
  top: 50%;
1293
1293
  }
1294
1294
  }
@@ -1304,11 +1304,11 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1304
1304
  transform: translate(-50%);
1305
1305
  }
1306
1306
 
1307
- ${Tl} {
1307
+ ${Pl} {
1308
1308
  left: 50%;
1309
1309
  }
1310
1310
  }
1311
- `;function b1({label:e,showOutput:t=!0,thumbLabels:n,...r}){return S.jsxs(AS,{...r,children:[S.jsx(MS,{children:e}),t&&S.jsx(kS,{children:({state:o})=>o.values.map((i,a)=>o.getThumbValueLabel(a)).join(" – ")}),S.jsx(RS,{children:({state:o})=>o.values.map((i,a)=>S.jsx(Tl,{index:a,"aria-label":n==null?void 0:n[a]},a))})]})}b1.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const Lt=G.styled.div`
1311
+ `;function f1({label:e,showOutput:t=!0,thumbLabels:n,...r}){return S.jsxs(PS,{...r,children:[S.jsx(SS,{children:e}),t&&S.jsx(TS,{children:({state:o})=>o.values.map((i,a)=>o.getThumbValueLabel(a)).join(" – ")}),S.jsx(AS,{children:({state:o})=>o.values.map((i,a)=>S.jsx(Pl,{index:a,"aria-label":n==null?void 0:n[a]},a))})]})}f1.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const Bt=_.styled.div`
1312
1312
  width: 4rem;
1313
1313
  height: 2.5rem;
1314
1314
  border: 1px solid
@@ -1327,7 +1327,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1327
1327
  border-radius: 1.25rem;
1328
1328
  transition: all cubic-bezier(0.4, 0, 0.2, 1) 200ms;
1329
1329
  }
1330
- `,FS=G.styled(EP)`
1330
+ `,MS=_.styled(wP)`
1331
1331
  display: flex;
1332
1332
  align-items: center;
1333
1333
  gap: 0.5rem;
@@ -1335,15 +1335,15 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1335
1335
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1336
1336
  forced-color-adjust: none;
1337
1337
 
1338
- &[data-hovered] ${Lt} {
1338
+ &[data-hovered] ${Bt} {
1339
1339
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1340
1340
  }
1341
1341
 
1342
- &[data-disabled] ${Lt} {
1342
+ &[data-disabled] ${Bt} {
1343
1343
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
1344
1344
  }
1345
1345
 
1346
- &[data-pressed] ${Lt} {
1346
+ &[data-pressed] ${Bt} {
1347
1347
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1348
1348
 
1349
1349
  &:before {
@@ -1351,14 +1351,14 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1351
1351
  }
1352
1352
  }
1353
1353
 
1354
- &[data-focused] ${Lt} {
1354
+ &[data-focused] ${Bt} {
1355
1355
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1356
1356
  outline: 2px solid
1357
1357
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
1358
1358
  }
1359
1359
 
1360
1360
  &[data-selected] {
1361
- ${Lt} {
1361
+ ${Bt} {
1362
1362
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1363
1363
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1364
1364
 
@@ -1368,21 +1368,21 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1368
1368
  }
1369
1369
  }
1370
1370
 
1371
- &[data-hovered] ${Lt} {
1371
+ &[data-hovered] ${Bt} {
1372
1372
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1373
1373
  }
1374
- &[data-focused] ${Lt} {
1374
+ &[data-focused] ${Bt} {
1375
1375
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1376
1376
  }
1377
1377
 
1378
1378
  &[data-pressed] {
1379
- ${Lt} {
1379
+ ${Bt} {
1380
1380
  border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1381
1381
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1382
1382
  }
1383
1383
  }
1384
1384
  }
1385
- `;function BS({children:e,...t}){return S.jsxs(FS,{...t,children:[S.jsx(Lt,{}),e]})}const IS=ge.default(TP)`
1385
+ `;function kS({children:e,...t}){return S.jsxs(MS,{...t,children:[S.jsx(Bt,{}),e]})}const RS=_.styled(EP)`
1386
1386
  width: 100%;
1387
1387
  display: flex;
1388
1388
  flex-direction: column;
@@ -1391,7 +1391,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1391
1391
  &[data-orientation='vertical'] {
1392
1392
  flex-direction: row;
1393
1393
  }
1394
- `,LS=ge.default(kP)`
1394
+ `,FS=_.styled(TP)`
1395
1395
  width: 100%;
1396
1396
  position: relative;
1397
1397
  display: flex;
@@ -1405,16 +1405,16 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1405
1405
  justify-content: flex-start;
1406
1406
  }
1407
1407
 
1408
- ${({variant:e,theme:t})=>{var n,r,o,i,a,s,l,c;switch(e){case"solid":return G.css`
1408
+ ${({variant:e,theme:t})=>{var n,r,o,i,a,s,l,d;switch(e){case"solid":return _.css`
1409
1409
  background-color: ${((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[200])??x.colors.slate[200]};
1410
1410
  border-radius: 0.75rem;
1411
1411
  padding: 0.25rem;
1412
- `;case"outline":return G.css`
1412
+ `;case"outline":return _.css`
1413
1413
  border: 2px solid
1414
1414
  ${((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[200])??x.colors.slate[200]};
1415
1415
  border-radius: 0.75rem;
1416
1416
  padding: 0.25rem;
1417
- `;case"underline":return G.css`
1417
+ `;case"underline":return _.css`
1418
1418
  &[data-orientation='vertical'] {
1419
1419
  &:before {
1420
1420
  display: block;
@@ -1436,11 +1436,11 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1436
1436
  right: 0;
1437
1437
  content: '';
1438
1438
  height: 1px;
1439
- background-color: ${((c=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:c[200])??x.colors.slate[200]};
1439
+ background-color: ${((d=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:d[200])??x.colors.slate[200]};
1440
1440
  }
1441
1441
  }
1442
1442
  `;default:return null}}}
1443
- `,m1=ge.default(FP)`
1443
+ `,p1=_.styled(MP)`
1444
1444
  position: relative;
1445
1445
  z-index: 3;
1446
1446
  display: flex;
@@ -1473,21 +1473,21 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1473
1473
  &[data-disabled] {
1474
1474
  opacity: 0.5;
1475
1475
  }
1476
- `,VS=ge.default(yr.span).attrs({className:"tab-overlay"})`
1476
+ `,BS=_.styled(yr.span).attrs({className:"tab-overlay"})`
1477
1477
  position: absolute;
1478
1478
  z-index: 1;
1479
1479
 
1480
- ${({orientation:e,theme:t,variant:n})=>{var r,o,i,a,s,l,c,u,f,p,h;switch(n){case"solid":return G.css`
1480
+ ${({orientation:e,theme:t,variant:n})=>{var r,o,i,a,s,l,d,c,f,p,h;switch(n){case"solid":return _.css`
1481
1481
  inset: 0px;
1482
1482
  border-radius: 0.5rem;
1483
1483
  background-color: ${((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[600])??x.colors.slate[600]};
1484
1484
  mix-blend-mode: color;
1485
- `;case"outline":return G.css`
1485
+ `;case"outline":return _.css`
1486
1486
  inset: 0px;
1487
1487
  border: 2px solid
1488
1488
  ${((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[800])??x.colors.slate[800]};
1489
1489
  border-radius: 0.5rem;
1490
- `;case"underline":return e==="horizontal"?G.css`
1490
+ `;case"underline":return e==="horizontal"?_.css`
1491
1491
  bottom: 0;
1492
1492
  left: 0;
1493
1493
  width: 100%;
@@ -1495,15 +1495,15 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1495
1495
  border-radius: 0.5rem;
1496
1496
  background-color: ${((l=(s=t==null?void 0:t.colors)==null?void 0:s.slate)==null?void 0:l[800])??x.colors.slate[800]};
1497
1497
  mix-blend-mode: color;
1498
- `:G.css`
1498
+ `:_.css`
1499
1499
  bottom: 0;
1500
1500
  right: 0;
1501
1501
  width: 1px;
1502
1502
  height: 100%;
1503
1503
  border-radius: 0.5rem;
1504
- background-color: ${((u=(c=t==null?void 0:t.colors)==null?void 0:c.slate)==null?void 0:u[800])??x.colors.slate[800]};
1504
+ background-color: ${((c=(d=t==null?void 0:t.colors)==null?void 0:d.slate)==null?void 0:c[800])??x.colors.slate[800]};
1505
1505
  mix-blend-mode: color;
1506
- `;case"enclosed":return G.css`
1506
+ `;case"enclosed":return _.css`
1507
1507
  inset: 0px;
1508
1508
  border: 1px solid
1509
1509
  ${((p=(f=t==null?void 0:t.colors)==null?void 0:f.slate)==null?void 0:p[800])??x.colors.slate[800]};
@@ -1512,16 +1512,16 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1512
1512
  border-radius: 0.5rem 0.5rem 0 0;
1513
1513
  background-color: ${((h=t==null?void 0:t.colors)==null?void 0:h.white)??x.colors.white};
1514
1514
  mix-blend-mode: difference;
1515
- `;case"base":default:return G.css`
1515
+ `;case"base":default:return _.css`
1516
1516
  display: none;
1517
1517
  `}}}
1518
- `,OS=ge.default(LP)`
1518
+ `,IS=_.styled(FP)`
1519
1519
  display: flex;
1520
1520
  flex-grow: 1;
1521
1521
  padding: 1rem 0;
1522
- `,Ta=d.createContext("horizontal");function NS({children:e,...t}){return S.jsx(Ta.Provider,{value:t.orientation??"horizontal",children:S.jsx(IS,{...t,children:e})})}function KS({variant:e="base",...t}){const n=d.useContext(Ta);return S.jsx(m1,{orientation:n,variant:e,...t,children:({isSelected:r,isFocusVisible:o})=>S.jsxs(S.Fragment,{children:[t.children,(o||r)&&S.jsx(VS,{orientation:n,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function jS({items:e,children:t,variant:n="base",...r}){const o=d.useContext(Ta);return S.jsx(LS,{items:e,variant:n,...r,children:t||(i=>S.jsx(m1,{orientation:o,children:i.title}))})}function _S({children:e,...t}){return S.jsx(OS,{...t,children:e})}const zS=G.styled(H8)`
1522
+ `,Pa=u.createContext("horizontal");function LS({children:e,...t}){return S.jsx(Pa.Provider,{value:t.orientation??"horizontal",children:S.jsx(RS,{...t,children:e})})}function VS({variant:e="base",...t}){const n=u.useContext(Pa);return S.jsx(p1,{orientation:n,variant:e,...t,children:({isSelected:r,isFocusVisible:o})=>S.jsxs(S.Fragment,{children:[t.children,(o||r)&&S.jsx(BS,{orientation:n,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function OS({items:e,children:t,variant:n="base",...r}){const o=u.useContext(Pa);return S.jsx(FS,{items:e,variant:n,...r,children:t||(i=>S.jsx(p1,{orientation:o,children:i.title}))})}function NS({children:e,...t}){return S.jsx(IS,{...t,children:e})}const KS=_.styled(_8)`
1523
1523
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1524
- `,US=G.styled(Y4)`
1524
+ `,jS=_.styled(H4)`
1525
1525
  display: flex;
1526
1526
  align-items: center;
1527
1527
  border: 1px solid
@@ -1572,7 +1572,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1572
1572
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
1573
1573
  }
1574
1574
  }
1575
- `,HS=G.styled(q4)`
1575
+ `,_S=_.styled(G4)`
1576
1576
  padding: 0.25rem;
1577
1577
  font-variant-numeric: tabular-nums;
1578
1578
  text-align: end;
@@ -1622,19 +1622,19 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1622
1622
  color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
1623
1623
  }
1624
1624
  }
1625
- `,GS=G.styled(Zt)`
1625
+ `,zS=_.styled(qt)`
1626
1626
  display: flex;
1627
1627
  font-size: 0.8rem;
1628
1628
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1629
- `,WS=G.styled(To)`
1629
+ `,US=_.styled(Po)`
1630
1630
  display: flex;
1631
1631
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1632
1632
  font-size: 0.8rem;
1633
- `,YS=G.styled(wr)`
1633
+ `,HS=_.styled(wr)`
1634
1634
  display: flex;
1635
1635
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1636
1636
  font-size: 0.8rem;
1637
- `;function g1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(zS,{...r,children:[S.jsx(GS,{children:e}),S.jsx(US,{children:o=>S.jsx(HS,{segment:o})}),S.jsx(YS,{slot:"description",children:t}),S.jsx(WS,{children:n})]})}g1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const qS=G.styled(_P)`
1637
+ `;function h1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(KS,{...r,children:[S.jsx(zS,{children:e}),S.jsx(jS,{children:o=>S.jsx(_S,{segment:o})}),S.jsx(HS,{slot:"description",children:t}),S.jsx(US,{children:n})]})}h1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const GS=_.styled(NP)`
1638
1638
  display: flex;
1639
1639
  align-items: center;
1640
1640
  font-size: 0.9rem;
@@ -1668,7 +1668,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1668
1668
  border-color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":return"transparent";case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[200])??x.colors.slate[200];case"solid":default:return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[100])??x.colors.slate[100]}}};
1669
1669
  color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[500])??x.colors.slate[500];case"solid":default:return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[400])??x.colors.slate[400]}}};
1670
1670
  }
1671
- `;function ZS({children:e,size:t="md",variant:n="solid",...r}){return S.jsx(qS,{...r,size:t,variant:n,children:e})}var XS=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(t==null?void 0:t[e])||{}},JS=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],yp=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e};function QS(e){const[t,n]=Ih(e,Xc.variantKeys),{ref:r,as:o,isOpen:i,content:a,children:s,defaultOpen:l,onOpenChange:c,isDisabled:u,trigger:f,shouldFlip:p=!0,containerPadding:h=12,placement:b="top",delay:g=0,closeDelay:y=500,showArrow:$=!1,offset:C=7,crossOffset:w=0,isDismissable:E,shouldCloseOnBlur:P=!0,portalContainer:k,isKeyboardDismissDisabled:K=!1,updatePositionDeps:v=[],shouldCloseOnInteractOutside:V,className:F,onClose:A,motionProps:I,classNames:R,...L}=t,j=o||"div",O=BE({delay:g,closeDelay:y,isDisabled:u,defaultOpen:l,isOpen:i,onOpenChange:Le=>{c==null||c(Le),Le||A==null||A()}}),T=d.useRef(null),W=d.useRef(null),q=d.useId(),H=O.isOpen&&!u;d.useImperativeHandle(r,()=>B$(W));const{triggerProps:D,tooltipProps:N}=sE({isDisabled:u,trigger:f},O,T),{tooltipProps:Y}=aE({isOpen:H,...J(t,N)},O),{overlayProps:Q,placement:ee,updatePosition:oe}=Ah({isOpen:H,targetRef:T,placement:JS(b),overlayRef:W,offset:$?C+3:C,crossOffset:w,shouldFlip:p,containerPadding:h});p0(()=>{v.length&&oe()},v);const{overlayProps:z}=au({isOpen:H,onClose:O.close,isDismissable:E,shouldCloseOnBlur:P,isKeyboardDismissDisabled:K,shouldCloseOnInteractOutside:V},W),Z=d.useMemo(()=>{var Le,Ge,Ct;return Xc({...n,radius:(Le=e==null?void 0:e.radius)!=null?Le:"md",size:(Ge=e==null?void 0:e.size)!=null?Ge:"md",shadow:(Ct=e==null?void 0:e.shadow)!=null?Ct:"sm"})},[Mp(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),ne=d.useCallback((Le={},Ge=null)=>({...J(D,Le),ref:K$(Ge,T),"aria-describedby":H?q:void 0}),[D,H,q,O]),se=d.useCallback(()=>({ref:W,"data-slot":"base","data-open":St(H),"data-arrow":St($),"data-disabled":St(u),"data-placement":yp(ee,b),...J(Y,z,L),style:J(Q.style,L.style,t.style),className:Z.base({class:R==null?void 0:R.base}),id:q}),[Z,H,$,u,ee,b,Y,z,L,Q,t,q]),le=d.useCallback(()=>({"data-slot":"content","data-open":St(H),"data-arrow":St($),"data-disabled":St(u),"data-placement":yp(ee,b),className:Z.content({class:sr(R==null?void 0:R.content,F)})}),[Z,H,$,u,ee,b,R]);return{Component:j,content:a,children:s,isOpen:H,triggerRef:T,showArrow:$,portalContainer:k,placement:b,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:u,motionProps:I,getTooltipContentProps:le,getTriggerProps:ne,getTooltipProps:se}}var Wn={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},eT={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:Wn.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Wn.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Wn.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{opacity:0,transition:{duration:.3,ease:Wn.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},v1=la((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:a,placement:s,disableAnimation:l,motionProps:c,getTriggerProps:u,getTooltipProps:f,getTooltipContentProps:p}=QS({...e,ref:t});let h;try{if(d.Children.count(r)!==1)throw new Error;if(!d.isValidElement(r))h=S.jsx("p",{...u(),children:r});else{const E=r;h=d.cloneElement(E,u(E.props,E.ref))}}catch{h=S.jsx("span",{}),L$("Tooltip must have only one child node. Please, check your code.")}const{ref:b,id:g,style:y,...$}=f(),C=S.jsx("div",{ref:b,id:g,style:y,children:S.jsx(XC,{features:JC,children:S.jsx(zC.div,{animate:"enter",exit:"exit",initial:"exit",variants:eT.scaleSpring,...J(c,$),style:{...XS(s)},children:S.jsx(n,{...p(),children:o})})})});return S.jsxs(S.Fragment,{children:[h,l&&i?S.jsx(_d,{portalContainer:a,children:S.jsx("div",{ref:b,id:g,style:y,...$,children:S.jsx(n,{...p(),children:o})})}):S.jsx(cm,{children:i?S.jsx(_d,{portalContainer:a,children:C}):null})]})});v1.displayName="NextUI.Tooltip";var tT=v1;const nT=G.styled(tT).attrs({className:"tooltip"})`
1671
+ `;function WS({children:e,size:t="md",variant:n="solid",...r}){return S.jsx(GS,{...r,size:t,variant:n,children:e})}var YS=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(t==null?void 0:t[e])||{}},qS=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],gp=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e};function ZS(e){const[t,n]=Rh(e,qc.variantKeys),{ref:r,as:o,isOpen:i,content:a,children:s,defaultOpen:l,onOpenChange:d,isDisabled:c,trigger:f,shouldFlip:p=!0,containerPadding:h=12,placement:b="top",delay:g=0,closeDelay:y=500,showArrow:$=!1,offset:C=7,crossOffset:w=0,isDismissable:E,shouldCloseOnBlur:P=!0,portalContainer:k,isKeyboardDismissDisabled:N=!1,updatePositionDeps:v=[],shouldCloseOnInteractOutside:L,className:F,onClose:A,motionProps:B,classNames:R,...I}=t,K=o||"div",V=kE({delay:g,closeDelay:y,isDisabled:c,defaultOpen:l,isOpen:i,onOpenChange:Be=>{d==null||d(Be),Be||A==null||A()}}),T=u.useRef(null),G=u.useRef(null),Y=u.useId(),H=V.isOpen&&!c;u.useImperativeHandle(r,()=>k$(G));const{triggerProps:D,tooltipProps:O}=oE({isDisabled:c,trigger:f},V,T),{tooltipProps:W}=rE({isOpen:H,...X(t,O)},V),{overlayProps:J,placement:Q,updatePosition:re}=Ph({isOpen:H,targetRef:T,placement:qS(b),overlayRef:G,offset:$?C+3:C,crossOffset:w,shouldFlip:p,containerPadding:h});c0(()=>{v.length&&re()},v);const{overlayProps:z}=ou({isOpen:H,onClose:V.close,isDismissable:E,shouldCloseOnBlur:P,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:L},G),q=u.useMemo(()=>{var Be,Ue,xt;return qc({...n,radius:(Be=e==null?void 0:e.radius)!=null?Be:"md",size:(Ue=e==null?void 0:e.size)!=null?Ue:"md",shadow:(xt=e==null?void 0:e.shadow)!=null?xt:"sm"})},[Sp(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),te=u.useCallback((Be={},Ue=null)=>({...X(D,Be),ref:V$(Ue,T),"aria-describedby":H?Y:void 0}),[D,H,Y,V]),ae=u.useCallback(()=>({ref:G,"data-slot":"base","data-open":Et(H),"data-arrow":Et($),"data-disabled":Et(c),"data-placement":gp(Q,b),...X(W,z,I),style:X(J.style,I.style,t.style),className:q.base({class:R==null?void 0:R.base}),id:Y}),[q,H,$,c,Q,b,W,z,I,J,t,Y]),se=u.useCallback(()=>({"data-slot":"content","data-open":Et(H),"data-arrow":Et($),"data-disabled":Et(c),"data-placement":gp(Q,b),className:q.content({class:sr(R==null?void 0:R.content,F)})}),[q,H,$,c,Q,b,R]);return{Component:K,content:a,children:s,isOpen:H,triggerRef:T,showArrow:$,portalContainer:k,placement:b,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:c,motionProps:B,getTooltipContentProps:se,getTriggerProps:te,getTooltipProps:ae}}var Wn={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},XS={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:Wn.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Wn.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Wn.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{opacity:0,transition:{duration:.3,ease:Wn.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},b1=aa((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:a,placement:s,disableAnimation:l,motionProps:d,getTriggerProps:c,getTooltipProps:f,getTooltipContentProps:p}=ZS({...e,ref:t});let h;try{if(u.Children.count(r)!==1)throw new Error;if(!u.isValidElement(r))h=S.jsx("p",{...c(),children:r});else{const E=r;h=u.cloneElement(E,c(E.props,E.ref))}}catch{h=S.jsx("span",{}),F$("Tooltip must have only one child node. Please, check your code.")}const{ref:b,id:g,style:y,...$}=f(),C=S.jsx("div",{ref:b,id:g,style:y,children:S.jsx(YC,{features:qC,children:S.jsx(KC.div,{animate:"enter",exit:"exit",initial:"exit",variants:XS.scaleSpring,...X(d,$),style:{...YS(s)},children:S.jsx(n,{...p(),children:o})})})});return S.jsxs(S.Fragment,{children:[h,l&&i?S.jsx(Kd,{portalContainer:a,children:S.jsx("div",{ref:b,id:g,style:y,...$,children:S.jsx(n,{...p(),children:o})})}):S.jsx(sm,{children:i?S.jsx(Kd,{portalContainer:a,children:C}):null})]})});b1.displayName="NextUI.Tooltip";var JS=b1;const QS=_.styled(JS).attrs({className:"tooltip"})`
1672
1672
  z-index: 0;
1673
1673
  position: relative;
1674
1674
  background-color: transparent;
@@ -1789,7 +1789,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1789
1789
  border-radius: 0.375rem;
1790
1790
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
1791
1791
  }
1792
- `;function rT({children:e,...t}){return S.jsx(nT,{classNames:{base:["tooltip"],content:["tooltip-content"]},...t,children:e})}function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ae.apply(this,arguments)}function y1(e,t=[]){let n=[];function r(i,a){const s=d.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...b}=f,g=(p==null?void 0:p[e][l])||s,y=d.useMemo(()=>b,Object.values(b));return d.createElement(g.Provider,{value:y},h)}function u(f,p){const h=(p==null?void 0:p[e][l])||s,b=d.useContext(h);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,u]}const o=()=>{const i=n.map(a=>d.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return d.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,oT(o,...t)]}function oT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function iT(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function uc(...e){return t=>e.forEach(n=>iT(n,t))}function Yt(...e){return d.useCallback(uc(...e),e)}const Xi=d.forwardRef((e,t)=>{const{children:n,...r}=e,o=d.Children.toArray(n),i=o.find(sT);if(i){const a=i.props.children,s=o.map(l=>l===i?d.Children.count(a)>1?d.Children.only(null):d.isValidElement(a)?a.props.children:null:l);return d.createElement(Al,Ae({},r,{ref:t}),d.isValidElement(a)?d.cloneElement(a,void 0,s):null)}return d.createElement(Al,Ae({},r,{ref:t}),n)});Xi.displayName="Slot";const Al=d.forwardRef((e,t)=>{const{children:n,...r}=e;return d.isValidElement(n)?d.cloneElement(n,{...lT(r,n.props),ref:t?uc(t,n.ref):n.ref}):d.Children.count(n)>1?d.Children.only(null):null});Al.displayName="SlotClone";const aT=({children:e})=>d.createElement(d.Fragment,null,e);function sT(e){return d.isValidElement(e)&&e.type===aT}function lT(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const uT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],mt=uT.reduce((e,t)=>{const n=d.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?Xi:t;return d.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),d.createElement(s,Ae({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ml(e,t){e&&bo.flushSync(()=>e.dispatchEvent(t))}function pt(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function cT({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=dT({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=pt(n),l=d.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[i,e,o,s]);return[a,l]}function dT({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,o=d.useRef(r),i=pt(t);return d.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const fT=d.createContext(void 0);function pT(e){const t=d.useContext(fT);return e||t||"ltr"}const fr=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function hT(e,t){return d.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Fo=e=>{const{present:t,children:n}=e,r=bT(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=Yt(r.ref,o.ref);return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};Fo.displayName="Presence";function bT(e){const[t,n]=d.useState(),r=d.useRef({}),o=d.useRef(e),i=d.useRef("none"),a=e?"mounted":"unmounted",[s,l]=hT(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=ci(r.current);i.current=s==="mounted"?c:"none"},[s]),fr(()=>{const c=r.current,u=o.current;if(u!==e){const p=i.current,h=ci(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fr(()=>{if(t){const c=f=>{const h=ci(r.current).includes(f.animationName);f.target===t&&h&&bo.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(i.current=ci(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:d.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ci(e){return(e==null?void 0:e.animationName)||"none"}const mT=B["useId".toString()]||(()=>{});let gT=0;function $1(e){const[t,n]=B.useState(mT());return fr(()=>{e||n(r=>r??String(gT++))},[e]),e||(t?`radix-${t}`:"")}function x1(e){const t=e+"CollectionProvider",[n,r]=y1(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:b,children:g}=h,y=B.default.useRef(null),$=B.default.useRef(new Map).current;return B.default.createElement(o,{scope:b,itemMap:$,collectionRef:y},g)},s=e+"CollectionSlot",l=B.default.forwardRef((h,b)=>{const{scope:g,children:y}=h,$=i(s,g),C=Yt(b,$.collectionRef);return B.default.createElement(Xi,{ref:C},y)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=B.default.forwardRef((h,b)=>{const{scope:g,children:y,...$}=h,C=B.default.useRef(null),w=Yt(b,C),E=i(c,g);return B.default.useEffect(()=>(E.itemMap.set(C,{ref:C,...$}),()=>void E.itemMap.delete(C))),B.default.createElement(Xi,{[u]:"",ref:w},y)});function p(h){const b=i(e+"CollectionConsumer",h);return B.default.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const $=Array.from(y.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((E,P)=>$.indexOf(E.ref.current)-$.indexOf(P.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}function vT(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const kl="dismissableLayer.update",yT="dismissableLayer.pointerDownOutside",$T="dismissableLayer.focusOutside";let $p;const xT=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wT=d.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=d.useContext(xT),[f,p]=d.useState(null),h=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=d.useState({}),g=Yt(t,v=>p(v)),y=Array.from(u.layers),[$]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),C=y.indexOf($),w=f?y.indexOf(f):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,P=w>=C,k=CT(v=>{const V=v.target,F=[...u.branches].some(A=>A.contains(V));!P||F||(i==null||i(v),s==null||s(v),v.defaultPrevented||l==null||l())},h),K=DT(v=>{const V=v.target;[...u.branches].some(A=>A.contains(V))||(a==null||a(v),s==null||s(v),v.defaultPrevented||l==null||l())},h);return vT(v=>{w===u.layers.size-1&&(o==null||o(v),!v.defaultPrevented&&l&&(v.preventDefault(),l()))},h),d.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&($p=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),xp(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=$p)}},[f,h,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),xp())},[f,u]),d.useEffect(()=>{const v=()=>b({});return document.addEventListener(kl,v),()=>document.removeEventListener(kl,v)},[]),d.createElement(mt.div,Ae({},c,{ref:g,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:Ve(e.onFocusCapture,K.onFocusCapture),onBlurCapture:Ve(e.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Ve(e.onPointerDownCapture,k.onPointerDownCapture)}))});function CT(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){w1(yT,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function DT(e,t=globalThis==null?void 0:globalThis.document){const n=pt(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&w1($T,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xp(){const e=new CustomEvent(kl);document.dispatchEvent(e)}function w1(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ml(o,i):o.dispatchEvent(i)}function ET(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const PT=d.forwardRef((e,t)=>d.createElement(mt.span,Ae({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),ST=PT,Bo="NavigationMenu",[cc,C1,TT]=x1(Bo),[Rl,AT,MT]=x1(Bo),[dc,TA]=y1(Bo,[TT,MT]),[kT,wt]=dc(Bo),[RT,FT]=dc(Bo),BT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:c,...u}=e,[f,p]=d.useState(null),h=Yt(t,V=>p(V)),b=pT(c),g=d.useRef(0),y=d.useRef(0),$=d.useRef(0),[C,w]=d.useState(!0),[E="",P]=cT({prop:r,onChange:V=>{const F=V!=="",A=s>0;F?(window.clearTimeout($.current),A&&w(!1)):(window.clearTimeout($.current),$.current=window.setTimeout(()=>w(!0),s)),o==null||o(V)},defaultProp:i}),k=d.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>P(""),150)},[P]),K=d.useCallback(V=>{window.clearTimeout(y.current),P(V)},[P]),v=d.useCallback(V=>{E===V?window.clearTimeout(y.current):g.current=window.setTimeout(()=>{window.clearTimeout(y.current),P(V)},a)},[E,P,a]);return d.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(y.current),window.clearTimeout($.current)},[]),d.createElement(IT,{scope:n,isRootMenu:!0,value:E,dir:b,orientation:l,rootNavigationMenu:f,onTriggerEnter:V=>{window.clearTimeout(g.current),C?v(V):K(V)},onTriggerLeave:()=>{window.clearTimeout(g.current),k()},onContentEnter:()=>window.clearTimeout(y.current),onContentLeave:k,onItemSelect:V=>{P(F=>F===V?"":V)},onItemDismiss:()=>P("")},d.createElement(mt.nav,Ae({"aria-label":"Main","data-orientation":l,dir:b},u,{ref:h})))}),IT=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:u,onTriggerLeave:f,onContentEnter:p,onContentLeave:h}=e,[b,g]=d.useState(null),[y,$]=d.useState(new Map),[C,w]=d.useState(null);return d.createElement(kT,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:ET(s),baseId:$1(),dir:o,orientation:i,viewport:b,onViewportChange:g,indicatorTrack:C,onIndicatorTrackChange:w,onTriggerEnter:pt(u),onTriggerLeave:pt(f),onContentEnter:pt(p),onContentLeave:pt(h),onItemSelect:pt(l),onItemDismiss:pt(c),onViewportContentChange:d.useCallback((E,P)=>{$(k=>(k.set(E,P),new Map(k)))},[]),onViewportContentRemove:d.useCallback(E=>{$(P=>P.has(E)?(P.delete(E),new Map(P)):P)},[])},d.createElement(cc.Provider,{scope:t},d.createElement(RT,{scope:t,items:y},a)))},LT="NavigationMenuList",VT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=wt(LT,n),i=d.createElement(mt.ul,Ae({"data-orientation":o.orientation},r,{ref:t}));return d.createElement(mt.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},d.createElement(cc.Slot,{scope:n},o.isRootMenu?d.createElement(T1,{asChild:!0},i):i))}),OT="NavigationMenuItem",[NT,D1]=dc(OT),KT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=$1(),a=r||i||"LEGACY_REACT_AUTO_VALUE",s=d.useRef(null),l=d.useRef(null),c=d.useRef(null),u=d.useRef(()=>{}),f=d.useRef(!1),p=d.useCallback((b="start")=>{if(s.current){u.current();const g=Fl(s.current);g.length&&fc(b==="start"?g:g.reverse())}},[]),h=d.useCallback(()=>{if(s.current){const b=Fl(s.current);b.length&&(u.current=XT(b))}},[]);return d.createElement(NT,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h},d.createElement(mt.li,Ae({},o,{ref:t})))}),wp="NavigationMenuTrigger",jT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=wt(wp,e.__scopeNavigationMenu),a=D1(wp,e.__scopeNavigationMenu),s=d.useRef(null),l=Yt(s,a.triggerRef,t),c=M1(i.baseId,a.value),u=k1(i.baseId,a.value),f=d.useRef(!1),p=d.useRef(!1),h=a.value===i.value;return d.createElement(d.Fragment,null,d.createElement(cc.ItemSlot,{scope:n,value:a.value},d.createElement(A1,{asChild:!0},d.createElement(mt.button,Ae({id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":pc(h),"aria-expanded":h,"aria-controls":u},o,{ref:l,onPointerEnter:Ve(e.onPointerEnter,()=>{p.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:Ve(e.onPointerMove,Ji(()=>{r||p.current||a.wasEscapeCloseRef.current||f.current||(i.onTriggerEnter(a.value),f.current=!0)})),onPointerLeave:Ve(e.onPointerLeave,Ji(()=>{r||(i.onTriggerLeave(),f.current=!1)})),onClick:Ve(e.onClick,()=>{i.onItemSelect(a.value),p.current=h}),onKeyDown:Ve(e.onKeyDown,b=>{const y={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&b.key===y&&(a.onEntryKeyDown(),b.preventDefault())})})))),h&&d.createElement(d.Fragment,null,d.createElement(ST,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:b=>{const g=a.contentRef.current,y=b.relatedTarget,$=y===s.current,C=g==null?void 0:g.contains(y);($||!C)&&a.onFocusProxyEnter($?"start":"end")}}),i.viewport&&d.createElement("span",{"aria-owns":u})))}),Cp="navigationMenu.linkSelect",_T=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return d.createElement(A1,{asChild:!0},d.createElement(mt.a,Ae({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:Ve(e.onClick,a=>{const s=a.target,l=new CustomEvent(Cp,{bubbles:!0,cancelable:!0});if(s.addEventListener(Cp,c=>o==null?void 0:o(c),{once:!0}),Ml(s,l),!l.defaultPrevented&&!a.metaKey){const c=new CustomEvent(xi,{bubbles:!0,cancelable:!0});Ml(s,c)}},{checkForDefaultPrevented:!1})})))}),E1="NavigationMenuIndicator",zT=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wt(E1,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?mo.default.createPortal(d.createElement(Fo,{present:n||i},d.createElement(UT,Ae({},r,{ref:t}))),o.indicatorTrack):null}),UT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=wt(E1,n),i=C1(n),[a,s]=d.useState(null),[l,c]=d.useState(null),u=o.orientation==="horizontal",f=!!o.value;d.useEffect(()=>{var h;const g=(h=i().find(y=>y.value===o.value))===null||h===void 0?void 0:h.ref.current;g&&s(g)},[i,o.value]);const p=()=>{a&&c({size:u?a.offsetWidth:a.offsetHeight,offset:u?a.offsetLeft:a.offsetTop})};return Bl(a,p),Bl(o.indicatorTrack,p),l?d.createElement(mt.div,Ae({"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation},r,{ref:t,style:{position:"absolute",...u?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null}),ho="NavigationMenuContent",HT=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=wt(ho,e.__scopeNavigationMenu),i=D1(ho,e.__scopeNavigationMenu),a=Yt(i.contentRef,t),s=i.value===o.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?d.createElement(GT,Ae({forceMount:n},l,{ref:a})):d.createElement(Fo,{present:n||s},d.createElement(P1,Ae({"data-state":pc(s)},l,{ref:a,onPointerEnter:Ve(e.onPointerEnter,o.onContentEnter),onPointerLeave:Ve(e.onPointerLeave,Ji(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),GT=d.forwardRef((e,t)=>{const n=wt(ho,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return fr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),fr(()=>()=>o(e.value),[e.value,o]),null}),xi="navigationMenu.rootContentDismiss",P1=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...c}=e,u=wt(ho,n),f=d.useRef(null),p=Yt(f,t),h=M1(u.baseId,r),b=k1(u.baseId,r),g=C1(n),y=d.useRef(null),{onItemDismiss:$}=u;d.useEffect(()=>{const w=f.current;if(u.isRootMenu&&w){const E=()=>{var P;$(),s(),w.contains(document.activeElement)&&((P=o.current)===null||P===void 0||P.focus())};return w.addEventListener(xi,E),()=>w.removeEventListener(xi,E)}},[u.isRootMenu,e.value,o,$,s]);const C=d.useMemo(()=>{const E=g().map(F=>F.value);u.dir==="rtl"&&E.reverse();const P=E.indexOf(u.value),k=E.indexOf(u.previousValue),K=r===u.value,v=k===E.indexOf(r);if(!K&&!v)return y.current;const V=(()=>{if(P!==k){if(K&&k!==-1)return P>k?"from-end":"from-start";if(v&&P!==-1)return P>k?"to-start":"to-end"}return null})();return y.current=V,V},[u.previousValue,u.value,u.dir,g,r]);return d.createElement(T1,{asChild:!0},d.createElement(wT,Ae({id:b,"aria-labelledby":h,"data-motion":C,"data-orientation":u.orientation},c,{ref:p,onDismiss:()=>{var w;const E=new Event(xi,{bubbles:!0,cancelable:!0});(w=f.current)===null||w===void 0||w.dispatchEvent(E)},onFocusOutside:Ve(e.onFocusOutside,w=>{var E;l();const P=w.target;(E=u.rootNavigationMenu)!==null&&E!==void 0&&E.contains(P)&&w.preventDefault()}),onPointerDownOutside:Ve(e.onPointerDownOutside,w=>{var E;const P=w.target,k=g().some(v=>{var V;return(V=v.ref.current)===null||V===void 0?void 0:V.contains(P)}),K=u.isRootMenu&&((E=u.viewport)===null||E===void 0?void 0:E.contains(P));(k||K||!u.isRootMenu)&&w.preventDefault()}),onKeyDown:Ve(e.onKeyDown,w=>{const E=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!E){const K=Fl(w.currentTarget),v=document.activeElement,V=K.findIndex(I=>I===v),A=w.shiftKey?K.slice(0,V).reverse():K.slice(V+1,K.length);if(fc(A))w.preventDefault();else{var k;(k=i.current)===null||k===void 0||k.focus()}}}),onEscapeKeyDown:Ve(e.onEscapeKeyDown,w=>{a.current=!0})})))}),S1="NavigationMenuViewport",WT=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!wt(S1,e.__scopeNavigationMenu).value;return d.createElement(Fo,{present:n||i},d.createElement(YT,Ae({},r,{ref:t})))}),YT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=wt(S1,n),a=Yt(t,i.onViewportChange),s=FT(ho,e.__scopeNavigationMenu),[l,c]=d.useState(null),[u,f]=d.useState(null),p=l?(l==null?void 0:l.width)+"px":void 0,h=l?(l==null?void 0:l.height)+"px":void 0,b=!!i.value,g=b?i.value:i.previousValue;return Bl(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),d.createElement(mt.div,Ae({"data-state":pc(b),"data-orientation":i.orientation},o,{ref:a,style:{pointerEvents:!b&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:Ve(e.onPointerEnter,i.onContentEnter),onPointerLeave:Ve(e.onPointerLeave,Ji(i.onContentLeave))}),Array.from(s.items).map(([$,{ref:C,forceMount:w,...E}])=>{const P=g===$;return d.createElement(Fo,{key:$,present:w||P},d.createElement(P1,Ae({},E,{ref:uc(C,k=>{P&&k&&f(k)})})))}))}),qT="FocusGroup",T1=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=wt(qT,n);return d.createElement(Rl.Provider,{scope:n},d.createElement(Rl.Slot,{scope:n},d.createElement(mt.div,Ae({dir:o.dir},r,{ref:t}))))}),Dp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ZT="FocusGroupItem",A1=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=AT(n),i=wt(ZT,n);return d.createElement(Rl.ItemSlot,{scope:n},d.createElement(mt.button,Ae({},r,{ref:t,onKeyDown:Ve(e.onKeyDown,a=>{if(["Home","End",...Dp].includes(a.key)){let l=o().map(f=>f.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),Dp.includes(a.key)){const f=l.indexOf(a.currentTarget);l=l.slice(f+1)}setTimeout(()=>fc(l)),a.preventDefault()}})})))});function Fl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function XT(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Bl(e,t){const n=pt(t);fr(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function pc(e){return e?"open":"closed"}function M1(e,t){return`${e}-trigger-${t}`}function k1(e,t){return`${e}-content-${t}`}function Ji(e){return t=>t.pointerType==="mouse"?e(t):void 0}const JT=BT,QT=VT,Ms=KT,eA=jT,tA=_T,nA=zT,rA=HT,oA=WT,iA=G.keyframes`
1792
+ `;function eT({children:e,...t}){return S.jsx(QS,{classNames:{base:["tooltip"],content:["tooltip-content"]},...t,children:e})}function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Se.apply(this,arguments)}function m1(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function d(f){const{scope:p,children:h,...b}=f,g=(p==null?void 0:p[e][l])||s,y=u.useMemo(()=>b,Object.values(b));return u.createElement(g.Provider,{value:y},h)}function c(f,p){const h=(p==null?void 0:p[e][l])||s,b=u.useContext(h);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,c]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,tT(o,...t)]}function tT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:d})=>{const f=l(i)[`__scope${d}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ie(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function nT(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function sc(...e){return t=>e.forEach(n=>nT(n,t))}function Gt(...e){return u.useCallback(sc(...e),e)}const qi=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(oT);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return u.createElement(Sl,Se({},r,{ref:t}),u.isValidElement(a)?u.cloneElement(a,void 0,s):null)}return u.createElement(Sl,Se({},r,{ref:t}),n)});qi.displayName="Slot";const Sl=u.forwardRef((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...iT(r,n.props),ref:t?sc(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});Sl.displayName="SlotClone";const rT=({children:e})=>u.createElement(u.Fragment,null,e);function oT(e){return u.isValidElement(e)&&e.type===rT}function iT(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const aT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ht=aT.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?qi:t;return u.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),u.createElement(s,Se({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Tl(e,t){e&&Wt.flushSync(()=>e.dispatchEvent(t))}function dt(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function sT({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=lT({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=dt(n),l=u.useCallback(d=>{if(i){const f=typeof d=="function"?d(e):d;f!==e&&s(f)}else o(d)},[i,e,o,s]);return[a,l]}function lT({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=dt(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const uT=u.createContext(void 0);function cT(e){const t=u.useContext(uT);return e||t||"ltr"}const fr=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function dT(e,t){return u.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const ko=e=>{const{present:t,children:n}=e,r=fT(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=Gt(r.ref,o.ref);return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};ko.displayName="Presence";function fT(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[s,l]=dT(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=li(r.current);i.current=s==="mounted"?d:"none"},[s]),fr(()=>{const d=r.current,c=o.current;if(c!==e){const p=i.current,h=li(d);e?l("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(c&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fr(()=>{if(t){const d=f=>{const h=li(r.current).includes(f.animationName);f.target===t&&h&&Wt.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=li(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function li(e){return(e==null?void 0:e.animationName)||"none"}const pT=Sn["useId".toString()]||(()=>{});let hT=0;function g1(e){const[t,n]=Sn.useState(pT());return fr(()=>{e||n(r=>r??String(hT++))},[e]),e||(t?`radix-${t}`:"")}function v1(e){const t=e+"CollectionProvider",[n,r]=m1(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:b,children:g}=h,y=u.useRef(null),$=u.useRef(new Map).current;return u.createElement(o,{scope:b,itemMap:$,collectionRef:y},g)},s=e+"CollectionSlot",l=u.forwardRef((h,b)=>{const{scope:g,children:y}=h,$=i(s,g),C=Gt(b,$.collectionRef);return u.createElement(qi,{ref:C},y)}),d=e+"CollectionItemSlot",c="data-radix-collection-item",f=u.forwardRef((h,b)=>{const{scope:g,children:y,...$}=h,C=u.useRef(null),w=Gt(b,C),E=i(d,g);return u.useEffect(()=>(E.itemMap.set(C,{ref:C,...$}),()=>void E.itemMap.delete(C))),u.createElement(qi,{[c]:"",ref:w},y)});function p(h){const b=i(e+"CollectionConsumer",h);return u.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const $=Array.from(y.querySelectorAll(`[${c}]`));return Array.from(b.itemMap.values()).sort((E,P)=>$.indexOf(E.ref.current)-$.indexOf(P.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}function bT(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Al="dismissableLayer.update",mT="dismissableLayer.pointerDownOutside",gT="dismissableLayer.focusOutside";let vp;const vT=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yT=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...d}=e,c=u.useContext(vT),[f,p]=u.useState(null),h=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=u.useState({}),g=Gt(t,v=>p(v)),y=Array.from(c.layers),[$]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),C=y.indexOf($),w=f?y.indexOf(f):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,P=w>=C,k=$T(v=>{const L=v.target,F=[...c.branches].some(A=>A.contains(L));!P||F||(i==null||i(v),s==null||s(v),v.defaultPrevented||l==null||l())},h),N=xT(v=>{const L=v.target;[...c.branches].some(A=>A.contains(L))||(a==null||a(v),s==null||s(v),v.defaultPrevented||l==null||l())},h);return bT(v=>{w===c.layers.size-1&&(o==null||o(v),!v.defaultPrevented&&l&&(v.preventDefault(),l()))},h),u.useEffect(()=>{if(f)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(vp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),yp(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=vp)}},[f,h,r,c]),u.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),yp())},[f,c]),u.useEffect(()=>{const v=()=>b({});return document.addEventListener(Al,v),()=>document.removeEventListener(Al,v)},[]),u.createElement(ht.div,Se({},d,{ref:g,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:Ie(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Ie(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ie(e.onPointerDownCapture,k.onPointerDownCapture)}))});function $T(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){y1(mT,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function xT(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&y1(gT,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function yp(){const e=new CustomEvent(Al);document.dispatchEvent(e)}function y1(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Tl(o,i):o.dispatchEvent(i)}function wT(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const CT=u.forwardRef((e,t)=>u.createElement(ht.span,Se({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),DT=CT,Ro="NavigationMenu",[lc,$1,ET]=v1(Ro),[Ml,PT,ST]=v1(Ro),[uc,EA]=m1(Ro,[ET,ST]),[TT,$t]=uc(Ro),[AT,MT]=uc(Ro),kT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:d,...c}=e,[f,p]=u.useState(null),h=Gt(t,L=>p(L)),b=cT(d),g=u.useRef(0),y=u.useRef(0),$=u.useRef(0),[C,w]=u.useState(!0),[E="",P]=sT({prop:r,onChange:L=>{const F=L!=="",A=s>0;F?(window.clearTimeout($.current),A&&w(!1)):(window.clearTimeout($.current),$.current=window.setTimeout(()=>w(!0),s)),o==null||o(L)},defaultProp:i}),k=u.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>P(""),150)},[P]),N=u.useCallback(L=>{window.clearTimeout(y.current),P(L)},[P]),v=u.useCallback(L=>{E===L?window.clearTimeout(y.current):g.current=window.setTimeout(()=>{window.clearTimeout(y.current),P(L)},a)},[E,P,a]);return u.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(y.current),window.clearTimeout($.current)},[]),u.createElement(RT,{scope:n,isRootMenu:!0,value:E,dir:b,orientation:l,rootNavigationMenu:f,onTriggerEnter:L=>{window.clearTimeout(g.current),C?v(L):N(L)},onTriggerLeave:()=>{window.clearTimeout(g.current),k()},onContentEnter:()=>window.clearTimeout(y.current),onContentLeave:k,onItemSelect:L=>{P(F=>F===L?"":L)},onItemDismiss:()=>P("")},u.createElement(ht.nav,Se({"aria-label":"Main","data-orientation":l,dir:b},c,{ref:h})))}),RT=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:s,onItemSelect:l,onItemDismiss:d,onTriggerEnter:c,onTriggerLeave:f,onContentEnter:p,onContentLeave:h}=e,[b,g]=u.useState(null),[y,$]=u.useState(new Map),[C,w]=u.useState(null);return u.createElement(TT,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:wT(s),baseId:g1(),dir:o,orientation:i,viewport:b,onViewportChange:g,indicatorTrack:C,onIndicatorTrackChange:w,onTriggerEnter:dt(c),onTriggerLeave:dt(f),onContentEnter:dt(p),onContentLeave:dt(h),onItemSelect:dt(l),onItemDismiss:dt(d),onViewportContentChange:u.useCallback((E,P)=>{$(k=>(k.set(E,P),new Map(k)))},[]),onViewportContentRemove:u.useCallback(E=>{$(P=>P.has(E)?(P.delete(E),new Map(P)):P)},[])},u.createElement(lc.Provider,{scope:t},u.createElement(AT,{scope:t,items:y},a)))},FT="NavigationMenuList",BT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(FT,n),i=u.createElement(ht.ul,Se({"data-orientation":o.orientation},r,{ref:t}));return u.createElement(ht.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},u.createElement(lc.Slot,{scope:n},o.isRootMenu?u.createElement(E1,{asChild:!0},i):i))}),IT="NavigationMenuItem",[LT,x1]=uc(IT),VT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=g1(),a=r||i||"LEGACY_REACT_AUTO_VALUE",s=u.useRef(null),l=u.useRef(null),d=u.useRef(null),c=u.useRef(()=>{}),f=u.useRef(!1),p=u.useCallback((b="start")=>{if(s.current){c.current();const g=kl(s.current);g.length&&cc(b==="start"?g:g.reverse())}},[]),h=u.useCallback(()=>{if(s.current){const b=kl(s.current);b.length&&(c.current=YT(b))}},[]);return u.createElement(LT,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:d,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h},u.createElement(ht.li,Se({},o,{ref:t})))}),$p="NavigationMenuTrigger",OT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=$t($p,e.__scopeNavigationMenu),a=x1($p,e.__scopeNavigationMenu),s=u.useRef(null),l=Gt(s,a.triggerRef,t),d=S1(i.baseId,a.value),c=T1(i.baseId,a.value),f=u.useRef(!1),p=u.useRef(!1),h=a.value===i.value;return u.createElement(u.Fragment,null,u.createElement(lc.ItemSlot,{scope:n,value:a.value},u.createElement(P1,{asChild:!0},u.createElement(ht.button,Se({id:d,disabled:r,"data-disabled":r?"":void 0,"data-state":dc(h),"aria-expanded":h,"aria-controls":c},o,{ref:l,onPointerEnter:Ie(e.onPointerEnter,()=>{p.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:Ie(e.onPointerMove,Zi(()=>{r||p.current||a.wasEscapeCloseRef.current||f.current||(i.onTriggerEnter(a.value),f.current=!0)})),onPointerLeave:Ie(e.onPointerLeave,Zi(()=>{r||(i.onTriggerLeave(),f.current=!1)})),onClick:Ie(e.onClick,()=>{i.onItemSelect(a.value),p.current=h}),onKeyDown:Ie(e.onKeyDown,b=>{const y={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&b.key===y&&(a.onEntryKeyDown(),b.preventDefault())})})))),h&&u.createElement(u.Fragment,null,u.createElement(DT,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:b=>{const g=a.contentRef.current,y=b.relatedTarget,$=y===s.current,C=g==null?void 0:g.contains(y);($||!C)&&a.onFocusProxyEnter($?"start":"end")}}),i.viewport&&u.createElement("span",{"aria-owns":c})))}),xp="navigationMenu.linkSelect",NT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return u.createElement(P1,{asChild:!0},u.createElement(ht.a,Se({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:Ie(e.onClick,a=>{const s=a.target,l=new CustomEvent(xp,{bubbles:!0,cancelable:!0});if(s.addEventListener(xp,d=>o==null?void 0:o(d),{once:!0}),Tl(s,l),!l.defaultPrevented&&!a.metaKey){const d=new CustomEvent(yi,{bubbles:!0,cancelable:!0});Tl(s,d)}},{checkForDefaultPrevented:!1})})))}),w1="NavigationMenuIndicator",KT=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(w1,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?Wt.createPortal(u.createElement(ko,{present:n||i},u.createElement(jT,Se({},r,{ref:t}))),o.indicatorTrack):null}),jT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(w1,n),i=$1(n),[a,s]=u.useState(null),[l,d]=u.useState(null),c=o.orientation==="horizontal",f=!!o.value;u.useEffect(()=>{var h;const g=(h=i().find(y=>y.value===o.value))===null||h===void 0?void 0:h.ref.current;g&&s(g)},[i,o.value]);const p=()=>{a&&d({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return Rl(a,p),Rl(o.indicatorTrack,p),l?u.createElement(ht.div,Se({"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null}),ho="NavigationMenuContent",_T=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(ho,e.__scopeNavigationMenu),i=x1(ho,e.__scopeNavigationMenu),a=Gt(i.contentRef,t),s=i.value===o.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?u.createElement(zT,Se({forceMount:n},l,{ref:a})):u.createElement(ko,{present:n||s},u.createElement(C1,Se({"data-state":dc(s)},l,{ref:a,onPointerEnter:Ie(e.onPointerEnter,o.onContentEnter),onPointerLeave:Ie(e.onPointerLeave,Zi(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),zT=u.forwardRef((e,t)=>{const n=$t(ho,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return fr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),fr(()=>()=>o(e.value),[e.value,o]),null}),yi="navigationMenu.rootContentDismiss",C1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...d}=e,c=$t(ho,n),f=u.useRef(null),p=Gt(f,t),h=S1(c.baseId,r),b=T1(c.baseId,r),g=$1(n),y=u.useRef(null),{onItemDismiss:$}=c;u.useEffect(()=>{const w=f.current;if(c.isRootMenu&&w){const E=()=>{var P;$(),s(),w.contains(document.activeElement)&&((P=o.current)===null||P===void 0||P.focus())};return w.addEventListener(yi,E),()=>w.removeEventListener(yi,E)}},[c.isRootMenu,e.value,o,$,s]);const C=u.useMemo(()=>{const E=g().map(F=>F.value);c.dir==="rtl"&&E.reverse();const P=E.indexOf(c.value),k=E.indexOf(c.previousValue),N=r===c.value,v=k===E.indexOf(r);if(!N&&!v)return y.current;const L=(()=>{if(P!==k){if(N&&k!==-1)return P>k?"from-end":"from-start";if(v&&P!==-1)return P>k?"to-start":"to-end"}return null})();return y.current=L,L},[c.previousValue,c.value,c.dir,g,r]);return u.createElement(E1,{asChild:!0},u.createElement(yT,Se({id:b,"aria-labelledby":h,"data-motion":C,"data-orientation":c.orientation},d,{ref:p,onDismiss:()=>{var w;const E=new Event(yi,{bubbles:!0,cancelable:!0});(w=f.current)===null||w===void 0||w.dispatchEvent(E)},onFocusOutside:Ie(e.onFocusOutside,w=>{var E;l();const P=w.target;(E=c.rootNavigationMenu)!==null&&E!==void 0&&E.contains(P)&&w.preventDefault()}),onPointerDownOutside:Ie(e.onPointerDownOutside,w=>{var E;const P=w.target,k=g().some(v=>{var L;return(L=v.ref.current)===null||L===void 0?void 0:L.contains(P)}),N=c.isRootMenu&&((E=c.viewport)===null||E===void 0?void 0:E.contains(P));(k||N||!c.isRootMenu)&&w.preventDefault()}),onKeyDown:Ie(e.onKeyDown,w=>{const E=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!E){const N=kl(w.currentTarget),v=document.activeElement,L=N.findIndex(B=>B===v),A=w.shiftKey?N.slice(0,L).reverse():N.slice(L+1,N.length);if(cc(A))w.preventDefault();else{var k;(k=i.current)===null||k===void 0||k.focus()}}}),onEscapeKeyDown:Ie(e.onEscapeKeyDown,w=>{a.current=!0})})))}),D1="NavigationMenuViewport",UT=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!$t(D1,e.__scopeNavigationMenu).value;return u.createElement(ko,{present:n||i},u.createElement(HT,Se({},r,{ref:t})))}),HT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=$t(D1,n),a=Gt(t,i.onViewportChange),s=MT(ho,e.__scopeNavigationMenu),[l,d]=u.useState(null),[c,f]=u.useState(null),p=l?(l==null?void 0:l.width)+"px":void 0,h=l?(l==null?void 0:l.height)+"px":void 0,b=!!i.value,g=b?i.value:i.previousValue;return Rl(c,()=>{c&&d({width:c.offsetWidth,height:c.offsetHeight})}),u.createElement(ht.div,Se({"data-state":dc(b),"data-orientation":i.orientation},o,{ref:a,style:{pointerEvents:!b&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:Ie(e.onPointerEnter,i.onContentEnter),onPointerLeave:Ie(e.onPointerLeave,Zi(i.onContentLeave))}),Array.from(s.items).map(([$,{ref:C,forceMount:w,...E}])=>{const P=g===$;return u.createElement(ko,{key:$,present:w||P},u.createElement(C1,Se({},E,{ref:sc(C,k=>{P&&k&&f(k)})})))}))}),GT="FocusGroup",E1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(GT,n);return u.createElement(Ml.Provider,{scope:n},u.createElement(Ml.Slot,{scope:n},u.createElement(ht.div,Se({dir:o.dir},r,{ref:t}))))}),wp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],WT="FocusGroupItem",P1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=PT(n),i=$t(WT,n);return u.createElement(Ml.ItemSlot,{scope:n},u.createElement(ht.button,Se({},r,{ref:t,onKeyDown:Ie(e.onKeyDown,a=>{if(["Home","End",...wp].includes(a.key)){let l=o().map(f=>f.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),wp.includes(a.key)){const f=l.indexOf(a.currentTarget);l=l.slice(f+1)}setTimeout(()=>cc(l)),a.preventDefault()}})})))});function kl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function YT(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Rl(e,t){const n=dt(t);fr(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function dc(e){return e?"open":"closed"}function S1(e,t){return`${e}-trigger-${t}`}function T1(e,t){return`${e}-content-${t}`}function Zi(e){return t=>t.pointerType==="mouse"?e(t):void 0}const qT=kT,ZT=BT,Ts=VT,XT=OT,JT=NT,QT=KT,eA=_T,tA=UT,nA=_.keyframes`
1793
1793
  from {
1794
1794
  opacity: 0;
1795
1795
  transform: translateX(200px);
@@ -1798,7 +1798,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1798
1798
  opacity: 1;
1799
1799
  transform: translateX(0);
1800
1800
  }
1801
- `,aA=G.keyframes`
1801
+ `,rA=_.keyframes`
1802
1802
  from {
1803
1803
  opacity: 0;
1804
1804
  transform: translateX(-200px);
@@ -1807,7 +1807,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1807
1807
  opacity: 1;
1808
1808
  transform: translateX(0);
1809
1809
  }
1810
- `,sA=G.keyframes`
1810
+ `,oA=_.keyframes`
1811
1811
  from {
1812
1812
  opacity: 1;
1813
1813
  transform: translateX(0);
@@ -1816,7 +1816,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1816
1816
  opacity: 0;
1817
1817
  transform: translateX(200px);
1818
1818
  }
1819
- `,lA=G.keyframes`
1819
+ `,iA=_.keyframes`
1820
1820
  from {
1821
1821
  opacity: 1;
1822
1822
  transform: translateX(0);
@@ -1825,7 +1825,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1825
1825
  opacity: 0;
1826
1826
  transform: translateX(-200px);
1827
1827
  }
1828
- `,uA=G.keyframes`
1828
+ `,aA=_.keyframes`
1829
1829
  from {
1830
1830
  opacity: 0;
1831
1831
  transform: rotateX(-30deg) scale(0.9);
@@ -1834,7 +1834,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1834
1834
  opacity: 1;
1835
1835
  transform: rotateX(0deg) scale(1);
1836
1836
  }
1837
- `,cA=G.keyframes`
1837
+ `,sA=_.keyframes`
1838
1838
  from {
1839
1839
  opacity: 1;
1840
1840
  transform: rotateX(0deg) scale(1);
@@ -1843,38 +1843,38 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1843
1843
  opacity: 0;
1844
1844
  transform: rotateX(-10deg) scale(0.95);
1845
1845
  }
1846
- `,dA=G.keyframes`
1846
+ `,lA=_.keyframes`
1847
1847
  from {
1848
1848
  opacity: 0;
1849
1849
  }
1850
1850
  to {
1851
1851
  opacity: 1;
1852
1852
  }
1853
- `,fA=G.keyframes`
1853
+ `,uA=_.keyframes`
1854
1854
  from {
1855
1855
  opacity: 1;
1856
1856
  }
1857
1857
  to {
1858
1858
  opacity: 0;
1859
1859
  }
1860
- `,R1=ge.default.svg`
1860
+ `,A1=_.styled.svg`
1861
1861
  position: relative;
1862
1862
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1863
1863
  top: 1px;
1864
1864
  transition: transform 200ms ease;
1865
- `,pA=ge.default(JT)`
1865
+ `,cA=_.styled(qT)`
1866
1866
  position: relative;
1867
1867
  display: flex;
1868
1868
  width: 100%;
1869
1869
  justify-content: center;
1870
1870
  z-index: 1;
1871
- `,hA=ge.default(QT)`
1871
+ `,dA=_.styled(ZT)`
1872
1872
  display: flex;
1873
1873
  justify-content: center;
1874
1874
  list-style: none;
1875
1875
  margin: 0;
1876
1876
  padding: 0;
1877
- `,Ep=ge.default(eA)`
1877
+ `,Cp=_.styled(XT)`
1878
1878
  display: flex;
1879
1879
  align-items: center;
1880
1880
  justify-content: space-between;
@@ -1901,10 +1901,10 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1901
1901
  background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
1902
1902
  }
1903
1903
 
1904
- &[data-state='open'] > ${R1} {
1904
+ &[data-state='open'] > ${A1} {
1905
1905
  transform: rotate(-180deg);
1906
1906
  }
1907
- `,Il=ge.default(tA)`
1907
+ `,Fl=_.styled(JT)`
1908
1908
  display: block;
1909
1909
  text-decoration: none;
1910
1910
  font-size: 0.9rem;
@@ -1929,7 +1929,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1929
1929
  &:hover {
1930
1930
  background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
1931
1931
  }
1932
- `,Pp=ge.default(rA)`
1932
+ `,Dp=_.styled(eA)`
1933
1933
  position: absolute;
1934
1934
  top: 0;
1935
1935
  left: 0;
@@ -1938,22 +1938,22 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1938
1938
  animation-timing-function: ease;
1939
1939
 
1940
1940
  &[data-motion='from-start'] {
1941
- animation-name: ${aA};
1941
+ animation-name: ${rA};
1942
1942
  }
1943
1943
  &[data-motion='from-end'] {
1944
- animation-name: ${iA};
1944
+ animation-name: ${nA};
1945
1945
  }
1946
1946
  &[data-motion='to-start'] {
1947
- animation-name: ${lA};
1947
+ animation-name: ${iA};
1948
1948
  }
1949
1949
  &[data-motion='to-end'] {
1950
- animation-name: ${sA};
1950
+ animation-name: ${oA};
1951
1951
  }
1952
1952
 
1953
1953
  @media only screen and (min-width: 600px) {
1954
1954
  width: auto;
1955
1955
  }
1956
- `,bA=ge.default(nA)`
1956
+ `,fA=_.styled(QT)`
1957
1957
  display: flex;
1958
1958
  align-items: flex-end;
1959
1959
  justify-content: center;
@@ -1964,13 +1964,13 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1964
1964
  transition: width, transform 250ms ease;
1965
1965
 
1966
1966
  &[data-state='visible'] {
1967
- animation: ${dA} 200ms ease;
1967
+ animation: ${lA} 200ms ease;
1968
1968
  }
1969
1969
 
1970
1970
  &[data-state='hidden'] {
1971
- animation: ${fA} 200ms ease;
1971
+ animation: ${uA} 200ms ease;
1972
1972
  }
1973
- `,mA=ge.default(oA)`
1973
+ `,pA=_.styled(tA)`
1974
1974
  position: relative;
1975
1975
  transform-origin: top center;
1976
1976
  margin-top: 10px;
@@ -1983,18 +1983,18 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1983
1983
  transition: width, height, 300ms ease;
1984
1984
 
1985
1985
  &[data-state='open'] {
1986
- animation: ${uA} 200ms ease;
1986
+ animation: ${aA} 200ms ease;
1987
1987
  }
1988
1988
 
1989
1989
  &[data-state='closed'] {
1990
- animation: ${cA} 200ms ease;
1990
+ animation: ${sA} 200ms ease;
1991
1991
  }
1992
1992
 
1993
1993
  @media only screen and (min-width: 600px) {
1994
1994
  width: var(--radix-navigation-menu-viewport-width);
1995
1995
  }
1996
1996
  }
1997
- `,Sp=ge.default.ul`
1997
+ `,Ep=_.styled.ul`
1998
1998
  display: grid;
1999
1999
  padding: 22px;
2000
2000
  margin: 0;
@@ -2012,7 +2012,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
2012
2012
  grid-template-rows: repeat(3, 1fr);
2013
2013
  }
2014
2014
  }
2015
- `,gA=ge.default(Ca)`
2015
+ `,hA=_.styled(xa)`
2016
2016
  display: block;
2017
2017
  outline: none;
2018
2018
  text-decoration: none;
@@ -2031,16 +2031,16 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
2031
2031
  &:hover {
2032
2032
  background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
2033
2033
  }
2034
- `,vA=ge.default.div`
2034
+ `,bA=_.styled.div`
2035
2035
  font-weight: 500;
2036
2036
  line-height: 1.2;
2037
2037
  margin-bottom: 5px;
2038
2038
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
2039
- `,yA=ge.default.p`
2039
+ `,mA=_.styled.p`
2040
2040
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
2041
2041
  line-height: 1.4;
2042
2042
  font-weight: initial;
2043
- `,$A=ge.default(Ca)`
2043
+ `,gA=_.styled(xa)`
2044
2044
  display: flex;
2045
2045
  justify-content: flex-end;
2046
2046
  flex-direction: column;
@@ -2063,18 +2063,18 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
2063
2063
  box-shadow: 0 0 0 2px
2064
2064
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
2065
2065
  }
2066
- `,xA=ge.default.div`
2066
+ `,vA=_.styled.div`
2067
2067
  color: white;
2068
2068
  font-size: 18px;
2069
2069
  font-weight: 500;
2070
2070
  line-height: 1.2;
2071
2071
  margin-top: 16px;
2072
2072
  margin-bottom: 7px;
2073
- `,wA=ge.default.p`
2073
+ `,yA=_.styled.p`
2074
2074
  color: white;
2075
2075
  font-size: 14px;
2076
2076
  line-height: 1.3;
2077
- `,CA=ge.default.div`
2077
+ `,$A=_.styled.div`
2078
2078
  position: absolute;
2079
2079
  display: flex;
2080
2080
  justify-content: center;
@@ -2082,7 +2082,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
2082
2082
  top: 100%;
2083
2083
  left: 0;
2084
2084
  perspective: 2000px;
2085
- `,DA=ge.default.div`
2085
+ `,xA=_.styled.div`
2086
2086
  position: relative;
2087
2087
  top: 70%;
2088
2088
  background-color: white;
@@ -2090,4 +2090,4 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
2090
2090
  height: 10px;
2091
2091
  transform: rotate(45deg);
2092
2092
  border-top-left-radius: 2px;
2093
- `;function Ll({className:e,...t}){return S.jsx(R1,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:S.jsx("path",{d:"M6 9L12 15L18 9",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}Ll.defaultProps={className:void 0};const Et=d.forwardRef(({className:e,children:t,title:n,...r},o)=>S.jsx("li",{children:S.jsx(Il,{asChild:!0,children:S.jsxs(gA,{className:`${e??""}`,...r,ref:o,children:[S.jsx(vA,{children:n}),S.jsx(yA,{children:t})]})})}));Et.defaultProps={className:void 0,href:void 0,title:void 0};function EA(){return S.jsxs(pA,{children:[S.jsxs(hA,{children:[S.jsxs(Ms,{children:[S.jsxs(Ep,{children:["Learn ",S.jsx(Ll,{"aria-hidden":!0})]}),S.jsx(Pp,{children:S.jsxs(Sp,{className:"one",children:[S.jsx("li",{style:{gridRow:"span 3"},children:S.jsx(Il,{asChild:!0,children:S.jsxs($A,{href:"/",children:[S.jsxs("svg",{"aria-hidden":!0,width:"38",height:"38",viewBox:"0 0 25 25",fill:"white",children:[S.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z"}),S.jsx("path",{d:"M12 0H4V8H12V0Z"}),S.jsx("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z"})]}),S.jsx(xA,{children:"Radix Primitives"}),S.jsx(wA,{children:"Unstyled, accessible components for React."})]})})}),S.jsx(Et,{href:"https://stitches.dev/",title:"Stitches",children:"CSS-in-JS with best-in-class developer experience."}),S.jsx(Et,{href:"/colors",title:"Colors",children:"Beautiful, thought-out palettes with auto dark mode."}),S.jsx(Et,{href:"https://icons.radix-ui.com/",title:"Icons",children:"A crisp set of 15x15 icons, balanced and consistent."})]})})]}),S.jsxs(Ms,{children:[S.jsxs(Ep,{children:["Overview ",S.jsx(Ll,{"aria-hidden":!0})]}),S.jsx(Pp,{children:S.jsxs(Sp,{className:"two",children:[S.jsx(Et,{title:"Introduction",href:"/primitives/docs/overview/introduction",children:"Build high-quality, accessible design systems and web apps."}),S.jsx(Et,{title:"Getting started",href:"/primitives/docs/overview/getting-started",children:"A quick tutorial to get you up and running with Radix Primitives."}),S.jsx(Et,{title:"Styling",href:"/primitives/docs/guides/styling",children:"Unstyled and compatible with any styling solution."}),S.jsx(Et,{title:"Animation",href:"/primitives/docs/guides/animation",children:"Use CSS keyframes or any animation library of your choice."}),S.jsx(Et,{title:"Accessibility",href:"/primitives/docs/overview/accessibility",children:"Tested in a range of browsers and assistive technologies."}),S.jsx(Et,{title:"Releases",href:"/primitives/docs/overview/releases",children:"Radix Primitives releases and their changelogs."})]})})]}),S.jsx(Ms,{children:S.jsx(Il,{href:"https://github.com/radix-ui",children:"Github"})}),S.jsx(bA,{children:S.jsx(DA,{})})]}),S.jsx(CA,{children:S.jsx(mA,{})})]})}exports.Avatar=L2;exports.AvatarGroup=O2;exports.Badge=iD;exports.BreadcrumbEllipsis=aD;exports.BreadcrumbItem=WP;exports.BreadcrumbLink=YP;exports.BreadcrumbSeparator=qP;exports.Breadcrumbs=ZP;exports.Button=XP;exports.Card=QP;exports.Checkbox=t9;exports.CircularEasing=SS;exports.CircularProgressbar=nS;exports.Collapsible=i9;exports.CollapsibleTrigger=o9;exports.CollapsibleTriggerStateContext=lc;exports.Container=l9;exports.ContextMenu=o1;exports.DateInput=i1;exports.Dialog=F9;exports.Divider=g9;exports.Drawer=c1;exports.Input=u1;exports.LinearProgressbar=uS;exports.Link=$9;exports.Meter=S9;exports.Modal=A9;exports.ModalOverlay=k9;exports.NavigationMenu=EA;exports.NumberInput=d1;exports.Option=xS;exports.PinInput=f1;exports.Pulse=p1;exports.Select=h1;exports.Slider=b1;exports.Switch=BS;exports.Tab=KS;exports.TabList=jS;exports.TabPanel=_S;exports.Tabs=NS;exports.TabsOrientationContext=Ta;exports.TimeInput=g1;exports.ToggleButton=ZS;exports.Tooltip=rT;exports.defaultTheme=x;exports.mergeTheme=Nh;
2093
+ `;function Bl({className:e,...t}){return S.jsx(A1,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:S.jsx("path",{d:"M6 9L12 15L18 9",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}Bl.defaultProps={className:void 0};const Ct=u.forwardRef(({className:e,children:t,title:n,...r},o)=>S.jsx("li",{children:S.jsx(Fl,{asChild:!0,children:S.jsxs(hA,{className:`${e??""}`,...r,ref:o,children:[S.jsx(bA,{children:n}),S.jsx(mA,{children:t})]})})}));Ct.defaultProps={className:void 0,href:void 0,title:void 0};function wA(){return S.jsxs(cA,{children:[S.jsxs(dA,{children:[S.jsxs(Ts,{children:[S.jsxs(Cp,{children:["Learn ",S.jsx(Bl,{"aria-hidden":!0})]}),S.jsx(Dp,{children:S.jsxs(Ep,{className:"one",children:[S.jsx("li",{style:{gridRow:"span 3"},children:S.jsx(Fl,{asChild:!0,children:S.jsxs(gA,{href:"/",children:[S.jsxs("svg",{"aria-hidden":!0,width:"38",height:"38",viewBox:"0 0 25 25",fill:"white",children:[S.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z"}),S.jsx("path",{d:"M12 0H4V8H12V0Z"}),S.jsx("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z"})]}),S.jsx(vA,{children:"Radix Primitives"}),S.jsx(yA,{children:"Unstyled, accessible components for React."})]})})}),S.jsx(Ct,{href:"https://stitches.dev/",title:"Stitches",children:"CSS-in-JS with best-in-class developer experience."}),S.jsx(Ct,{href:"/colors",title:"Colors",children:"Beautiful, thought-out palettes with auto dark mode."}),S.jsx(Ct,{href:"https://icons.radix-ui.com/",title:"Icons",children:"A crisp set of 15x15 icons, balanced and consistent."})]})})]}),S.jsxs(Ts,{children:[S.jsxs(Cp,{children:["Overview ",S.jsx(Bl,{"aria-hidden":!0})]}),S.jsx(Dp,{children:S.jsxs(Ep,{className:"two",children:[S.jsx(Ct,{title:"Introduction",href:"/primitives/docs/overview/introduction",children:"Build high-quality, accessible design systems and web apps."}),S.jsx(Ct,{title:"Getting started",href:"/primitives/docs/overview/getting-started",children:"A quick tutorial to get you up and running with Radix Primitives."}),S.jsx(Ct,{title:"Styling",href:"/primitives/docs/guides/styling",children:"Unstyled and compatible with any styling solution."}),S.jsx(Ct,{title:"Animation",href:"/primitives/docs/guides/animation",children:"Use CSS keyframes or any animation library of your choice."}),S.jsx(Ct,{title:"Accessibility",href:"/primitives/docs/overview/accessibility",children:"Tested in a range of browsers and assistive technologies."}),S.jsx(Ct,{title:"Releases",href:"/primitives/docs/overview/releases",children:"Radix Primitives releases and their changelogs."})]})})]}),S.jsx(Ts,{children:S.jsx(Fl,{href:"https://github.com/radix-ui",children:"Github"})}),S.jsx(fA,{children:S.jsx(xA,{})})]}),S.jsx($A,{children:S.jsx(pA,{})})]})}exports.Avatar=F2;exports.AvatarGroup=I2;exports.Badge=nD;exports.BreadcrumbEllipsis=rD;exports.BreadcrumbItem=UP;exports.BreadcrumbLink=HP;exports.BreadcrumbSeparator=GP;exports.Breadcrumbs=WP;exports.Button=YP;exports.Card=ZP;exports.Checkbox=JP;exports.CircularEasing=DS;exports.CircularProgressbar=Q9;exports.Collapsible=n9;exports.CollapsibleTrigger=t9;exports.CollapsibleTriggerStateContext=ac;exports.Container=i9;exports.ContextMenu=t1;exports.DateInput=n1;exports.Dialog=M9;exports.Divider=h9;exports.Drawer=s1;exports.Input=a1;exports.LinearProgressbar=aS;exports.Link=g9;exports.Meter=D9;exports.Modal=P9;exports.ModalOverlay=T9;exports.NavigationMenu=wA;exports.NumberInput=l1;exports.Option=vS;exports.PinInput=u1;exports.Pulse=c1;exports.Select=d1;exports.Slider=f1;exports.Switch=kS;exports.Tab=VS;exports.TabList=OS;exports.TabPanel=NS;exports.Tabs=LS;exports.TabsOrientationContext=Pa;exports.TimeInput=h1;exports.ToggleButton=WS;exports.Tooltip=eT;exports.defaultTheme=x;exports.mergeTheme=Lh;