@clicktap/ui 0.2.6 → 0.2.8

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,4 +1,4 @@
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"),d=require("react"),z=require("styled-components"),ho=require("react-dom"),A$=e=>e&&e.__esModule?e:{default:e};function M$(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=M$(d),bo=A$(ho);var k$=()=>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 R$(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 F$(e){return{UNSAFE_getDOMNode(){return e.current}}}function Ms(e){const t=d.useRef(null);return d.useImperativeHandle(e,()=>t.current),t}var B$=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function Sp(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=Sp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ar(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=Sp(n))&&(o&&(o+=" "),o+=r);return o}var _c={};function I$(e,t,...n){var r;const i=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!_c[i]&&(_c[i]=!0,((r=process==null?void 0:process.env)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}function Tp(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}process.env.NODE_ENV;process.env.NODE_ENV;function L$(e){return typeof e=="function"}var Pt=e=>e?"true":void 0;function V$(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function O$(e,t){if(e!=null){if(L$(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function N$(...e){return t=>{e.forEach(n=>O$(n,t))}}var K$=Object.create,Ap=Object.defineProperty,j$=Object.getOwnPropertyDescriptor,Mp=Object.getOwnPropertyNames,_$=Object.getPrototypeOf,z$=Object.prototype.hasOwnProperty,Ll=(e,t)=>function(){return t||(0,e[Mp(e)[0]])((t={exports:{}}).exports,t),t.exports},U$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Mp(t))!z$.call(e,o)&&o!==n&&Ap(e,o,{get:()=>t[o],enumerable:!(r=j$(t,o))||r.enumerable});return e},H$=(e,t,n)=>(n=e!=null?K$(_$(e)):{},U$(t||!e||!e.__esModule?Ap(n,"default",{value:e,enumerable:!0}):n,e)),G$=Ll({"../../../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,U=null;if(N!=null)for(Q in N.ref!==void 0&&(U=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:U,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 U=!1;if(D===null)U=!0;else switch(oe){case"string":case"number":U=!0;break;case"object":switch(D.$$typeof){case t:case n:U=!0}}if(U)return U=D,ee=ee(U),D=Q===""?"."+L(U,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||U&&U.key===ee.key?"":(""+ee.key).replace(R,"$&/")+"/")+D)),N.push(ee)),1;if(U=0,Q=Q===""?".":Q+":",P(D))for(var Z=0;Z<D.length;Z++){oe=D[Z];var ne=Q+L(oe,Z);U+=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++),U+=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 U}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},G={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=G,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,U=D._owner;if(N!=null){if(N.ref!==void 0&&(oe=N.ref,U=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:U}},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"}}),W$=Ll({"../../../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),H=1;H<M;H++)_[H-1]=arguments[H];W("warn",m,_)}}function T(m){{for(var M=arguments.length,_=new Array(M>1?M-1:0),H=1;H<M;H++)_[H-1]=arguments[H];W("error",m,_)}}function W(m,M,_){{var H=j.ReactDebugCurrentFrame,X=H.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 G(m,M){{var _=m.constructor,H=_&&(_.displayName||_.name)||"ReactClass",X=H+"."+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,H),q[X]=!0}}var D={isMounted:function(m){return!1},enqueueForceUpdate:function(m,M,_){G(m,"forceUpdate")},enqueueReplaceState:function(m,M,_,H){G(m,"replaceState")},enqueueSetState:function(m,M,_,H){G(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 U in ee)ee.hasOwnProperty(U)&&oe(U,ee[U])}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 Ie=Array.isArray;function He(m){return Ie(m)}function wt(m){{var M=typeof Symbol=="function"&&Symbol.toStringTag,_=M&&m[Symbol.toStringTag]||m.constructor.name||"Object";return _}}function Nn(m){try{return Zt(m),!1}catch{return!0}}function Zt(m){return""+m}function Xt(m){if(Nn(m))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(m)),Zt(m)}function Cr(m,M,_){var H=m.displayName;if(H)return H;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 Cr(m,m.render,"ForwardRef");case h:var H=m.displayName||null;return H!==null?H: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 xe=Object.prototype.hasOwnProperty,Bo={key:!0,ref:!0,__self:!0,__source:!0},Dr,Er,pn;pn={};function Ct(m){if(xe.call(m,"ref")){var M=Object.getOwnPropertyDescriptor(m,"ref").get;if(M&&M.isReactWarning)return!1}return m.ref!==void 0}function Pr(m){if(xe.call(m,"key")){var M=Object.getOwnPropertyDescriptor(m,"key").get;if(M&&M.isReactWarning)return!1}return m.key!==void 0}function Io(m,M){var _=function(){Dr||(Dr=!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 Ta(m,M){var _=function(){Er||(Er=!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 Aa(m){if(typeof m.ref=="string"&&k.current&&m.__self&&k.current.stateNode!==m.__self){var M=pe(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 Ke=function(m,M,_,H,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:H}),Object.defineProperty(ae,"_source",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.freeze&&(Object.freeze(ae.props),Object.freeze(ae)),ae};function Sr(m,M,_){var H,X={},ie=null,te=null,ae=null,he=null;if(M!=null){Ct(M)&&(te=M.ref,Aa(M)),Pr(M)&&(Xt(M.key),ie=""+M.key),ae=M.__self===void 0?null:M.__self,he=M.__source===void 0?null:M.__source;for(H in M)xe.call(M,H)&&!Bo.hasOwnProperty(H)&&(X[H]=M[H])}var ve=arguments.length-2;if(ve===1)X.children=_;else if(ve>1){for(var Ce=Array(ve),De=0;De<ve;De++)Ce[De]=arguments[De+2];Object.freeze&&Object.freeze(Ce),X.children=Ce}if(m&&m.defaultProps){var Ee=m.defaultProps;for(H in Ee)X[H]===void 0&&(X[H]=Ee[H])}if(ie||te){var ke=typeof m=="function"?m.displayName||m.name||"Unknown":m;ie&&Io(X,ke),te&&Ta(X,ke)}return Ke(m,ie,te,ae,he,k.current,X)}function k1(m,M){var _=Ke(m.type,M,m.ref,m._self,m._source,m._owner,m.props);return _}function R1(m,M,_){if(m==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+m+".");var H,X=N({},m.props),ie=m.key,te=m.ref,ae=m._self,he=m._source,ve=m._owner;if(M!=null){Ct(M)&&(te=M.ref,ve=k.current),Pr(M)&&(Xt(M.key),ie=""+M.key);var Ce;m.type&&m.type.defaultProps&&(Ce=m.type.defaultProps);for(H in M)xe.call(M,H)&&!Bo.hasOwnProperty(H)&&(M[H]===void 0&&Ce!==void 0?X[H]=Ce[H]:X[H]=M[H])}var De=arguments.length-2;if(De===1)X.children=_;else if(De>1){for(var Ee=Array(De),ke=0;ke<De;ke++)Ee[ke]=arguments[ke+2];X.children=Ee}return Ke(m.type,ie,te,ae,he,ve,X)}function Kn(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}var pc=".",F1=":";function B1(m){var M=/[=:]/g,_={"=":"=0",":":"=2"},H=m.replace(M,function(X){return _[X]});return"$"+H}var hc=!1,I1=/\/+/g;function bc(m){return m.replace(I1,"$&/")}function Ma(m,M){return typeof m=="object"&&m!==null&&m.key!=null?(Xt(m.key),B1(""+m.key)):M.toString(36)}function Lo(m,M,_,H,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),ve=H===""?pc+Ma(ae,0):H;if(He(he)){var Ce="";ve!=null&&(Ce=bc(ve)+"/"),Lo(he,M,Ce,"",function(T$){return T$})}else he!=null&&(Kn(he)&&(he.key&&(!ae||ae.key!==he.key)&&Xt(he.key),he=k1(he,_+(he.key&&(!ae||ae.key!==he.key)?bc(""+he.key)+"/":"")+ve)),M.push(he));return 1}var De,Ee,ke=0,je=H===""?pc:H+F1;if(He(m))for(var Uo=0;Uo<m.length;Uo++)De=m[Uo],Ee=je+Ma(De,Uo),ke+=Lo(De,M,_,Ee,X);else{var Na=C(m);if(typeof Na=="function"){var Nc=m;Na===Nc.entries&&(hc||O("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),hc=!0);for(var P$=Na.call(Nc),Kc,S$=0;!(Kc=P$.next()).done;)De=Kc.value,Ee=je+Ma(De,S$++),ke+=Lo(De,M,_,Ee,X)}else if(ie==="object"){var jc=String(m);throw new Error("Objects are not valid as a React child (found: "+(jc==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":jc)+"). If you meant to render a collection of children, use an array instead.")}}return ke}function Vo(m,M,_){if(m==null)return m;var H=[],X=0;return Lo(m,H,"","",function(ie){return M.call(_,ie,X++)}),H}function L1(m){var M=0;return Vo(m,function(){M++}),M}function V1(m,M,_){Vo(m,function(){M.apply(this,arguments)},_)}function O1(m){return Vo(m,function(M){return M})||[]}function N1(m){if(!Kn(m))throw new Error("React.Children.only expected to receive a single React element child.");return m}function K1(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,H=!1,X=!1;{var ie={$$typeof:c,_context:M};Object.defineProperties(ie,{Provider:{get:function(){return H||(H=!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 Tr=-1,ka=0,mc=1,j1=2;function _1(m){if(m._status===Tr){var M=m._result,_=M();if(_.then(function(ie){if(m._status===ka||m._status===Tr){var te=m;te._status=mc,te._result=ie}},function(ie){if(m._status===ka||m._status===Tr){var te=m;te._status=j1,te._result=ie}}),m._status===Tr){var H=m;H._status=ka,H._result=_}}if(m._status===mc){var X=m._result;return X===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'))
@@ -6,21 +6,21 @@ Your code should look like:
6
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
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'))`,X),X.default}else throw m._result}function z1(m){var M={_status:Tr,_result:m},_={$$typeof:b,_payload:M,_init:_1};{var H,X;Object.defineProperties(_,{defaultProps:{configurable:!0,get:function(){return H},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."),H=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 U1(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(H){_=H,!m.name&&!m.displayName&&(m.displayName=H)}})}return M}var gc;gc=Symbol.for("react.module.reference");function vc(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===gc||m.getModuleId!==void 0))}function H1(m,M){vc(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 H;Object.defineProperty(_,"displayName",{enumerable:!1,configurable:!0,get:function(){return H},set:function(X){H=X,!m.name&&!m.displayName&&(m.displayName=X)}})}return _}function Ze(){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 G1(m){var M=Ze();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 W1(m){var M=Ze();return M.useState(m)}function Y1(m,M,_){var H=Ze();return H.useReducer(m,M,_)}function q1(m){var M=Ze();return M.useRef(m)}function Z1(m,M){var _=Ze();return _.useEffect(m,M)}function X1(m,M){var _=Ze();return _.useInsertionEffect(m,M)}function J1(m,M){var _=Ze();return _.useLayoutEffect(m,M)}function Q1(m,M){var _=Ze();return _.useCallback(m,M)}function e$(m,M){var _=Ze();return _.useMemo(m,M)}function t$(m,M,_){var H=Ze();return H.useImperativeHandle(m,M,_)}function n$(m,M){{var _=Ze();return _.useDebugValue(m,M)}}function r$(){var m=Ze();return m.useTransition()}function o$(m){var M=Ze();return M.useDeferredValue(m)}function i$(){var m=Ze();return m.useId()}function a$(m,M,_){var H=Ze();return H.useSyncExternalStore(m,M,_)}var Ar=0,yc,$c,xc,wc,Cc,Dc,Ec;function Pc(){}Pc.__reactDisabledLog=!0;function s$(){{if(Ar===0){yc=console.log,$c=console.info,xc=console.warn,wc=console.error,Cc=console.group,Dc=console.groupCollapsed,Ec=console.groupEnd;var m={configurable:!0,enumerable:!0,value:Pc,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Ar++}}function l$(){{if(Ar--,Ar===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},m,{value:yc}),info:N({},m,{value:$c}),warn:N({},m,{value:xc}),error:N({},m,{value:wc}),group:N({},m,{value:Cc}),groupCollapsed:N({},m,{value:Dc}),groupEnd:N({},m,{value:Ec})})}Ar<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ra=j.ReactCurrentDispatcher,Fa;function Oo(m,M,_){{if(Fa===void 0)try{throw Error()}catch(X){var H=X.stack.trim().match(/\n( *(at )?)/);Fa=H&&H[1]||""}return`
14
+ `+Fa+m}}var Ba=!1,No;{var u$=typeof WeakMap=="function"?WeakMap:Map;No=new u$}function Sc(m,M){if(!m||Ba)return"";{var _=No.get(m);if(_!==void 0)return _}var H;Ba=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=Ra.current,Ra.current=null,s$();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(je){H=je}Reflect.construct(m,[],te)}else{try{te.call()}catch(je){H=je}m.call(te.prototype)}}else{try{throw Error()}catch(je){H=je}m()}}catch(je){if(je&&H&&typeof je.stack=="string"){for(var ae=je.stack.split(`
15
+ `),he=H.stack.split(`
16
+ `),ve=ae.length-1,Ce=he.length-1;ve>=1&&Ce>=0&&ae[ve]!==he[Ce];)Ce--;for(;ve>=1&&Ce>=0;ve--,Ce--)if(ae[ve]!==he[Ce]){if(ve!==1||Ce!==1)do if(ve--,Ce--,Ce<0||ae[ve]!==he[Ce]){var De=`
17
+ `+ae[ve].replace(" at new "," at ");return m.displayName&&De.includes("<anonymous>")&&(De=De.replace("<anonymous>",m.displayName)),typeof m=="function"&&No.set(m,De),De}while(ve>=1&&Ce>=0);break}}}finally{Ba=!1,Ra.current=ie,l$(),Error.prepareStackTrace=X}var Ee=m?m.displayName||m.name:"",ke=Ee?Oo(Ee):"";return typeof m=="function"&&No.set(m,ke),ke}function c$(m,M,_){return Sc(m,!1)}function d$(m){var M=m.prototype;return!!(M&&M.isReactComponent)}function Ko(m,M,_){if(m==null)return"";if(typeof m=="function")return Sc(m,d$(m));if(typeof m=="string")return Oo(m);switch(m){case f:return Oo("Suspense");case p:return Oo("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case u:return c$(m.render);case h:return Ko(m.type,M,_);case b:{var H=m,X=H._payload,ie=H._init;try{return Ko(ie(X),M,_)}catch{}}}return""}var Tc={},Ac=j.ReactDebugCurrentFrame;function jo(m){if(m){var M=m._owner,_=Ko(m.type,m._source,M?M.type:null);Ac.setExtraStackFrame(_)}else Ac.setExtraStackFrame(null)}function f$(m,M,_,H,X){{var ie=Function.call.bind(xe);for(var te in m)if(ie(m,te)){var ae=void 0;try{if(typeof m[te]!="function"){var he=Error((H||"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,H,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ve){ae=ve}ae&&!(ae instanceof Error)&&(jo(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).",H||"React class",_,te,typeof ae),jo(null)),ae instanceof Error&&!(ae.message in Tc)&&(Tc[ae.message]=!0,jo(X),T("Failed %s type: %s",_,ae.message),jo(null))}}}function jn(m){if(m){var M=m._owner,_=Ko(m.type,m._source,M?M.type:null);V(_)}else V(null)}var Ia;Ia=!1;function Mc(){if(k.current){var m=pe(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 p$(m){if(m!==void 0){var M=m.fileName.replace(/^.*[\\\/]/,""),_=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+":"+_+"."}return""}function h$(m){return m!=null?p$(m.__source):""}var kc={};function b$(m){var M=Mc();if(!M){var _=typeof m=="string"?m:m.displayName||m.name;_&&(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 <`+_+">.")}return M}function Rc(m,M){if(!(!m._store||m._store.validated||m.key!=null)){m._store.validated=!0;var _=b$(M);if(!kc[_]){kc[_]=!0;var H="";m&&m._owner&&m._owner!==k.current&&(H=" It was passed a child from "+pe(m._owner.type)+"."),jn(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.',_,H),jn(null)}}}function Fc(m,M){if(typeof m=="object"){if(He(m))for(var _=0;_<m.length;_++){var H=m[_];Kn(H)&&Rc(H,M)}else if(Kn(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;)Kn(te.value)&&Rc(te.value,M)}}}function Bc(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 H=pe(M);f$(_,m.props,"prop",H,m)}else if(M.PropTypes!==void 0&&!Ia){Ia=!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 m$(m){{for(var M=Object.keys(m.props),_=0;_<M.length;_++){var H=M[_];if(H!=="children"&&H!=="key"){jn(m),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",H),jn(null);break}}m.ref!==null&&(jn(m),T("Invalid attribute `ref` supplied to `React.Fragment`."),jn(null))}}function Ic(m,M,_){var H=vc(m);if(!H){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=h$(M);ie?X+=ie:X+=Mc();var te;m===null?te="null":He(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=Sr.apply(this,arguments);if(ae==null)return ae;if(H)for(var he=2;he<arguments.length;he++)Fc(arguments[he],m);return m===i?m$(ae):Bc(ae),ae}var Lc=!1;function g$(m){var M=Ic.bind(null,m);return M.type=m,Lc||(Lc=!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 v$(m,M,_){for(var H=R1.apply(this,arguments),X=2;X<arguments.length;X++)Fc(arguments[X],H.type);return Bc(H),H}function y$(m,M){var _=E.transition;E.transition={};var H=E.transition;E.transition._updatedFibers=new Set;try{m()}finally{if(E.transition=_,_===null&&H._updatedFibers){var X=H._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."),H._updatedFibers.clear()}}}var Vc=!1,_o=null;function $$(m){if(_o===null)try{var M=("require"+Math.random()).slice(0,7),_=t&&t[M];_o=_.call(t,"timers").setImmediate}catch{_o=function(X){Vc===!1&&(Vc=!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 _o(m)}var _n=0,Oc=!1;function x$(m){{var M=_n;_n++,P.current===null&&(P.current=[]);var _=P.isBatchingLegacy,H;try{if(P.isBatchingLegacy=!0,H=m(),!_&&P.didScheduleLegacyUpdate){var X=P.current;X!==null&&(P.didScheduleLegacyUpdate=!1,Oa(X))}}catch(Ee){throw zo(M),Ee}finally{P.isBatchingLegacy=_}if(H!==null&&typeof H=="object"&&typeof H.then=="function"){var ie=H,te=!1,ae={then:function(Ee,ke){te=!0,ie.then(function(je){zo(M),_n===0?La(je,Ee,ke):Ee(je)},function(je){zo(M),ke(je)})}};return!Oc&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){te||(Oc=!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=H;if(zo(M),_n===0){var ve=P.current;ve!==null&&(Oa(ve),P.current=null);var Ce={then:function(Ee,ke){P.current===null?(P.current=[],La(he,Ee,ke)):Ee(he)}};return Ce}else{var De={then:function(Ee,ke){Ee(he)}};return De}}}}function zo(m){m!==_n-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. "),_n=m}function La(m,M,_){{var H=P.current;if(H!==null)try{Oa(H),$$(function(){H.length===0?(P.current=null,M(m)):La(m,M,_)})}catch(X){_(X)}else M(m)}}var Va=!1;function Oa(m){if(!Va){Va=!0;var M=0;try{for(;M<m.length;M++){var _=m[M];do _=_(!0);while(_!==null)}m.length=0}catch(H){throw m=m.slice(M+1),H}finally{Va=!1}}}var w$=Ic,C$=v$,D$=g$,E$={map:Vo,forEach:V1,count:L1,toArray:O1,only:N1};e.Children=E$,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=C$,e.createContext=K1,e.createElement=w$,e.createFactory=D$,e.createRef=le,e.forwardRef=U1,e.isValidElement=Kn,e.lazy=z1,e.memo=H1,e.startTransition=y$,e.unstable_act=x$,e.useCallback=Q1,e.useContext=G1,e.useDebugValue=n$,e.useDeferredValue=o$,e.useEffect=Z1,e.useId=i$,e.useImperativeHandle=t$,e.useInsertionEffect=X1,e.useLayoutEffect=J1,e.useMemo=e$,e.useReducer=Y1,e.useRef=q1,e.useState=W1,e.useSyncExternalStore=a$,e.useTransition=r$,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),Y$=Ll({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){process.env.NODE_ENV==="production"?t.exports=G$():t.exports=W$()}});/**
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 zc=H$(Y$());function q$(e){return zc.Children.toArray(e).filter(t=>(0,zc.isValidElement)(t))}var[Z$,kp]=R$({name:"AvatarGroupContext",strict:!1}),X$={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"},J$={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"},Q$={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"},e3={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"},t3={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"},n3={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"},r3={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:X$,shadow:J$,bordered:Q$,flat:e3,faded:t3,light:n3,ghost:r3},Uc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,nt=e=>!e||typeof e!="object"||Object.keys(e).length===0,o3=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Rp(e,t){e.forEach(function(n){Array.isArray(n)?Rp(n,t):t.push(n)})}function Fp(e){let t=[];return Rp(e,t),t}var Bp=(...e)=>Fp(e).filter(Boolean),Ip=(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]=Ip(a,s):Array.isArray(a)||Array.isArray(s)?n[i]=Bp(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},Hc=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function i3(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Lp(t))&&(r&&(r+=" "),r+=n);return r}function Lp(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Lp(e[r]))&&(n&&(n+=" "),n+=t);return n}var Vl="-";function a3(e){var t=l3(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(s){var l=s.split(Vl);return l[0]===""&&l.length!==1&&l.shift(),Vp(l,t)||s3(s)}function a(s,l){var c=n[s]||[];return l&&o[s]?[].concat(c,o[s]):c}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Vp(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Vp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(Vl);return(a=t.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var Gc=/^\[(.+)\]$/;function s3(e){if(Gc.test(e)){var t=Gc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function l3(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=c3(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],s=i[1];ks(s,r,a,t)}),r}function ks(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:Wc(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(u3(o)){ks(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];ks(l,Wc(t,s),n,r)})})}function Wc(e,t){var n=e;return t.split(Vl).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function u3(e){return e.isThemeGetter}function c3(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 d3(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 Op="!";function f3(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(Op),g=b?h.substring(1):h,y=u&&u>c?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:y}}}function p3(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 h3(e){return{cache:d3(e.cacheSize),splitModifiers:f3(e),...a3(e)}}var b3=/\s+/;function m3(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(b3).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=p3(l).join(":"),g=c?b+Op: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 Rs(){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=h3(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=m3(c,r);return i(c,f),f}return function(){return a(i3.apply(null,arguments))}}function we(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Np=/^\[(?:([a-z-]+):)?(.+)\]$/i,g3=/^\d+\/\d+$/,v3=new Set(["px","full","screen"]),y3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$3=/\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$/,x3=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function vt(e){return wn(e)||v3.has(e)||g3.test(e)||Fs(e)}function Fs(e){return Fn(e,"length",S3)}function w3(e){return Fn(e,"size",Kp)}function C3(e){return Fn(e,"position",Kp)}function D3(e){return Fn(e,"url",T3)}function Ho(e){return Fn(e,"number",wn)}function wn(e){return!Number.isNaN(Number(e))}function E3(e){return e.endsWith("%")&&wn(e.slice(0,-1))}function Mr(e){return Yc(e)||Fn(e,"number",Yc)}function de(e){return Np.test(e)}function kr(){return!0}function Jt(e){return y3.test(e)}function P3(e){return Fn(e,"",A3)}function Fn(e,t,n){var r=Np.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function S3(e){return $3.test(e)}function Kp(){return!1}function T3(e){return e.startsWith("url(")}function Yc(e){return Number.isInteger(Number(e))}function A3(e){return x3.test(e)}function Bs(){var e=we("colors"),t=we("spacing"),n=we("blur"),r=we("brightness"),o=we("borderColor"),i=we("borderRadius"),a=we("borderSpacing"),s=we("borderWidth"),l=we("contrast"),c=we("grayscale"),u=we("hueRotate"),f=we("invert"),p=we("gap"),h=we("gradientColorStops"),b=we("gradientColorStopPositions"),g=we("inset"),y=we("margin"),$=we("opacity"),C=we("padding"),w=we("saturate"),E=we("scale"),P=we("sepia"),k=we("skew"),K=we("space"),v=we("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["",vt]},L=function(){return["auto",wn,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]},G=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[wn,Ho]},N=function(){return[wn,de]};return{cacheSize:500,theme:{colors:[kr],spacing:[vt],blur:["none","",Jt,de],brightness:D(),borderColor:[e],borderRadius:["none","","full",Jt,de],borderSpacing:I(),borderWidth:R(),contrast:D(),grayscale:q(),hueRotate:N(),invert:q(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[E3,Fs],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:[Jt]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"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",Mr]}],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",Mr]}],"grid-cols":[{"grid-cols":[kr]}],"col-start-end":[{col:["auto",{span:["full",Mr]},de]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[kr]}],"row-start-end":[{row:["auto",{span:[Mr]},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,vt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Jt]},Jt,de]}],h:[{h:[de,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",de,vt]}],"max-h":[{"max-h":[de,t,"min","max","fit"]}],"font-size":[{text:["base",Jt,Fs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ho]}],"font-family":[{font:[kr]}],"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",wn,Ho]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",de,vt]}],"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",vt]}],"underline-offset":[{"underline-offset":["auto",de,vt]}],"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(),[C3])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",w3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},D3]}],"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,vt]}],"outline-w":[{outline:[vt]}],"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":[vt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,P3]}],"shadow-color":[{shadow:[kr]}],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,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:[Mr,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:[vt,Ho]}],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 M3(e,t){for(var n in t)jp(e,n,t[n]);return e}var k3=Object.prototype.hasOwnProperty,R3=new Set(["string","number","boolean"]);function jp(e,t,n){if(!k3.call(e,t)||R3.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)jp(e[t],r,n[r])}}function F3(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"?Rs.apply(void 0,[Bs,e].concat(n)):Rs.apply(void 0,[function(){return M3(Bs(),e)}].concat(n))}var B3=Rs(Bs),I3={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},_p=e=>e||void 0,Qr=(...e)=>_p(Fp(e).filter(Boolean).join(" ")),Ka=null,xi={},Is=!1,Rr=(...e)=>t=>t.twMerge?((!Ka||Is)&&(Is=!1,Ka=nt(xi)?B3:F3(xi)),_p(Ka(Qr(e)))):Qr(e),qc=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=Qr(e[n],t[n]):e[n]=t[n];return e},L3=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...I3,...t},c=n!=null&&n.base?Qr(n.base,e==null?void 0:e.base):e==null?void 0:e.base,u=n!=null&&n.variants&&!nt(n.variants)?Ip(o,n.variants):o,f=n!=null&&n.defaultVariants&&!nt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!nt(l.twMergeConfig)&&!o3(l.twMergeConfig,xi)&&(Is=!0,xi=l.twMergeConfig);let p=nt(n==null?void 0:n.slots),h=nt(r)?{}:{base:Qr(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},b=p?h:qc({...n==null?void 0:n.slots},nt(h)?{base:e==null?void 0:e.base}:h),g=$=>{if(nt(u)&&nt(r)&&p)return Rr(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(Hc(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=Hc(W);O[j]?O[j]=O[j].concat(q.split(" ").map(G=>`${I}:${G}`)):O[j]=q.split(" ").map(G=>`${I}:${G}`)}else Array.isArray(W)&&W.length>0&&(O[j]=W.reduce((q,G)=>q.concat(`${I}:${G}`),[]))}}return O},w=(I,R=u,L=null,j=null)=>{var O;let T=R[I];if(!T||nt(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=Uc(W),G=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[I],N=[];if(typeof q=="object"&&G)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[Uc(D)];return typeof N=="object"&&typeof L=="string"&&N[L]?qc(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,G]of Object.entries(T)){let D=K(q,R);if(Array.isArray(G)){if(!G.includes(D[q])){W=!1;break}}else if(D[q]!==G){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 Bp(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=Rr(L.base,j)(l)),typeof j=="object")for(let[O,T]of Object.entries(j))L[O]=Rr(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(!nt(T)){let W=!0;for(let q of Object.keys(T)){let G=K(q,I)[q];if(G===void 0||(Array.isArray(T[q])?!T[q].includes(G):T[q]!==G)){W=!1;break}}if(!W)continue}for(let W of L)R[W]=R[W]||[],R[W].push([j,O])}return R};if(!nt(r)||!p){let I={};if(typeof b=="object"&&!nt(b))for(let R of Object.keys(b))I[R]=L=>{var j,O;return Rr(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 Rr(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},Go=["small","medium","large"],Ji=(e,t)=>{var n,r,o;return L3(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:Go,borderRadius:Go},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Go}],"font-size":[{text:["tiny",...Go]}],"bg-image":["bg-stripe-gradient"]}}})},zp=["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"],ja=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],Zc=Ji({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",...zp],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"}}]}),V3=Ji({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...zp],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...ja,"flex","items-center","justify-center"],name:[...ja,"font-normal","text-center","text-inherit"],icon:[...ja,"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"}}]}),O3=Ji({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"}}}),Xc=Ji({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 mt(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 ht(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function et(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 wi={prefix:String(Math.round(Math.random()*1e10)),current:0},Up=B.default.createContext(wi),N3=B.default.createContext(!1);let K3=!!(typeof window<"u"&&window.document&&window.document.createElement),_a=new WeakMap;function j3(e=!1){let t=d.useContext(Up),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=_a.get(i);a==null?_a.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,_a.delete(i))}n.current=++t.current}return n.current}function _3(e){let t=d.useContext(Up);t===wi&&!K3&&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=j3(!!e),r=t===wi&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function z3(e){let t=B.default.useId(),[n]=d.useState(Mt()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${wi.prefix}`;return e||`${r}-${t}`}const U3=typeof B.default.useId=="function"?z3:_3;function H3(){return!1}function G3(){return!0}function W3(e){return()=>{}}function Mt(){return typeof B.default.useSyncExternalStore=="function"?B.default.useSyncExternalStore(W3,H3,G3):d.useContext(N3)}function Hp(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=Hp(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Y3(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Hp(e))&&(r&&(r+=" "),r+=t);return r}const me=typeof document<"u"?B.default.useLayoutEffect:()=>{};function Se(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 q3(e){let[t,n]=d.useState(e),r=d.useRef(null),o=Se(()=>{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=Se(a=>{r.current=a(t),o()});return[t,i]}let Z3=!!(typeof window<"u"&&window.document&&window.document.createElement),Ci=new Map;function ze(e){let[t,n]=d.useState(e),r=d.useRef(null),o=U3(t),i=d.useCallback(a=>{r.current=a},[]);return Z3&&Ci.set(o,i),me(()=>{let a=o;return()=>{Ci.delete(a)}},[o]),d.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),o}function X3(e,t){if(e===t)return e;let n=Ci.get(e);if(n)return n(t),t;let r=Ci.get(t);return r?(r(e),e):t}function rn(e=[]){let t=ze(),[n,r]=q3(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 an(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const $e=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},pt=e=>e&&"window"in e&&e.window===e?e:$e(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]=an(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Y3(i,a):o==="id"&&i&&a?t.id=X3(i,a):t[o]=a!==void 0?a:i}}return t}function Qi(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const J3=new Set(["id"]),Q3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ex=new Set(["href","target","rel","download","ping","referrerPolicy"]),tx=/^(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)&&(J3.has(a)||n&&Q3.has(a)||r&&ex.has(a)||o!=null&&o.has(a)||tx.test(a))&&(i[a]=e[a]);return i}function St(e){if(nx())e.focus({preventScroll:!0});else{let t=rx(e);e.focus(),ox(t)}}let Wo=null;function nx(){if(Wo==null){Wo=!1;try{document.createElement("div").focus({get preventScroll(){return Wo=!0,!0}})}catch{}}return Wo}function rx(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 ox(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function ea(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 Ol(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 Ht(){return Ol(/^Mac/i)}function Gp(){return Ol(/^iPhone/i)}function Wp(){return Ol(/^iPad/i)||Ht()&&navigator.maxTouchPoints>1}function fr(){return Gp()||Wp()}function ci(){return Ht()||fr()}function Nl(){return ea(/AppleWebKit/i)&&!ix()}function ix(){return ea(/Chrome/i)}function Kl(){return ea(/Android/i)}function ax(){return ea(/Firefox/i)}const sx=d.createContext({isNative:!0,open:cx});function mo(){return d.useContext(sx)}function lx(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 Sn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;ax()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ht()?i=!0:a=!0);let c=Nl()&&Ht()&&!Wp()?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});Sn.isOpening=n,St(e),e.dispatchEvent(c),Sn.isOpening=!1}Sn.isOpening=!1;function ux(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 cx(e,t){ux(e,n=>Sn(n,t))}let Wn=new Map,Ls=new Set;function Jc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Wn.get(r.target);o||(o=new Set,Wn.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=Wn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Wn.delete(r.target)),Wn.size===0)){for(let i of Ls)i();Ls.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Jc():document.addEventListener("DOMContentLoaded",Jc));function Yp(e){requestAnimationFrame(()=>{Wn.size===0?e():Ls.add(e)})}function pr(){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 Tn(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=ze(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 gt(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 dx(){return typeof window.ResizeObserver<"u"}function jl(e){const{ref:t,onResize:n}=e;d.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(dx()){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 _l(e,t){me(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function eo(e,t){let n=e;for(Di(n,t)&&(n=n.parentElement);n&&!Di(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Di(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 ut=typeof document<"u"&&window.visualViewport;function fx(){let e=Mt(),[t,n]=d.useState(()=>e?{width:0,height:0}:Qc());return d.useEffect(()=>{let r=()=>{n(o=>{let i=Qc();return i.width===o.width&&i.height===o.height?o:i})};return ut?ut.addEventListener("resize",r):window.addEventListener("resize",r),()=>{ut?ut.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Qc(){return{width:ut&&(ut==null?void 0:ut.width)||window.innerWidth,height:ut&&(ut==null?void 0:ut.height)||window.innerHeight}}let px=0;const za=new Map;function qp(e){let[t,n]=d.useState();return me(()=>{if(!e)return;let r=za.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${px++}`;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},za.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),za.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Ei(e,t,n,r){let o=Se(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 Zp(e,t){let n=ed(e,t,"left"),r=ed(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 ed(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 Vs(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=eo(e);for(;e&&l&&e!==a&&l!==a;)Zp(l,e),e=l,l=eo(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 Os(e){return e.mozInputSource===0&&e.isTrusted?!0:Kl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function hx(e){return!Kl()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function bx(e,t){let n=d.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function go(e,t,n){let r=d.useRef(t),o=Se(()=>{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 mx(e,t){return t.get?t.get.call(e):t.value}function Xp(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function gx(e,t){var n=Xp(e,t,"get");return mx(e,n)}function vx(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function vo(e,t,n){vx(e,t),t.set(e,n)}function yx(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 td(e,t,n){var r=Xp(e,t,"set");return yx(e,r,n),n}let Zn="default",Ns="",di=new WeakMap;function Ks(e){if(fr()){if(Zn==="default"){const t=$e(e);Ns=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Zn="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(di.set(e,e.style.userSelect),e.style.userSelect="none")}function Kr(e){if(fr()){if(Zn!=="disabled")return;Zn="restoring",setTimeout(()=>{Yp(()=>{if(Zn==="restoring"){const t=$e(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ns||""),Ns="",Zn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&di.has(e)){let t=di.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),di.delete(e)}}const to=B.default.createContext({register:()=>{}});to.displayName="PressResponderContext";function $x(e){let t=d.useContext(to);if(t){let{register:n,...r}=t;e=J(r,e),n()}return _l(t,e.ref),e}var Yo=new WeakMap;class qo{continuePropagation(){td(this,Yo,!1)}get shouldStopPropagation(){return gx(this,Yo)}constructor(t,n,r){vo(this,Yo,{writable:!0,value:void 0}),td(this,Yo,!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 nd=Symbol("linkClicked");function sn(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}=$x(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:$}=pr(),C=Se((v,V)=>{let F=g.current;if(a||F.didFirePressStart)return!1;let A=!0;if(F.isTriggeringEvent=!0,r){let I=new qo("pressstart",V,v);r(I),A=I.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,b(!0),A}),w=Se((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 qo("pressend",V,v);o(R),I=R.shouldStopPropagation}if(n&&n(!1),b(!1),t&&F&&!a){let R=new qo("press",V,v);t(R),I&&(I=R.shouldStopPropagation)}return A.isTriggeringEvent=!1,I}),E=Se((v,V)=>{let F=g.current;if(a)return!1;if(i){F.isTriggeringEvent=!0;let A=new qo("pressup",V,v);return i(A),F.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),P=Se(v=>{let V=g.current;V.isPressed&&V.target&&(V.isOverTarget&&V.pointerType!=null&&w(Rt(V.target,v),V.pointerType,!1),V.isPressed=!1,V.isOverTarget=!1,V.activePointerId=null,V.pointerType=null,$(),u||Kr(V.target))}),k=Se(v=>{c&&P(v)}),K=d.useMemo(()=>{let v=g.current,V={onKeyDown(A){if(Ua(A.nativeEvent,A.currentTarget)&&A.currentTarget.contains(A.target)){var I;od(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=>{Ua(O,L)&&!O.repeat&&L.contains(O.target)&&v.target&&E(Rt(v.target,O),"keyboard")};y($e(A.currentTarget),"keyup",an(j,F),!0)}R&&A.stopPropagation(),A.metaKey&&Ht()&&((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&&!Sn.isOpening){let I=!0;if(a&&A.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||Os(A.nativeEvent))){!a&&!l&&St(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&&Ua(A,v.target)){var R;od(A.target,A.key)&&A.preventDefault();let j=A.target;w(Rt(v.target,A),"keyboard",v.target.contains(j)),$(),A.key!=="Enter"&&zl(v.target)&&v.target.contains(j)&&!A[nd]&&(A[nd]=!0,Sn(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(hx(L.nativeEvent)){v.pointerType="virtual";return}Ha(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&&St(L.currentTarget),u||Ks(v.target),j=C(L,v.pointerType),y($e(L.currentTarget),"pointermove",A,!1),y($e(L.currentTarget),"pointerup",I,!1),y($e(L.currentTarget),"pointercancel",R,!1)),j&&L.stopPropagation()},V.onMouseDown=L=>{L.currentTarget.contains(L.target)&&L.button===0&&(Ha(L.currentTarget)&&L.preventDefault(),L.stopPropagation())},V.onPointerUp=L=>{!L.currentTarget.contains(L.target)||v.pointerType==="virtual"||L.button===0&&zn(L,L.currentTarget)&&E(L,v.pointerType||L.pointerType)};let A=L=>{L.pointerId===v.activePointerId&&(v.target&&zn(L,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,C(Rt(v.target,L),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,w(Rt(v.target,L),v.pointerType,!1),k(L)))},I=L=>{L.pointerId===v.activePointerId&&v.isPressed&&L.button===0&&v.target&&(zn(L,v.target)&&v.pointerType!=null?w(Rt(v.target,L),v.pointerType):v.isOverTarget&&v.pointerType!=null&&w(Rt(v.target,L),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,$(),u||Kr(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(Ha(R.currentTarget)&&R.preventDefault(),v.ignoreEmulatedMouseEvents){R.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=R.currentTarget,v.pointerType=Os(R.nativeEvent)?"virtual":"mouse",!a&&!l&&St(R.currentTarget),C(R,v.pointerType)&&R.stopPropagation(),y($e(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&&zn(R,v.target)&&v.pointerType!=null?w(Rt(v.target,R),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&w(Rt(v.target,R),v.pointerType,!1),v.isOverTarget=!1}};V.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let L=xx(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&&St(R.currentTarget),u||Ks(v.target),C(R,v.pointerType)&&R.stopPropagation(),y(pt(R.currentTarget),"scroll",I,!0)},V.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let L=rd(R.nativeEvent,v.activePointerId),j=!0;L&&zn(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=rd(R.nativeEvent,v.activePointerId),j=!0;L&&zn(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&&Kr(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||Kr((v=g.current.target)!==null&&v!==void 0?v:void 0)},[u]),{isPressed:s||h,pressProps:J(p,K)}}function zl(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ua(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof pt(o).HTMLInputElement&&!Jp(o,n)||o instanceof pt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&zl(o))&&n!=="Enter")}function xx(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function rd(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 Rt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function wx(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 Cx(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function zn(e,t){let n=t.getBoundingClientRect(),r=wx(e);return Cx(n,r)}function Ha(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function od(e,t){return e instanceof HTMLInputElement?!Jp(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!zl(e)}const Dx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Jp(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Dx.has(e.type)}const Ex=B.default.forwardRef(({children:e,...t},n)=>{let r=d.useRef(!1),o=d.useContext(to);n=gt(n||(o==null?void 0:o.ref));let i=J(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return _l(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(to.Provider,{value:i},e)});function Px({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return B.default.createElement(to.Provider,{value:t},e)}class Sx{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 Qp(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=Se(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 Sx("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 ta(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=Qp(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 Gt=null,no=new Set,Hr=new Map,An=!1,js=!1;const Tx={Tab:!0,Escape:!0};function na(e,t){for(let n of no)n(e,t)}function Ax(e){return!(e.metaKey||!Ht()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Pi(e){An=!0,Ax(e)&&(Gt="keyboard",na("keyboard",e))}function dt(e){Gt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(An=!0,na("pointer",e))}function e0(e){Os(e)&&(An=!0,Gt="virtual")}function t0(e){e.target===window||e.target===document||(!An&&!js&&(Gt="virtual",na("virtual",e)),An=!1,js=!1)}function n0(){An=!1,js=!0}function Si(e){if(typeof window>"u"||Hr.get(pt(e)))return;const t=pt(e),n=$e(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){An=!0,r.apply(this,arguments)},n.addEventListener("keydown",Pi,!0),n.addEventListener("keyup",Pi,!0),n.addEventListener("click",e0,!0),t.addEventListener("focus",t0,!0),t.addEventListener("blur",n0,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",dt,!0),n.addEventListener("pointermove",dt,!0),n.addEventListener("pointerup",dt,!0)):(n.addEventListener("mousedown",dt,!0),n.addEventListener("mousemove",dt,!0),n.addEventListener("mouseup",dt,!0)),t.addEventListener("beforeunload",()=>{r0(e)},{once:!0}),Hr.set(t,{focus:r})}const r0=(e,t)=>{const n=pt(e),r=$e(e);t&&r.removeEventListener("DOMContentLoaded",t),Hr.has(n)&&(n.HTMLElement.prototype.focus=Hr.get(n).focus,r.removeEventListener("keydown",Pi,!0),r.removeEventListener("keyup",Pi,!0),r.removeEventListener("click",e0,!0),n.removeEventListener("focus",t0,!0),n.removeEventListener("blur",n0,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",dt,!0),r.removeEventListener("pointermove",dt,!0),r.removeEventListener("pointerup",dt,!0)):(r.removeEventListener("mousedown",dt,!0),r.removeEventListener("mousemove",dt,!0),r.removeEventListener("mouseup",dt,!0)),Hr.delete(n))};function Mx(e){const t=$e(e);let n;return t.readyState!=="loading"?Si(e):(n=()=>{Si(e)},t.addEventListener("DOMContentLoaded",n)),()=>r0(e,n)}typeof document<"u"&&Mx();function sr(){return Gt!=="pointer"}function Ti(){return Gt}function o0(e){Gt=e,na(e,null)}function kx(){Si();let[e,t]=d.useState(Gt);return d.useEffect(()=>{let n=()=>{t(Gt)};return no.add(n),()=>{no.delete(n)}},[]),Mt()?null:e}const Rx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Fx(e,t,n){var r;const o=typeof window<"u"?pt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?pt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?pt(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?pt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!Rx.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&&!Tx[n.key])}function Bx(e,t,n){Si(),d.useEffect(()=>{let r=(o,i)=>{Fx(!!(n!=null&&n.isTextInput),o,i)&&e(sr())};return no.add(r),()=>{no.delete(r)}},t)}function hr(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=Qp(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 Ai=!1,Ga=0;function _s(){Ai=!0,setTimeout(()=>{Ai=!1},50)}function id(e){e.pointerType==="touch"&&_s()}function Ix(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",id):document.addEventListener("touchend",_s),Ga++,()=>{Ga--,!(Ga>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",id):document.removeEventListener("touchend",_s))}}function Be(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(Ix,[]);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=>{Ai&&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&&!Ai&&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 i0(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Se(l=>{n&&Zo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Se(l=>{n&&n(l)});d.useEffect(()=>{let l=i.current;if(r)return;const c=t.current,u=$e(c);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&Zo(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&&Zo(h,t)&&s(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Zo(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 Zo(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 ad(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 Ul(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ad(e.onKeyDown),onKeyUp:ad(e.onKeyUp)}}}function a0(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=d.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=pr(),s=Se((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=Se((u,f)=>{Kr(),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=()=>{Ks(),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 Lx(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]);Ei(t,"wheel",r?void 0:o)}const Vx=500;function s0(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Vx,accessibilityDescription:a}=e;const s=d.useRef();let{addGlobalListener:l,removeGlobalListener:c}=pr(),{pressProps:u}=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(()=>{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=qp(o&&!t?a:void 0);return{longPressProps:J(u,f)}}function Mn(e){const t=$e(e);if(Ti()==="virtual"){let n=t.activeElement;Yp(()=>{t.activeElement===n&&e.isConnected&&St(e)})}else St(e)}function Ox(e){const t=pt(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 Nx(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function l0(e,t){return e.nodeName!=="#comment"&&Ox(e)&&Nx(e,t)&&(!e.parentElement||l0(e.parentElement,e))}const sd=B.default.createContext(null);let ye=null;function Hl(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(sd)||{},c=d.useMemo(()=>new zs({scopeRef:s}),[s]);me(()=>{let p=l||Re.root;if(Re.getTreeNode(p.scopeRef)&&ye&&!ki(ye,p.scopeRef)){let h=Re.getTreeNode(ye);h&&(p=h)}p.addChild(c),Re.addNode(c)},[c,l]),me(()=>{let p=Re.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]),Gx(s,r,n),zx(s,n),Yx(s,r,n),Hx(s,o),d.useEffect(()=>{const p=$e(s.current?s.current[0]:void 0).activeElement;let h=null;if(We(p,s.current)){for(let b of Re.traverse())b.scopeRef&&We(p,b.scopeRef.current)&&(h=b);h===Re.getTreeNode(s)&&(ye=h.scopeRef)}},[s]),me(()=>()=>{var p,h,b;let g=(b=(h=Re.getTreeNode(s))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(s===ye||ki(s,ye))&&(!g||Re.getTreeNode(g))&&(ye=g),Re.removeTreeNode(s)},[s]);let u=d.useMemo(()=>Kx(s),[]),f=d.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return B.default.createElement(sd.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 Kx(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||$e(n[0]).activeElement,l=n[0].previousElementSibling,c=Cn(n),u=Xe(c,{tabbable:o,accept:a},n);u.currentNode=We(s,n)?s:l;let f=u.nextNode();return!f&&i&&(u.currentNode=l,f=u.nextNode()),f&&tt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||$e(n[0]).activeElement,l=n[n.length-1].nextElementSibling,c=Cn(n),u=Xe(c,{tabbable:o,accept:a},n);u.currentNode=We(s,n)?s:l;let f=u.previousNode();return!f&&i&&(u.currentNode=l,f=u.previousNode()),f&&tt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Xe(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&tt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Xe(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&tt(s,!0),s}}}const Gl=["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]"],jx=Gl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Gl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const _x=Gl.join(':not([hidden]):not([tabindex="-1"]),');function Cn(e){return e[0].parentElement}function jr(e){let t=Re.getTreeNode(ye);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function zx(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=$e(o?o[0]:void 0);let a=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!jr(e))return;let u=i.activeElement,f=e.current;if(!f||!We(u,f))return;let p=Cn(f),h=Xe(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&&tt(b,!0)},s=c=>{(!ye||ki(ye,e))&&We(c.target,e.current)?(ye=e,n.current=c.target):jr(e)&&!Mi(c.target,e)?n.current?n.current.focus():ye&&ye.current&&Ri(ye.current):jr(e)&&(n.current=c.target)},l=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&jr(e)&&!Mi(i.activeElement,e))if(ye=e,i.body.contains(c.target)){var u;n.current=c.target,(u=n.current)===null||u===void 0||u.focus()}else ye.current&&Ri(ye.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 u0(e){return Mi(e)}function We(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Mi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Re.traverse(Re.getTreeNode(t)))if(n&&We(e,n.current))return!0;return!1}function Ux(e){return Mi(e,ye)}function ki(e,t){var n;let r=(n=Re.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function tt(e,t=!1){if(e!=null&&!t)try{Mn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Ri(e,t=!0){let n=e[0].previousElementSibling,r=Cn(e),o=Xe(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Cn(e),o=Xe(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),tt(i)}function Hx(e,t){const n=B.default.useRef(t);d.useEffect(()=>{if(n.current){ye=e;const r=$e(e.current?e.current[0]:void 0);!We(r.activeElement,ye.current)&&e.current&&Ri(e.current)}n.current=!1},[e])}function Gx(e,t,n){me(()=>{if(t||n)return;let r=e.current;const o=$e(r?r[0]:void 0);let i=a=>{let s=a.target;We(s,e.current)?ye=e:u0(s)||(ye=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 Wx(e){let t=Re.getTreeNode(ye);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Yx(e,t,n){const r=d.useRef(typeof document<"u"?$e(e.current?e.current[0]:void 0).activeElement:null);me(()=>{let o=e.current;const i=$e(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ye||ki(ye,e))&&We(i.activeElement,e.current)&&(ye=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=$e(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!jr(e))return;let s=o.activeElement;if(!We(s,e.current))return;let l=Re.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,u=Xe(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||!We(f,e.current))&&c){u.currentNode=c;do f=a.shiftKey?u.previousNode():u.nextNode();while(We(f,e.current));a.preventDefault(),a.stopPropagation(),f?tt(f,!0):u0(c)?tt(c,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),me(()=>{const o=$e(e.current?e.current[0]:void 0);if(!t)return;let i=Re.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=Re.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(We(o.activeElement,e.current)||o.activeElement===o.body&&Wx(e))){let c=Re.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let u=c.getTreeNode(e);for(;u;){if(u.nodeToRestore&&u.nodeToRestore.isConnected){tt(u.nodeToRestore);return}u=u.parent}for(u=c.getTreeNode(e);u;){if(u.scopeRef&&u.scopeRef.current&&Re.getTreeNode(u.scopeRef)){Ri(u.scopeRef.current,!0);return}u=u.parent}}})}}}},[e,t])}function Xe(e,t,n){let r=t!=null&&t.tabbable?_x:jx,o=$e(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)&&l0(i)&&(!n||We(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 c0(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||$e(r).activeElement,c=Xe(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&&tt(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||$e(r).activeElement,c=Xe(r,{tabbable:i,accept:s});if(r.contains(l))c.currentNode=l;else{let f=Wa(c);return f&&tt(f,!0),f??null}let u=c.previousNode();if(!u&&a){c.currentNode=r;let f=Wa(c);if(!f)return null;u=f}return u&&tt(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=Xe(r,{tabbable:o,accept:i}).nextNode();return s&&tt(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=Xe(r,{tabbable:o,accept:i}),s=Wa(a);return s&&tt(s,!0),s??null}}}function Wa(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Wl{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 zs({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&&We(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 Wl;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 zs({scopeRef:null}),this.fastMap.set(null,this.root)}}class zs{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 Re=new Wl;function qe(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=d.useRef({isFocused:!1,isFocusVisible:t||sr()}),[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]);Bx(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:n});let{focusProps:f}=ta({isDisabled:r,onFocusChange:u}),{focusWithinProps:p}=hr({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}let qx=B.default.createContext(null);function Zx(e){let t=d.useContext(qx)||{};_l(t,e);let{ref:n,...r}=t;return r}function br(e,t){let{focusProps:n}=ta(e),{keyboardProps:r}=Ul(e),o=J(n,r),i=Zx(t),a=e.isDisabled?{}:i,s=d.useRef(e.autoFocus);return d.useEffect(()=>{s.current&&t.current&&Mn(t.current),s.current=!1},[t]),{focusableProps:J({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function Xx(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=Xe(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 d0=globalThis!=null&&globalThis.document?d.useLayoutEffect:d.useEffect;function Jx(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 d0(()=>{if(!l)return c==="loading"&&p(),()=>{h()}},[c,p,l]),l?"loaded":c}function Qx(e={}){var t,n,r,o,i;const a=kp(),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=B$,ignoreFallback:v=!1,showFallback:V=!1,ImgComponent:F="img",imgProps:A,className:I,onError:R,...L}=e,j=l||"span",O=Ms(c),T=Ms(y),{isFocusVisible:W,isFocused:q,focusProps:G}=qe(),{isHovered:D,hoverProps:N}=Be({isDisabled:P}),Q=Jx({src:u,onError:R,ignoreFallback:v})==="loaded",ee=(!u||!Q)&&V,oe=d.useMemo(()=>{var le;return V3({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]),U=ar(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":Pt(D),"data-focus":Pt(q),"data-focus-visible":Pt(W),className:oe.base({class:ar(U,le==null?void 0:le.className)}),...J(L,N,Z?G:{})}),[Z,oe,U,G,L]),se=d.useCallback((le={})=>({ref:T,src:u,"data-loaded":Pt(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 e5=Symbol.for("react-aria.i18n.locale"),t5=Symbol.for("react-aria.i18n.strings");let Un;class Bn{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=n5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[e5];if(Un===void 0){let o=window[t5];if(!o)return null;Un={};for(let i in o)Un[i]=new Bn({[n]:o[i]},n)}let r=Un==null?void 0:Un[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 n5(e,t,n="en-US"){if(t[e])return t[e];let r=r5(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function r5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const ld=new Map,ud=new Map;class f0{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=ld.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),ld.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=ud.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ud.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 Kt(e,t){return e-t*Math.floor(e/t)}const p0=1721426;function Dn(e,t,n,r){t=yo(e,t);let o=t-1,i=-2;return n<=2?i=0:nn(t)&&(i=-1),p0-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 yo(e,t){return e==="BC"?1-t:t}function ra(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const o5={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 rt{fromJulianDay(t){let n=t,r=n-p0,o=Math.floor(r/146097),i=Kt(r,146097),a=Math.floor(i/36524),s=Kt(i,36524),l=Math.floor(s/1461),c=Kt(s,1461),u=Math.floor(c/365),f=o*400+a*100+l*4+u+(a!==4&&u!==4?1:0),[p,h]=ra(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 Fe(p,h,y,$)}toJulianDay(t){return Dn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return o5[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 h0(e){return Vt(Date.now(),e)}function i5(e){return $0(h0(e))}function b0(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function m0(e,t){return cd(e)-cd(t)}function cd(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Ya=null;function Yl(){return Ya==null&&(Ya=new Intl.DateTimeFormat().resolvedOptions().timeZone),Ya}function a5(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function s5(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function lr(e){e=Je(e,new rt);let t=yo(e.era,e.year);return g0(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function g0(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 Us(e,t){if(t==="UTC")return 0;if(e>0&&t===Yl())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=v0(e,t);return g0(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}const dd=new Map;function v0(e,t){let n=dd.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"}),dd.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 fd=864e5;function l5(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>u5(e,t,i))}function u5(e,t,n){let r=v0(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 Lt(e,t,n="compatible"){let r=ln(e);if(t==="UTC")return lr(r);if(t===Yl()&&n==="compatible"){r=Je(r,new rt);let l=new Date,c=yo(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=lr(r),i=Us(o-fd,t),a=Us(o+fd,t),s=l5(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 y0(e,t,n="compatible"){return new Date(Lt(e,t,n))}function Vt(e,t){let n=Us(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 oo(o,i,a,t,n,s,l,c,u)}function $0(e){return new Fe(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 Fi(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function pd(e){return new ia(e.hour,e.minute,e.second,e.millisecond)}function Je(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,kn(r),r}function x0(e,t,n){if(e instanceof oo)return e.timeZone===t?e:d5(e,t);let r=Lt(e,t,n);return Vt(r,t)}function c5(e){let t=lr(e)-e.offset;return new Date(t)}function d5(e,t){let n=lr(e)-e.offset;return Je(Vt(n,t),e.calendar)}const Fr=36e5;function oa(e,t){let n=e.copy(),r="hour"in n?E0(n,t):0;Hs(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Gs(n),w0(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,f5(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 Hs(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Gs(e){for(;e.month<1;)Hs(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Hs(e,1)}function f5(e){for(;e.day<1;)e.month--,Gs(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Gs(e)}function w0(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 kn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),w0(e)}function ql(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function C0(e,t){return oa(e,ql(t))}function Zl(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),kn(n),n}function ro(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),D0(n),n}function p5(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Xo(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Xo(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Xo(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Xo(e.hour,24),t}function D0(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 Xo(e,t){let n=e%t;return n<0&&(n+=t),n}function E0(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,p5(e)}function P0(e,t){let n=e.copy();return E0(n,t),n}function h5(e,t){return P0(e,ql(t))}function Xl(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=Ot(l,n,0,s.length-1,r==null?void 0:r.round),o.era=s[l],kn(o);break}case"year":var i,a;!((i=(a=o.calendar).isInverseEra)===null||i===void 0)&&i.call(a,o)&&(n=-n),o.year=Ot(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=Ot(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=Ot(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),kn(o),o}function Jl(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=Ot(i,n,a,s,r==null?void 0:r.round);break}case"minute":o.minute=Ot(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=Ot(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=Ot(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Ot(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 S0(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=oa(ln(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Lt(o,e.timeZone)}else n=lr(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Vt(n,e.timeZone);return Je(r,e.calendar)}function b5(e,t){return S0(e,ql(t))}function m5(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=Je(ro(a,{hour:o}),new rt),l=[Lt(s,e.timeZone,"earlier"),Lt(s,e.timeZone,"later")].filter(b=>Vt(b,e.timeZone).day===s.day)[0],c=Je(ro(a,{hour:i}),new rt),u=[Lt(c,e.timeZone,"earlier"),Lt(c,e.timeZone,"later")].filter(b=>Vt(b,e.timeZone).day===c.day).pop(),f=lr(e)-e.offset,p=Math.floor(f/Fr),h=f%Fr;return f=Ot(p,n,Math.floor(l/Fr),Math.floor(u/Fr),r==null?void 0:r.round)*Fr+h,Je(Vt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Jl(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Xl(ln(e),t,n,r),i=Lt(o,e.timeZone);return Je(Vt(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function g5(e,t,n){let r=ln(e),o=ro(Zl(r,t),t);if(o.compare(r)===0)return e;let i=Lt(o,e.timeZone,n);return Je(Vt(i,e.timeZone),e.calendar)}function T0(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 A0(e){let t=Je(e,new rt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function M0(e){return`${A0(e)}T${T0(e)}`}function v5(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 y5(e){return`${M0(e)}${v5(e.offset)}[${e.timeZone}]`}function Ql(e){let t=typeof e[0]=="object"?e.shift():new rt,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 $5=new WeakMap;class Fe{copy(){return this.era?new Fe(this.calendar,this.era,this.year,this.month,this.day):new Fe(this.calendar,this.year,this.month,this.day)}add(t){return oa(this,t)}subtract(t){return C0(this,t)}set(t){return Zl(this,t)}cycle(t,n,r){return Xl(this,t,n,r)}toDate(t){return y0(this,t)}toString(){return A0(this)}compare(t){return b0(this,t)}constructor(...t){vo(this,$5,{writable:!0,value:void 0});let[n,r,o,i,a]=Ql(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,kn(this)}}var x5=new WeakMap;class ia{copy(){return new ia(this.hour,this.minute,this.second,this.millisecond)}add(t){return P0(this,t)}subtract(t){return h5(this,t)}set(t){return ro(this,t)}cycle(t,n,r){return Jl(this,t,n,r)}toString(){return T0(this)}compare(t){return m0(this,t)}constructor(t=0,n=0,r=0,o=0){vo(this,x5,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,D0(this)}}var w5=new WeakMap;class Fi{copy(){return this.era?new Fi(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Fi(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return oa(this,t)}subtract(t){return C0(this,t)}set(t){return Zl(ro(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Xl(this,t,n,r);default:return Jl(this,t,n,r)}}toDate(t,n){return y0(this,t,n)}toString(){return M0(this)}compare(t){let n=b0(this,t);return n===0?m0(this,ln(t)):n}constructor(...t){vo(this,w5,{writable:!0,value:void 0});let[n,r,o,i,a]=Ql(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,kn(this)}}var C5=new WeakMap;class oo{copy(){return this.era?new oo(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new oo(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return S0(this,t)}subtract(t){return b5(this,t)}set(t,n){return g5(this,t,n)}cycle(t,n,r){return m5(this,t,n,r)}toDate(){return c5(this)}toString(){return y5(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-x0(t,this.timeZone).toDate().getTime()}constructor(...t){vo(this,C5,{writable:!0,value:void 0});let[n,r,o,i,a]=Ql(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,kn(this)}}const rr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],D5=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],fi=[1867,1911,1925,1988,2018],en=["meiji","taisho","showa","heisei","reiwa"];function hd(e){const t=rr.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?rr.length-1:t===0?0:t-1}function qa(e){let t=fi[en.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Fe(e.year+t,e.month,e.day)}class E5 extends rt{fromJulianDay(t){let n=super.fromJulianDay(t),r=hd(n);return new Fe(this,en[r],n.year-fi[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(qa(t))}balanceDate(t){let n=qa(t),r=hd(n);en[r]!==t.era&&(t.era=en[r],t.year=n.year-fi[r]),this.constrainDate(t)}constrainDate(t){let n=en.indexOf(t.era),r=D5[n];if(r!=null){let[o,i,a]=r,s=o-fi[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]=rr[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=rr[n],o=rr[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(qa(t))}getMinimumMonthInYear(t){let n=bd(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=bd(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function bd(e){if(e.year===1){let t=en.indexOf(e.era);return rr[t]}}const k0=-543;class P5 extends rt{fromJulianDay(t){let n=super.fromJulianDay(t),r=yo(n.era,n.year);return new Fe(this,r-k0,n.month,n.day)}toJulianDay(t){return super.toJulianDay(md(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(md(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function md(e){let[t,n]=ra(e.year+k0);return new Fe(t,n,e.month,e.day)}const Bi=1911;function R0(e){return e.era==="minguo"?e.year+Bi:1-e.year+Bi}function gd(e){let t=e-Bi;return t>0?["minguo",t]:["before_minguo",1-t]}class S5 extends rt{fromJulianDay(t){let n=super.fromJulianDay(t),r=yo(n.era,n.year),[o,i]=gd(r);return new Fe(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(vd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=gd(R0(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(vd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Bi}constructor(...t){super(...t),this.identifier="roc"}}function vd(e){let[t,n]=ra(R0(e));return new Fe(t,n,e.month,e.day)}const T5=1948321;function A5(e){let t=e>0?e-474:e-473,n=Kt(t,2820)+474;return Kt((n+38)*31,128)<31}function Jo(e,t,n){let r=e>0?e-474:e-473,o=Kt(r,2820)+474,i=t<=7?31*(t-1):30*(t-1)+6;return T5-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+n}class M5{fromJulianDay(t){let n=t-Jo(475,1,1),r=Math.floor(n/1029983),o=Kt(n,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),a=474+2820*r+i;a<=0&&a--;let s=t-Jo(a,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),c=t-Jo(a,l,1)+1;return new Fe(this,a,l,c)}toJulianDay(t){return Jo(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||A5(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Za=78,yd=80;class k5 extends rt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Za,o=t-Dn(n.era,n.year,1,1),i;o<yd?(r--,i=nn(n.year-1)?31:30,o+=i+155+90+10):(i=nn(n.year)?31:30,o-=yd);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 Fe(this,r,a,s)}toJulianDay(t){let n=t.year+Za,[r,o]=ra(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+Za)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Ii=1948440,$d=1948439,ct=1300,Hn=1600,R5=460322;function Li(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function F0(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+Li(t,r,1,1)))/29.5)+1),i=n-Li(t,r,o,1)+1;return new Fe(e,r,o,i)}function xd(e){return(14+11*e)%30<11}class eu{fromJulianDay(t){return F0(this,Ii,t)}toJulianDay(t){return Li(Ii,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&xd(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return xd(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class F5 extends eu{fromJulianDay(t){return F0(this,$d,t)}toJulianDay(t){return Li($d,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const B5="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Ws,or;function pi(e){return R5+or[e-ct]}function _r(e,t){let n=e-ct,r=1<<11-(t-1);return Ws[n]&r?30:29}function wd(e,t){let n=pi(e);for(let r=1;r<t;r++)n+=_r(e,r);return n}function Cd(e){return or[e+1-ct]-or[e-ct]}class I5 extends eu{fromJulianDay(t){let n=t-Ii,r=pi(ct),o=pi(Hn);if(n<r||n>o)return super.fromJulianDay(t);{let i=ct-1,a=1,s=1;for(;s>0;){i++,s=n-pi(i)+1;let l=Cd(i);if(s===l){a=12;break}else if(s<l){let c=_r(i,a);for(a=1;s>c;)s-=c,a++,c=_r(i,a);break}}return new Fe(this,i,a,n-wd(i,a)+1)}}toJulianDay(t){return t.year<ct||t.year>Hn?super.toJulianDay(t):Ii+wd(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ct||t.year>Hn?super.getDaysInMonth(t):_r(t.year,t.month)}getDaysInYear(t){return t.year<ct||t.year>Hn?super.getDaysInYear(t):Cd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Ws||(Ws=new Uint16Array(Uint8Array.from(atob(B5),t=>t.charCodeAt(0)).buffer)),!or){or=new Uint32Array(Hn-ct+1);let t=0;for(let n=ct;n<=Hn;n++){or[n-ct]=t;for(let r=1;r<=12;r++)t+=_r(n,r)}}}}const Dd=347997,B0=1080,I0=24*B0,L5=29,V5=12*B0+793,O5=L5*I0+V5;function $n(e){return Kt(e*7+1,19)<7}function hi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Kt(3*(r+1),7)<3&&(r+=1),r}function N5(e){let t=hi(e-1),n=hi(e);return hi(e+1)-n===356?2:n-t===382?1:0}function Gr(e){return hi(e)+N5(e)}function L0(e){return Gr(e+1)-Gr(e)}function K5(e){let t=L0(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Qo(e,t){if(t>=6&&!$n(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=K5(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class j5{fromJulianDay(t){let n=t-Dd,r=n*I0/O5,o=Math.floor((19*r+234)/235)+1,i=Gr(o),a=Math.floor(n-i);for(;a<1;)o--,i=Gr(o),a=Math.floor(n-i);let s=1,l=0;for(;l<a;)l+=Qo(o,s),s++;s--,l-=Qo(o,s);let c=a-l;return new Fe(this,o,s,c)}toJulianDay(t){let n=Gr(t.year);for(let r=1;r<t.month;r++)n+=Qo(t.year,r);return n+t.day+Dd}getDaysInMonth(t){return Qo(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return L0(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 Ys=1723856,Ed=1824665,qs=5500;function Vi(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function tu(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Vi(e,n,1,1))/30),o=t+1-Vi(e,n,r,1);return[n,r,o]}function V0(e){return Math.floor(e%4/3)}function O0(e,t){return t%13!==0?30:V0(e)+5}class nu{fromJulianDay(t){let[n,r,o]=tu(Ys,t),i="AM";return n<=0&&(i="AA",n+=qs),new Fe(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=qs),Vi(Ys,n,t.month,t.day)}getDaysInMonth(t){return O0(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+V0(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class _5 extends nu{fromJulianDay(t){let[n,r,o]=tu(Ys,t);return n+=qs,new Fe(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class z5 extends nu{fromJulianDay(t){let[n,r,o]=tu(Ed,t),i="CE";return n<=0&&(i="BCE",n=1-n),new Fe(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Vi(Ed,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),O0(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 N0(e){switch(e){case"buddhist":return new P5;case"ethiopic":return new nu;case"ethioaa":return new _5;case"coptic":return new z5;case"hebrew":return new j5;case"indian":return new k5;case"islamic-civil":return new eu;case"islamic-tbla":return new F5;case"islamic-umalqura":return new I5;case"japanese":return new E5;case"persian":return new M5;case"roc":return new S5;case"gregory":default:return new rt}}let Xa=new Map;class Wr{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 G5()&&(this.resolvedHourCycle||(this.resolvedHourCycle=W5(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=K0(t,n),this.options=n}}const U5={true:{ja:"h11"},false:{}};function K0(e,t={}){if(typeof t.hour12=="boolean"&&H5()){t={...t};let o=U5[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(Xa.has(n))return Xa.get(n);let r=new Intl.DateTimeFormat(e,t);return Xa.set(n,r),r}let Ja=null;function H5(){return Ja==null&&(Ja=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Ja}let Qa=null;function G5(){return Qa==null&&(Qa=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Qa}function W5(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=K0(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 es=new Map,Zs=!1;try{Zs=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Oi=!1;try{Oi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const j0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Ni{format(t){let n="";if(!Zs&&this.options.signDisplay!=null?n=q5(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Oi){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=j0[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!Zs&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Oi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=Y5(t,n),this.options=n}}function Y5(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Oi){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=j0[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(es.has(o))return es.get(o);let i=new Intl.NumberFormat(e,t);return es.set(o,i),i}function q5(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 Z5=new RegExp("^.*\\(.*\\).*$"),X5=["latn","arab","hanidec"];class ru{parse(t){return ts(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ts(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ts(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Pd=new Map;function ts(e,t,n){let r=Sd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of X5)if(o!==r.options.numberingSystem){let i=Sd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Sd(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=Pd.get(n);return r||(r=new J5(e,t),Pd.set(n,r)),r}class J5{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=ei(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 ru(this.locale,o).parse(new Ni(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&Z5.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=ei(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=ei(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=ei(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=e2(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 Td=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Q5=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function e2(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=Q5.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=>!Td.has(F.type)).map(F=>Ad(F.value)),w=f.flatMap(F=>F.filter(A=>!Td.has(A.type)).map(A=>Ad(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 ei(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Ad(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const t2=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),n2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function r2(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 t2.has(n.script)}let t=e.split("-")[0];return n2.has(t)}const o2=Symbol.for("react-aria.i18n.locale");function _0(){let e=typeof window<"u"&&window[o2]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:r2(e)?"rtl":"ltr"}}let Xs=_0(),zr=new Set;function Md(){Xs=_0();for(let e of zr)e(Xs)}function i2(){let e=Mt(),[t,n]=d.useState(Xs);return d.useEffect(()=>(zr.size===0&&window.addEventListener("languagechange",Md),zr.add(n),()=>{zr.delete(n),zr.size===0&&window.removeEventListener("languagechange",Md)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const a2=B.default.createContext(null);function Oe(){let e=i2();return d.useContext(a2)||e}const kd=new WeakMap;function s2(e){let t=kd.get(e);return t||(t=new Bn(e),kd.set(e,t)),t}function z0(e,t){return t&&Bn.getGlobalDictionaryForPackage(t)||s2(e)}function mr(e,t){let{locale:n}=Oe(),r=z0(e,t);return d.useMemo(()=>new f0(n,r),[n,r])}function ti(e){e=bx(e??{},l2);let{locale:t}=Oe();return d.useMemo(()=>new Wr(t,e),[t,e])}function l2(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 Ki(e={}){let{locale:t}=Oe();return d.useMemo(()=>new Ni(t,e),[t,e])}let ns=new Map;function ou(e){let{locale:t}=Oe(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ns.has(n))return ns.get(n);let r=new Intl.Collator(t,e);return ns.set(n,r),r}function U0(e){let t=ou({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 H0={};H0={dismiss:"تجاهل"};var G0={};G0={dismiss:"Отхвърляне"};var W0={};W0={dismiss:"Odstranit"};var Y0={};Y0={dismiss:"Luk"};var q0={};q0={dismiss:"Schließen"};var Z0={};Z0={dismiss:"Απόρριψη"};var X0={};X0={dismiss:"Dismiss"};var J0={};J0={dismiss:"Descartar"};var Q0={};Q0={dismiss:"Lõpeta"};var eh={};eh={dismiss:"Hylkää"};var th={};th={dismiss:"Rejeter"};var nh={};nh={dismiss:"התעלם"};var rh={};rh={dismiss:"Odbaci"};var oh={};oh={dismiss:"Elutasítás"};var ih={};ih={dismiss:"Ignora"};var ah={};ah={dismiss:"閉じる"};var sh={};sh={dismiss:"무시"};var lh={};lh={dismiss:"Atmesti"};var uh={};uh={dismiss:"Nerādīt"};var ch={};ch={dismiss:"Lukk"};var dh={};dh={dismiss:"Negeren"};var fh={};fh={dismiss:"Zignoruj"};var ph={};ph={dismiss:"Descartar"};var hh={};hh={dismiss:"Dispensar"};var bh={};bh={dismiss:"Revocare"};var mh={};mh={dismiss:"Пропустить"};var gh={};gh={dismiss:"Zrušiť"};var vh={};vh={dismiss:"Opusti"};var yh={};yh={dismiss:"Odbaci"};var $h={};$h={dismiss:"Avvisa"};var xh={};xh={dismiss:"Kapat"};var wh={};wh={dismiss:"Скасувати"};var Ch={};Ch={dismiss:"取消"};var Dh={};Dh={dismiss:"關閉"};const Rd={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 u2(e={}){let{style:t,isFocusable:n}=e,[r,o]=d.useState(!1),{focusWithinProps:i}=hr({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=d.useMemo(()=>r?t:t?{...Rd,...t}:Rd,[r]);return{visuallyHiddenProps:{...i,style:a}}}function aa(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=u2(e);return B.default.createElement(n,J(i,a),t)}function c2(e){return e&&e.__esModule?e.default:e}const Xn={top:"top",bottom:"top",left:"left",right:"left"},ji={top:"bottom",bottom:"top",left:"right",right:"left"},d2={top:"left",left:"top"},Js={top:"height",left:"width"},Eh={width:"totalWidth",height:"totalHeight"},ni={};let Qe=typeof document<"u"&&window.visualViewport;function Fd(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={},l=(Qe==null?void 0:Qe.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var c;t=(c=Qe==null?void 0:Qe.width)!==null&&c!==void 0?c:r;var u;n=(u=Qe==null?void 0:Qe.height)!==null&&u!==void 0?u:o,s.top=f.scrollTop||e.scrollTop,s.left=f.scrollLeft||e.scrollLeft,Qe&&(i=Qe.offsetTop,a=Qe.offsetLeft)}else({width:t,height:n,top:i,left:a}=ir(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return Nl()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(s.top=0,s.left=0,i=Qe.pageTop,a=Qe.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function f2(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Bd(e,t,n,r,o,i,a){let s=o.scroll[e],l=r[Js[e]],c=r.scroll[Xn[e]]+i,u=l+r.scroll[Xn[e]]-i,f=t-s+a[e]-r[Xn[e]],p=t-s+n+a[e]-r[Xn[e]];return f<c?c-f:p>u?Math.max(u-p,c-f):0}function p2(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 Id(e){if(ni[e])return ni[e];let[t,n]=e.split(" "),r=Xn[t]||"right",o=d2[r];Xn[n]||(n="center");let i=Js[r],a=Js[o];return ni[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},ni[e]}function rs(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]=ht(y[h],$,C),u===p){const w=s?a[b]:t[Eh[b]];y[ji[p]]=Math.floor(w-e[p]+o)}else y[p]=Math.floor(e[p]+e[b]+o);return y}function h2(e,t,n,r,o,i,a,s){const l=r?n.height:t[Eh.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 Ld(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[ji[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[ji[s]]-o)}function b2(e,t,n,r,o,i,a,s,l,c,u,f,p,h,b,g){let y=Id(e),{size:$,crossAxis:C,crossSize:w,placement:E,crossPlacement:P}=y,k=rs(t,s,n,y,u,f,c,p,b,g),K=u,v=Ld(s,c,t,o,i+u,y);if(a&&r[$]>v){let q=Id(`${ji[E]} ${P}`),G=rs(t,s,n,q,u,f,c,p,b,g);Ld(s,c,t,o,i+u,q)>v&&(y=q,k=G,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=Bd(C,k[C],n[w],s,l,i,c);k[C]+=F;let A=h2(k,s,c,p,o,i,n.height,V);h&&h<A&&(A=h),n.height=Math.min(n.height,A),k=rs(t,s,n,y,K,f,c,p,b,g),F=Bd(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=ht(R,O,T);return I[C]=ht(W,L,j),{position:k,maxHeight:A,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:y.placement}}function m2(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?g2(r):document.documentElement,b=h===document.documentElement;const g=window.getComputedStyle(h).position;let y=!!g&&g!=="static",$=b?ir(n):Vd(n,h);if(!b){let{marginTop:v,marginLeft:V}=window.getComputedStyle(n);$.top+=parseInt(v,10)||0,$.left+=parseInt(V,10)||0}let C=ir(r),w=p2(r);C.width+=w.left+w.right,C.height+=w.top+w.bottom;let E=f2(o),P=Fd(s),k=Fd(h),K=s.tagName==="BODY"?ir(h):Vd(h,s);return h.tagName==="HTML"&&s.tagName==="BODY"&&(k.scroll.top=0,k.scroll.left=0),b2(t,$,C,E,w,i,a,P,k,K,l,c,y,u,f,p)}function ir(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 Vd(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=ir(e);let o=ir(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 g2(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Od(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Od(t);)t=t.parentElement;return t||document.documentElement}function Od(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 Ph=new WeakMap;function v2(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||Ph.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Ae=typeof document<"u"&&window.visualViewport;function Sh(e){let{direction:t}=Oe(),{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(Ae==null?void 0:Ae.scale);d.useEffect(()=>{h&&(E.current=Ae==null?void 0:Ae.scale)},[h]);let P=d.useCallback(()=>{if(p===!1||!h||!o.current||!r.current||!i.current||!c||(Ae==null?void 0:Ae.scale)!==E.current)return;!g&&o.current&&(o.current.style.maxHeight="none");let v=m2({placement:$2(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),y2(P),jl({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 Ae==null||Ae.addEventListener("resize",V),Ae==null||Ae.addEventListener("scroll",F),()=>{Ae==null||Ae.removeEventListener("resize",V),Ae==null||Ae.removeEventListener("scroll",F)}},[P]);let K=d.useCallback(()=>{k.current||b()},[b,k]);return v2({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 y2(e){me(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function $2(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Ft=[];function iu(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;d.useEffect(()=>(o&&Ft.push(t),()=>{let b=Ft.indexOf(t);b>=0&&Ft.splice(b,1)}),[o,t]);let l=()=>{Ft[Ft.length-1]===t&&n&&n()},c=b=>{(!s||s(b.target))&&Ft[Ft.length-1]===t&&(b.stopPropagation(),b.preventDefault())},u=b=>{(!s||s(b.target))&&(Ft[Ft.length-1]===t&&(b.stopPropagation(),b.preventDefault()),l())},f=b=>{b.key==="Escape"&&!a&&(b.stopPropagation(),b.preventDefault(),l())};i0({ref:t,onInteractOutside:i&&o?u:null,onInteractOutsideStart:c});let{focusWithinProps:p}=hr({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||Ux(b.relatedTarget)||(!s||s(b.relatedTarget))&&n()}}),h=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:h}}}function x2(e,t,n){let{type:r}=e,{isOpen:o}=t;d.useEffect(()=>{n&&n.current&&Ph.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=ze();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:null,onPress:t.toggle},overlayProps:{id:a}}}const os=typeof document<"u"&&window.visualViewport,w2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ri=0,is;function Th(e={}){let{isDisabled:t}=e;me(()=>{if(!t)return ri++,ri===1&&(fr()?is=D2():is=C2()),()=>{ri--,ri===0&&is()}},[t])}function C2(){return an(Jn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Jn(document.documentElement,"overflow","hidden"))}function D2(){let e,t,n=c=>{e=eo(c.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Jn(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;Kd(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;Kd(u)&&(s(),u.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{u.style.transform="",os&&(os.height<window.innerHeight?requestAnimationFrame(()=>{Nd(u)}):os.addEventListener("resize",()=>Nd(u),{once:!0}))}))},a=null,s=()=>{if(a)return;let c=()=>{window.scrollTo(0,0)},u=window.pageXOffset,f=window.pageYOffset;a=an(Br(window,"scroll",c),Jn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Jn(document.documentElement,"overflow","hidden"),Jn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(u,f)}),window.scrollTo(0,0)},l=an(Br(document,"touchstart",n,{passive:!1,capture:!0}),Br(document,"touchmove",r,{passive:!1,capture:!0}),Br(document,"touchend",o,{passive:!1,capture:!0}),Br(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function Jn(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Br(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Nd(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=eo(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 Kd(e){return e instanceof HTMLInputElement&&!w2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Qs=B.default.createContext(null);function E2(e){let{children:t}=e,n=d.useContext(Qs),[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(Qs.Provider,{value:i},t)}function P2(){let e=d.useContext(Qs);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function S2(e){let{modalProviderProps:t}=P2();return B.default.createElement("div",{"data-overlay-container":!0,...e,...t})}function T2(e){return B.default.createElement(E2,null,B.default.createElement(S2,e))}function jd(e){let t=Mt(),{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(T2,r);return bo.default.createPortal(o,n)}var Ah={};Ah={"ar-AE":H0,"bg-BG":G0,"cs-CZ":W0,"da-DK":Y0,"de-DE":q0,"el-GR":Z0,"en-US":X0,"es-ES":J0,"et-EE":Q0,"fi-FI":eh,"fr-FR":th,"he-IL":nh,"hr-HR":rh,"hu-HU":oh,"it-IT":ih,"ja-JP":ah,"ko-KR":sh,"lt-LT":lh,"lv-LV":uh,"nb-NO":ch,"nl-NL":dh,"pl-PL":fh,"pt-BR":ph,"pt-PT":hh,"ro-RO":bh,"ru-RU":mh,"sk-SK":gh,"sl-SI":vh,"sr-SP":yh,"sv-SE":$h,"tr-TR":xh,"uk-UA":wh,"zh-CN":Ch,"zh-TW":Dh};function el(e){let{onDismiss:t,...n}=e,r=mr(c2(Ah),"@react-aria/overlays"),o=Tn(n,r.format("dismiss")),i=()=>{t&&t()};return B.default.createElement(aa,null,B.default.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Ir=new WeakMap,it=[];function au(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=Ir.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),Ir.set(l,u+1))};it.length&&it[it.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 it.push(s),()=>{a.disconnect();for(let l of r){let c=Ir.get(l);c===1?(l.removeAttribute("aria-hidden"),Ir.delete(l)):Ir.set(l,c-1)}s===it[it.length-1]?(it.pop(),it.length&&it[it.length-1].observe()):it.splice(it.indexOf(s),1)}}function A2(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:c}=iu({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:u,arrowProps:f,placement:p}=Sh({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Th({isDisabled:o||!t.isOpen}),me(()=>{if(t.isOpen&&!o&&r.current)return au([r.current])},[o,t.isOpen,r]),{popoverProps:J(l,u),arrowProps:f,underlayProps:c,placement:p}}const Mh=B.default.createContext(null);function kh(e){let t=Mt(),{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(Hl,{restoreFocus:!0,contain:o&&!r},s)),s=B.default.createElement(Mh.Provider,{value:a},B.default.createElement(Px,null,s)),bo.default.createPortal(s,n)}function Rh(){let e=d.useContext(Mh),t=e==null?void 0:e.setContain;me(()=>{t==null||t(!0)},[t])}function M2(e,t,n){let{overlayProps:r,underlayProps:o}=iu({...e,isOpen:t.isOpen,onClose:t.close},n);return Th({isDisabled:!t.isOpen}),Rh(),d.useEffect(()=>{if(t.isOpen)return au([n.current])},[t.isOpen,n]),{modalProps:J(r),underlayProps:o}}function sa(e){return d.forwardRef(e)}var Fh=(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]},Bh=sa((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=S.jsx(k$,{}),alt:a,classNames:s,slots:l,name:c,showFallback:u,fallback:f,getInitials:p,getAvatarProps:h,getImageProps:b}=Qx({...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]})});Bh.displayName="NextUI.Avatar";var Ih=Bh;function k2(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=Ms(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(()=>O3({className:h,isGrid:f}),[h,f]),E=q$(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:ar(I?"ms-0":f?"":"-ms-2",R&&k<1?"hover:-translate-x-0":"")};return d.cloneElement(F,V$(L))});return{Component:$,context:C,remainingCount:k,clones:K,renderCount:p,getAvatarGroupProps:()=>({ref:y,className:w.base({class:ar(b==null?void 0:b.base,h)}),role:"group",...g}),getAvatarGroupCountProps:()=>({className:w.count({class:b==null?void 0:b.count})})}}var Lh=sa((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:i,getAvatarGroupCountProps:a,getAvatarGroupProps:s,renderCount:l=c=>S.jsx(Ih,{...a(),name:`+${c}`})}=k2({...e,ref:t});return S.jsx(n,{...s(),children:S.jsxs(Z$,{value:o,children:[r,i>0&&l(i)]})})});Lh.displayName="NextUI.AvatarGroup";var R2=Lh;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 Vh(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]=Vh(n[r],o)):n[r]=o}),n}const F2=z.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
+ `,B2=z.styled(Ih)`
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,12 +95,12 @@ 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 I2({icon:e,...t}){const n=kp();return S.jsx(F2,{isInGroup:!!n,isGrid:!!(n!=null&&n.isGrid),children:S.jsx(B2,{...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 L2=z.styled(R2)`
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 V2({children:e,isGrid:t,renderCount:n}){return S.jsx(L2,{isGrid:t,max:0,renderCount:n??void 0,children:e})}const su=d.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),la=d.createContext({}),ua=d.createContext(null),lu=typeof document<"u",uu=lu?d.useLayoutEffect:d.useEffect,cu=d.createContext({strict:!1}),du=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),O2="framerAppearId",Oh="data-"+du(O2),N2={skipAnimations:!1,useManualTiming:!1};class _d{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 K2(e){let t=new _d,n=new _d,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 oi=["read","resolveKeyframes","update","preRender","render","postRender"],j2=40;function Nh(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=oi.reduce((f,p)=>(f[p]=K2(()=>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,j2),1),o.timestamp=f,o.isProcessing=!0,oi.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:oi.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=>oi.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:fu,cancel:EA}=Nh(queueMicrotask,!1);function _2(e,t,n,r){const{visualElement:o}=d.useContext(la),i=d.useContext(cu),a=d.useContext(ua),s=d.useContext(su).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[Oh]&&!window.HandoffComplete));return uu(()=>{c&&(fu.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 Qn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function z2(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):Qn(n)&&(n.current=r))},[t])}function io(e){return typeof e=="string"||Array.isArray(e)}function ca(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const pu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hu=["initial",...pu];function da(e){return ca(e.animate)||hu.some(t=>io(e[t]))}function Kh(e){return!!(da(e)||e.variants)}function U2(e,t){if(da(e)){const{initial:n,animate:r}=e;return{initial:n===!1||io(n)?n:void 0,animate:io(r)?r:void 0}}return e.inherit!==!1?t:{}}function H2(e){const{initial:t,animate:n}=U2(e,d.useContext(la));return d.useMemo(()=>({initial:t,animate:n}),[zd(t),zd(n)])}function zd(e){return Array.isArray(e)?e.join(" "):e}const Ud={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"]},ao={};for(const e in Ud)ao[e]={isEnabled:t=>Ud[e].some(n=>!!t[n])};function tl(e){for(const t in e)ao[t]={...ao[t],...e[t]}}const bu=d.createContext({}),jh=d.createContext({}),G2=Symbol.for("motionComponentSymbol");function W2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&tl(e);function i(s,l){let c;const u={...d.useContext(su),...s,layoutId:Y2(s)},{isStatic:f}=u,p=H2(s),h=r(s,f);if(!f&&lu){p.visualElement=_2(o,h,u,t);const b=d.useContext(jh),g=d.useContext(cu).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,g,e,b))}return S.jsxs(la.Provider,{value:p,children:[c&&p.visualElement?S.jsx(c,{visualElement:p.visualElement,...u}):null,n(o,s,z2(h,p.visualElement,l),h,f,p.visualElement)]})}const a=d.forwardRef(i);return a[G2]=o,a}function Y2({layoutId:e}){const t=d.useContext(bu).id;return t&&e!==void 0?t+"-"+e:e}function _h(e){function t(r,o={}){return W2(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 q2=["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 mu(e){return typeof e!="string"||e.includes("-")?!1:!!(q2.indexOf(e)>-1||/[A-Z]/u.test(e))}const _i={};function Z2(e){Object.assign(_i,e)}const $o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],In=new Set($o);function zh(e,{layout:t,layoutId:n}){return In.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_i[e]||e==="opacity")}const Ye=e=>!!(e&&e.getVelocity),X2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},J2=$o.length;function Q2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<J2;a++){const s=$o[a];if(e[s]!==void 0){const l=X2[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 Uh=e=>t=>typeof t=="string"&&t.startsWith(e),Hh=Uh("--"),e6=Uh("var(--"),gu=e=>e6(e)?t6.test(e.split("/*")[0].trim()):!1,t6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,n6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,un=(e,t,n)=>n>t?t:n<e?e:n,gr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Yr={...gr,transform:e=>un(0,1,e)},ii={...gr,default:1},qr=e=>Math.round(e*1e5)/1e5,vu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,r6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,o6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function xo(e){return typeof e=="string"}const wo=e=>({test:t=>xo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qt=wo("deg"),Tt=wo("%"),re=wo("px"),i6=wo("vh"),a6=wo("vw"),Hd={...Tt,parse:e=>Tt.parse(e)/100,transform:e=>Tt.transform(e*100)},Gd={...gr,transform:Math.round},Gh={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:Qt,rotateX:Qt,rotateY:Qt,rotateZ:Qt,scale:ii,scaleX:ii,scaleY:ii,scaleZ:ii,skew:Qt,skewX:Qt,skewY:Qt,distance:re,translateX:re,translateY:re,translateZ:re,x:re,y:re,z:re,perspective:re,transformPerspective:re,opacity:Yr,originX:Hd,originY:Hd,originZ:re,zIndex:Gd,backgroundPositionX:re,backgroundPositionY:re,fillOpacity:Yr,strokeOpacity:Yr,numOctaves:Gd};function yu(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(Hh(f)){i[f]=p;continue}const h=Gh[f],b=n6(p,h);if(In.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=Q2(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 $u=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wh(e,t,n){for(const r in t)!Ye(t[r])&&!zh(r,n)&&(e[r]=t[r])}function s6({transformTemplate:e},t,n){return d.useMemo(()=>{const r=$u();return yu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function l6(e,t,n){const r=e.style||{},o={};return Wh(o,r,e),Object.assign(o,s6(e,t,n)),o}function u6(e,t,n){const r={},o=l6(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 c6=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 zi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||c6.has(e)}let Yh=e=>!zi(e);function d6(e){e&&(Yh=t=>t.startsWith("on")?!zi(t):e(t))}try{d6(require("@emotion/is-prop-valid").default)}catch{}function f6(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Yh(o)||n===!0&&zi(o)||!t&&!zi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Wd(e,t,n){return typeof e=="string"?e:re.transform(t+n*e)}function p6(e,t,n){const r=Wd(t,e.x,e.width),o=Wd(n,e.y,e.height);return`${r} ${o}`}const h6={offset:"stroke-dashoffset",array:"stroke-dasharray"},b6={offset:"strokeDashoffset",array:"strokeDasharray"};function m6(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?h6:b6;e[i.offset]=re.transform(-r);const a=re.transform(t),s=re.transform(n);e[i.array]=`${a} ${s}`}function xu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,f,p){if(yu(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=p6(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&&m6(h,a,s,l,!1)}const qh=()=>({...$u(),attrs:{}}),wu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function g6(e,t,n,r){const o=d.useMemo(()=>{const i=qh();return xu(i,t,{enableHardwareAcceleration:!1},wu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Wh(i,e.style,e),o.style={...i,...o.style}}return o}function v6(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(mu(n)?g6:u6)(r,i,a,n),c=f6(r,typeof n=="string",e),u=n!==d.Fragment?{...c,...l,ref:o}:{},{children:f}=r,p=d.useMemo(()=>Ye(f)?f.get():f,[f]);return d.createElement(n,{...u,children:p})}}function Zh(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 Xh=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 Jh(e,t,n,r){Zh(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Xh.has(o)?o:du(o),t.attrs[o])}function Cu(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(Ye(o[a])||t.style&&Ye(t.style[a])||zh(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 Qh(e,t,n){const r=Cu(e,t,n);for(const o in e)if(Ye(e[o])||Ye(t[o])){const i=$o.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Du(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 eb(e){const t=d.useRef(null);return t.current===null&&(t.current=e()),t.current}const nl=e=>Array.isArray(e),y6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$6=e=>nl(e)?e[e.length-1]||0:e;function bi(e){const t=Ye(e)?e.get():e;return y6(t)?t.toValue():t}function x6({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:w6(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const tb=e=>(t,n)=>{const r=d.useContext(la),o=d.useContext(ua),i=()=>x6(e,t,r,o);return n?i():eb(i)};function w6(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=bi(i[p]);let{initial:a,animate:s}=e;const l=da(e),c=Kh(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"&&!ca(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const b=Du(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 Ue=e=>e,{schedule:Ve,cancel:cn,state:_e,steps:as}=Nh(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ue,!0),C6={useVisualState:tb({scrapeMotionValuesFromProps:Qh,createRenderState:qh,onMount:(e,t,{renderState:n,latestValues:r})=>{Ve.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ve.render(()=>{xu(n,r,{enableHardwareAcceleration:!1},wu(t.tagName),e.transformTemplate),Jh(t,n)})}})},D6={useVisualState:tb({scrapeMotionValuesFromProps:Cu,createRenderState:$u})};function nb(e,{forwardMotionProps:t=!1},n,r){return{...mu(e)?C6:D6,preloadedFeatures:n,useRender:v6(t),createVisualElement:r,Component:e}}function Nt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const rb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function fa(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const E6=e=>t=>rb(t)&&e(t,fa(t));function jt(e,t,n,r){return Nt(e,t,E6(n),r)}const P6=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(P6);function ob(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Yd=ob("dragHorizontal"),qd=ob("dragVertical");function ib(e){let t=!1;if(e==="y")t=qd();else if(e==="x")t=Yd();else{const n=Yd(),r=qd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ab(){const e=ib(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Zd(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,a)=>{if(i.pointerType==="touch"||ab())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const l=s[r];l&&l(i,a)};return jt(e.current,n,o,{passive:!e.getProps()[r]})}class S6 extends fn{mount(){this.unmount=_t(Zd(this.node,!0),Zd(this.node,!1))}unmount(){}}class T6 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=_t(Nt(this.node.current,"focus",()=>this.onFocus()),Nt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const sb=(e,t)=>t?e===t?!0:sb(e,t.parentElement):!1;function ss(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,fa(n))}class A6 extends fn{constructor(){super(...arguments),this.removeStartListeners=Ue,this.removeEndListeners=Ue,this.removeAccessibleListeners=Ue,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=jt(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:f}=this.node.getProps();!f&&!sb(this.node.current,s.target)?u&&u(s,l):c&&c(s,l)},{passive:!(r.onTap||r.onPointerUp)}),a=jt(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=_t(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()||ss("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&u(l,c)})};this.removeEndListeners(),this.removeEndListeners=Nt(this.node.current,"keyup",a),ss("down",(s,l)=>{this.startPress(s,l)})},n=Nt(this.node.current,"keydown",t),r=()=>{this.isPressing&&ss("cancel",(i,a)=>this.cancelPress(i,a))},o=Nt(this.node.current,"blur",r);this.removeAccessibleListeners=_t(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),!ab()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=jt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Nt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_t(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const rl=new WeakMap,ls=new WeakMap,M6=e=>{const t=rl.get(e.target);t&&t(e)},k6=e=>{e.forEach(M6)};function R6({root:e,...t}){const n=e||document;ls.has(n)||ls.set(n,{});const r=ls.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(k6,{root:e,...t})),r[o]}function F6(e,t,n){const r=R6(t);return rl.set(e,n),r.observe(e),()=>{rl.delete(e),r.unobserve(e)}}const B6={some:0,all:1};class I6 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:B6[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 F6(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(L6(t,n))&&this.startObserver()}unmount(){}}function L6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const lb={inView:{Feature:I6},tap:{Feature:A6},focus:{Feature:T6},hover:{Feature:S6}};function ub(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 V6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function O6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function pa(e,t,n){const r=e.getProps();return Du(r,t,n!==void 0?n:r.custom,V6(e),O6(e))}const zt=e=>e*1e3,Ut=e=>e/1e3,N6={type:"spring",stiffness:500,damping:25,restSpeed:10},K6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),j6={type:"keyframes",duration:.8},_6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},z6=(e,{keyframes:t})=>t.length>2?j6:In.has(e)?e.startsWith("scale")?K6(t[1]):N6:_6;function U6({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 Eu(e,t){return e[t]||e.default||e}const H6=e=>e!==null;function ha(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(H6),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let mi;function G6(){mi=void 0}const on={now:()=>(mi===void 0&&on.set(_e.isProcessing||N2.useManualTiming?_e.timestamp:performance.now()),mi),set:e=>{mi=e,queueMicrotask(G6)}},cb=e=>/^0[^.\s]+$/u.test(e);function W6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cb(e):!0}let Co=Ue,At=Ue;process.env.NODE_ENV!=="production"&&(Co=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},At=(e,t)=>{if(!e)throw new Error(t)});const db=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Y6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function q6(e){const t=Y6.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Z6=4;function fb(e,t,n=1){At(n<=Z6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=q6(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return db(a)?parseFloat(a):a}return gu(o)?fb(o,t,n+1):o}const X6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Xd=e=>e===gr||e===re,Jd=(e,t)=>parseFloat(e.split(", ")[t]),Qd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Jd(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Jd(i[1],e):0}},J6=new Set(["x","y","z"]),Q6=$o.filter(e=>!J6.has(e));function ew(e){const t=[];return Q6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ur={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:Qd(4,13),y:Qd(5,14)};ur.translateX=ur.x;ur.translateY=ur.y;const pb=e=>t=>t.test(e),tw={test:e=>e==="auto",parse:e=>e},hb=[gr,re,Tt,Qt,a6,i6,tw],ef=e=>hb.find(pb(e)),Pn=new Set;let ol=!1,il=!1;function bb(){if(il){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=ew(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)})}il=!1,ol=!1,Pn.forEach(e=>e.complete()),Pn.clear()}function mb(){Pn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(il=!0)})}function nw(){mb(),bb()}class Pu{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),ol||(ol=!0,Ve.read(mb),Ve.resolveKeyframes(bb))):(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 Su=(e,t)=>n=>!!(xo(n)&&o6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),gb=(e,t,n)=>r=>{if(!xo(r))return r;const[o,i,a,s]=r.match(vu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},rw=e=>un(0,255,e),us={...gr,transform:e=>Math.round(rw(e))},En={test:Su("rgb","red"),parse:gb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+us.transform(e)+", "+us.transform(t)+", "+us.transform(n)+", "+qr(Yr.transform(r))+")"};function ow(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 al={test:Su("#"),parse:ow,transform:En.transform},er={test:Su("hsl","hue"),parse:gb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Tt.transform(qr(t))+", "+Tt.transform(qr(n))+", "+qr(Yr.transform(r))+")"},Ge={test:e=>En.test(e)||al.test(e)||er.test(e),parse:e=>En.test(e)?En.parse(e):er.test(e)?er.parse(e):al.parse(e),transform:e=>xo(e)?e:e.hasOwnProperty("red")?En.transform(e):er.transform(e)};function iw(e){var t,n;return isNaN(e)&&xo(e)&&(((t=e.match(vu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(r6))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",yb="color",aw="var",sw="var(",tf="${}",lw=/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 Ui(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(lw,l=>(Ge.test(l)?(r.color.push(i),o.push(yb),n.push(Ge.parse(l))):l.startsWith(sw)?(r.var.push(i),o.push(aw),n.push(l)):(r.number.push(i),o.push(vb),n.push(parseFloat(l))),++i,tf)).split(tf);return{values:n,split:s,indexes:r,types:o}}function $b(e){return Ui(e).values}function xb(e){const{split:t,types:n}=Ui(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===vb?i+=qr(o[a]):s===yb?i+=Ge.transform(o[a]):i+=o[a]}return i}}const uw=e=>typeof e=="number"?0:e;function cw(e){const t=$b(e);return xb(e)(t.map(uw))}const dn={test:iw,parse:$b,createTransformer:xb,getAnimatableNone:cw},dw=new Set(["brightness","contrast","saturate","opacity"]);function fw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(vu)||[];if(!r)return e;const o=n.replace(r,"");let i=dw.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const pw=/\b([a-z-]*)\(.*?\)/gu,sl={...dn,getAnimatableNone:e=>{const t=e.match(pw);return t?t.map(fw).join(" "):e}},hw={...Gh,color:Ge,backgroundColor:Ge,outlineColor:Ge,fill:Ge,stroke:Ge,borderColor:Ge,borderTopColor:Ge,borderRightColor:Ge,borderBottomColor:Ge,borderLeftColor:Ge,filter:sl,WebkitFilter:sl},Tu=e=>hw[e];function wb(e,t){let n=Tu(e);return n!==sl&&(n=dn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function bw(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]=wb(n,o)}class Cb extends Pu{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"&&gu(c)){const u=fb(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(!X6.has(r)||t.length!==2)return this.resolveNoneKeyframes();const[o,i]=t,a=ef(o),s=ef(i);if(a!==s)if(Xd(a)&&Xd(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++)W6(t[o])&&r.push(o);r.length&&bw(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ur[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]=ur[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 mw(e){let t;return()=>(t===void 0&&(t=e()),t)}const nf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(dn.test(e)||e==="0")&&!e.startsWith("url("));function gw(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 vw(e,t,n,r){const o=e[0];if(o===null)return!1;const i=e[e.length-1],a=nf(o,t),s=nf(i,t);return Co(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:gw(e)||n==="spring"&&r}class Db{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&&nw(),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&&!vw(t,r,o,i))if(a)this.options.duration=0;else{l==null||l(ha(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 Eb(e,t){return t?e*(1e3/t):0}const yw=5;function Pb(e,t,n){const r=Math.max(t-yw,0);return Eb(n-e(r),t-r)}const cs=.001,$w=.01,rf=10,xw=.05,ww=1;function Cw({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Co(e<=zt(rf),"Spring duration must be 10 seconds or less");let a=1-t;a=un(xw,ww,a),e=un($w,rf,Ut(e)),a<1?(o=c=>{const u=c*a,f=u*e,p=u-n,h=ll(c,a),b=Math.exp(-f);return cs-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=ll(Math.pow(c,2),a);return(-o(c)+cs>0?-1:1)*((p-h)*b)/g}):(o=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-cs+u*f},i=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const s=5/e,l=Ew(o,i,s);if(e=zt(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 Dw=12;function Ew(e,t,n){let r=n;for(let o=1;o<Dw;o++)r=r-e(r)/t(r);return r}function ll(e,t){return e*Math.sqrt(1-t*t)}const Pw=["duration","bounce"],Sw=["stiffness","damping","mass"];function of(e,t){return t.some(n=>e[n]!==void 0)}function Tw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!of(e,Sw)&&of(e,Pw)){const n=Cw(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Sb({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}=Tw({...r,velocity:-Ut(r.velocity||0)}),h=f||0,b=l/(2*Math.sqrt(s*c)),g=i-o,y=Ut(Math.sqrt(s/c)),$=Math.abs(g)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(b<1){const w=ll(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=Pb(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 af({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=Sb({keyframes:[p.value,b(p.value)],velocity:Pb(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 Tb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Aw=1e-7,Mw=12;function kw(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=Tb(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>Aw&&++s<Mw);return a}function Do(e,t,n,r){if(e===t&&n===r)return Ue;const o=i=>kw(i,0,1,e,n);return i=>i===0||i===1?i:Tb(o(i),t,r)}const Rw=Do(.42,0,1,1),Fw=Do(0,0,.58,1),Ab=Do(.42,0,.58,1),Bw=e=>Array.isArray(e)&&typeof e[0]!="number",Mb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kb=e=>t=>1-e(1-t),Au=e=>1-Math.sin(Math.acos(e)),Rb=kb(Au),Iw=Mb(Au),Fb=Do(.33,1.53,.69,.99),Mu=kb(Fb),Lw=Mb(Mu),Vw=e=>(e*=2)<1?.5*Mu(e):.5*(2-Math.pow(2,-10*(e-1))),sf={linear:Ue,easeIn:Rw,easeInOut:Ab,easeOut:Fw,circIn:Au,circInOut:Iw,circOut:Rb,backIn:Mu,backInOut:Lw,backOut:Fb,anticipate:Vw},lf=e=>{if(Array.isArray(e)){At(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Do(t,n,r,o)}else if(typeof e=="string")return At(sf[e]!==void 0,`Invalid easing type '${e}'`),sf[e];return e},so=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Pe=(e,t,n)=>e+(t-e)*n;function ds(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 Ow({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=ds(l,s,e+1/3),i=ds(l,s,e),a=ds(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const fs=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Nw=[al,En,er],Kw=e=>Nw.find(t=>t.test(e));function uf(e){const t=Kw(e);At(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===er&&(n=Ow(n)),n}const cf=(e,t)=>{const n=uf(e),r=uf(t),o={...n};return i=>(o.red=fs(n.red,r.red,i),o.green=fs(n.green,r.green,i),o.blue=fs(n.blue,r.blue,i),o.alpha=Pe(n.alpha,r.alpha,i),En.transform(o))};function ul(e,t){return n=>n>0?t:e}function jw(e,t){return n=>Pe(e,t,n)}function ku(e){return typeof e=="number"?jw:typeof e=="string"?gu(e)?ul:Ge.test(e)?cf:Uw:Array.isArray(e)?Bb:typeof e=="object"?Ge.test(e)?cf:_w:ul}function Bb(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>ku(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function _w(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=ku(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function zw(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 Uw=(e,t)=>{const n=dn.createTransformer(t),r=Ui(e),o=Ui(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?_t(Bb(zw(r,o),o.values),n):(Co(!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.`),ul(e,t))};function Ib(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pe(e,t,n):ku(e)(e,t)}function Hw(e,t,n){const r=[],o=n||Ib,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]||Ue:t;s=_t(l,s)}r.push(s)}return r}function Gw(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(At(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=Hw(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=so(e[u],e[u+1],c);return a[u](f)};return n?c=>l(un(e[0],e[i-1],c)):l}function Ww(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=so(0,t,r);e.push(Pe(n,1,o))}}function Yw(e){const t=[0];return Ww(t,e.length-1),t}function qw(e,t){return e.map(n=>n*t)}function Zw(e,t){return e.map(()=>t||Ab).splice(0,e.length-1)}function Hi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Bw(r)?r.map(lf):lf(r),i={done:!1,value:t[0]},a=qw(n&&n.length===t.length?n:Yw(t),e),s=Gw(a,t,{ease:Array.isArray(o)?o:Zw(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const df=2e4;function Xw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<df;)t+=n,r=e.next(t);return t>=df?1/0:t}const Jw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ve.update(t,!0),stop:()=>cn(t),now:()=>_e.isProcessing?_e.timestamp:on.now()}},Qw={decay:af,inertia:af,tween:Hi,keyframes:Hi,spring:Sb},e7=e=>e/100;class Ru extends Db{constructor({KeyframeResolver:t=Pu,...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=Qw[n]||Hi;let l,c;s!==Hi&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&At(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=_t(e7,Ib(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=Xw(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=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&&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=ha(l,this.options,o)),y&&y(P.value),K&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Ut(t.calculatedDuration):0}get time(){return Ut(this.currentTime)}set time(t){t=zt(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=Ut(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Jw,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 Lb=e=>Array.isArray(e)&&typeof e[0]=="number";function Vb(e){return!!(!e||typeof e=="string"&&e in Fu||Lb(e)||Array.isArray(e)&&e.every(Vb))}const Ur=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Fu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ur([0,.65,.55,1]),circOut:Ur([.55,0,1,.45]),backIn:Ur([.31,.01,.66,-.59]),backOut:Ur([.33,1.53,.69,.99])};function t7(e){return Ob(e)||Fu.easeOut}function Ob(e){if(e)return Lb(e)?Ur(e):Array.isArray(e)?e.map(t7):Fu[e]}function n7(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=Ob(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 r7=mw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),o7=new Set(["opacity","clipPath","filter","transform"]),Gi=10,i7=2e4;function a7(e){return e.type==="spring"||e.name==="backgroundColor"||!Vb(e.ease)}function s7(e,t){const n=new Ru({...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<i7;)r=n.sample(i),o.push(r.value),i+=Gi;return{times:void 0,keyframes:o,duration:i-Gi,ease:"linear"}}class ff extends Db{constructor(t){super(t);const{name:n,motionValue:r,keyframes:o}=this.options;this.resolver=new Cb(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(a7(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,...b}=this.options,g=s7(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=n7(l.owner.current,c,t,{...this.options,duration:o,times:i,ease:a});return u.startTime=on.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:f}=this.options;l.set(ha(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 Ut(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ut(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=zt(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 Ue;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Ue}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 Ru({...f,keyframes:r,duration:o,type:i,ease:a,times:s,isGenerator:!0}),h=zt(this.time);l.setWithVelocity(p.sample(h-Gi).value,p.sample(h).value,Gi)}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 r7()&&r&&o7.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&a!==0&&s!=="inertia"}}const Bu=(e,t,n,r={},o,i)=>a=>{const s=Eu(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-zt(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};U6(s)||(u={...u,...z6(e,u)}),u.duration&&(u.duration=zt(u.duration)),u.repeatDelay&&(u.repeatDelay=zt(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=ha(u.keyframes,s);if(p!==void 0){Ve.update(()=>{u.onUpdate(p),u.onComplete()});return}}return!i&&ff.supports(u)?new ff(u):new Ru(u)};function Wi(e){return!!(Ye(e)&&e.add)}function Iu(e,t){e.indexOf(t)===-1&&e.push(t)}function Lu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Vu{constructor(){this.subscriptions=[]}add(t){return Iu(this.subscriptions,t),()=>Lu(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 pf=new Set;function Ou(e,t,n){e||pf.has(t)||(console.warn(t),n&&console.warn(n),pf.add(t))}const hf=30,l7=e=>!isNaN(parseFloat(e));class u7{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=l7(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"&&Ou(!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 Vu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ve.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>hf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,hf);return Eb(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 lo(e,t){return new u7(e,t)}function c7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,lo(n))}function d7(e,t){const n=pa(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=$6(i[a]);c7(e,a,s)}}function f7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Nb(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&&f7(f,p))continue;const g={delay:n,elapsed:0,...Eu(a||{},p)};let y=!1;if(window.HandoffAppearAnimations){const w=e.getProps()[Oh];if(w){const E=window.HandoffAppearAnimations(w,p);E!==null&&(g.elapsed=E,y=!0)}}h.start(Bu(p,h,b,e.shouldReduceMotion&&In.has(p)?{type:!1}:g,e,y));const $=h.animation;$&&(Wi(c)&&(c.add(p),$.then(()=>c.remove(p))),u.push($))}return s&&Promise.all(u).then(()=>{Ve.update(()=>{s&&d7(e,s)})}),u}function cl(e,t,n={}){var r;const o=pa(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(Nb(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:p}=i;return p7(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 p7(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(h7).forEach((c,u)=>{c.notify("AnimationStart",t),a.push(cl(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function h7(e,t){return e.sortNodePosition(t)}function b7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>cl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=cl(e,t,n);else{const o=typeof t=="function"?pa(e,t,n.custom):t;r=Promise.all(Nb(e,o,n))}return r.then(()=>{Ve.postRender(()=>{e.notify("AnimationComplete",t)})})}const m7=[...pu].reverse(),g7=pu.length;function v7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>b7(e,n,r)))}function y7(e){let t=v7(e);const n=x7();let r=!0;const o=l=>(c,u)=>{var f;const p=pa(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<g7;y++){const $=m7[y],C=n[$],w=c[$]!==void 0?c[$]:u[$],E=io(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||ca(w)||typeof w=="boolean")continue;let v=$7(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;nl(O)&&nl(T)?W=!ub(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 $7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ub(t,e):!1}function hn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function x7(){return{animate:hn(!0),whileInView:hn(),whileHover:hn(),whileTap:hn(),whileDrag:hn(),whileFocus:hn(),exit:hn()}}class w7 extends fn{constructor(t){super(t),t.animationState||(t.animationState=y7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ca(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 C7=0;class D7 extends fn{constructor(){super(...arguments),this.id=C7++}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 Kb={animation:{Feature:w7},exit:{Feature:D7}},bf=(e,t)=>Math.abs(e-t);function E7(e,t){const n=bf(e.x,t.x),r=bf(e.y,t.y);return Math.sqrt(n**2+r**2)}class jb{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=hs(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=E7(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:b}=f,{timestamp:g}=_e;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=ps(p,this.transformPagePoint),Ve.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=hs(f.type==="pointercancel"?this.lastMoveEventInfo:ps(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,y),b&&b(f,y)},!rb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=fa(t),s=ps(a,this.transformPagePoint),{point:l}=s,{timestamp:c}=_e;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,hs(s,this.history)),this.removeListeners=_t(jt(this.contextWindow,"pointermove",this.handlePointerMove),jt(this.contextWindow,"pointerup",this.handlePointerUp),jt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cn(this.updatePoint)}}function ps(e,t){return t?{point:t(e.point)}:e}function mf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hs({point:e},t){return{point:e,delta:mf(e,_b(t)),offset:mf(e,P7(t)),velocity:S7(t,.1)}}function P7(e){return e[0]}function _b(e){return e[e.length-1]}function S7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=_b(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>zt(t)));)n--;if(!r)return{x:0,y:0};const i=Ut(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 ot(e){return e.max-e.min}function dl(e,t=0,n=.01){return Math.abs(e-t)<=n}function gf(e,t,n,r=.5){e.origin=r,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=ot(n)/ot(t),(dl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pe(n.min,n.max,e.origin)-e.originPoint,(dl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Zr(e,t,n,r){gf(e.x,t.x,n.x,r?r.originX:void 0),gf(e.y,t.y,n.y,r?r.originY:void 0)}function vf(e,t,n){e.min=n.min+t.min,e.max=e.min+ot(t)}function T7(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function yf(e,t,n){e.min=t.min-n.min,e.max=e.min+ot(t)}function Xr(e,t,n){yf(e.x,t.x,n.x),yf(e.y,t.y,n.y)}function A7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pe(n,e,r.max):Math.min(e,n)),e}function $f(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 M7(e,{top:t,left:n,bottom:r,right:o}){return{x:$f(e.x,n,o),y:$f(e.y,t,r)}}function xf(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 k7(e,t){return{x:xf(e.x,t.x),y:xf(e.y,t.y)}}function R7(e,t){let n=.5;const r=ot(e),o=ot(t);return o>r?n=so(t.min,t.max-r,e.min):r>o&&(n=so(e.min,e.max-o,t.min)),un(0,1,n)}function F7(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 fl=.35;function B7(e=fl){return e===!1?e=0:e===!0&&(e=fl),{x:wf(e,"left","right"),y:wf(e,"top","bottom")}}function wf(e,t,n){return{min:Cf(e,t),max:Cf(e,n)}}function Cf(e,t){return typeof e=="number"?e:e[t]||0}const Df=()=>({translate:0,scale:1,origin:0,originPoint:0}),tr=()=>({x:Df(),y:Df()}),Ef=()=>({min:0,max:0}),Me=()=>({x:Ef(),y:Ef()});function lt(e){return[e("x"),e("y")]}function zb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function I7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function L7(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 bs(e){return e===void 0||e===1}function pl({scale:e,scaleX:t,scaleY:n}){return!bs(e)||!bs(t)||!bs(n)}function gn(e){return pl(e)||Ub(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ub(e){return Pf(e.x)||Pf(e.y)}function Pf(e){return e&&e!=="0%"}function Yi(e,t,n){const r=e-n,o=t*r;return n+o}function Sf(e,t,n,r,o){return o!==void 0&&(e=Yi(e,o,r)),Yi(e,n,r)+t}function hl(e,t=0,n=1,r,o){e.min=Sf(e.min,t,n,r,o),e.max=Sf(e.max,t,n,r,o)}function Hb(e,{x:t,y:n}){hl(e.x,t.translate,t.scale,t.originPoint),hl(e.y,n.translate,n.scale,n.originPoint)}function V7(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&&nr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Hb(e,a)),r&&gn(i.latestValues)&&nr(e,i.latestValues))}t.x=Tf(t.x),t.y=Tf(t.y)}function Tf(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 Af(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Pe(e.min,e.max,i);hl(e,t[n],t[r],a,t.scale)}const O7=["x","scaleX","originX"],N7=["y","scaleY","originY"];function nr(e,t){Af(e.x,t,O7),Af(e.y,t,N7)}function Gb(e,t){return zb(L7(e.getBoundingClientRect(),t))}function K7(e,t,n){const r=Gb(e,n),{scroll:o}=t;return o&&(tn(r.x,o.offset.x),tn(r.y,o.offset.y)),r}const Wb=({current:e})=>e?e.ownerDocument.defaultView:null,j7=new WeakMap;class _7{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=Me(),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(fa(u,"page").point)},i=(u,f)=>{const{drag:p,dragPropagation:h,onDragStart:b}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ib(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),lt(y=>{let $=this.getAxisMotionValue(y).get()||0;if(Tt.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const w=C.layout.layoutBox[y];w&&($=ot(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=z7(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=()=>lt(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 jb(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Wb(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||!ai(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=A7(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&&Qn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=M7(o.layoutBox,n):this.constraints=!1,this.elastic=B7(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&lt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=F7(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qn(t))return!1;const r=t.current;At(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=K7(r,o.root,this.visualElement.getTransformPagePoint());let a=k7(o.layout.layoutBox,i);if(n){const s=n(I7(a));this.hasMutatedConstraints=!!s,s&&(a=zb(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=lt(u=>{if(!ai(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(Bu(t,r,0,n,this.visualElement))}stopAnimation(){lt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){lt(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){lt(n=>{const{drag:r}=this.getProps();if(!ai(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]-Pe(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};lt(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=R7({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(),lt(a=>{if(!ai(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(Pe(l,c,o[a]))})}addListeners(){if(!this.visualElement.current)return;j7.set(this.visualElement,this);const t=this.visualElement.current,n=jt(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Qn(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=Nt(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(lt(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=fl,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ai(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function z7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class U7 extends fn{constructor(t){super(t),this.removeGroupControls=Ue,this.removeListeners=Ue,this.controls=new _7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ue}unmount(){this.removeGroupControls(),this.removeListeners()}}const Mf=e=>(t,n)=>{e&&e(t,n)};class H7 extends fn{constructor(){super(...arguments),this.removePointerDownListener=Ue}onPointerDown(t){this.session=new jb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Mf(t),onStart:Mf(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&o(i,a)}}}mount(){this.removePointerDownListener=jt(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 G7(){const e=d.useContext(ua);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 gi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Lr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(re.test(e))e=parseFloat(e);else return e;const n=kf(e,t.target.x),r=kf(e,t.target.y);return`${n}% ${r}%`}},W7={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 c=Pe(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 Y7 extends d.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Z2(q7),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()})),gi.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()||Ve.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),fu.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 Yb(e){const[t,n]=G7(),r=d.useContext(bu);return S.jsx(Y7,{...e,layoutGroup:r,switchLayoutGroup:d.useContext(jh),isPresent:t,safeToRemove:n})}const q7={borderRadius:{...Lr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Lr,borderTopRightRadius:Lr,borderBottomLeftRadius:Lr,borderBottomRightRadius:Lr,boxShadow:W7},qb=["TopLeft","TopRight","BottomLeft","BottomRight"],Z7=qb.length,Rf=e=>typeof e=="string"?parseFloat(e):e,Ff=e=>typeof e=="number"||re.test(e);function X7(e,t,n,r,o,i){o?(e.opacity=Pe(0,n.opacity!==void 0?n.opacity:1,J7(r)),e.opacityExit=Pe(t.opacity!==void 0?t.opacity:1,0,Q7(r))):i&&(e.opacity=Pe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Z7;a++){const s=`border${qb[a]}Radius`;let l=Bf(t,s),c=Bf(n,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Ff(l)===Ff(c)?(e[s]=Math.max(Pe(Rf(l),Rf(c),r),0),(Tt.test(c)||Tt.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||n.rotate)&&(e.rotate=Pe(t.rotate||0,n.rotate||0,r))}function Bf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const J7=Zb(0,.5,Rb),Q7=Zb(.5,.95,Ue);function Zb(e,t,n){return r=>r<e?0:r>t?1:n(so(e,t,r))}function If(e,t){e.min=t.min,e.max=t.max}function at(e,t){If(e.x,t.x),If(e.y,t.y)}function Lf(e,t,n,r,o){return e-=t,e=Yi(e,1/n,r),o!==void 0&&(e=Yi(e,1/o,r)),e}function eC(e,t=0,n=1,r=.5,o,i=e,a=e){if(Tt.test(t)&&(t=parseFloat(t),t=Pe(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Pe(i.min,i.max,r);e===i&&(s-=t),e.min=Lf(e.min,t,n,s,o),e.max=Lf(e.max,t,n,s,o)}function Vf(e,t,[n,r,o],i,a){eC(e,t[n],t[r],t[o],t.scale,i,a)}const tC=["x","scaleX","originX"],nC=["y","scaleY","originY"];function Of(e,t,n,r){Vf(e.x,t,tC,n?n.x:void 0,r?r.x:void 0),Vf(e.y,t,nC,n?n.y:void 0,r?r.y:void 0)}function Nf(e){return e.translate===0&&e.scale===1}function Xb(e){return Nf(e.x)&&Nf(e.y)}function rC(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 Jb(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 Kf(e){return ot(e.x)/ot(e.y)}class oC{constructor(){this.members=[]}add(t){Iu(this.members,t),t.scheduleRender()}remove(t){if(Lu(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 jf(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 iC=(e,t)=>e.depth-t.depth;class aC{constructor(){this.children=[],this.isDirty=!1}add(t){Iu(this.children,t),this.isDirty=!0}remove(t){Lu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iC),this.isDirty=!1,this.children.forEach(t)}}function sC(e,t){const n=on.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(cn(r),e(i-t))};return Ve.read(r,!0),()=>cn(r)}function lC(e){window.MotionDebug&&window.MotionDebug.record(e)}function uC(e){return e instanceof SVGElement&&e.tagName!=="svg"}function cC(e,t,n){const r=Ye(e)?e:lo(e);return r.start(Bu("",r,t,n)),r.animation}const ms=["","X","Y","Z"],dC={visibility:"hidden"},_f=1e3;let fC=0;const vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function gs(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Qb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=fC++,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(bC),this.nodes.forEach($C),this.nodes.forEach(xC),this.nodes.forEach(mC),lC(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 aC)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Vu),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=uC(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=sC(p,250),gi.hasAnimatedSinceResize&&(gi.hasAnimatedSinceResize=!1,this.nodes.forEach(Uf))})}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()||PC,{onLayoutAnimationStart:y,onLayoutAnimationComplete:$}=u.getProps(),C=!this.targetLayout||!Jb(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={...Eu(g,"layout"),onPlay:y,onComplete:$};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||Uf(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(wC),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(zf);return}this.isUpdating||this.nodes.forEach(vC),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(yC),this.nodes.forEach(pC),this.nodes.forEach(hC),this.clearAllSnapshots();const s=on.now();_e.delta=un(0,1e3/60,s-_e.timestamp),_e.timestamp=s,_e.isProcessing=!0,as.update.process(_e),as.preRender.process(_e),as.render.process(_e),_e.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fu.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(gC),this.sharedNodes.forEach(CC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ve.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ve.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=Me(),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&&!Xb(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;a&&(s||gn(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)),SC(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Me();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=Me();at(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){at(s,a);const{scroll:p}=this.root;p&&(tn(s.x,-p.offset.x),tn(s.y,-p.offset.y))}tn(s.x,u.offset.x),tn(s.y,u.offset.y)}}return s}applyTransform(a,s=!1){const l=Me();at(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&&nr(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),gn(u.latestValues)&&nr(l,u.latestValues)}return gn(this.latestValues)&&nr(l,this.latestValues),l}removeTransform(a){const s=Me();at(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!gn(c.latestValues))continue;pl(c.latestValues)&&c.updateSnapshot();const u=Me(),f=c.measurePageBox();at(u,f),Of(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return gn(this.latestValues)&&Of(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!==_e.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=_e.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Me(),this.relativeTargetOrigin=Me(),Xr(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),at(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Me(),this.targetWithTransforms=Me()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),T7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):at(this.target,this.layout.layoutBox),Hb(this.target,this.targetDelta)):at(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=Me(),this.relativeTargetOrigin=Me(),Xr(this.relativeTargetOrigin,this.target,h.target),at(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||pl(this.parent.latestValues)||Ub(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===_e.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;at(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;V7(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=Me());const{target:b}=s;if(!b){this.projectionTransform&&(this.projectionDelta=tr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=tr(),this.projectionDeltaWithTransform=tr());const g=this.projectionTransform;Zr(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=jf(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,c=l?l.latestValues:{},u={...this.latestValues},f=tr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=Me(),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(EC));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;Hf(f.x,a.x,P),Hf(f.y,a.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xr(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),DC(this.relativeTarget,this.relativeTargetOrigin,p,P),w&&rC(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Me()),at(w,this.relativeTarget)),g&&(this.animationValues=u,X7(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&&(cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ve.update(()=>{gi.hasAnimatedSinceResize=!0,this.currentAnimation=cC(0,_f,{...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(_f),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&&em(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Me();const f=ot(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=ot(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}at(s,l),nr(s,u),Zr(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new oC),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&&gs("z",a,c,this.animationValues);for(let u=0;u<ms.length;u++)gs(`rotate${ms[u]}`,a,c,this.animationValues),gs(`skew${ms[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 dC;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=bi(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=bi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gn(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=jf(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 _i){if(p[g]===void 0)continue;const{correct:y,applyTo:$}=_i[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?bi(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(zf),this.root.sharedNodes.clear()}}}function pC(e){e.updateLayout()}function hC(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"?lt(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=ot(p);p.min=r[f].min,p.max=p.min+h}):em(i,n.layoutBox,r)&&lt(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=ot(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=tr();Zr(s,r,n.layoutBox);const l=tr();a?Zr(l,e.applyTransform(o,!0),n.measuredBox):Zr(l,r,n.layoutBox);const c=!Xb(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=Me();Xr(b,n.layoutBox,p.layoutBox);const g=Me();Xr(g,r,h.layoutBox),Jb(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 bC(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 mC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gC(e){e.clearSnapshot()}function zf(e){e.clearMeasurements()}function vC(e){e.isLayoutDirty=!1}function yC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $C(e){e.resolveTargetDelta()}function xC(e){e.calcProjection()}function wC(e){e.resetSkewAndRotation()}function CC(e){e.removeLeadSnapshot()}function Hf(e,t,n){e.translate=Pe(t.translate,0,n),e.scale=Pe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Gf(e,t,n,r){e.min=Pe(t.min,n.min,r),e.max=Pe(t.max,n.max,r)}function DC(e,t,n,r){Gf(e.x,t.x,n.x,r),Gf(e.y,t.y,n.y,r)}function EC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const PC={duration:.45,ease:[.4,0,.1,1]},Wf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yf=Wf("applewebkit/")&&!Wf("chrome/")?Math.round:Ue;function qf(e){e.min=Yf(e.min),e.max=Yf(e.max)}function SC(e){qf(e.x),qf(e.y)}function em(e,t,n){return e==="position"||e==="preserve-aspect"&&!dl(Kf(t),Kf(n),.2)}const TC=Qb({attachResizeListener:(e,t)=>Nt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vs={current:void 0},tm=Qb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vs.current){const e=new TC({});e.mount(window),e.setOptions({layoutScroll:!0}),vs.current=e}return vs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),AC={pan:{Feature:H7},drag:{Feature:U7,ProjectionNode:tm,MeasureLayout:Yb}},bl={current:null},nm={current:!1};function MC(){if(nm.current=!0,!!lu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bl.current=e.matches;e.addListener(t),t()}else bl.current=!1}function kC(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(Ye(i))e.addValue(o,i),Wi(r)&&r.add(o),process.env.NODE_ENV==="development"&&Ou(i.version==="11.1.7",`Attempting to mix Framer Motion versions ${i.version} with 11.1.7 may not work as expected.`);else if(Ye(a))e.addValue(o,lo(i,{owner:e})),Wi(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,lo(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Zf=new WeakMap,RC=[...hb,Ge,dn],FC=e=>RC.find(pb(e)),rm=Object.keys(ao),BC=rm.length,Xf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],IC=hu.length;function om(e){if(e)return e.options.allowProjection!==!1?e.projection:om(e.parent)}class LC{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=Pu,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=()=>Ve.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=da(n),this.isVariantNode=Kh(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&&Ye(h)&&(h.set(l[p],!1),Wi(u)&&u.add(p))}}mount(t){this.current=t,Zf.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)),nm.current||MC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bl.current,process.env.NODE_ENV!=="production"&&Ou(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;Zf.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=In.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ve.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?Co(!1,l):At(!1,l)}for(let l=0;l<BC;l++){const c=rm[l],{isEnabled:u,Feature:f,ProjectionNode:p,MeasureLayout:h}=ao[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,om(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&&Qn(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):Me()}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<Xf.length;r++){const o=Xf[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=kC(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<IC;r++){const o=hu[r],i=this.props[o];(io(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=lo(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"&&(db(o)||cb(o))?o=parseFloat(o):!FC(o)&&dn.test(n)&&(o=wb(t,n)),this.setBaseTarget(t,Ye(o)?o.get():o)),Ye(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=Du(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&&!Ye(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 Vu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class im extends LC{constructor(){super(...arguments),this.KeyframeResolver=Cb}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 VC(e){return window.getComputedStyle(e)}class OC extends im{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(In.has(n)){const r=Tu(n);return r&&r.default||0}else{const r=VC(t),o=(Hh(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Gb(t,n)}build(t,n,r,o){yu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Cu(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Zh(t,n,r,o)}}class NC extends im{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(In.has(n)){const r=Tu(n);return r&&r.default||0}return n=Xh.has(n)?n:du(n),t.getAttribute(n)}measureInstanceViewportBox(){return Me()}scrapeMotionValuesFromProps(t,n,r){return Qh(t,n,r)}build(t,n,r,o){xu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Jh(t,n,r,o)}mount(t){this.isSVGTag=wu(t.tagName),super.mount(t)}}const am=(e,t)=>mu(e)?new NC(t,{enableHardwareAcceleration:!1}):new OC(t,{allowProjection:e!==d.Fragment,enableHardwareAcceleration:!0}),KC={layout:{ProjectionNode:tm,MeasureLayout:Yb}},jC={...Kb,...lb,...AC,...KC},vr=_h((e,t)=>nb(e,t,jC,am)),_C=_h(nb);function sm(){const e=d.useRef(!1);return uu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function zC(){const e=sm(),[t,n]=d.useState(0),r=d.useCallback(()=>{e.current&&n(t+1)},[t]);return[d.useCallback(()=>Ve.postRender(r),[r]),t]}class UC 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 HC({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(su);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(`
104
104
  [data-motion-pop-id="${n}"] {
105
105
  position: absolute !important;
106
106
  width: ${a}px !important;
@@ -108,18 +108,18 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
108
108
  top: ${l}px !important;
109
109
  left: ${c}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(u)}},[t]),S.jsx(UC,{isPresent:t,childRef:r,sizeRef:o,children:B.cloneElement(e,{ref:r})})}const ys=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=eb(GC),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(HC,{isPresent:n,children:e})),S.jsx(ua.Provider,{value:c,children:e})};function GC(){return new Map}function WC(e){return d.useEffect(()=>()=>e(),[])}const yn=e=>e.key||"";function YC(e,t){e.forEach(n=>{const r=yn(n);t.set(r,n)})}function qC(e){const t=[];return d.Children.forEach(e,n=>{d.isValidElement(n)&&t.push(n)}),t}const lm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{At(!o,"Replace exitBeforeEnter with mode='wait'");const s=d.useContext(bu).forceRender||zC()[0],l=sm(),c=qC(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(uu(()=>{b.current=!1,YC(c,h),p.current=u}),WC(()=>{b.current=!0,h.clear(),f.clear()}),b.current)return S.jsx(S.Fragment,{children:u.map(C=>S.jsx(ys,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a,children:C},yn(C)))});u=[...u];const g=p.current.map(yn),y=c.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&&(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=yn(V);return F===w||v.includes(F)}),!f.size){if(l.current===!1)return;s(),r&&r()}};k=S.jsx(ys,{isPresent:!1,onExitComplete:K,custom:t,presenceAffectsLayout:i,mode:a,children:E},yn(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(ys,{isPresent:!0,presenceAffectsLayout:i,mode:a,children:C},yn(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 ZC({children:e,features:t,strict:n=!1}){const[,r]=d.useState(!$s(t)),o=d.useRef(void 0);if(!$s(t)){const{renderer:i,...a}=t;o.current=i,tl(a)}return d.useEffect(()=>{$s(t)&&t().then(({renderer:i,...a})=>{tl(a),o.current=i,r(!0)})},[]),S.jsx(cu.Provider,{value:{renderer:o.current,strict:n},children:e})}function $s(e){return typeof e=="function"}const XC={renderer:am,...Kb,...lb};function JC(e){const[t,n]=Fh(e,Xc.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=ar(s==null?void 0:s.badge,i),h=d.useMemo(()=>Xc({...n,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:u,isDot:f}),[Tp(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 um=sa((e,t)=>{const{Component:n,children:r,content:o,slots:i,classNames:a,getBadgeProps:s}=JC({...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})]})});um.displayName="NextUI.Badge";var QC=um;const eD=z.styled.div`
112
112
  position: relative;
113
113
  display: inline-flex;
114
114
  flex-shrink: 0;
115
- `,nD=G.styled.div`
115
+ `,tD=z.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
+ `,nD=z.styled(QC)`
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
+ `,rD={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function oD({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(eD,{children:[e,S.jsx(tD,{placement:r,shape:o,children:S.jsx(lm,{children:!t&&S.jsx(vr.div,{variants:rD,initial:n?"show":"hidden",transition:s,animate:"show",exit:"hidden",children:S.jsx(nD,{...i,isInvisible:t,showOutline:i.showOutline??!0})},`badge-${a}`)})})]})}function iD({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 aD(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}=br(e,t),{pressProps:f,isPressed:p}=sn({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),h=ue(l,{labelable:!0,isLink:n==="a"}),b=J(u,f),g=mo();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()&&lx(y.currentTarget,y)&&(y.preventDefault(),g.open(y.currentTarget,y))}})}}function cm(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}=sn({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:c,ref:t}),{focusableProps:w}=br(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 sD(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=cm({...e,onPress:an(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:J(i,{"aria-pressed":r})}}const dm=7e3;let Jr=null;function vi(e,t="assertive",n=dm){Jr||(Jr=new uD),Jr.announce(e,t,n)}function lD(e){Jr&&Jr.clear(e)}class uD{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=dm){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 Nu(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(dD(n.current))}});let i=Se(()=>{t.resetValidation()}),a=Se(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&&fD(u)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),o0("keyboard")}l.preventDefault()}),s=Se(()=>{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 cD(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 dD(e){return{isInvalid:!e.validity.valid,validationDetails:cD(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function fD(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const fm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},pm={...fm,customError:!0,valid:!1},Yn={isInvalid:!1,validationDetails:fm,validationErrors:[]},pD=d.createContext({}),uo="__formValidationState"+Date.now();function yr(e){if(e[uo]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[uo];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return hD(e)}function hD(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:pm}:null,c=d.useMemo(()=>Jf(bD(a,o)),[a,o]);i!=null&&i.validationDetails.valid&&(i=null);let u=d.useContext(pD),f=d.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>ml(u[F])):ml(u[r]):[],[u,r]),[p,h]=d.useState(u),[b,g]=d.useState(!1);u!==p&&(h(u),g(!1));let y=d.useMemo(()=>Jf(b?[]:f),[b,f]),$=d.useRef(Yn),[C,w]=d.useState(Yn),E=d.useRef(Yn),P=()=>{if(!k)return;K(!1);let F=c||i||$.current;xs(F,E.current)||(E.current=F,w(F))},[k,K]=d.useState(!1);return d.useEffect(P),{realtimeValidation:l||y||c||i||Yn,displayValidation:s==="native"?l||y||C:l||y||c||i||C,updateValidation(F){s==="aria"&&!xs(C,F)?w(F):$.current=F},resetValidation(){let F=Yn;xs(F,E.current)||(E.current=F,w(F)),s==="native"&&K(!1),g(!0)},commitValidation(){s==="native"&&K(!0),g(!0)}}}function ml(e){return e?Array.isArray(e)?e:[e]:[]}function bD(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return ml(n)}return[]}function Jf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:pm}:null}function xs(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 hm(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}=sn({isDisabled:r}),{pressProps:$,isPressed:C}=sn({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:w}=br(e,n),E=J(g,w),P=ue(e,{labelable:!0});return go(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 Eo(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=ze(t);let a=ze(),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=Tn({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function bm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:a}=Eo(e),s=rn([!!t,!!n,r,o]),l=rn([!!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 ba(e={}){let{isReadOnly:t}=e,[n,r]=mt(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 mm(e,t,n){let r=yr({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=r.displayValidation,{labelProps:s,inputProps:l,isSelected:c,isPressed:u,isDisabled:f,isReadOnly:p}=hm({...e,isInvalid:o},t,n);Nu(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 mD=new WeakMap;function gD(e,t,n){const r=ba({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}=mD.get(t);var l;s=(l=e.validationBehavior)!==null&&l!==void 0?l:s;let{realtimeValidation:c}=yr({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),u=d.useRef(Yn),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=mm({...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,[uo]:{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 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:"Покажи предложения",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:"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 $m={};$m={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 xm={};xm={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 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 Cm={};Cm={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 Dm={};Dm={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 Em={};Em={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 Pm={};Pm={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 Sm={};Sm={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 Tm={};Tm={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 Am={};Am={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 Mm={};Mm={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 km={};km={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 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:"제안 사항 표시",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 Bm={};Bm={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 Im={};Im={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 Lm={};Lm={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 Vm={};Vm={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 Om={};Om={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 Nm={};Nm={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 Km={};Km={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 jm={};jm={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 _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 zm={};zm={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 Um={};Um={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 Hm={};Hm={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 Gm={};Gm={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 Wm={};Wm={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 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}, 已选择`};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}, 已選取`};function gl(e){return ci()?e.altKey:e.ctrlKey}function qn(e){return Ht()?e.metaKey:e.ctrlKey}const vD=1e3;function yD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=d.useRef({search:"",timeout:null}).current,i=a=>{let s=$D(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=""},vD)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function $D(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Ku(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}=Oe(),y=mo(),$=F=>{if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!r.current.contains(F.target))return;const A=(G,D)=>{if(G!=null){if(t.isLink(G)&&b==="selection"&&l&&!gl(F)){ho.flushSync(()=>{t.setFocusedKey(G,D)});let N=h.current.querySelector(`[data-key="${CSS.escape(G.toString())}"]`);y.open(N,F);return}if(t.setFocusedKey(G,D),t.isLink(G)&&b==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&!gl(F)&&t.replaceSelection(G)}};switch(F.key){case"ArrowDown":if(n.getKeyBelow){var I,R;F.preventDefault();let G=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n);G==null&&i&&(G=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n,t.focusedKey)),A(G)}break;case"ArrowUp":if(n.getKeyAbove){var L,j;F.preventDefault();let G=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(L=n.getLastKey)===null||L===void 0?void 0:L.call(n);G==null&&i&&(G=(j=n.getLastKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),A(G)}break;case"ArrowLeft":if(n.getKeyLeftOf){var O,T;F.preventDefault();let G=n.getKeyLeftOf(t.focusedKey);G==null&&i&&(G=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(G,g==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var W,q;F.preventDefault();let G=n.getKeyRightOf(t.focusedKey);G==null&&i&&(G=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(G,g==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){F.preventDefault();let G=n.getFirstKey(t.focusedKey,qn(F));t.setFocusedKey(G),qn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&t.replaceSelection(G)}break;case"End":if(n.getLastKey){F.preventDefault();let G=n.getLastKey(t.focusedKey,qn(F));t.setFocusedKey(G),qn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):l&&t.replaceSelection(G)}break;case"PageDown":if(n.getKeyPageBelow){F.preventDefault();let G=n.getKeyPageBelow(t.focusedKey);A(G)}break;case"PageUp":if(n.getKeyPageAbove){F.preventDefault();let G=n.getKeyPageAbove(t.focusedKey);A(G)}break;case"a":qn(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 G=Xe(r.current,{tabbable:!0}),D,N;do N=G.lastChild(),N&&(D=N);while(N);D&&!D.contains(document.activeElement)&&St(D)}break}}},C=d.useRef({top:0,left:0});Ei(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)||St(R),Ti()==="keyboard"&&Vs(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&&Mn(r.current)}},[]);let k=d.useRef(t.focusedKey);d.useEffect(()=>{let F=Ti();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||Zp(h.current,A),F!=="virtual"&&Vs(A,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&k.current!=null&&Mn(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}=yD({keyboardDelegate:n,selectionManager:t});c||(K=J(v,K));let V;return u||(V=t.focusedKey==null?0:-1),{collectionProps:{...K,tabIndex:V}}}function ju(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=mo(),p=T=>{if(T.pointerType==="keyboard"&&gl(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&&(qn(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&&Mn(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||ep())&&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"&&!Qf())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"&&(!$||ep()))&&p(T)},F.onPress=T=>{(T.pointerType==="touch"||T.pointerType==="pen"||T.pointerType==="virtual"||T.pointerType==="keyboard"&&E&&Qf()||T.pointerType==="mouse"&&v.current)&&(E?V(T):y&&p(T))}),h["data-key"]=n,F.preventFocusOnPress=i;let{pressProps:A,isPressed:I}=sn(F),R=w?T=>{P.current==="mouse"&&(T.stopPropagation(),T.preventDefault(),V(T))}:void 0,{longPressProps:L}=s0({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=>{Sn.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 Qf(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function ep(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class _u{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(!Di(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(!Di(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 Xm(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i}=e,a=ou({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,l=d.useMemo(()=>i||new _u(n,s==="selection"?new Set:r,o,a),[i,n,r,o,a,s]),{collectionProps:c}=Ku({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:c}}class xD{build(t,n){return this.context=n,tp(()=>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:wD(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 <${ws(y.type)}> in <${ws(o.type)}>. Only <${ws(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:tp(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 tp(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 wD(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function ws(e){return e[0].toUpperCase()+e.slice(1)}function Jm(e,t,n){let r=d.useMemo(()=>new xD,[]),{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 ma(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function CD(e){return DD(e,0)}function DD(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Cs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...np(e,t),t],o=[...np(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 np(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const rp=new WeakMap;function zu(e){let t=rp.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(ma(o,e)):t++};return n(e),rp.set(e,t),t}const ga=new WeakMap;function ED(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Qm(e,t){let n=ga.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${ED(t)}`}function PD(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}=Xm({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=hr({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=ze(e.id);ga.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}=Eo({...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 SD(e,t,n){var r;let{key:o}=e,i=ga.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=rn(),w=rn(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};Ht()&&Nl()||(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"]=zu(t.collection)}let{itemProps:k,isPressed:K,isFocused:v,hasAction:V,allowsSelection:F}=ju({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}=Be({isDisabled:s||!h,onHoverStart(){sr()||(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:Qm(t,o)},labelProps:{id:C},descriptionProps:{id:w},isFocused:v,isFocusVisible:v&&sr(),isSelected:c,isDisabled:s,isPressed:K,allowsSelection:F,hasAction:V}}function TD(e){let{heading:t,"aria-label":n}=e,r=ze();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var eg={};eg={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var tg={};tg={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var ng={};ng={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var rg={};rg={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var og={};og={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var ig={};ig={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var ag={};ag={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var sg={};sg={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var lg={};lg={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ug={};ug={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var cg={};cg={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var dg={};dg={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var fg={};fg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var pg={};pg={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var hg={};hg={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var bg={};bg={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var mg={};mg={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var gg={};gg={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var vg={};vg={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var yg={};yg={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var $g={};$g={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var xg={};xg={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var wg={};wg={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Cg={};Cg={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Dg={};Dg={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Eg={};Eg={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Pg={};Pg={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Sg={};Sg={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Tg={};Tg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Ag={};Ag={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Mg={};Mg={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var kg={};kg={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Rg={};Rg={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Fg={};Fg={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function AD(e){return e&&e.__esModule?e.default:e}var Bg={};Bg={"ar-AE":eg,"bg-BG":tg,"cs-CZ":ng,"da-DK":rg,"de-DE":og,"el-GR":ig,"en-US":ag,"es-ES":sg,"et-EE":lg,"fi-FI":ug,"fr-FR":cg,"he-IL":dg,"hr-HR":fg,"hu-HU":pg,"it-IT":hg,"ja-JP":bg,"ko-KR":mg,"lt-LT":gg,"lv-LV":vg,"nb-NO":yg,"nl-NL":$g,"pl-PL":xg,"pt-BR":wg,"pt-PT":Cg,"ro-RO":Dg,"ru-RU":Eg,"sk-SK":Pg,"sl-SI":Sg,"sr-SP":Tg,"sv-SE":Ag,"tr-TR":Mg,"uk-UA":kg,"zh-CN":Rg,"zh-TW":Fg};function MD(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=ze(),{triggerProps:s,overlayProps:l}=x2({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=mr(AD(Bg),"@react-aria/menu"),{longPressProps:f}=s0({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 Ig=new WeakMap;function kD(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}=Xm({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Ig.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 Lg(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=Ig.get(t),A=e.onClose||F.onClose,I=P?()=>{}:e.onAction||F.onAction,R=mo(),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=rn(),T=rn(),W=rn(),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 G=t.collection.getItem(o);a&&(q["aria-posinset"]=G==null?void 0:G.index,q["aria-setsize"]=zu(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}=ju({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:ee,isPressed:oe}=sn({onPressStart:D,onPress:u,onPressUp:N,onPressChange:f,onPressEnd:p,isDisabled:K}),{hoverProps:U}=Be({isDisabled:K,onHoverStart(le){sr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),h==null||h(le)},onHoverChange:b,onHoverEnd:g}),{keyboardProps:Z}=Ul({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}=ta({onBlur:E,onFocus:C,onFocusChange:w}),se=ue(G.props,{isLink:!!(!(G==null||(r=G.props)===null||r===void 0)&&r.href)});return delete se.id,{menuItemProps:{...q,...J(se,P?{onFocus:Y.onFocus}:Y,ee,U,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 RD(e){let{heading:t,"aria-label":n}=e,r=ze();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const si=2,FD=50,BD=1e3,op=Math.PI/12;function ID(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);jl({ref:n,onResize:()=>{n.current&&(a.current=n.current.getBoundingClientRect(),u.current=void 0)}});let g=()=>{h(!1),f.current=si},y=kx();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<FD)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)+op,I=Math.atan2(V-a.current.bottom,F)-op,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,si):Math.max(f.current-1,0),f.current>=si?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)},BD))};return window.addEventListener("pointermove",w),()=>{window.removeEventListener("pointermove",w),clearTimeout(l.current),clearTimeout(c.current),f.current=si}},[o,r,t,y,h,n])}function LD(e,t,n){let{parentMenuRef:r,submenuRef:o,type:i="menu",isDisabled:a,node:s,delay:l=200}=e,c=ze(),u=ze(),{direction:f}=Oe(),p=d.useRef(),h=d.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),b=Se(v=>{h(),t.open(v)}),g=Se(()=>{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 ID({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 Uu(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,c]=mt(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=br(e,t),f=yr({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:b}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:C}=bm({...e,isInvalid:p,errorMessage:e.errorMessage||h}),w=ue(e,{labelable:!0});const E={type:a,pattern:e.pattern};return go(t,l,c),Nu(e,f,t),d.useEffect(()=>{if(t.current instanceof pt(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 ip(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function VD(e,t,n){let r=Se(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(!ip())return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=ip()?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}=Uu(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 OD(e){return e&&e.__esModule?e.default:e}var Vg={};Vg={"ar-AE":gm,"bg-BG":vm,"cs-CZ":ym,"da-DK":$m,"de-DE":xm,"el-GR":wm,"en-US":Cm,"es-ES":Dm,"et-EE":Em,"fi-FI":Pm,"fr-FR":Sm,"he-IL":Tm,"hr-HR":Am,"hu-HU":Mm,"it-IT":km,"ja-JP":Rm,"ko-KR":Fm,"lt-LT":Bm,"lv-LV":Im,"nb-NO":Lm,"nl-NL":Vm,"pl-PL":Om,"pt-BR":Nm,"pt-PT":Km,"ro-RO":jm,"ru-RU":_m,"sk-SK":zm,"sl-SI":Um,"sr-SP":Hm,"sv-SE":Gm,"tr-TR":Wm,"uk-UA":Ym,"zh-CN":qm,"zh-TW":Zm};function ND(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:a,shouldFocusWrap:s,isReadOnly:l,isDisabled:c}=e,u=mr(OD(Vg),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=MD({type:"listbox",isDisabled:c||l},t,n);ga.set(t,{id:p.id});let h=d.useMemo(()=>a||new _u(t.collection,t.disabledKeys,i),[a,t.collection,t.disabledKeys,i]),{collectionProps:b}=Ku({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),g=mo(),y=U=>{switch(U.key){case"Enter":case"Tab":if(t.isOpen&&U.key==="Enter"&&U.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(U.key==="Enter"){let Z=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);Z instanceof HTMLAnchorElement&&g.open(Z,U)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&U.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}},$=U=>{var Z;U.relatedTarget===(n==null?void 0:n.current)||!((Z=r.current)===null||Z===void 0)&&Z.contains(U.relatedTarget)||(e.onBlur&&e.onBlur(U),t.setFocused(!1))},C=U=>{t.isFocused||(e.onFocus&&e.onFocus(U),t.setFocused(!0))},{isInvalid:w,validationErrors:E,validationDetails:P}=t.displayValidation,{labelProps:k,inputProps:K,descriptionProps:v,errorMessageProps:V}=Uu({...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,[uo]:t},o),F=U=>{U.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},A=U=>{U.pointerType!=="touch"&&(o.current.focus(),t.toggle(U.pointerType==="keyboard"||U.pointerType==="virtual"?"first":null,"manual"))},I=Tn({id:f.id,"aria-label":u.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),R=Tn({id:p.id,"aria-label":u.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),L=d.useRef(0),j=U=>{if(c||l)return;if(U.timeStamp-L.current<500){U.preventDefault(),o.current.focus();return}let Z=U.target.getBoundingClientRect(),ne=U.changedTouches[0],se=Math.ceil(Z.left+.5*Z.width),le=Math.ceil(Z.top+.5*Z.height);ne.clientX===se&&ne.clientY===le&&(U.preventDefault(),o.current.focus(),t.toggle(null,"manual"),L.current=U.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 G=(q=t.selectionManager.focusedKey)!==null&&q!==void 0?q:null,D=d.useRef(W),N=d.useRef(G);d.useEffect(()=>{if(ci()&&O!=null&&G!==N.current){let U=t.selectionManager.isSelected(G),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?[...ma(Z,t.collection)].length:0,optionText:O["aria-label"]||O.textValue||"",isSelected:U});vi(se)}D.current=W,N.current=G});let Y=zu(t.collection),Q=d.useRef(Y),ee=d.useRef(t.isOpen);d.useEffect(()=>{let U=t.isOpen!==ee.current&&(t.selectionManager.focusedKey==null||ci());if(t.isOpen&&(U||Y!==Q.current)){let Z=u.format("countAnnouncement",{optionCount:Y});vi(Z)}Q.current=Y,ee.current=t.isOpen});let oe=d.useRef(t.selectedKey);return d.useEffect(()=>{if(ci()&&t.isFocused&&t.selectedItem&&t.selectedKey!==oe.current){let U=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Z=u.format("selectedAnnouncement",{optionText:U});vi(Z)}oe.current=t.selectedKey}),d.useEffect(()=>{if(t.isOpen)return au([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?Qm(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 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:"Календар",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 Kg={};Kg={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 jg={};jg={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 _g={};_g={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 zg={};zg={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 Ug={};Ug={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 Hg={};Hg={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 Gg={};Gg={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 Wg={};Wg={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 Yg={};Yg={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 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 Zg={};Zg={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 Xg={};Xg={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 Jg={};Jg={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 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:"달력",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 tv={};tv={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 nv={};nv={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 rv={};rv={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 ov={};ov={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 iv={};iv={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 av={};av={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 sv={};sv={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 lv={};lv={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 uv={};uv={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 cv={};cv={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 dv={};dv={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 fv={};fv={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 pv={};pv={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 hv={};hv={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 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={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={Empty:"فارغ"};var yv={};yv={Empty:"Изпразни"};var $v={};$v={Empty:"Prázdné"};var xv={};xv={Empty:"Tom"};var wv={};wv={Empty:"Leer"};var Cv={};Cv={Empty:"Άδειο"};var Dv={};Dv={Empty:"Empty"};var Ev={};Ev={Empty:"Vacío"};var Pv={};Pv={Empty:"Tühjenda"};var Sv={};Sv={Empty:"Tyhjä"};var Tv={};Tv={Empty:"Vide"};var Av={};Av={Empty:"ריק"};var Mv={};Mv={Empty:"Prazno"};var kv={};kv={Empty:"Üres"};var Rv={};Rv={Empty:"Vuoto"};var Fv={};Fv={Empty:"空"};var Bv={};Bv={Empty:"비어 있음"};var Iv={};Iv={Empty:"Tuščias"};var Lv={};Lv={Empty:"Tukšs"};var Vv={};Vv={Empty:"Tom"};var Ov={};Ov={Empty:"Leeg"};var Nv={};Nv={Empty:"Pusty"};var Kv={};Kv={Empty:"Vazio"};var jv={};jv={Empty:"Vazio"};var _v={};_v={Empty:"Gol"};var zv={};zv={Empty:"Не заполнено"};var Uv={};Uv={Empty:"Prázdne"};var Hv={};Hv={Empty:"Prazen"};var Gv={};Gv={Empty:"Prazno"};var Wv={};Wv={Empty:"Tomt"};var Yv={};Yv={Empty:"Boş"};var qv={};qv={Empty:"Пусто"};var Zv={};Zv={Empty:"空"};var Xv={};Xv={Empty:"空白"};function KD(e){return e&&e.__esModule?e.default:e}var Jv={};Jv={"ar-AE":vv,"bg-BG":yv,"cs-CZ":$v,"da-DK":xv,"de-DE":wv,"el-GR":Cv,"en-US":Dv,"es-ES":Ev,"et-EE":Pv,"fi-FI":Sv,"fr-FR":Tv,"he-IL":Av,"hr-HR":Mv,"hu-HU":kv,"it-IT":Rv,"ja-JP":Fv,"ko-KR":Bv,"lt-LT":Iv,"lv-LV":Lv,"nb-NO":Vv,"nl-NL":Ov,"pl-PL":Nv,"pt-BR":Kv,"pt-PT":jv,"ro-RO":_v,"ru-RU":zv,"sk-SK":Uv,"sl-SI":Hv,"sr-SP":Gv,"sv-SE":Wv,"tr-TR":Yv,"uk-UA":qv,"zh-CN":Zv,"zh-TW":Xv};function Qv(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=mr(KD(Jv),"@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&&(lD("assertive"),vi(P,"assertive"))},[P]);const k=Se(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=Se(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}=pr();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 ey(e){return e&&e.__esModule?e.default:e}var Hu={};Hu={"ar-AE":Og,"bg-BG":Ng,"cs-CZ":Kg,"da-DK":jg,"de-DE":_g,"el-GR":zg,"en-US":Ug,"es-ES":Hg,"et-EE":Gg,"fi-FI":Wg,"fr-FR":Yg,"he-IL":qg,"hr-HR":Zg,"hu-HU":Xg,"it-IT":Jg,"ja-JP":Qg,"ko-KR":ev,"lt-LT":tv,"lv-LV":nv,"nb-NO":rv,"nl-NL":ov,"pl-PL":iv,"pt-BR":av,"pt-PT":sv,"ro-RO":lv,"ru-RU":uv,"sk-SK":cv,"sl-SI":dv,"sr-SP":fv,"sv-SE":pv,"tr-TR":hv,"uk-UA":bv,"zh-CN":mv,"zh-TW":gv};function jD(e,t,n){let{direction:r}=Oe(),o=d.useMemo(()=>c0(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=Xe(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}=sn({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return J(s,{onKeyDown:i})}const ty=new WeakMap,Ds="__role_"+Date.now(),_D="__focusManager_"+Date.now();function Gu(e,t,n){var r;let{isInvalid:o,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:c,errorMessageProps:u}=bm({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=d.useRef(null),{focusWithinProps:p}=hr({...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=mr(ey(Hu),"@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"})}):"",$=qp(y),C=e[Ds]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[_D],E=d.useMemo(()=>w||c0(n),[w,n]),P=jD(t,n,e[Ds]==="presentation");ty.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[Ds]==="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]),go(e.inputRef,t.value,t.setValue),Nu({...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 zD(e,t,n){var r;let o=Gu(e,t,n);return o.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",o}function UD(){let{locale:e}=Oe(),t=z0(ey(Hu),"@react-aria/datepicker");return d.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new HD(e,t)}},[e,t])}class HD{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function GD(e,t,n){let r=d.useRef(""),{locale:o}=Oe(),i=UD(),{ariaLabel:a,ariaLabelledBy:s,ariaDescribedBy:l,focusManager:c}=ty.get(t),u=e.isPlaceholder?"":e.text,f=d.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=ti({month:"long",timeZone:f.timeZone}),h=ti({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}=Qv({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 ru(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"&&(Ht()?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}=U0({sensitivity:"base"}),w=ti({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=ti({year:"numeric",era:"narrow",timeZone:"UTC"}),K=d.useMemo(()=>{if(e.type!=="era")return[];let T=Je(new Fe(1,1,1),t.calendar),W=t.calendar.getEras().map(G=>{let D=T.set({year:1,month:1,day:1,era:G}).toDate("UTC"),Y=k.formatToParts(D).find(Q=>Q.type==="era").value;return{era:G,formatted:Y}}),q=WD(W.map(G=>G.formatted));if(q)for(let G of W)G.formatted=G.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(G=>C(G.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),G=q,D=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":q>11&&(G=g.parse(T));break;case"h12":D=!1,q>12&&(G=g.parse(T));break}e.value>=12&&q>1&&(q+=12)}else q>e.maxValue&&(G=g.parse(T));if(isNaN(q))return;let N=G!==0||D;N&&t.setSegment(e.type,G),+(q+"0")>e.maxValue||W.length>=String(e.maxValue).length?(r.current="",N&&c.focusNext()):r.current=W;break}}},V=()=>{r.current="",Vs(n.current,{containingElement:eo(n.current)}),window.getSelection().collapse(n.current)},F=d.useRef("");Ei(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}}),Ei(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=fr()||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=ze(),L=!t.isDisabled&&!t.isReadOnly&&e.isEditable,j=e.type==="literal"?"":i.of(e.type),O=Tn({"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 WD(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 YD(e,t){let{role:n="dialog"}=e,r=rn();r=e["aria-label"]?void 0:r;let o=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Mn(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),Mn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),Rh(),{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 ny(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}=Eo({...e,labelElementType:"span"});t=ht(t,n,r);let u=(t-n)/(r-n),f=Ki(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 qD(e){let{progressBarProps:t,labelProps:n}=ny(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}var ry={};ry={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var oy={};oy={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var iy={};iy={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var ay={};ay={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var sy={};sy={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var ly={};ly={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var uy={};uy={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var cy={};cy={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var dy={};dy={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var fy={};fy={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var py={};py={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var hy={};hy={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var by={};by={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var my={};my={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var gy={};gy={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var vy={};vy={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var yy={};yy={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var $y={};$y={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var xy={};xy={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var wy={};wy={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var Cy={};Cy={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var Dy={};Dy={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var Ey={};Ey={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Py={};Py={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var Sy={};Sy={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var Ty={};Ty={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var Ay={};Ay={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var My={};My={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var ky={};ky={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var Ry={};Ry={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Fy={};Fy={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var By={};By={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var Iy={};Iy={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var Ly={};Ly={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};function ZD(e){return e&&e.__esModule?e.default:e}var Vy={};Vy={"ar-AE":ry,"bg-BG":oy,"cs-CZ":iy,"da-DK":ay,"de-DE":sy,"el-GR":ly,"en-US":uy,"es-ES":cy,"et-EE":dy,"fi-FI":fy,"fr-FR":py,"he-IL":hy,"hr-HR":by,"hu-HU":my,"it-IT":gy,"ja-JP":vy,"ko-KR":yy,"lt-LT":$y,"lv-LV":xy,"nb-NO":wy,"nl-NL":Cy,"pl-PL":Dy,"pt-BR":Ey,"pt-PT":Py,"ro-RO":Sy,"ru-RU":Ty,"sk-SK":Ay,"sl-SI":My,"sr-SP":ky,"sv-SE":Ry,"tr-TR":Fy,"uk-UA":By,"zh-CN":Iy,"zh-TW":Ly};function XD(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=mr(ZD(Vy),"@react-aria/numberfield");let O=ze(r),{focusProps:T}=ta({onBlur(){R()}}),W=Ki(h),q=d.useMemo(()=>W.resolvedOptions(),[W]),G=Ki({...h,currencySign:void 0}),D=d.useMemo(()=>isNaN(A)?"":G.format(A),[G,A]),{spinButtonProps:N,incrementButtonProps:Y,decrementButtonProps:Q}=Qv({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:U}=hr({isDisabled:a,onFocusWithinChange:oe}),Z=d.useCallback(Ke=>{Math.abs(Ke.deltaY)<=Math.abs(Ke.deltaX)||(Ke.deltaY>0?K():Ke.deltaY<0&&V())},[V,K]);Lx({onScroll:Z,isDisabled:P||a||s||!ee},n);let se=q.maximumFractionDigits>0,le=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,Ie="numeric";Gp()?le?Ie="text":se&&(Ie="decimal"):Kl()&&(le?Ie="numeric":se&&(Ie="decimal"));let He=Ke=>{t.validate(Ke)&&t.setInputValue(Ke)},wt=ue(e),Nn=d.useCallback(Ke=>{Ke.key==="Enter"?(R(),L()):Ke.continuePropagation()},[R,L]),{isInvalid:Zt,validationErrors:Xt,validationDetails:Cr}=t.displayValidation,{labelProps:ce,inputProps:pe,descriptionProps:xe,errorMessageProps:Bo}=VD({...k,...wt,name:void 0,label:p,autoFocus:f,isDisabled:a,isReadOnly:s,isRequired:l,validate:void 0,[uo]: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:Ie,onChange:He,onBlur:b,onFocus:g,onFocusChange:y,onKeyDown:d.useMemo(()=>an(Nn,$),[Nn,$]),onKeyUp:C,description:w,errorMessage:E},t,n);go(n,t.numberValue,t.setNumberValue);let Dr=J(N,T,pe,{role:null,"aria-roledescription":fr()?null:j.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Dr["aria-required"]=void 0);let Er=Ke=>{var Sr;document.activeElement!==n.current&&(Ke.pointerType==="mouse"?(Sr=n.current)===null||Sr===void 0||Sr.focus():Ke.target.focus())},pn=e["aria-label"]||(typeof e.label=="string"?e.label:""),Ct;pn||(Ct=e.label!=null?ce.id:e["aria-labelledby"]);let Pr=ze(),Io=ze(),Ta=J(Y,{"aria-label":i||j.format("increase",{fieldLabel:pn}).trim(),id:Ct&&!i?Pr:null,"aria-labelledby":Ct&&!i?`${Pr} ${Ct}`:null,"aria-controls":O,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Er}),Aa=J(Q,{"aria-label":o||j.format("decrease",{fieldLabel:pn}).trim(),id:Ct&&!o?Io:null,"aria-labelledby":Ct&&!o?`${Io} ${Ct}`:null,"aria-controls":O,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Er});return{groupProps:{...U,role:"group","aria-disabled":a,"aria-invalid":Zt?"true":void 0},labelProps:ce,inputProps:Dr,incrementButtonProps:Ta,decrementButtonProps:Aa,errorMessageProps:Bo,descriptionProps:xe,isInvalid:Zt,validationErrors:Xt,validationDetails:Cr}}function Oy(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 Wu=new WeakMap;function vl(e,t){let n=Wu.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function JD(e,t,n){let{labelProps:r,fieldProps:o}=Eo(e),i=e.orientation==="vertical";var a;Wu.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}=Oe(),{addGlobalListener:l,removeGlobalListener:c}=pr();const u=d.useRef(null),f=s==="rtl",p=d.useRef(null),{moveProps:h}=a0({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=ht(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(vl(t,0)))===null||$===void 0||$.focus(),o0("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)=>vl(t,C)).join(" "),"aria-live":"off"}}}function QD(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}=Oe(),{addGlobalListener:h,removeGlobalListener:b}=pr(),g=Wu.get(t);var y;const{labelProps:$,fieldProps:C}=Eo({...e,id:vl(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&&St(s.current)},[s]),P=t.focusedThumb===n;d.useEffect(()=>{P&&E()},[P,E]);let k=p==="rtl",K=d.useRef(null),{keyboardProps:v}=Ul({onKeyDown(O){let{getThumbMaxValue:T,getThumbMinValue:W,decrementThumb:q,incrementThumb:G,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":G(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}=a0({onMoveStart(){K.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:O,deltaY:T,pointerType:W,shiftKey:q}){const{getThumbPercent:G,setThumbPercent:D,decrementThumb:N,incrementThumb:Y,step:Q,pageSize:ee}=t;let{width:oe,height:U}=a.current.getBoundingClientRect(),Z=f?U:oe;if(K.current==null&&(K.current=G(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,ht(K.current/Z,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!u);const{focusableProps:F}=br(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 go(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 eE(e,t,n){let{labelProps:r,inputProps:o,isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}=hm(e,t,n);return{labelProps:r,inputProps:{...o,role:"switch",checked:i},isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}}const Ny=new WeakMap;function qi(e,t,n){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Ny.get(e)}-${n}-${t}`}function tE(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}=ju({selectionManager:s,key:o,ref:n,isDisabled:u,shouldSelectOnPressUp:a,linkBehavior:"selection"}),h=qi(t,o,"tab"),b=qi(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 nE(e,t,n){let r=Xx(n)?void 0:0;var o;const i=qi(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=Tn({...e,id:i,"aria-labelledby":qi(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 rE{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 oE(e,t,n){let{orientation:r="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:s}=t,{direction:l}=Oe(),c=d.useMemo(()=>new rE(i,l,r,s),[i,s,r,l]),{collectionProps:u}=Ku({ref:n,selectionManager:a,keyboardDelegate:c,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=ze();Ny.set(t,f);let p=Tn({...e,id:f});return{tabListProps:{...J(u,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function iE(e,t){let n=ue(e,{labelable:!0}),{hoverProps:r}=Be({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:J(n,r,{role:"tooltip"})}}function aE(e,t,n){let{isDisabled:r,trigger:o}=e,i=ze(),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"&&(Ti()==="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=()=>{sr()&&(s.current=!0,l())},b=()=>{s.current=!1,a.current=!1,c(!0)},{hoverProps:g}=Be({isDisabled:r,onHoverStart:u,onHoverEnd:f}),{focusableProps:y}=br({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 yt extends Set{constructor(t,n,r){super(t),t instanceof yt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function sE(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Ky(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(()=>ap(e.selectedKeys),[e.selectedKeys]),p=d.useMemo(()=>ap(e.defaultSelectedKeys,new yt),[e.defaultSelectedKeys]),[h,b]=mt(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||!sE(w,h))&&b(w)},disabledKeys:g,disabledBehavior:i}}function ap(e,t){return e?e==="all"?"all":new yt(e):t}class jy{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&&Cs(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&&Cs(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 yt([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new yt(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?Cs(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 yt(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 yt([t],t,t):new yt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new yt;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(CD(ma(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 yt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){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 yl{*[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 _y(e){let{filter:t}=e,n=Ky(e),r=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=d.useCallback(c=>t?new yl(t(c)):new yl(c),[t]),i=d.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=Jm(e,o,i),s=d.useMemo(()=>new jy(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 zy(e){var t;let[n,r]=mt(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}=_y({...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 va(e){let[t,n]=mt(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 lE(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}=zy({...e,onSelectionChange:b,items:(g=e.items)!==null&&g!==void 0?g:e.defaultItems});var k,K;let[v,V]=mt(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:uE(y,v,r),[y,v,r,e.items]),[I,R]=d.useState(A),L=d.useRef("focus"),O=va({...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 xe=pe==="manual"||pe==="focus"&&o==="focus";(i||A.size>0||xe&&F.size>0||e.items)&&(xe&&!O.isOpen&&e.items===void 0&&c(!0),L.current=pe,h(ce),O.open())},W=(ce=null,pe)=>{let xe=pe==="manual"||pe==="focus"&&o==="focus";!(i||A.size>0||xe&&F.size>0||e.items)&&!O.isOpen||(xe&&!O.isOpen&&e.items===void 0&&c(!0),O.isOpen||(L.current=pe),G(ce))},q=d.useCallback(()=>{R(l?F:A)},[l,F,A]),G=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 xe=(pe=(ce=y.getItem(C))===null||ce===void 0?void 0:ce.textValue)!==null&&pe!==void 0?pe:"";Y(xe),V(xe)};var ee,oe;let U=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!==U.current&&D(),v!==N&&($.setFocusedKey(null),c(!1),v===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&w(null)),C!==U.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Q():N!==v&&Y(v);var pe;let xe=(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===U.current&&ne.current!==xe&&(Y(xe),V(xe)),U.current=C,ne.current=xe});let se=yr({...e,value:d.useMemo(()=>({inputValue:v,selectedKey:C}),[v,C])}),le=()=>{a&&C==null?Ie():He()},Ie=()=>{U.current=null,w(null),D()},He=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var ce;e.onSelectionChange(C);var pe;let xe=(pe=(ce=y.getItem(C))===null||ce===void 0?void 0:ce.textValue)!==null&&pe!==void 0?pe:"";Y(xe),D()}else Q(),D()};const wt=()=>{if(a){var ce,pe;const xe=(pe=(ce=y.getItem(C))===null||ce===void 0?void 0:ce.textValue)!==null&&pe!==void 0?pe:"";v===xe?He():Ie()}else He()};let Nn=()=>{O.isOpen&&$.focusedKey!=null?C===$.focusedKey?He():w($.focusedKey):wt()},Zt=d.useRef(v),Xt=ce=>{ce?(Zt.current=v,o==="focus"&&T(null,"focus")):(s&&wt(),v!==Zt.current&&se.commitValidation()),f(ce)},Cr=d.useMemo(()=>O.isOpen?l?F:A:I,[O.isOpen,F,A,l,I]);return{...se,...O,focusStrategy:p,toggle:W,open:T,close:wt,selectionManager:$,selectedKey:C,setSelectedKey:w,disabledKeys:P,isFocused:u,setFocused:Xt,selectedItem:E,collection:Cr,inputValue:v,setInputValue:V,commit:Nn,revert:le}}function uE(e,t,n){return new yl(Uy(e,e,t,n))}function Uy(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let a=Uy(e,ma(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 Hy={};Hy={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Gy={};Gy={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Wy={};Wy={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 Yy={};Yy={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 qy={};qy={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 Zy={};Zy={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Xy={};Xy={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 Jy={};Jy={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 Qy={};Qy={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 e4={};e4={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 t4={};t4={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 n4={};n4={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var r4={};r4={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 o4={};o4={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 i4={};i4={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 a4={};a4={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var s4={};s4={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var l4={};l4={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 u4={};u4={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 c4={};c4={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 d4={};d4={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 f4={};f4={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 p4={};p4={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 h4={};h4={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 b4={};b4={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 m4={};m4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var g4={};g4={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 v4={};v4={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 y4={};y4={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 $4={};$4={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 x4={};x4={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 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:"所选日期不可用。"};var D4={};D4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};function cE(e){return e&&e.__esModule?e.default:e}var E4={};E4={"ar-AE":Hy,"bg-BG":Gy,"cs-CZ":Wy,"da-DK":Yy,"de-DE":qy,"el-GR":Zy,"en-US":Xy,"es-ES":Jy,"et-EE":Qy,"fi-FI":e4,"fr-FR":t4,"he-IL":n4,"hr-HR":r4,"hu-HU":o4,"it-IT":i4,"ja-JP":a4,"ko-KR":s4,"lt-LT":l4,"lv-LV":u4,"nb-NO":c4,"nl-NL":d4,"pl-PL":f4,"pt-BR":p4,"pt-PT":h4,"ro-RO":b4,"ru-RU":m4,"sk-SK":g4,"sl-SI":v4,"sr-SP":y4,"sv-SE":$4,"tr-TR":x4,"uk-UA":w4,"zh-CN":C4,"zh-TW":D4};const dE=new Bn(cE(E4));function fE(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function pE(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=fE(),f=Bn.getGlobalDictionaryForPackage("@react-stately/datepicker")||dE,p=new f0(u,f),h=new Wr(u,$l({},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 hE={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},bE={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function $l(e,t){e={...t.shouldForceLeadingZeros?bE:hE,...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 P4(e,t){if(e===null)return null;if(e)return Je(e,t)}function Vr(e,t,n,r){if(e)return P4(e,n);let o=Je(h0(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?$0(o):r?o:ln(o)}function mE(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 gE=new Bn({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 vE(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?gE.getStringForLocale(e,n):"––"}const li={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},sp={year:5,month:2,day:7,hour:2,minute:15,second:15},yE={dayperiod:"dayPeriod"};function Yu(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]=mE(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 Wr(t),[t]),g=d.useMemo(()=>n(b.resolvedOptions().calendar),[n,b]),[y,$]=mt(e.value,e.defaultValue,e.onChange),C=d.useMemo(()=>P4(y,g),[y,g]),[w,E]=d.useState(()=>Vr(e.placeholderValue,f,g,p)),P=C||w,k=g.identifier==="gregory"&&P.era==="BC",K=d.useMemo(()=>{var U;return{granularity:f,maxGranularity:(U=e.maxGranularity)!==null&&U!==void 0?U:"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(()=>$l({},K),[K]),V=d.useMemo(()=>new Wr(t,v),[t,v]),F=d.useMemo(()=>V.resolvedOptions(),[V]),A=d.useMemo(()=>V.formatToParts(new Date).filter(U=>li[U.type]).reduce((U,Z)=>(U[Z.type]=!0,U),{}),[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(U=>Object.keys(I).length>0?Je(U,g):Vr(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(Vr(e.placeholderValue,f,g,p)));let O=C&&Object.keys(I).length>=Object.keys(A).length?C:w,T=U=>{if(e.isDisabled||e.isReadOnly)return;let Z=Object.keys(I),ne=Object.keys(A);U==null?($(null),E(Vr(e.placeholderValue,f,g,p)),R({})):Z.length>=ne.length||Z.length===ne.length-1&&A.dayPeriod&&!I.dayPeriod&&L.current!=="dayPeriod"?(U=Je(U,(u==null?void 0:u.calendar)||new rt),$(U)):E(U),L.current=null},W=d.useMemo(()=>O.toDate(h),[O,h]),q=d.useMemo(()=>V.formatToParts(W).map(U=>{let Z=li[U.type];U.type==="era"&&g.getEras().length===1&&(Z=!1);let ne=li[U.type]&&!I[U.type],se=li[U.type]?vE(U.type,U.value,t):null;return{type:yE[U.type]||U.type,text:ne?se:U.value,...$E(O,U.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 G=U=>{I[U]=!0,U==="year"&&A.era&&(I.era=!0),R({...I})},D=(U,Z)=>{if(I[U])T(xE(O,U,Z,F));else{G(U);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(()=>pE(y,s,l,c,K),[y,s,l,c,K]),Y=yr({...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(U){D(U,1)},decrement(U){D(U,-1)},incrementPage(U){D(U,sp[U]||1)},decrementPage(U){D(U,-(sp[U]||1))},setSegment(U,Z){G(U),T(wE(O,U,Z,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let U=Object.keys(I),Z=Object.keys(A);U.length===Z.length-1&&A.dayPeriod&&!I.dayPeriod&&(I={...A},R(I),T(O.copy()))},clearSegment(U){delete I[U],L.current=U,R({...I});let Z=Vr(e.placeholderValue,f,g,p),ne=O;if(U==="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 U in O&&(ne=O.set({[U]:Z[U]}));$(null),T(ne)},formatValue(U){if(!C)return"";let Z=$l(U,K);return new Wr(t,Z).format(W)}}}function $E(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:a5(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:s5(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 xE(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 wE(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 CE(e){let{placeholderValue:t=new ia,minValue:n,maxValue:r,granularity:o,validate:i}=e,[a,s]=mt(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?x0(Or(t),C||u):Or(t)},[t,l,u]),p=d.useMemo(()=>Or(n,c),[n,c]),h=d.useMemo(()=>Or(r,c),[r,c]),b=d.useMemo(()=>a&&"day"in a?pd(a):a,[a]),g=d.useMemo(()=>a==null?null:Or(a),[a]);return{...Yu({...e,value:g,defaultValue:void 0,minValue:p,maxValue:h,onChange:C=>{s(c||u?C:C&&pd(C))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:f,createCalendar:()=>new rt,validate:d.useCallback(()=>i==null?void 0:i(a),[i,a])}),timeValue:b}}function Or(e,t=i5(Yl())){return e?"day"in e?e:ln(t,e):null}function DE(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 EE(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=et(i,t,n,r):i=ht(i,t,n)),isNaN(a)||(r!==void 0&&!isNaN(r)?a=et(a,t,n,r):a=ht(a,t,n));let[f,p]=mt(i,isNaN(a)?NaN:a,s),[h,b]=d.useState(()=>isNaN(f)?"":new Ni(l,o).format(f)),g=d.useMemo(()=>new ru(l,o),[l,o]),y=d.useMemo(()=>g.getNumberingSystem(h),[g,h]),$=d.useMemo(()=>new Ni(l,{...o,numberingSystem:y}),[l,o,y]),C=d.useMemo(()=>$.resolvedOptions(),[$]),w=d.useCallback(N=>isNaN(N)||N===null?"":$.format(N),[$]),E=yr({...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=ht(I,t,n):N=et(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 et(ee,t,n,P)}else{let ee=et(Q,t,n,P);return N==="+"&&ee>Q||N==="-"&&ee<Q?ee:et(Es(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(et(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)||et(I,t,n,P)>I||Es("+",I,P)<=n),[c,u,t,n,P,I]),G=d.useMemo(()=>!c&&!u&&(isNaN(I)||t===void 0||isNaN(t)||et(I,t,n,P)<I||Es("-",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:G,minValue:t,maxValue:n,numberValue:I,setNumberValue:p,setInputValue:b,inputValue:h,commit:R}}function Es(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 PE=0,SE=100,TE=1;function AE(e){const{isDisabled:t=!1,minValue:n=PE,maxValue:r=SE,numberFormatter:o,step:i=TE,orientation:a="horizontal"}=e;let s=d.useMemo(()=>{let D=(r-n)/10;return D=et(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 et(N,Q,ee,i)}),[n,r,i]),c=d.useMemo(()=>l(up(e.value)),[e.value]),u=d.useMemo(()=>{var D;return l((D=up(e.defaultValue))!==null&&D!==void 0?D:[n])},[e.defaultValue,n]),f=cp(e.value,e.defaultValue,e.onChange),p=cp(e.value,e.defaultValue,e.onChangeEnd);const[h,b]=mt(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=et(N,Y,Q,i);let ee=lp(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=lp(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 ht(T(N),n,r)}function q(D,N=1){let Y=Math.max(N,i);R(D,et(h[D]+Y,n,r,i))}function G(D,N=1){let Y=Math.max(N,i);R(D,et(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:G,step:i,pageSize:s,orientation:a,isDisabled:t}}function lp(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function up(e){if(e!=null)return Array.isArray(e)?e:[e]}function cp(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}function ME(e){var t;let n=zy({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:dp(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=dp(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 dp(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 kE=1500,fp=500;let bn={},RE=0,Nr=!1,Bt=null,mn=null;function FE(e={}){let{delay:t=kE,closeDelay:n=fp}=e,{isOpen:r,open:o,close:i}=va(e),a=d.useMemo(()=>`${++RE}`,[]),s=d.useRef(),l=()=>{bn[a]=f},c=()=>{for(let h in bn)h!==a&&(bn[h](!0),delete bn[h])},u=()=>{clearTimeout(s.current),s.current=null,c(),l(),Nr=!0,o(),Bt&&(clearTimeout(Bt),Bt=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)),Bt&&(clearTimeout(Bt),Bt=null),Nr&&(mn&&clearTimeout(mn),mn=setTimeout(()=>{delete bn[a],mn=null,Nr=!1},Math.max(fp,n)))},p=()=>{c(),l(),!r&&!Bt&&!Nr?Bt=setTimeout(()=>{Bt=null,Nr=!0,u()},t):r||u()};return d.useEffect(()=>()=>{clearTimeout(s.current),bn[a]&&delete bn[a]},[a]),{isOpen:r,open:h=>{!h&&t>0&&!s.current?p():u()},close:f}}class BE{*[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 IE(e){let[t,n]=mt(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=Ky(e),o=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=Jm(e,d.useCallback(s=>new BE(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(LE(t,s))},setExpandedKeys:n,selectionManager:new jy(i,r)}}function LE(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var xl={exports:{}},Ps={};/**
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 pp;function VE(){if(pp)return Ps;pp=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 Ps.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Ps}var Ss={};/**
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 hp;function OE(){return hp||(hp=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:$;Ss.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ss}process.env.NODE_ENV==="production"?xl.exports=VE():xl.exports=OE();var NE=xl.exports;class qu{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new qu(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 S4{*[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 co extends S4{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof co?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 co?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 qu(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class KE{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 jE extends S4{get isConnected(){return!0}createElement(t){return new co(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 co&&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 $r(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 _E(e){return $r({...e,addIdAndValue:!0})}const T4=d.createContext(!1);function Zu(e,t){let{collection:n,document:r}=Xu(t);return{portal:A4(e,r),collection:n}}function zE(e,t,n){let r=Mt(),o=d.useRef(r);o.current=r;let i=d.useCallback(()=>o.current?n():t(),[t,n]);return NE.useSyncExternalStore(e,i)}const UE=typeof B.default.useSyncExternalStore=="function"?B.default.useSyncExternalStore:zE;function Xu(e){let t=d.useMemo(()=>new jE(e||new KE),[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:UE(n,r,o),document:t}}const wl=d.createContext(null),Po=d.createContext(null);function A4(e,t){let n=d.useContext(Po),r=t??n,o=_E(e),i=d.useMemo(()=>B.default.createElement(T4.Provider,{value:!0},o),[o]);return Mt()?B.default.createElement(wl.Provider,{value:r},i):ho.createPortal(i,r)}function M4(e){return B.default.createElement(B.default.Fragment,null,A4(e))}function k4(e,t,n){let r=d.useContext(T4);var o;return r?(o=ya(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:B.default.createElement(B.default.Fragment,null):null}function HE(e,t,n){return d.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function ya(e,t,n,r,o){let i=HE(t,n,r),a=d.useContext(wl);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(wl.Provider,{value:s},o):null}return B.default.createElement(e,{ref:i},o)}const GE=Symbol("callback"),Cl=Symbol("default");function Ne({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 $a(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[Cl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||Cl;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function ge(e,t,n){let r=$a(n,e.slot)||{},{ref:o,[GE]:i,...a}=r,s=gt(d.useMemo(()=>Qi(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 $t(){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 Ju(e,t=!0){let[n,r]=d.useState(!0);return R4(e,n&&t,d.useCallback(()=>r(!1),[])),n&&t}function Dl(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"),R4(e,n,d.useCallback(()=>{i("exited"),r(!1)},[])),n}function R4(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),bo.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 fo=d.createContext(!1),WE=typeof DocumentFragment<"u"?new DocumentFragment:null;function F4(e){let t=d.useContext(fo),n=Mt();if(t)return B.default.createElement(B.default.Fragment,null,e.children);let r=B.default.createElement(fo.Provider,{value:!0},e.children);return n?B.default.createElement("template",{"data-react-aria-hidden":!0},r):bo.default.createPortal(r,WE)}function xa(e){let t=(n,r)=>d.useContext(fo)?null:e(n,r);return t.displayName=e.displayName||e.name,B.default.forwardRef(t)}function Rn(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const B4=d.createContext(null);function YE(e,t){[e,t]=ge(e,t,B4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=aD({...e,elementType:n},t),{hoverProps:i,isHovered:a}=Be(e),{focusProps:s,isFocused:l,isFocusVisible:c}=qe(),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 wa=d.forwardRef(YE),qE=d.createContext(null);function ZE(e,t){[e,t]=ge(e,t,qE);let{portal:n,collection:r}=Zu(e);return B.default.createElement(B.default.Fragment,null,n,B.default.createElement(XE,{props:e,collection:r,breadcrumbsRef:t}))}function XE({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(e8,{key:o.key,node:o,isCurrent:i===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const JE=d.forwardRef(ZE);function QE(e,t){return ya("item",e,t,e.children)}const I4=d.forwardRef(QE);function e8({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(B4.Provider,{value:o},e.rendered))}const t8=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Qu=d.createContext({});function n8(e,t){[e,t]=ge(e,t,Qu);let n=e,{buttonProps:r,isPressed:o}=cm(e,t),{focusProps:i,isFocused:a,isFocusVisible:s}=qe(e),{hoverProps:l,isHovered:c}=Be(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:t8}),...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 L4=xa(n8),r8=d.createContext({}),Yt=d.createContext({});function o8(e,t){[e,t]=ge(e,t,Yt);let{elementType:n="span",...r}=e;return B.default.createElement(n,{className:"react-aria-Text",...r,ref:t})}const xr=d.forwardRef(o8),Ln=d.createContext(null);function i8(e,t){let n=d.useContext(Ln);return n!=null&&n.isInvalid?B.default.createElement(a8,{...e,ref:t}):null}const So=d.forwardRef(i8),a8=d.forwardRef((e,t)=>{let n=d.useContext(Ln),r=be({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return B.default.createElement(xr,{slot:"errorMessage",...r,ref:t})}),kt=d.createContext({});function s8(e,t){[e,t]=ge(e,t,kt);let{elementType:n="label",...r}=e;return B.default.createElement(n,{className:"react-aria-Label",...r,ref:t})}const qt=xa(s8),l8=d.createContext(null),u8=d.createContext(null);function c8(e,t){[e,t]=ge(e,t,u8);let n=d.useRef(null),r=d.useContext(l8);var o;let{labelProps:i,inputProps:a,isSelected:s,isDisabled:l,isReadOnly:c,isPressed:u,isInvalid:f}=r?gD({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):mm({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},ba(e),n),{isFocused:p,isFocusVisible:h,focusProps:b}=qe(),g=l||c,{hoverProps:y,isHovered:$}=Be({...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(aa,{elementType:"span"},B.default.createElement("input",{...J(a,b),ref:n})),C.children)}const d8=d.forwardRef(c8),wr=d.createContext({});function f8(e,t){[e,t]=ge(e,t,wr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:i,onHoverEnd:a,...s}=e,{hoverProps:l,isHovered:c}=Be({onHoverStart:o,onHoverChange:i,onHoverEnd:a,isDisabled:n}),{isFocused:u,isFocusVisible:f,focusProps:p}=qe({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 ec=d.forwardRef(f8),Vn=d.createContext({});let p8=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function h8(e,t){[e,t]=ge(e,t,Vn);let{hoverProps:n,isHovered:r}=Be(e),{isFocused:o,isFocusVisible:i,focusProps:a}=qe({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(p8(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 To=xa(h8),V4=d.createContext(null);function b8(e,t){let{render:n}=d.useContext(V4);return B.default.createElement(B.default.Fragment,null,n(e,t))}const m8=d.forwardRef(b8),tc=d.createContext({}),g8=d.createContext({});function v8(e,t){let[n,r]=ge(e,t,g8),o=k4("header",e,t);return o||B.default.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const O4=d.forwardRef(v8),nc=d.createContext({});function y8(e,t){let[n,r]=ge(e,t,nc),{elementType:o,orientation:i,style:a,className:s}=n,l=o||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:c}=Oy({elementType:o,orientation:i}),u=k4("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 N4=d.forwardRef(y8),Ca=d.createContext(null),Ao=d.createContext(null);function $8(e,t){[e,t]=ge(e,t,Ca);let n=d.useContext(fo),r=d.useContext(Ao);return d.useContext(Po)?B.default.createElement(M4,e):r?n?null:B.default.createElement(K4,{state:r,props:e,listBoxRef:t}):B.default.createElement(x8,{props:e,listBoxRef:t})}function x8({props:e,listBoxRef:t}){let{portal:n,collection:r}=Zu(e);e={...e,collection:r,children:null,items:null};let o=_y(e);return B.default.createElement(B.default.Fragment,null,n,B.default.createElement(K4,{state:o,props:e,listBoxRef:t}))}const w8=d.forwardRef($8);function K4({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}=Oe(),{disabledBehavior:f,disabledKeys:p}=s,h=ou({usage:"search",sensitivity:"base"}),b=d.useMemo(()=>t.keyboardDelegate||new _u({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}=PD({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:b},e,n),y=$r({items:a,children:j=>{switch(j.type){case"section":return B.default.createElement(C8,{section:j});case"separator":return B.default.createElement(N4,j.props);case"item":return B.default.createElement(j4,{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}=qe(),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(Hl,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(Ne,{values:[[Ca,t],[Ao,e],[tc,{dragAndDropHooks:r,dragState:w,dropState:E}],[nc,{elementType:"div"}],[V4,{render:S8}]]},y),L,K))}function C8({section:e,className:t,style:n}){var r,o;let i=d.useContext(Ao),[a,s]=$t();var l;let{headingProps:c,groupProps:u}=TD({heading:s,"aria-label":(l=e.props["aria-label"])!==null&&l!==void 0?l:void 0}),f=$r({items:i.collection.getChildren(e.key),children:p=>{switch(p.type){case"header":return B.default.createElement(D8,{item:p,headingProps:c,headingRef:a});case"item":return B.default.createElement(j4,{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 D8({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return B.default.createElement(O4,{...t,...o,ref:Qi(n,r)},e.rendered)}function E8(e,t){return ya("item",e,t,e.children)}const P8=d.forwardRef(E8);function j4({item:e}){var t;let n=gt(e.props.ref),r=d.useContext(Ao),{dragAndDropHooks:o,dragState:i,dropState:a}=d.useContext(tc),{optionProps:s,labelProps:l,descriptionProps:c,...u}=SD({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Be({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(m8,{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(Ne,{values:[[Yt,{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 S8(e,t){t=gt(t);let{dragAndDropHooks:n,dropState:r}=d.useContext(tc),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:B.default.createElement(A8,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function T8(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 A8=d.forwardRef(T8),M8=d.createContext({placement:"bottom"}),cr=d.createContext(null);function k8(e,t){[e,t]=ge(e,t,cr);let n=d.useContext(On),r=va(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Dl(t,o.isOpen)||e.isExiting||!1;if(d.useContext(fo)){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(R8,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i})}const _4=d.forwardRef(k8);function R8({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:i,underlayProps:a,arrowProps:s,placement:l}=A2({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),c=r.popoverRef,u=Ju(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(kh,{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(el,{onDismiss:e.close}),B.default.createElement(M8.Provider,{value:{...s,placement:l}},f.children),B.default.createElement(el,{onDismiss:e.close})))}const F8=d.createContext(null),On=d.createContext(null);function B8(e,t){let n=e["aria-labelledby"];[e,t]=ge(e,t,F8);let{dialogProps:r,titleProps:o}=YD({...e,"aria-labelledby":n},t),i=d.useContext(On),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(Ne,{values:[[r8,{slots:{[Cl]:{},title:{...o,level:2}}}]]},a))}const z4=d.forwardRef(B8),I8=d.createContext(null),L8=d.createContext(null);function V8(e,t){[e,t]=ge(e,t,I8);let{collection:n,document:r}=Xu(),{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(F4,null,B.default.createElement(Ne,{values:[[Po,r],[Ca,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),B.default.createElement(O8,{props:e,collection:n,comboBoxRef:t}))}function O8({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{contains:a}=U0({sensitivity:"base"});var s;let l=lE({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]=$t();var g;let{buttonProps:y,inputProps:$,listBoxProps:C,labelProps:w,descriptionProps:E,errorMessageProps:P,...k}=ND({...Rn(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]);jl({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(Ne,{values:[[L8,l],[kt,{...w,ref:h}],[Qu,{...y,ref:c,isPressed:l.isOpen}],[Vn,{...$,ref:u}],[On,l],[cr,{ref:p,triggerRef:u,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":K}}],[Ca,{...C,ref:f}],[Ao,l],[Yt,{slots:{description:E,errorMessage:P}}],[wr,{isInvalid:k.isInvalid,isDisabled:e.isDisabled||!1}],[Ln,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 N8=d.forwardRef(V8),U4=d.createContext(null),K8=d.createContext(null),Mo=d.createContext(null),Da=d.createContext(null);function j8(e,t){[e,t]=ge(e,t,U4);let{locale:n}=Oe();var r;let o=Yu({...e,locale:n,createCalendar:N0,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=d.useRef(null),[a,s]=$t(),l=d.useRef(null);var c;let{labelProps:u,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=Gu({...Rn(e),label:s,inputRef:l,validationBehavior:(c=e.validationBehavior)!==null&&c!==void 0?c:"native"},o,i),y=be({...Rn(e),values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-DateField"}),$=ue(e);return delete $.id,B.default.createElement(Ne,{values:[[Mo,o],[wr,{...f,ref:i,isInvalid:o.isInvalid}],[Vn,{...p,ref:l}],[kt,{...u,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Ln,g]]},B.default.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const _8=d.forwardRef(j8);function z8(e,t){[e,t]=ge(e,t,K8);let{locale:n}=Oe();var r;let o=CE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=d.useRef(null),[a,s]=$t(),l=d.useRef(null);var c;let{labelProps:u,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=zD({...Rn(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(Ne,{values:[[Da,o],[wr,{...f,ref:i,isInvalid:o.isInvalid}],[Vn,{...p,ref:l}],[kt,{...u,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Ln,g]]},B.default.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const U8=d.forwardRef(z8);function H8(e,t){let n=d.useContext(Mo),r=d.useContext(Da);return n||r?B.default.createElement(H4,{...e,ref:t}):B.default.createElement(G8,{...e,ref:t})}const G8=d.forwardRef((e,t)=>{let[n,r]=ge({slot:e.slot},t,U4),{locale:o}=Oe(),i=Yu({...n,locale:o,createCalendar:N0}),a=d.useRef(null),{fieldProps:s,inputProps:l}=Gu({...n,inputRef:a},i,r);return B.default.createElement(Ne,{values:[[Mo,i],[Vn,{...l,ref:a}],[wr,{...s,ref:r,isInvalid:i.isInvalid}]]},B.default.createElement(H4,e))}),H4=d.forwardRef((e,t)=>{let{className:n,children:r}=e,o=d.useContext(Mo),i=d.useContext(Da),a=o??i;return B.default.createElement(B.default.Fragment,null,B.default.createElement(ec,{...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(To,null))}),G4=d.forwardRef(H8);function W8({segment:e,...t},n){let r=d.useContext(Mo),o=d.useContext(Da),i=r??o,a=gt(n),{segmentProps:s}=GD(e,i,a),{focusProps:l,isFocused:c,isFocusVisible:u}=qe(),{hoverProps:f,isHovered:p}=Be({...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 W4=d.forwardRef(W8),Y4=d.createContext({}),q4=d.createContext(null),ko=d.createContext(null),Z4=d.createContext(null);function X4(e){let{item:t,parentMenuRef:n}=e,r=d.useContext(ko);return $r({items:r.collection.getChildren(t.key),children:i=>{switch(i.type){case"item":return B.default.createElement(J8,{item:i,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function Y8(e,t){[e,t]=ge(e,t,q4);let{portal:n,collection:r}=Zu(e);return B.default.createElement(B.default.Fragment,null,r.size>0&&B.default.createElement(q8,{props:e,collection:r,menuRef:t}),n)}function q8({props:e,collection:t,menuRef:n}){let r=IE({...e,collection:t,children:void 0}),[o,i]=d.useState(null),{menuProps:a}=kD(e,r,n),s=d.useContext(Z4),l=d.useContext(cr),c=$r({items:r.collection,children:p=>{switch(p.type){case"section":return B.default.createElement(X8,{section:p,parentMenuRef:n});case"separator":return B.default.createElement(N4,p.props);case"item":return B.default.createElement(J4,{item:p});case"submenutrigger":return B.default.createElement(X4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),u=(l==null?void 0:l.trigger)==="SubmenuTrigger";i0({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(Hl,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(Ne,{values:[[ko,r],[nc,{elementType:"div"}],[cr,{UNSTABLE_portalContainer:o||void 0}]]},c)),B.default.createElement("div",{ref:i,style:{width:"100vw",position:"absolute",top:0}}))}const Z8=d.forwardRef(Y8);function X8({section:e,className:t,style:n,parentMenuRef:r,...o}){var i,a;let s=d.useContext(ko),[l,c]=$t();var u;let{headingProps:f,groupProps:p}=RD({heading:c,"aria-label":(u=e["aria-label"])!==null&&u!==void 0?u:void 0}),h=$r({items:s.collection.getChildren(e.key),children:b=>{switch(b.type){case"header":{let{ref:g,...y}=b.props;return B.default.createElement(O4,{...f,...y,ref:Qi(l,g)},b.rendered)}case"item":return B.default.createElement(J4,{item:b});case"submenutrigger":return B.default.createElement(X4,{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 J4({item:e}){var t;let n=d.useContext(ko),r=gt(e.props.ref),{menuItemProps:o,labelProps:i,descriptionProps:a,keyboardShortcutProps:s,...l}=Lg({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}=qe(),{hoverProps:p,isHovered:h}=Be({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(Ne,{values:[[Yt,{slots:{label:i,description:a}}],[Y4,s]]},b.children))}function J8({item:e,popover:t,parentMenuRef:n,delay:r}){let o=d.useContext(ko),i=$a(cr),a=gt(e.props.ref),s=d.useContext(Z4),l=DE({triggerKey:e.key},s),c=d.useRef(null),{submenuTriggerProps:u,submenuProps:f,popoverProps:p}=LD({node:e,parentMenuRef:n,submenuRef:c,delay:r},l,a),{menuItemProps:h,labelProps:b,descriptionProps:g,keyboardShortcutProps:y,...$}=Lg({key:e.key,...u},o,a),C=e.props,{hoverProps:w,isHovered:E}=Be({isDisabled:$.isDisabled}),{isFocusVisible:P,focusProps:k}=qe(),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(Ne,{values:[[Yt,{slots:{label:b,description:g}}],[Y4,y],[q4,f],[On,l],[cr,{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 Q8=d.createContext(null);function eP(e,t){[e,t]=ge(e,t,Q8);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=ht(n,r,o);let[i,a]=$t(),{meterProps:s,labelProps:l}=qD({...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(kt.Provider,{value:{...l,ref:i,elementType:"span"}},u.children))}const tP=d.forwardRef(eP),nP=d.createContext(null),rc=d.createContext(null);function rP(e,t){if(d.useContext(rc))return B.default.createElement(bp,{...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(Q4,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:c,isExiting:u,UNSTABLE_portalContainer:f},B.default.createElement(bp,{...p,modalRef:t},l))}const oP=d.forwardRef(rP);function iP(e,t){[e,t]=ge(e,t,nP);let n=d.useContext(On),r=va(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=gt(t),a=d.useRef(null),s=Dl(i,o.isOpen),l=Dl(a,o.isOpen),c=s||l||e.isExiting||!1,u=Mt();return!o.isOpen&&!c||u?null:B.default.createElement(aP,{...e,state:o,isExiting:c,overlayRef:i,modalRef:a})}const Q4=d.forwardRef(iP);function aP({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=M2(t,r,n),a=Ju(t.overlayRef)||t.isEntering||!1,s=be({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=fx(),c={...s.style,"--visual-viewport-height":l.height+"px"};return B.default.createElement(kh,{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(Ne,{values:[[rc,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[On,r]]},s.children)))}function bp(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=d.useContext(rc),i=d.useContext(On),a=d.useMemo(()=>Qi(e.modalRef,n),[e.modalRef,n]),s=gt(a),l=Ju(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(el,{onDismiss:i.close}),c.children)}const sP=d.createContext(null),lP=d.createContext(null);function uP(e,t){[e,t]=ge(e,t,sP);let{locale:n}=Oe();var r;let o=EE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=d.useRef(null),[a,s]=$t();var l;let{labelProps:c,groupProps:u,inputProps:f,incrementButtonProps:p,decrementButtonProps:h,descriptionProps:b,errorMessageProps:g,...y}=XD({...Rn(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(Ne,{values:[[lP,o],[wr,u],[Vn,{...f,ref:i}],[kt,{...c,ref:a}],[Qu,{slots:{increment:p,decrement:h}}],[Yt,{slots:{description:b,errorMessage:g}}],[Ln,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 cP=d.forwardRef(uP),dP=d.createContext(null);function fP(e,t){[e,t]=ge(e,t,dP);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:i=!1}=e;n=ht(n,r,o);let[a,s]=$t(),{progressBarProps:l,labelProps:c}=ny({...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(kt.Provider,{value:{...c,ref:a,elementType:"span"}},f.children))}const e1=d.forwardRef(fP),pP=d.createContext(null),Ea=d.createContext(null),oc=d.createContext(null),t1=d.createContext(null);function hP(e,t){[e,t]=ge(e,t,pP);let n=d.useRef(null),r=Ki(e.formatOptions),o=AE({...e,numberFormatter:r}),[i,a]=$t(),{groupProps:s,trackProps:l,labelProps:c,outputProps:u}=JD({...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(Ne,{values:[[Ea,o],[oc,{...l,ref:n}],[t1,u],[kt,{...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 bP=d.forwardRef(hP);function mP(e,t){[e,t]=ge(e,t,t1);let{children:n,style:r,className:o,...i}=e,a=d.useContext(Ea),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 gP=d.forwardRef(mP);function vP(e,t){[e,t]=ge(e,t,oc);let n=d.useContext(Ea),{onHoverStart:r,onHoverEnd:o,onHoverChange:i,...a}=e,{hoverProps:s,isHovered:l}=Be({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 yP=d.forwardRef(vP);function $P(e,t){let n=d.useContext(Ea),{ref:r}=$a(oc),{index:o=0}=e,i=d.useRef(null),[a,s]=$t(),{thumbProps:l,inputProps:c,labelProps:u,isDragging:f,isFocused:p,isDisabled:h}=QD({...e,index:o,trackRef:r,inputRef:i,label:s},n),{focusProps:b,isFocusVisible:g}=qe(),{hoverProps:y,isHovered:$}=Be(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(aa,null,B.default.createElement("input",{ref:i,...J(c,b)})),B.default.createElement(Ne,{values:[[kt,{...u,ref:a}]]},C.children))}const xP=d.forwardRef($P),wP=d.createContext(null);function CP(e,t){[e,t]=ge(e,t,wP);let n=d.useRef(null),r=ba(e),{labelProps:o,inputProps:i,isSelected:a,isDisabled:s,isReadOnly:l,isPressed:c}=eE({...Rn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:u,isFocusVisible:f,focusProps:p}=qe(),h=e.isDisabled||e.isReadOnly,{hoverProps:b,isHovered:g}=Be({...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(aa,{elementType:"span"},B.default.createElement("input",{...i,...p,ref:n})),y.children)}const DP=d.forwardRef(CP),ic=d.createContext(null),ac=d.createContext(null);function EP(e,t){[e,t]=ge(e,t,ic);let{collection:n,document:r}=Xu(),{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(F4,null,B.default.createElement(Po.Provider,{value:r},o)),B.default.createElement(PP,{props:e,collection:n,tabsRef:t}))}function PP({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=ME({...e,collection:n,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:s}=qe({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(Ne,{values:[[ic,e],[ac,o]]},c.children))}const SP=d.forwardRef(EP);function TP(e,t){return d.useContext(Po)?B.default.createElement(M4,e):B.default.createElement(AP,{props:e,forwardedRef:t})}function AP({props:e,forwardedRef:t}){let n=d.useContext(ac),{orientation:r="horizontal",keyboardActivation:o="automatic"}=$a(ic),i=gt(t),{tabListProps:a}=oE({...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(FP,{key:c.key,item:c,state:n})))}const MP=d.forwardRef(TP);function kP(e,t){return ya("item",e,t,e.children)}const RP=d.forwardRef(kP);function FP({item:e,state:t}){let n=gt(e.props.ref),{tabProps:r,isSelected:o,isDisabled:i,isPressed:a}=tE({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:c}=qe(),{hoverProps:u,isHovered:f}=Be({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 BP(e,t){const n=d.useContext(ac);let r=gt(t),{tabPanelProps:o}=nE(e,n,r),{focusProps:i,isFocused:a,isFocusVisible:s}=qe(),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 IP=xa(BP),LP=d.createContext({}),VP=d.createContext(null);function OP(e,t){[e,t]=ge(e,t,VP);let n=d.useRef(null),[r,o]=$t(),[i,a]=d.useState("input");var s;let{labelProps:l,inputProps:c,descriptionProps:u,errorMessageProps:f,...p}=Uu({...Rn(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(Ne,{values:[[kt,{...l,ref:r}],[Vn,{...c,ref:h}],[LP,{...c,ref:h}],[Yt,{slots:{description:u,errorMessage:f}}],[Ln,p]]},b.children))}const Pa=d.forwardRef(OP),NP=d.createContext({});function KP(e,t){[e,t]=ge(e,t,NP);let n=ba(e),{buttonProps:r,isPressed:o}=sD(e,n,t),{focusProps:i,isFocused:a,isFocusVisible:s}=qe(e),{hoverProps:l,isHovered:c}=Be(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 jP=d.forwardRef(KP),_P=z.styled(JE)`
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
+ `,zP=z.styled(I4)`
187
187
  display: flex;
188
188
  align-items: center;
189
- `,HP=G.styled(V4)`
189
+ `,UP=z.styled(I4)`
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
+ `,HP=z.styled(wa)`
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 GP({children:e,...t}){return S.jsx(zP,{...t,children:e})}function WP(e){return S.jsx(HP,{...e})}function YP({children:e,...t}){return S.jsx(UP,{...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 qP({children:e,...t}){return S.jsx(_P,{...t,children:e})}const Et=z.styled(L4)`
226
226
  display: flex;
227
227
  align-items: center;
228
228
  padding: 0.4rem 2rem;
@@ -260,10 +260,10 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
260
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
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]}}};
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 ZP({children:e,isDisabled:t=!1,isLoading:n=!1,size:r="md",variant:o="solid",...i}){return S.jsx(Et,{isDisabled:t||n,isLoading:n,size:r,variant:o,...i,children:e})}const XP=z.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 JP({children:e,...t}){return S.jsx(XP,{...t,children:e})}const st=z.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
+ `,yi=z.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
+ `,QP=z.styled(d8)`
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] ${st} {
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] ${st} {
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
+ & ${yi} {
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] ${st} {
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] ${st} {
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
+ ${st} {
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] ${st} {
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] ${st} {
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
+ ${st} {
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] ${st} {
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
+ ${st} {
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] ${st} {
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
+ ${yi} {
374
374
  stroke-dashoffset: 44;
375
375
  }
376
376
  }
377
377
 
378
378
  &[data-indeterminate] {
379
- & ${$i} {
379
+ & ${yi} {
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 e9({children:e,...t}){return S.jsx(QP,{...t,children:({isIndeterminate:n})=>S.jsxs(S.Fragment,{children:[S.jsx(st,{children:S.jsx(yi,{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 t9=z.styled.div`
385
385
  width: 100%;
386
- `,r9=G.styled(yr.div)`
386
+ `,n9=z.styled(vr.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
+ `,sc=d.createContext({});function r9({children:e,...t}){const n=d.useId(),[r,o]=mt(t.isOpen,t.defaultOpen||!1,t.onOpenChange),i=d.useRef(null),a=d.useCallback(()=>{o(!r)},[o,r]);return S.jsx(Ne,{values:[[sc,{isOpen:r,id:n,defaultOpen:t.defaultOpen||!1}]],children:S.jsx(Ex,{ref:i,isPressed:r,onPress:a,"aria-expanded":r,"aria-controls":n,children:S.jsx(t9,{children:e})})})}function o9({children:e}){const{isOpen:t,id:n,defaultOpen:r}=d.useContext(sc);return S.jsx(n9,{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 i9=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},a9=z.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})=>i9((e==null?void 0:e.screens)??x.screens)}
399
+ `,s9=d.forwardRef(({children:e,...t},n)=>S.jsx(a9,{...t,ref:n,children:e})),l9=z.styled(vr(_4))`
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 n1({children:e,key:t,onAction:n,setAnimation:r,animation:o="hidden",...i}){return S.jsx(l9,{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(Z8,{style:{outline:"none"},onAction:n,children:e})},t)}n1.defaultProps={key:void 0,onAction:void 0};const u9=z.styled(_8)`
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
+ `,c9=z.styled(G4)`
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
+ `,d9=z.styled(W4)`
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
+ `,f9=z.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
+ `,p9=z.styled(So)`
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
+ `,h9=z.styled(xr)`
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 r1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(u9,{...r,children:[S.jsx(f9,{children:e}),S.jsx(c9,{children:o=>S.jsx(d9,{segment:o})}),S.jsx(h9,{slot:"description",children:t}),S.jsx(p9,{children:n})]})}r1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const b9=z.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 m9(e){const{orientation:t}=e,{separatorProps:n}=Oy(e);return S.jsx(b9,{...n,orientation:t})}const xn=z.styled(To)`
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
+ `,o1=z.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
+ `,g9=z.styled(Pa)`
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
+ `,i1=z.styled(So)`
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
+ `,a1=z.styled(xr)`
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 s1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(g9,{...r,children:[S.jsx(o1,{children:e}),S.jsx(xn,{}),t&&S.jsx(a1,{slot:"description",children:t}),S.jsx(i1,{children:n})]})}s1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const v9=z.styled(wa)`
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 y9({children:e,...t}){return S.jsx(v9,{...t,children:e})}const $9=z.styled(tP)`
608
608
  display: flex;
609
609
  flex-direction: column;
610
610
  gap: 0.5rem;
611
- `,w9=G.styled.div`
611
+ `,x9=z.styled.div`
612
612
  display: flex;
613
613
  justify-content: space-between;
614
614
  gap: 1rem;
615
- `,C9=G.styled(Zt)`
615
+ `,w9=z.styled(qt)`
616
616
  font-size: 0.875rem;
617
- `,D9=G.styled.span`
617
+ `,C9=z.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
+ `,D9=z.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
+ `,E9=z.styled(vr.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 P9({label:e,showValue:t=!0,value:n=0,minValue:r=0,maxValue:o=100,formatOptions:i={style:"percent"},...a}){return S.jsx($9,{value:n,minValue:r,maxValue:o,formatOptions:i,...a,children:({percentage:s,valueText:l})=>S.jsxs(S.Fragment,{children:[(e||t)&&S.jsxs(x9,{children:[e&&S.jsx(w9,{children:e}),t&&S.jsx(C9,{children:l})]}),S.jsx(D9,{children:S.jsx(E9,{initial:{width:`${s}%`},animate:{width:`${s}%`},transition:{type:"spring",bounce:0}})})]})})}const S9=z.styled(oP)`
631
631
  position: absolute;
632
632
  inset: 50%;
633
- `;function A9(e){return S.jsx(T9,{...e})}const gp=G.keyframes`
633
+ `;function T9(e){return S.jsx(S9,{...e})}const mp=z.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
+ `,A9=z.styled(Q4)`
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: ${mp} 300ms;
655
655
  }
656
656
 
657
657
  &[data-exiting] {
658
- animation: ${gp} 300ms reverse;
658
+ animation: ${mp} 300ms reverse;
659
659
  }
660
- `;function k9(e){return S.jsx(M9,{...e})}const vp=G.keyframes`
660
+ `;function M9(e){return S.jsx(A9,{...e})}const gp=z.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
+ `,El=z.styled(z4)`
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
+ `,k9=z.createGlobalStyle`
684
+ [data-entering] ${El} {
685
+ animation: ${gp} 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] ${El} {
689
+ animation: ${gp} 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 R9(e){return S.jsxs(S.Fragment,{children:[S.jsx(k9,{}),S.jsx(El,{...e})]})}const F9=z.keyframes`
692
692
  from { transform: translateY(-100%); }
693
693
  to { transform: translateY(0); }
694
- `,I9=G.keyframes`
694
+ `,B9=z.keyframes`
695
695
  from { transform: translateX(100%); }
696
696
  to { transform: translateX(0); }
697
- `,L9=G.keyframes`
697
+ `,I9=z.keyframes`
698
698
  from { transform: translateY(100%); }
699
699
  to { transform: translateY(0); }
700
- `,V9=G.keyframes`
700
+ `,L9=z.keyframes`
701
701
  from { transform: translateX(-100%); }
702
702
  to { transform: translateX(0); }
703
- `,Sl=ge.default(H4)`
703
+ `,Pl=z.styled(z4)`
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
+ `,V9=z.createGlobalStyle`
737
+ [data-exiting] ${Pl} {
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
+ ${Pl} {
745
745
  &[data-direction='top'] {
746
- animation-name: ${B9};
746
+ animation-name: ${F9};
747
747
  }
748
748
 
749
749
  &[data-direction='right'] {
750
- animation-name: ${I9};
750
+ animation-name: ${B9};
751
751
  }
752
752
 
753
753
  &[data-direction='bottom'] {
754
- animation-name: ${L9};
754
+ animation-name: ${I9};
755
755
  }
756
756
 
757
757
  &[data-direction='left'] {
758
- animation-name: ${V9};
758
+ animation-name: ${L9};
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 l1({direction:e,...t}){return S.jsxs(S.Fragment,{children:[S.jsx(V9,{}),S.jsx(Pl,{"data-direction":e,...t})]})}l1.defaultProps={direction:"right"};const O9=z.styled(cP)`
763
763
  display: flex;
764
764
  flex-direction: column;
765
765
  width: 100%;
766
- `,K9=G.styled(tc)`
766
+ `,N9=z.styled(ec)`
767
767
  display: flex;
768
768
  border-radius: 0.375rem;
769
769
 
770
- ${Pt} {
770
+ ${Et} {
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
+ ${Et}, ${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
+ ${Et}, ${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
+ ${Et} {
822
822
  cursor: default;
823
823
  }
824
824
 
825
- ${Pt}, ${wn} {
825
+ ${Et}, ${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
+ ${Et}, ${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
+ ${Et} {
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
+ `,K9=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"})}),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:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function u1({label:e,description:t,errorMessage:n,isInvalid:r,isReadOnly:o,slots:i,...a}){return S.jsxs(O9,{isInvalid:r,...a,children:[S.jsx(o1,{children:e}),S.jsxs(N9,{isInvalid:r,"aria-readonly":o,children:[S.jsx(Et,{variant:"outline",slot:"decrement",children:i==null?void 0:i.decrementIcon}),S.jsx(xn,{readOnly:o}),S.jsx(Et,{variant:"outline",slot:"increment",children:i==null?void 0:i.incrementIcon})]}),t&&S.jsx(a1,{slot:"description",children:t}),S.jsx(i1,{children:n})]})}u1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:K9,incrementIcon:j9}};const _9=z.styled(ec)`
855
855
  display: flex;
856
856
  flex-wrap: wrap;
857
857
  gap: 0.5rem;
858
- `,U9=G.styled(Ao)`
858
+ `,z9=z.styled(To)`
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
+ `,U9=z.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
+ `,H9=z.styled(Pa)`
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
+ `,G9=z.styled(Pa)`
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
+ `,W9=z.styled(So)`
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
+ `,Y9=z.styled(xr)`
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 c1({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(_9,{...h,"aria-label":a,children:[S.jsx(U9,{children:a}),y.map((k,K)=>S.jsx(H9,{"aria-label":`Pin Input Digit ${K+1}`,isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:S.jsx(z9,{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(G9,{"aria-label":"Pin Input",isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:[l&&S.jsx(To,{type:"hidden",name:l,value:b}),e&&S.jsx(Y9,{slot:"description",children:e}),S.jsx(W9,{children:t})]})]})}c1.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const q9=z.styled(e1)`
940
940
  display: flex;
941
- `,X9=G.styled.div`
941
+ `,Z9=z.styled.div`
942
942
  display: flex;
943
943
  flex-direction: column;
944
944
  align-items: center;
945
- `,J9=G.styled(Zt)`
945
+ `,X9=z.styled(qt)`
946
946
  font-size: 0.875rem;
947
- `,Q9=G.styled.circle`
947
+ `,J9=z.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
+ `,Q9=z.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
+ `,eS=z.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 tS({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(q9,{"aria-label":"Loading...",...i,value:t,children:({percentage:c=0})=>S.jsxs(Z9,{children:[S.jsx(X9,{children:e}),S.jsxs("svg",{width:r,height:r,fill:"none",children:[S.jsx(J9,{cx:a,cy:a,r:s,strokeWidth:o}),S.jsx(Q9,{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(eS,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[c,"%"]})]})]})})}const nS=z.styled(e1)`
956
956
  width: ${({width:e})=>e||"100%"};
957
957
  overflow: hidden;
958
- `,oS=G.styled.div`
958
+ `,rS=z.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
+ `,oS=z.styled(qt)`
965
965
  font-size: 0.875rem;
966
- `,aS=G.styled.span`
966
+ `,iS=z.styled.span`
967
967
  font-size: 0.875rem;
968
- `,sS=G.styled.div`
968
+ `,aS=z.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
+ `,sS=z.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 lS({label:e,isIndeterminate:t,showValue:n=!0,width:r,...o}){return S.jsx(nS,{...o,width:r,children:({percentage:i,valueText:a})=>S.jsxs(S.Fragment,{children:[S.jsxs(rS,{children:[S.jsx(oS,{children:e}),n&&S.jsx(iS,{children:a})]}),S.jsx(aS,{children:S.jsx(sS,{isIndeterminate:t,width:typeof i=="number"?`${i}%`:""})})]})})}const uS=z.styled(N8)`
993
993
  display: flex;
994
994
  flex-direction: column;
995
995
  width: 100%;
996
- `,dS=G.styled.div`
996
+ `,cS=z.styled.div`
997
997
  display: flex;
998
998
  position: relative;
999
999
  width: 100%;
1000
- `,fS=G.styled(yr(U4))`
1000
+ `,dS=z.styled(vr(_4))`
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
+ `,fS=z.styled(To).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
+ `,pS=z.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
+ `,hS=z.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
+ `,bS=z.styled(L4)`
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
+ `,mS=z.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
+ `;z.styled(Pa)`
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 gS=z.styled(So)`
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
+ `,vS=z.styled(xr)`
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
+ `,yS=z.styled(P8)`
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 $S(e){return S.jsx(yS,{...e})}const xS=z.keyframes`
1146
1146
  100% {
1147
1147
  transform: rotate(360deg);
1148
1148
  }
1149
- `,CS=G.keyframes`
1149
+ `,wS=z.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
+ `,CS=z.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
+ `,DS=z.styled.svg`
1172
+ animation: ${xS} 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
+ `,ES=z.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: ${wS} 1.5s ease-in-out infinite;
1187
+ `;function PS({width:e,stroke:t,strokeLinecap:n="round",strokeWidth:r=5,...o}){return S.jsx(CS,{width:e,...o,children:S.jsx(DS,{viewBox:"25 25 50 50",children:S.jsx(ES,{className:"path",cx:"50",cy:"50",fill:"none",r:"20",stroke:t,strokeLinecap:n,strokeMiterlimit:"10",strokeWidth:r})})})}const SS=z.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
+ `,Ts=z.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: ${SS}
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 d1(){return S.jsxs("span",{children:[S.jsx(Ts,{speedMultiplier:1,i:1}),S.jsx(Ts,{speedMultiplier:1,i:2}),S.jsx(Ts,{speedMultiplier:1,i:3})]})}function f1({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(uS,{ref:u,onOpenChange:()=>{c(l==="visible"?"hidden":"visible"),p(!f)},isDisabled:s.isDisabled||a,...s,children:[S.jsx(mS,{children:e}),S.jsxs(cS,{children:[S.jsx(fS,{placeholder:o,isLoading:a??!1}),a?S.jsx(hS,{children:S.jsx(d1,{})}):S.jsx(bS,{children:S.jsx(pS,{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(vS,{slot:"description",children:t}),S.jsx(gS,{children:n}),S.jsx(dS,{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(w8,{style:{maxHeight:"20rem",overflowY:"scroll"},children:r})},i)]})}f1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1};const TS=z.styled(bP)`
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
+ `,AS=z.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
+ `,MS=z.styled(gP)`
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
+ `,Sl=z.styled(xP)`
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
+ `,kS=z.styled(yP)`
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
+ ${Sl} {
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
+ ${Sl} {
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 p1({label:e,showOutput:t=!0,thumbLabels:n,...r}){return S.jsxs(TS,{...r,children:[S.jsx(AS,{children:e}),t&&S.jsx(MS,{children:({state:o})=>o.values.map((i,a)=>o.getThumbValueLabel(a)).join(" – ")}),S.jsx(kS,{children:({state:o})=>o.values.map((i,a)=>S.jsx(Sl,{index:a,"aria-label":n==null?void 0:n[a]},a))})]})}p1.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const It=z.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
+ `,RS=z.styled(DP)`
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] ${It} {
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] ${It} {
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] ${It} {
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] ${It} {
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
+ ${It} {
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] ${It} {
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] ${It} {
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
+ ${It} {
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 FS({children:e,...t}){return S.jsxs(RS,{...t,children:[S.jsx(It,{}),e]})}const BS=z.styled(SP)`
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
+ `,IS=z.styled(MP)`
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,c;switch(e){case"solid":return z.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 z.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 z.css`
1418
1418
  &[data-orientation='vertical'] {
1419
1419
  &:before {
1420
1420
  display: block;
@@ -1440,7 +1440,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1440
1440
  }
1441
1441
  }
1442
1442
  `;default:return null}}}
1443
- `,m1=ge.default(FP)`
1443
+ `,h1=z.styled(RP)`
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
+ `,LS=z.styled(vr.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,c,u,f,p,h;switch(n){case"solid":return z.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 z.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"?z.css`
1491
1491
  bottom: 0;
1492
1492
  left: 0;
1493
1493
  width: 100%;
@@ -1495,7 +1495,7 @@ 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
+ `:z.css`
1499
1499
  bottom: 0;
1500
1500
  right: 0;
1501
1501
  width: 1px;
@@ -1503,7 +1503,7 @@ Check the top-level render call using <`+_+">.")}return M}function Fc(m,M){if(!(
1503
1503
  border-radius: 0.5rem;
1504
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]};
1505
1505
  mix-blend-mode: color;
1506
- `;case"enclosed":return G.css`
1506
+ `;case"enclosed":return z.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 z.css`
1516
1516
  display: none;
1517
1517
  `}}}
1518
- `,OS=ge.default(LP)`
1518
+ `,VS=z.styled(IP)`
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
+ `,Sa=d.createContext("horizontal");function OS({children:e,...t}){return S.jsx(Sa.Provider,{value:t.orientation??"horizontal",children:S.jsx(BS,{...t,children:e})})}function NS({variant:e="base",...t}){const n=d.useContext(Sa);return S.jsx(h1,{orientation:n,variant:e,...t,children:({isSelected:r,isFocusVisible:o})=>S.jsxs(S.Fragment,{children:[t.children,(o||r)&&S.jsx(LS,{orientation:n,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function KS({items:e,children:t,variant:n="base",...r}){const o=d.useContext(Sa);return S.jsx(IS,{items:e,variant:n,...r,children:t||(i=>S.jsx(h1,{orientation:o,children:i.title}))})}function jS({children:e,...t}){return S.jsx(VS,{...t,children:e})}const _S=z.styled(U8)`
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
+ `,zS=z.styled(G4)`
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
+ `,US=z.styled(W4)`
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
+ `,HS=z.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
+ `,GS=z.styled(So)`
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
+ `,WS=z.styled(xr)`
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 b1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(_S,{...r,children:[S.jsx(HS,{children:e}),S.jsx(zS,{children:o=>S.jsx(US,{segment:o})}),S.jsx(WS,{slot:"description",children:t}),S.jsx(GS,{children:n})]})}b1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const YS=z.styled(jP)`
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 qS({children:e,size:t="md",variant:n="solid",...r}){return S.jsx(YS,{...r,size:t,variant:n,children:e})}var ZS=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])||{}},XS=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],vp=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e};function JS(e){const[t,n]=Fh(e,Zc.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=FE({delay:g,closeDelay:y,isDisabled:u,defaultOpen:l,isOpen:i,onOpenChange:Ie=>{c==null||c(Ie),Ie||A==null||A()}}),T=d.useRef(null),W=d.useRef(null),q=d.useId(),G=O.isOpen&&!u;d.useImperativeHandle(r,()=>F$(W));const{triggerProps:D,tooltipProps:N}=aE({isDisabled:u,trigger:f},O,T),{tooltipProps:Y}=iE({isOpen:G,...J(t,N)},O),{overlayProps:Q,placement:ee,updatePosition:oe}=Sh({isOpen:G,targetRef:T,placement:XS(b),overlayRef:W,offset:$?C+3:C,crossOffset:w,shouldFlip:p,containerPadding:h});d0(()=>{v.length&&oe()},v);const{overlayProps:U}=iu({isOpen:G,onClose:O.close,isDismissable:E,shouldCloseOnBlur:P,isKeyboardDismissDisabled:K,shouldCloseOnInteractOutside:V},W),Z=d.useMemo(()=>{var Ie,He,wt;return Zc({...n,radius:(Ie=e==null?void 0:e.radius)!=null?Ie:"md",size:(He=e==null?void 0:e.size)!=null?He:"md",shadow:(wt=e==null?void 0:e.shadow)!=null?wt:"sm"})},[Tp(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),ne=d.useCallback((Ie={},He=null)=>({...J(D,Ie),ref:N$(He,T),"aria-describedby":G?q:void 0}),[D,G,q,O]),se=d.useCallback(()=>({ref:W,"data-slot":"base","data-open":Pt(G),"data-arrow":Pt($),"data-disabled":Pt(u),"data-placement":vp(ee,b),...J(Y,U,L),style:J(Q.style,L.style,t.style),className:Z.base({class:R==null?void 0:R.base}),id:q}),[Z,G,$,u,ee,b,Y,U,L,Q,t,q]),le=d.useCallback(()=>({"data-slot":"content","data-open":Pt(G),"data-arrow":Pt($),"data-disabled":Pt(u),"data-placement":vp(ee,b),className:Z.content({class:ar(R==null?void 0:R.content,F)})}),[Z,G,$,u,ee,b,R]);return{Component:j,content:a,children:s,isOpen:G,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 Gn={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]},QS={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:Gn.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Gn.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Gn.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Gn.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Gn.ease}},exit:{opacity:0,transition:{duration:.3,ease:Gn.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}}}},m1=sa((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}=JS({...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",{}),I$("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(ZC,{features:XC,children:S.jsx(_C.div,{animate:"enter",exit:"exit",initial:"exit",variants:QS.scaleSpring,...J(c,$),style:{...ZS(s)},children:S.jsx(n,{...p(),children:o})})})});return S.jsxs(S.Fragment,{children:[h,l&&i?S.jsx(jd,{portalContainer:a,children:S.jsx("div",{ref:b,id:g,style:y,...$,children:S.jsx(n,{...p(),children:o})})}):S.jsx(lm,{children:i?S.jsx(jd,{portalContainer:a,children:C}):null})]})});m1.displayName="NextUI.Tooltip";var eT=m1;const tT=z.styled(eT).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 nT({children:e,...t}){return S.jsx(tT,{classNames:{base:["tooltip"],content:["tooltip-content"]},...t,children:e})}function Te(){return Te=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},Te.apply(this,arguments)}function g1(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,rT(o,...t)]}function rT(...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 Le(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 oT(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function lc(...e){return t=>e.forEach(n=>oT(n,t))}function Wt(...e){return d.useCallback(lc(...e),e)}const Zi=d.forwardRef((e,t)=>{const{children:n,...r}=e,o=d.Children.toArray(n),i=o.find(aT);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(Tl,Te({},r,{ref:t}),d.isValidElement(a)?d.cloneElement(a,void 0,s):null)}return d.createElement(Tl,Te({},r,{ref:t}),n)});Zi.displayName="Slot";const Tl=d.forwardRef((e,t)=>{const{children:n,...r}=e;return d.isValidElement(n)?d.cloneElement(n,{...sT(r,n.props),ref:t?lc(t,n.ref):n.ref}):d.Children.count(n)>1?d.Children.only(null):null});Tl.displayName="SlotClone";const iT=({children:e})=>d.createElement(d.Fragment,null,e);function aT(e){return d.isValidElement(e)&&e.type===iT}function sT(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 lT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],bt=lT.reduce((e,t)=>{const n=d.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?Zi:t;return d.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),d.createElement(s,Te({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Al(e,t){e&&ho.flushSync(()=>e.dispatchEvent(t))}function ft(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 uT({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=cT({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=ft(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 cT({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,o=d.useRef(r),i=ft(t);return d.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const dT=d.createContext(void 0);function fT(e){const t=d.useContext(dT);return e||t||"ltr"}const dr=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function pT(e,t){return d.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Ro=e=>{const{present:t,children:n}=e,r=hT(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=Wt(r.ref,o.ref);return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};Ro.displayName="Presence";function hT(e){const[t,n]=d.useState(),r=d.useRef({}),o=d.useRef(e),i=d.useRef("none"),a=e?"mounted":"unmounted",[s,l]=pT(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=ui(r.current);i.current=s==="mounted"?c:"none"},[s]),dr(()=>{const c=r.current,u=o.current;if(u!==e){const p=i.current,h=ui(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]),dr(()=>{if(t){const c=f=>{const h=ui(r.current).includes(f.animationName);f.target===t&&h&&ho.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(i.current=ui(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 ui(e){return(e==null?void 0:e.animationName)||"none"}const bT=B["useId".toString()]||(()=>{});let mT=0;function v1(e){const[t,n]=B.useState(bT());return dr(()=>{e||n(r=>r??String(mT++))},[e]),e||(t?`radix-${t}`:"")}function y1(e){const t=e+"CollectionProvider",[n,r]=g1(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=Wt(b,$.collectionRef);return B.default.createElement(Zi,{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=Wt(b,C),E=i(c,g);return B.default.useEffect(()=>(E.itemMap.set(C,{ref:C,...$}),()=>void E.itemMap.delete(C))),B.default.createElement(Zi,{[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 gT(e,t=globalThis==null?void 0:globalThis.document){const n=ft(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Ml="dismissableLayer.update",vT="dismissableLayer.pointerDownOutside",yT="dismissableLayer.focusOutside";let yp;const $T=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xT=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($T),[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=Wt(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=wT(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=CT(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 gT(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&&(yp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),$p(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=yp)}},[f,h,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),$p())},[f,u]),d.useEffect(()=>{const v=()=>b({});return document.addEventListener(Ml,v),()=>document.removeEventListener(Ml,v)},[]),d.createElement(bt.div,Te({},c,{ref:g,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:Le(e.onFocusCapture,K.onFocusCapture),onBlurCapture:Le(e.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Le(e.onPointerDownCapture,k.onPointerDownCapture)}))});function wT(e,t=globalThis==null?void 0:globalThis.document){const n=ft(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){$1(vT,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 CT(e,t=globalThis==null?void 0:globalThis.document){const n=ft(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&$1(yT,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 $p(){const e=new CustomEvent(Ml);document.dispatchEvent(e)}function $1(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?Al(o,i):o.dispatchEvent(i)}function DT(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 ET=d.forwardRef((e,t)=>d.createElement(bt.span,Te({},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}}))),PT=ET,Fo="NavigationMenu",[uc,x1,ST]=y1(Fo),[kl,TT,AT]=y1(Fo),[cc,SA]=g1(Fo,[ST,AT]),[MT,xt]=cc(Fo),[kT,RT]=cc(Fo),FT=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=Wt(t,V=>p(V)),b=fT(c),g=d.useRef(0),y=d.useRef(0),$=d.useRef(0),[C,w]=d.useState(!0),[E="",P]=uT({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(BT,{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(bt.nav,Te({"aria-label":"Main","data-orientation":l,dir:b},u,{ref:h})))}),BT=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(MT,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:DT(s),baseId:v1(),dir:o,orientation:i,viewport:b,onViewportChange:g,indicatorTrack:C,onIndicatorTrackChange:w,onTriggerEnter:ft(u),onTriggerLeave:ft(f),onContentEnter:ft(p),onContentLeave:ft(h),onItemSelect:ft(l),onItemDismiss:ft(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(uc.Provider,{scope:t},d.createElement(kT,{scope:t,items:y},a)))},IT="NavigationMenuList",LT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=xt(IT,n),i=d.createElement(bt.ul,Te({"data-orientation":o.orientation},r,{ref:t}));return d.createElement(bt.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},d.createElement(uc.Slot,{scope:n},o.isRootMenu?d.createElement(P1,{asChild:!0},i):i))}),VT="NavigationMenuItem",[OT,w1]=cc(VT),NT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=v1(),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=Rl(s.current);g.length&&dc(b==="start"?g:g.reverse())}},[]),h=d.useCallback(()=>{if(s.current){const b=Rl(s.current);b.length&&(u.current=ZT(b))}},[]);return d.createElement(OT,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h},d.createElement(bt.li,Te({},o,{ref:t})))}),xp="NavigationMenuTrigger",KT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=xt(xp,e.__scopeNavigationMenu),a=w1(xp,e.__scopeNavigationMenu),s=d.useRef(null),l=Wt(s,a.triggerRef,t),c=T1(i.baseId,a.value),u=A1(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(uc.ItemSlot,{scope:n,value:a.value},d.createElement(S1,{asChild:!0},d.createElement(bt.button,Te({id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":fc(h),"aria-expanded":h,"aria-controls":u},o,{ref:l,onPointerEnter:Le(e.onPointerEnter,()=>{p.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:Le(e.onPointerMove,Xi(()=>{r||p.current||a.wasEscapeCloseRef.current||f.current||(i.onTriggerEnter(a.value),f.current=!0)})),onPointerLeave:Le(e.onPointerLeave,Xi(()=>{r||(i.onTriggerLeave(),f.current=!1)})),onClick:Le(e.onClick,()=>{i.onItemSelect(a.value),p.current=h}),onKeyDown:Le(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(PT,{"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})))}),wp="navigationMenu.linkSelect",jT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return d.createElement(S1,{asChild:!0},d.createElement(bt.a,Te({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:Le(e.onClick,a=>{const s=a.target,l=new CustomEvent(wp,{bubbles:!0,cancelable:!0});if(s.addEventListener(wp,c=>o==null?void 0:o(c),{once:!0}),Al(s,l),!l.defaultPrevented&&!a.metaKey){const c=new CustomEvent($i,{bubbles:!0,cancelable:!0});Al(s,c)}},{checkForDefaultPrevented:!1})})))}),C1="NavigationMenuIndicator",_T=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=xt(C1,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?bo.default.createPortal(d.createElement(Ro,{present:n||i},d.createElement(zT,Te({},r,{ref:t}))),o.indicatorTrack):null}),zT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=xt(C1,n),i=x1(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 Fl(a,p),Fl(o.indicatorTrack,p),l?d.createElement(bt.div,Te({"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}),po="NavigationMenuContent",UT=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=xt(po,e.__scopeNavigationMenu),i=w1(po,e.__scopeNavigationMenu),a=Wt(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(HT,Te({forceMount:n},l,{ref:a})):d.createElement(Ro,{present:n||s},d.createElement(D1,Te({"data-state":fc(s)},l,{ref:a,onPointerEnter:Le(e.onPointerEnter,o.onContentEnter),onPointerLeave:Le(e.onPointerLeave,Xi(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),HT=d.forwardRef((e,t)=>{const n=xt(po,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return dr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),dr(()=>()=>o(e.value),[e.value,o]),null}),$i="navigationMenu.rootContentDismiss",D1=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...c}=e,u=xt(po,n),f=d.useRef(null),p=Wt(f,t),h=T1(u.baseId,r),b=A1(u.baseId,r),g=x1(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($i,E),()=>w.removeEventListener($i,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(P1,{asChild:!0},d.createElement(xT,Te({id:b,"aria-labelledby":h,"data-motion":C,"data-orientation":u.orientation},c,{ref:p,onDismiss:()=>{var w;const E=new Event($i,{bubbles:!0,cancelable:!0});(w=f.current)===null||w===void 0||w.dispatchEvent(E)},onFocusOutside:Le(e.onFocusOutside,w=>{var E;l();const P=w.target;(E=u.rootNavigationMenu)!==null&&E!==void 0&&E.contains(P)&&w.preventDefault()}),onPointerDownOutside:Le(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:Le(e.onKeyDown,w=>{const E=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!E){const K=Rl(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(dc(A))w.preventDefault();else{var k;(k=i.current)===null||k===void 0||k.focus()}}}),onEscapeKeyDown:Le(e.onEscapeKeyDown,w=>{a.current=!0})})))}),E1="NavigationMenuViewport",GT=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!xt(E1,e.__scopeNavigationMenu).value;return d.createElement(Ro,{present:n||i},d.createElement(WT,Te({},r,{ref:t})))}),WT=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=xt(E1,n),a=Wt(t,i.onViewportChange),s=RT(po,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 Fl(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),d.createElement(bt.div,Te({"data-state":fc(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:Le(e.onPointerEnter,i.onContentEnter),onPointerLeave:Le(e.onPointerLeave,Xi(i.onContentLeave))}),Array.from(s.items).map(([$,{ref:C,forceMount:w,...E}])=>{const P=g===$;return d.createElement(Ro,{key:$,present:w||P},d.createElement(D1,Te({},E,{ref:lc(C,k=>{P&&k&&f(k)})})))}))}),YT="FocusGroup",P1=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=xt(YT,n);return d.createElement(kl.Provider,{scope:n},d.createElement(kl.Slot,{scope:n},d.createElement(bt.div,Te({dir:o.dir},r,{ref:t}))))}),Cp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],qT="FocusGroupItem",S1=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=TT(n),i=xt(qT,n);return d.createElement(kl.ItemSlot,{scope:n},d.createElement(bt.button,Te({},r,{ref:t,onKeyDown:Le(e.onKeyDown,a=>{if(["Home","End",...Cp].includes(a.key)){let l=o().map(f=>f.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),Cp.includes(a.key)){const f=l.indexOf(a.currentTarget);l=l.slice(f+1)}setTimeout(()=>dc(l)),a.preventDefault()}})})))});function Rl(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 dc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function ZT(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 Fl(e,t){const n=ft(t);dr(()=>{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 fc(e){return e?"open":"closed"}function T1(e,t){return`${e}-trigger-${t}`}function A1(e,t){return`${e}-content-${t}`}function Xi(e){return t=>t.pointerType==="mouse"?e(t):void 0}const XT=FT,JT=LT,As=NT,QT=KT,eA=jT,tA=_T,nA=UT,rA=GT,oA=z.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
+ `,iA=z.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
+ `,aA=z.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
+ `,sA=z.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
+ `,lA=z.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
+ `,uA=z.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
+ `,cA=z.keyframes`
1847
1847
  from {
1848
1848
  opacity: 0;
1849
1849
  }
1850
1850
  to {
1851
1851
  opacity: 1;
1852
1852
  }
1853
- `,fA=G.keyframes`
1853
+ `,dA=z.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
+ `,M1=z.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
+ `,fA=z.styled(XT)`
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
+ `,pA=z.styled(JT)`
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
+ `,Dp=z.styled(QT)`
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'] > ${M1} {
1905
1905
  transform: rotate(-180deg);
1906
1906
  }
1907
- `,Il=ge.default(tA)`
1907
+ `,Bl=z.styled(eA)`
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
+ `,Ep=z.styled(nA)`
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: ${iA};
1942
1942
  }
1943
1943
  &[data-motion='from-end'] {
1944
- animation-name: ${iA};
1944
+ animation-name: ${oA};
1945
1945
  }
1946
1946
  &[data-motion='to-start'] {
1947
- animation-name: ${lA};
1947
+ animation-name: ${sA};
1948
1948
  }
1949
1949
  &[data-motion='to-end'] {
1950
- animation-name: ${sA};
1950
+ animation-name: ${aA};
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
+ `,hA=z.styled(tA)`
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: ${cA} 200ms ease;
1968
1968
  }
1969
1969
 
1970
1970
  &[data-state='hidden'] {
1971
- animation: ${fA} 200ms ease;
1971
+ animation: ${dA} 200ms ease;
1972
1972
  }
1973
- `,mA=ge.default(oA)`
1973
+ `,bA=z.styled(rA)`
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: ${lA} 200ms ease;
1987
1987
  }
1988
1988
 
1989
1989
  &[data-state='closed'] {
1990
- animation: ${cA} 200ms ease;
1990
+ animation: ${uA} 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
+ `,Pp=z.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
+ `,mA=z.styled(wa)`
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
+ `,gA=z.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
+ `,vA=z.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
+ `,yA=z.styled(wa)`
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
+ `,$A=z.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
+ `,xA=z.styled.p`
2074
2074
  color: white;
2075
2075
  font-size: 14px;
2076
2076
  line-height: 1.3;
2077
- `,CA=ge.default.div`
2077
+ `,wA=z.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
+ `,CA=z.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 Il({className:e,...t}){return S.jsx(M1,{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"})})}Il.defaultProps={className:void 0};const Dt=d.forwardRef(({className:e,children:t,title:n,...r},o)=>S.jsx("li",{children:S.jsx(Bl,{asChild:!0,children:S.jsxs(mA,{className:`${e??""}`,...r,ref:o,children:[S.jsx(gA,{children:n}),S.jsx(vA,{children:t})]})})}));Dt.defaultProps={className:void 0,href:void 0,title:void 0};function DA(){return S.jsxs(fA,{children:[S.jsxs(pA,{children:[S.jsxs(As,{children:[S.jsxs(Dp,{children:["Learn ",S.jsx(Il,{"aria-hidden":!0})]}),S.jsx(Ep,{children:S.jsxs(Pp,{className:"one",children:[S.jsx("li",{style:{gridRow:"span 3"},children:S.jsx(Bl,{asChild:!0,children:S.jsxs(yA,{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($A,{children:"Radix Primitives"}),S.jsx(xA,{children:"Unstyled, accessible components for React."})]})})}),S.jsx(Dt,{href:"https://stitches.dev/",title:"Stitches",children:"CSS-in-JS with best-in-class developer experience."}),S.jsx(Dt,{href:"/colors",title:"Colors",children:"Beautiful, thought-out palettes with auto dark mode."}),S.jsx(Dt,{href:"https://icons.radix-ui.com/",title:"Icons",children:"A crisp set of 15x15 icons, balanced and consistent."})]})})]}),S.jsxs(As,{children:[S.jsxs(Dp,{children:["Overview ",S.jsx(Il,{"aria-hidden":!0})]}),S.jsx(Ep,{children:S.jsxs(Pp,{className:"two",children:[S.jsx(Dt,{title:"Introduction",href:"/primitives/docs/overview/introduction",children:"Build high-quality, accessible design systems and web apps."}),S.jsx(Dt,{title:"Getting started",href:"/primitives/docs/overview/getting-started",children:"A quick tutorial to get you up and running with Radix Primitives."}),S.jsx(Dt,{title:"Styling",href:"/primitives/docs/guides/styling",children:"Unstyled and compatible with any styling solution."}),S.jsx(Dt,{title:"Animation",href:"/primitives/docs/guides/animation",children:"Use CSS keyframes or any animation library of your choice."}),S.jsx(Dt,{title:"Accessibility",href:"/primitives/docs/overview/accessibility",children:"Tested in a range of browsers and assistive technologies."}),S.jsx(Dt,{title:"Releases",href:"/primitives/docs/overview/releases",children:"Radix Primitives releases and their changelogs."})]})})]}),S.jsx(As,{children:S.jsx(Bl,{href:"https://github.com/radix-ui",children:"Github"})}),S.jsx(hA,{children:S.jsx(CA,{})})]}),S.jsx(wA,{children:S.jsx(bA,{})})]})}exports.Avatar=I2;exports.AvatarGroup=V2;exports.Badge=oD;exports.BreadcrumbEllipsis=iD;exports.BreadcrumbItem=GP;exports.BreadcrumbLink=WP;exports.BreadcrumbSeparator=YP;exports.Breadcrumbs=qP;exports.Button=ZP;exports.Card=JP;exports.Checkbox=e9;exports.CircularEasing=PS;exports.CircularProgressbar=tS;exports.Collapsible=o9;exports.CollapsibleTrigger=r9;exports.CollapsibleTriggerStateContext=sc;exports.Container=s9;exports.ContextMenu=n1;exports.DateInput=r1;exports.Dialog=R9;exports.Divider=m9;exports.Drawer=l1;exports.Input=s1;exports.LinearProgressbar=lS;exports.Link=y9;exports.Meter=P9;exports.Modal=T9;exports.ModalOverlay=M9;exports.NavigationMenu=DA;exports.NumberInput=u1;exports.Option=$S;exports.PinInput=c1;exports.Pulse=d1;exports.Select=f1;exports.Slider=p1;exports.Switch=FS;exports.Tab=NS;exports.TabList=KS;exports.TabPanel=jS;exports.Tabs=OS;exports.TabsOrientationContext=Sa;exports.TimeInput=b1;exports.ToggleButton=qS;exports.Tooltip=nT;exports.defaultTheme=x;exports.mergeTheme=Vh;