@clicktap/ui 0.2.8 → 0.2.10
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/Breadcrumbs/styles.d.ts +4 -4
- package/Button/styles.d.ts +1 -1
- package/Card/styles.d.ts +2 -2
- package/Checkbox/styles.d.ts +3 -3
- package/Collapsible/styles.d.ts +3 -3
- package/Container/styles.d.ts +1 -1
- package/Container/types.d.ts +1 -1
- package/ContextMenu/styles.d.ts +1 -1
- package/DateInput/styles.d.ts +6 -6
- package/Dialog/styles.d.ts +2 -2
- package/Divider/styles.d.ts +1 -1
- package/Drawer/styles.d.ts +2 -2
- package/Input/styles.d.ts +5 -5
- package/Link/styles.d.ts +1 -1
- package/Loader/CircularEasing/styles.d.ts +5 -5
- package/Loader/Pulse/styles.d.ts +2 -2
- package/Meter/styles.d.ts +7 -7
- package/Modal/styles.d.ts +2 -2
- package/ModalOverlay/styles.d.ts +2 -2
- package/NavigationMenu/styles.d.ts +17 -17
- package/NumberInput/styles.d.ts +2 -2
- package/PinInput/styles.d.ts +7 -7
- package/Progressbar/CircularProgressbar/styles.d.ts +6 -6
- package/Progressbar/LinearProgressbar/styles.d.ts +6 -6
- package/Select/styles.d.ts +12 -12
- package/Slider/styles.d.ts +5 -5
- package/Switch/styles.d.ts +2 -2
- package/Tabs/styles.d.ts +7 -7
- package/TimeInput/styles.d.ts +6 -6
- package/ToggleButton/styles.d.ts +1 -1
- package/index.js +221 -221
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),d=require("react"),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
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),u=require("react"),_=require("styled-components"),Wt=require("react-dom");function T$(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Sn=T$(u);var A$=()=>S.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[S.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),S.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]});function M$(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=Sn.createContext(void 0);o.displayName=r;function i(){var a;const s=Sn.useContext(o);if(!s&&t){const l=new Error(n);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function k$(e){return{UNSAFE_getDOMNode(){return e.current}}}function As(e){const t=u.useRef(null);return u.useImperativeHandle(e,()=>t.current),t}var R$=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3);function Pp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Pp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function sr(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=Pp(n))&&(o&&(o+=" "),o+=r);return o}var jc={};function F$(e,t,...n){var r;const i=`[Next UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!jc[i]&&(jc[i]=!0,((r=process==null?void 0:process.env)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}function Sp(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}process.env.NODE_ENV;process.env.NODE_ENV;function B$(e){return typeof e=="function"}var Et=e=>e?"true":void 0;function I$(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function L$(e,t){if(e!=null){if(B$(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function V$(...e){return t=>{e.forEach(n=>L$(n,t))}}var O$=Object.create,Tp=Object.defineProperty,N$=Object.getOwnPropertyDescriptor,Ap=Object.getOwnPropertyNames,K$=Object.getPrototypeOf,j$=Object.prototype.hasOwnProperty,Il=(e,t)=>function(){return t||(0,e[Ap(e)[0]])((t={exports:{}}).exports,t),t.exports},_$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ap(t))!j$.call(e,o)&&o!==n&&Tp(e,o,{get:()=>t[o],enumerable:!(r=N$(t,o))||r.enumerable});return e},z$=(e,t,n)=>(n=e!=null?O$(K$(e)):{},_$(t||!e||!e.__esModule?Tp(n,"default",{value:e,enumerable:!0}):n,e)),U$=Il({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function h(D){return D===null||typeof D!="object"?null:(D=p&&D[p]||D["@@iterator"],typeof D=="function"?D:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function $(D,O,W){this.props=D,this.context=O,this.refs=y,this.updater=W||b}$.prototype.isReactComponent={},$.prototype.setState=function(D,O){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,O,"setState")},$.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=$.prototype;function w(D,O,W){this.props=D,this.context=O,this.refs=y,this.updater=W||b}var E=w.prototype=new C;E.constructor=w,g(E,$.prototype),E.isPureReactComponent=!0;var P=Array.isArray,k=Object.prototype.hasOwnProperty,N={current:null},v={key:!0,ref:!0,__self:!0,__source:!0};function L(D,O,W){var J,Q={},re=null,z=null;if(O!=null)for(J in O.ref!==void 0&&(z=O.ref),O.key!==void 0&&(re=""+O.key),O)k.call(O,J)&&!v.hasOwnProperty(J)&&(Q[J]=O[J]);var q=arguments.length-2;if(q===1)Q.children=W;else if(1<q){for(var te=Array(q),ae=0;ae<q;ae++)te[ae]=arguments[ae+2];Q.children=te}if(D&&D.defaultProps)for(J in q=D.defaultProps,q)Q[J]===void 0&&(Q[J]=q[J]);return{$$typeof:t,type:D,key:re,ref:z,props:Q,_owner:N.current}}function F(D,O){return{$$typeof:t,type:D.type,key:O,ref:D.ref,props:D.props,_owner:D._owner}}function A(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function B(D){var O={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(W){return O[W]})}var R=/\/+/g;function I(D,O){return typeof D=="object"&&D!==null&&D.key!=null?B(""+D.key):O.toString(36)}function K(D,O,W,J,Q){var re=typeof D;(re==="undefined"||re==="boolean")&&(D=null);var z=!1;if(D===null)z=!0;else switch(re){case"string":case"number":z=!0;break;case"object":switch(D.$$typeof){case t:case n:z=!0}}if(z)return z=D,Q=Q(z),D=J===""?"."+I(z,0):J,P(Q)?(W="",D!=null&&(W=D.replace(R,"$&/")+"/"),K(Q,O,W,"",function(ae){return ae})):Q!=null&&(A(Q)&&(Q=F(Q,W+(!Q.key||z&&z.key===Q.key?"":(""+Q.key).replace(R,"$&/")+"/")+D)),O.push(Q)),1;if(z=0,J=J===""?".":J+":",P(D))for(var q=0;q<D.length;q++){re=D[q];var te=J+I(re,q);z+=K(re,O,W,te,Q)}else if(te=h(D),typeof te=="function")for(D=te.call(D),q=0;!(re=D.next()).done;)re=re.value,te=J+I(re,q++),z+=K(re,O,W,te,Q);else if(re==="object")throw O=String(D),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.");return z}function V(D,O,W){if(D==null)return D;var J=[],Q=0;return K(D,J,"","",function(re){return O.call(W,re,Q++)}),J}function T(D){if(D._status===-1){var O=D._result;O=O(),O.then(function(W){(D._status===0||D._status===-1)&&(D._status=1,D._result=W)},function(W){(D._status===0||D._status===-1)&&(D._status=2,D._result=W)}),D._status===-1&&(D._status=0,D._result=O)}if(D._status===1)return D._result.default;throw D._result}var G={current:null},Y={transition:null},H={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:Y,ReactCurrentOwner:N};e.Children={map:V,forEach:function(D,O,W){V(D,function(){O.apply(this,arguments)},W)},count:function(D){var O=0;return V(D,function(){O++}),O},toArray:function(D){return V(D,function(O){return O})||[]},only:function(D){if(!A(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},e.Component=$,e.Fragment=r,e.Profiler=i,e.PureComponent=w,e.StrictMode=o,e.Suspense=d,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,e.cloneElement=function(D,O,W){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var J=g({},D.props),Q=D.key,re=D.ref,z=D._owner;if(O!=null){if(O.ref!==void 0&&(re=O.ref,z=N.current),O.key!==void 0&&(Q=""+O.key),D.type&&D.type.defaultProps)var q=D.type.defaultProps;for(te in O)k.call(O,te)&&!v.hasOwnProperty(te)&&(J[te]=O[te]===void 0&&q!==void 0?q[te]:O[te])}var te=arguments.length-2;if(te===1)J.children=W;else if(1<te){q=Array(te);for(var ae=0;ae<te;ae++)q[ae]=arguments[ae+2];J.children=q}return{$$typeof:t,type:D.type,key:Q,ref:re,props:J,_owner:z}},e.createContext=function(D){return D={$$typeof:s,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:a,_context:D},D.Consumer=D},e.createElement=L,e.createFactory=function(D){var O=L.bind(null,D);return O.type=D,O},e.createRef=function(){return{current:null}},e.forwardRef=function(D){return{$$typeof:l,render:D}},e.isValidElement=A,e.lazy=function(D){return{$$typeof:f,_payload:{_status:-1,_result:D},_init:T}},e.memo=function(D,O){return{$$typeof:c,type:D,compare:O===void 0?null:O}},e.startTransition=function(D){var O=Y.transition;Y.transition={};try{D()}finally{Y.transition=O}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(D,O){return G.current.useCallback(D,O)},e.useContext=function(D){return G.current.useContext(D)},e.useDebugValue=function(){},e.useDeferredValue=function(D){return G.current.useDeferredValue(D)},e.useEffect=function(D,O){return G.current.useEffect(D,O)},e.useId=function(){return G.current.useId()},e.useImperativeHandle=function(D,O,W){return G.current.useImperativeHandle(D,O,W)},e.useInsertionEffect=function(D,O){return G.current.useInsertionEffect(D,O)},e.useLayoutEffect=function(D,O){return G.current.useLayoutEffect(D,O)},e.useMemo=function(D,O){return G.current.useMemo(D,O)},e.useReducer=function(D,O,W){return G.current.useReducer(D,O,W)},e.useRef=function(D){return G.current.useRef(D)},e.useState=function(D){return G.current.useState(D)},e.useSyncExternalStore=function(D,O,W){return G.current.useSyncExternalStore(D,O,W)},e.useTransition=function(){return G.current.useTransition()},e.version="18.2.0"}}),H$=Il({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=Symbol.iterator,$="@@iterator";function C(m){if(m===null||typeof m!="object")return null;var M=y&&m[y]||m[$];return typeof M=="function"?M:null}var w={current:null},E={transition:null},P={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},k={current:null},N={},v=null;function L(m){v=m}N.setExtraStackFrame=function(m){v=m},N.getCurrentStack=null,N.getStackAddendum=function(){var m="";v&&(m+=v);var M=N.getCurrentStack;return M&&(m+=M()||""),m};var F=!1,A=!1,B=!1,R=!1,I=!1,K={ReactCurrentDispatcher:w,ReactCurrentBatchConfig:E,ReactCurrentOwner:k};K.ReactDebugCurrentFrame=N,K.ReactCurrentActQueue=P;function V(m){{for(var M=arguments.length,j=new Array(M>1?M-1:0),U=1;U<M;U++)j[U-1]=arguments[U];G("warn",m,j)}}function T(m){{for(var M=arguments.length,j=new Array(M>1?M-1:0),U=1;U<M;U++)j[U-1]=arguments[U];G("error",m,j)}}function G(m,M,j){{var U=K.ReactDebugCurrentFrame,Z=U.getStackAddendum();Z!==""&&(M+="%s",j=j.concat([Z]));var oe=j.map(function(ee){return String(ee)});oe.unshift("Warning: "+M),Function.prototype.apply.call(console[m],console,oe)}}var Y={};function H(m,M){{var j=m.constructor,U=j&&(j.displayName||j.name)||"ReactClass",Z=U+"."+M;if(Y[Z])return;T("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",M,U),Y[Z]=!0}}var D={isMounted:function(m){return!1},enqueueForceUpdate:function(m,M,j){H(m,"forceUpdate")},enqueueReplaceState:function(m,M,j,U){H(m,"replaceState")},enqueueSetState:function(m,M,j,U){H(m,"setState")}},O=Object.assign,W={};Object.freeze(W);function J(m,M,j){this.props=m,this.context=M,this.refs=W,this.updater=j||D}J.prototype.isReactComponent={},J.prototype.setState=function(m,M){if(typeof m!="object"&&typeof m!="function"&&m!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,m,M,"setState")},J.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};{var Q={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},re=function(m,M){Object.defineProperty(J.prototype,m,{get:function(){V("%s(...) is deprecated in plain JavaScript React classes. %s",M[0],M[1])}})};for(var z in Q)Q.hasOwnProperty(z)&&re(z,Q[z])}function q(){}q.prototype=J.prototype;function te(m,M,j){this.props=m,this.context=M,this.refs=W,this.updater=j||D}var ae=te.prototype=new q;ae.constructor=te,O(ae,J.prototype),ae.isPureReactComponent=!0;function se(){var m={current:null};return Object.seal(m),m}var Be=Array.isArray;function Ue(m){return Be(m)}function xt(m){{var M=typeof Symbol=="function"&&Symbol.toStringTag,j=M&&m[Symbol.toStringTag]||m.constructor.name||"Object";return j}}function Kn(m){try{return Zt(m),!1}catch{return!0}}function Zt(m){return""+m}function Xt(m){if(Kn(m))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(m)),Zt(m)}function Dr(m,M,j){var U=m.displayName;if(U)return U;var Z=M.displayName||M.name||"";return Z!==""?j+"("+Z+")":j}function ue(m){return m.displayName||"Context"}function fe(m){if(m==null)return null;if(typeof m.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case i:return"Fragment";case o:return"Portal";case s:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case d:var M=m;return ue(M)+".Consumer";case l:var j=m;return ue(j._context)+".Provider";case c:return Dr(m,m.render,"ForwardRef");case h:var U=m.displayName||null;return U!==null?U:fe(m.type)||"Memo";case b:{var Z=m,oe=Z._payload,ee=Z._init;try{return fe(ee(oe))}catch{return null}}}return null}var $e=Object.prototype.hasOwnProperty,Fo={key:!0,ref:!0,__self:!0,__source:!0},Er,Pr,pn;pn={};function wt(m){if($e.call(m,"ref")){var M=Object.getOwnPropertyDescriptor(m,"ref").get;if(M&&M.isReactWarning)return!1}return m.ref!==void 0}function Sr(m){if($e.call(m,"key")){var M=Object.getOwnPropertyDescriptor(m,"key").get;if(M&&M.isReactWarning)return!1}return m.key!==void 0}function Bo(m,M){var j=function(){Er||(Er=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};j.isReactWarning=!0,Object.defineProperty(m,"key",{get:j,configurable:!0})}function Sa(m,M){var j=function(){Pr||(Pr=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};j.isReactWarning=!0,Object.defineProperty(m,"ref",{get:j,configurable:!0})}function Ta(m){if(typeof m.ref=="string"&&k.current&&m.__self&&k.current.stateNode!==m.__self){var M=fe(k.current.type);pn[M]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M,m.ref),pn[M]=!0)}}var Ne=function(m,M,j,U,Z,oe,ee){var ie={$$typeof:r,type:m,key:M,ref:j,props:ee,_owner:oe};return ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function Tr(m,M,j){var U,Z={},oe=null,ee=null,ie=null,pe=null;if(M!=null){wt(M)&&(ee=M.ref,Ta(M)),Sr(M)&&(Xt(M.key),oe=""+M.key),ie=M.__self===void 0?null:M.__self,pe=M.__source===void 0?null:M.__source;for(U in M)$e.call(M,U)&&!Fo.hasOwnProperty(U)&&(Z[U]=M[U])}var ge=arguments.length-2;if(ge===1)Z.children=j;else if(ge>1){for(var we=Array(ge),Ce=0;Ce<ge;Ce++)we[Ce]=arguments[Ce+2];Object.freeze&&Object.freeze(we),Z.children=we}if(m&&m.defaultProps){var De=m.defaultProps;for(U in De)Z[U]===void 0&&(Z[U]=De[U])}if(oe||ee){var Me=typeof m=="function"?m.displayName||m.name||"Unknown":m;oe&&Bo(Z,Me),ee&&Sa(Z,Me)}return Ne(m,oe,ee,ie,pe,k.current,Z)}function M1(m,M){var j=Ne(m.type,M,m.ref,m._self,m._source,m._owner,m.props);return j}function k1(m,M,j){if(m==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+m+".");var U,Z=O({},m.props),oe=m.key,ee=m.ref,ie=m._self,pe=m._source,ge=m._owner;if(M!=null){wt(M)&&(ee=M.ref,ge=k.current),Sr(M)&&(Xt(M.key),oe=""+M.key);var we;m.type&&m.type.defaultProps&&(we=m.type.defaultProps);for(U in M)$e.call(M,U)&&!Fo.hasOwnProperty(U)&&(M[U]===void 0&&we!==void 0?Z[U]=we[U]:Z[U]=M[U])}var Ce=arguments.length-2;if(Ce===1)Z.children=j;else if(Ce>1){for(var De=Array(Ce),Me=0;Me<Ce;Me++)De[Me]=arguments[Me+2];Z.children=De}return Ne(m.type,oe,ee,ie,pe,ge,Z)}function jn(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}var fc=".",R1=":";function F1(m){var M=/[=:]/g,j={"=":"=0",":":"=2"},U=m.replace(M,function(Z){return j[Z]});return"$"+U}var pc=!1,B1=/\/+/g;function hc(m){return m.replace(B1,"$&/")}function Aa(m,M){return typeof m=="object"&&m!==null&&m.key!=null?(Xt(m.key),F1(""+m.key)):M.toString(36)}function Io(m,M,j,U,Z){var oe=typeof m;(oe==="undefined"||oe==="boolean")&&(m=null);var ee=!1;if(m===null)ee=!0;else switch(oe){case"string":case"number":ee=!0;break;case"object":switch(m.$$typeof){case r:case o:ee=!0}}if(ee){var ie=m,pe=Z(ie),ge=U===""?fc+Aa(ie,0):U;if(Ue(pe)){var we="";ge!=null&&(we=hc(ge)+"/"),Io(pe,M,we,"",function(S$){return S$})}else pe!=null&&(jn(pe)&&(pe.key&&(!ie||ie.key!==pe.key)&&Xt(pe.key),pe=M1(pe,j+(pe.key&&(!ie||ie.key!==pe.key)?hc(""+pe.key)+"/":"")+ge)),M.push(pe));return 1}var Ce,De,Me=0,Ke=U===""?fc:U+R1;if(Ue(m))for(var zo=0;zo<m.length;zo++)Ce=m[zo],De=Ke+Aa(Ce,zo),Me+=Io(Ce,M,j,De,Z);else{var Oa=C(m);if(typeof Oa=="function"){var Oc=m;Oa===Oc.entries&&(pc||V("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pc=!0);for(var E$=Oa.call(Oc),Nc,P$=0;!(Nc=E$.next()).done;)Ce=Nc.value,De=Ke+Aa(Ce,P$++),Me+=Io(Ce,M,j,De,Z)}else if(oe==="object"){var Kc=String(m);throw new Error("Objects are not valid as a React child (found: "+(Kc==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":Kc)+"). If you meant to render a collection of children, use an array instead.")}}return Me}function Lo(m,M,j){if(m==null)return m;var U=[],Z=0;return Io(m,U,"","",function(oe){return M.call(j,oe,Z++)}),U}function I1(m){var M=0;return Lo(m,function(){M++}),M}function L1(m,M,j){Lo(m,function(){M.apply(this,arguments)},j)}function V1(m){return Lo(m,function(M){return M})||[]}function O1(m){if(!jn(m))throw new Error("React.Children.only expected to receive a single React element child.");return m}function N1(m){var M={$$typeof:d,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};M.Provider={$$typeof:l,_context:M};var j=!1,U=!1,Z=!1;{var oe={$$typeof:d,_context:M};Object.defineProperties(oe,{Provider:{get:function(){return U||(U=!0,T("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),M.Provider},set:function(ee){M.Provider=ee}},_currentValue:{get:function(){return M._currentValue},set:function(ee){M._currentValue=ee}},_currentValue2:{get:function(){return M._currentValue2},set:function(ee){M._currentValue2=ee}},_threadCount:{get:function(){return M._threadCount},set:function(ee){M._threadCount=ee}},Consumer:{get:function(){return j||(j=!0,T("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),M.Consumer}},displayName:{get:function(){return M.displayName},set:function(ee){Z||(V("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ee),Z=!0)}}}),M.Consumer=oe}return M._currentRenderer=null,M._currentRenderer2=null,M}var Ar=-1,Ma=0,bc=1,K1=2;function j1(m){if(m._status===Ar){var M=m._result,j=M();if(j.then(function(oe){if(m._status===Ma||m._status===Ar){var ee=m;ee._status=bc,ee._result=oe}},function(oe){if(m._status===Ma||m._status===Ar){var ee=m;ee._status=K1,ee._result=oe}}),m._status===Ar){var U=m;U._status=Ma,U._result=j}}if(m._status===bc){var Z=m._result;return Z===void 0&&T(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
5
|
|
|
6
|
-
Did you accidentally put curly braces around the import?`,
|
|
6
|
+
Did you accidentally put curly braces around the import?`,Z),"default"in Z||T(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,Z),Z.default}else throw m._result}function _1(m){var M={_status:Ar,_result:m},j={$$typeof:b,_payload:M,_init:j1};{var U,Z;Object.defineProperties(j,{defaultProps:{configurable:!0,get:function(){return U},set:function(oe){T("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),U=oe,Object.defineProperty(j,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Z},set:function(oe){T("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Z=oe,Object.defineProperty(j,"propTypes",{enumerable:!0})}}})}return j}function z1(m){m!=null&&m.$$typeof===h?T("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof m!="function"?T("forwardRef requires a render function but was given %s.",m===null?"null":typeof m):m.length!==0&&m.length!==2&&T("forwardRef render functions accept exactly two parameters: props and ref. %s",m.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),m!=null&&(m.defaultProps!=null||m.propTypes!=null)&&T("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var M={$$typeof:c,render:m};{var j;Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return j},set:function(U){j=U,!m.name&&!m.displayName&&(m.displayName=U)}})}return M}var mc;mc=Symbol.for("react.module.reference");function gc(m){return!!(typeof m=="string"||typeof m=="function"||m===i||m===s||I||m===a||m===f||m===p||R||m===g||F||A||B||typeof m=="object"&&m!==null&&(m.$$typeof===b||m.$$typeof===h||m.$$typeof===l||m.$$typeof===d||m.$$typeof===c||m.$$typeof===mc||m.getModuleId!==void 0))}function U1(m,M){gc(m)||T("memo: The first argument must be a component. Instead received: %s",m===null?"null":typeof m);var j={$$typeof:h,type:m,compare:M===void 0?null:M};{var U;Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:function(){return U},set:function(Z){U=Z,!m.name&&!m.displayName&&(m.displayName=Z)}})}return j}function qe(){var m=w.current;return m===null&&T(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}function
|
|
14
|
-
`+
|
|
15
|
-
`),
|
|
16
|
-
`),
|
|
17
|
-
`+
|
|
13
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}function H1(m){var M=qe();if(m._context!==void 0){var j=m._context;j.Consumer===m?T("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):j.Provider===m&&T("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return M.useContext(m)}function G1(m){var M=qe();return M.useState(m)}function W1(m,M,j){var U=qe();return U.useReducer(m,M,j)}function Y1(m){var M=qe();return M.useRef(m)}function q1(m,M){var j=qe();return j.useEffect(m,M)}function Z1(m,M){var j=qe();return j.useInsertionEffect(m,M)}function X1(m,M){var j=qe();return j.useLayoutEffect(m,M)}function J1(m,M){var j=qe();return j.useCallback(m,M)}function Q1(m,M){var j=qe();return j.useMemo(m,M)}function e$(m,M,j){var U=qe();return U.useImperativeHandle(m,M,j)}function t$(m,M){{var j=qe();return j.useDebugValue(m,M)}}function n$(){var m=qe();return m.useTransition()}function r$(m){var M=qe();return M.useDeferredValue(m)}function o$(){var m=qe();return m.useId()}function i$(m,M,j){var U=qe();return U.useSyncExternalStore(m,M,j)}var Mr=0,vc,yc,$c,xc,wc,Cc,Dc;function Ec(){}Ec.__reactDisabledLog=!0;function a$(){{if(Mr===0){vc=console.log,yc=console.info,$c=console.warn,xc=console.error,wc=console.group,Cc=console.groupCollapsed,Dc=console.groupEnd;var m={configurable:!0,enumerable:!0,value:Ec,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Mr++}}function s$(){{if(Mr--,Mr===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},m,{value:vc}),info:O({},m,{value:yc}),warn:O({},m,{value:$c}),error:O({},m,{value:xc}),group:O({},m,{value:wc}),groupCollapsed:O({},m,{value:Cc}),groupEnd:O({},m,{value:Dc})})}Mr<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ka=K.ReactCurrentDispatcher,Ra;function Vo(m,M,j){{if(Ra===void 0)try{throw Error()}catch(Z){var U=Z.stack.trim().match(/\n( *(at )?)/);Ra=U&&U[1]||""}return`
|
|
14
|
+
`+Ra+m}}var Fa=!1,Oo;{var l$=typeof WeakMap=="function"?WeakMap:Map;Oo=new l$}function Pc(m,M){if(!m||Fa)return"";{var j=Oo.get(m);if(j!==void 0)return j}var U;Fa=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=ka.current,ka.current=null,a$();try{if(M){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(Ke){U=Ke}Reflect.construct(m,[],ee)}else{try{ee.call()}catch(Ke){U=Ke}m.call(ee.prototype)}}else{try{throw Error()}catch(Ke){U=Ke}m()}}catch(Ke){if(Ke&&U&&typeof Ke.stack=="string"){for(var ie=Ke.stack.split(`
|
|
15
|
+
`),pe=U.stack.split(`
|
|
16
|
+
`),ge=ie.length-1,we=pe.length-1;ge>=1&&we>=0&&ie[ge]!==pe[we];)we--;for(;ge>=1&&we>=0;ge--,we--)if(ie[ge]!==pe[we]){if(ge!==1||we!==1)do if(ge--,we--,we<0||ie[ge]!==pe[we]){var Ce=`
|
|
17
|
+
`+ie[ge].replace(" at new "," at ");return m.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",m.displayName)),typeof m=="function"&&Oo.set(m,Ce),Ce}while(ge>=1&&we>=0);break}}}finally{Fa=!1,ka.current=oe,s$(),Error.prepareStackTrace=Z}var De=m?m.displayName||m.name:"",Me=De?Vo(De):"";return typeof m=="function"&&Oo.set(m,Me),Me}function u$(m,M,j){return Pc(m,!1)}function c$(m){var M=m.prototype;return!!(M&&M.isReactComponent)}function No(m,M,j){if(m==null)return"";if(typeof m=="function")return Pc(m,c$(m));if(typeof m=="string")return Vo(m);switch(m){case f:return Vo("Suspense");case p:return Vo("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case c:return u$(m.render);case h:return No(m.type,M,j);case b:{var U=m,Z=U._payload,oe=U._init;try{return No(oe(Z),M,j)}catch{}}}return""}var Sc={},Tc=K.ReactDebugCurrentFrame;function Ko(m){if(m){var M=m._owner,j=No(m.type,m._source,M?M.type:null);Tc.setExtraStackFrame(j)}else Tc.setExtraStackFrame(null)}function d$(m,M,j,U,Z){{var oe=Function.call.bind($e);for(var ee in m)if(oe(m,ee)){var ie=void 0;try{if(typeof m[ee]!="function"){var pe=Error((U||"React class")+": "+j+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw pe.name="Invariant Violation",pe}ie=m[ee](M,ee,U,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){ie=ge}ie&&!(ie instanceof Error)&&(Ko(Z),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",U||"React class",j,ee,typeof ie),Ko(null)),ie instanceof Error&&!(ie.message in Sc)&&(Sc[ie.message]=!0,Ko(Z),T("Failed %s type: %s",j,ie.message),Ko(null))}}}function _n(m){if(m){var M=m._owner,j=No(m.type,m._source,M?M.type:null);L(j)}else L(null)}var Ba;Ba=!1;function Ac(){if(k.current){var m=fe(k.current.type);if(m)return`
|
|
18
18
|
|
|
19
|
-
Check the render method of \``+m+"`."}return""}function
|
|
19
|
+
Check the render method of \``+m+"`."}return""}function f$(m){if(m!==void 0){var M=m.fileName.replace(/^.*[\\\/]/,""),j=m.lineNumber;return`
|
|
20
20
|
|
|
21
|
-
Check your code at `+M+":"+
|
|
21
|
+
Check your code at `+M+":"+j+"."}return""}function p$(m){return m!=null?f$(m.__source):""}var Mc={};function h$(m){var M=Ac();if(!M){var j=typeof m=="string"?m:m.displayName||m.name;j&&(M=`
|
|
22
22
|
|
|
23
|
-
Check the top-level render call using <`+
|
|
23
|
+
Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(!m._store||m._store.validated||m.key!=null)){m._store.validated=!0;var j=h$(M);if(!Mc[j]){Mc[j]=!0;var U="";m&&m._owner&&m._owner!==k.current&&(U=" It was passed a child from "+fe(m._owner.type)+"."),_n(m),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,U),_n(null)}}}function Rc(m,M){if(typeof m=="object"){if(Ue(m))for(var j=0;j<m.length;j++){var U=m[j];jn(U)&&kc(U,M)}else if(jn(m))m._store&&(m._store.validated=!0);else if(m){var Z=C(m);if(typeof Z=="function"&&Z!==m.entries)for(var oe=Z.call(m),ee;!(ee=oe.next()).done;)jn(ee.value)&&kc(ee.value,M)}}}function Fc(m){{var M=m.type;if(M==null||typeof M=="string")return;var j;if(typeof M=="function")j=M.propTypes;else if(typeof M=="object"&&(M.$$typeof===c||M.$$typeof===h))j=M.propTypes;else return;if(j){var U=fe(M);d$(j,m.props,"prop",U,m)}else if(M.PropTypes!==void 0&&!Ba){Ba=!0;var Z=fe(M);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Z||"Unknown")}typeof M.getDefaultProps=="function"&&!M.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function b$(m){{for(var M=Object.keys(m.props),j=0;j<M.length;j++){var U=M[j];if(U!=="children"&&U!=="key"){_n(m),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",U),_n(null);break}}m.ref!==null&&(_n(m),T("Invalid attribute `ref` supplied to `React.Fragment`."),_n(null))}}function Bc(m,M,j){var U=gc(m);if(!U){var Z="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(Z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var oe=p$(M);oe?Z+=oe:Z+=Ac();var ee;m===null?ee="null":Ue(m)?ee="array":m!==void 0&&m.$$typeof===r?(ee="<"+(fe(m.type)||"Unknown")+" />",Z=" Did you accidentally export a JSX literal instead of a component?"):ee=typeof m,T("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ee,Z)}var ie=Tr.apply(this,arguments);if(ie==null)return ie;if(U)for(var pe=2;pe<arguments.length;pe++)Rc(arguments[pe],m);return m===i?b$(ie):Fc(ie),ie}var Ic=!1;function m$(m){var M=Bc.bind(null,m);return M.type=m,Ic||(Ic=!0,V("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(M,"type",{enumerable:!1,get:function(){return V("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:m}),m}}),M}function g$(m,M,j){for(var U=k1.apply(this,arguments),Z=2;Z<arguments.length;Z++)Rc(arguments[Z],U.type);return Fc(U),U}function v$(m,M){var j=E.transition;E.transition={};var U=E.transition;E.transition._updatedFibers=new Set;try{m()}finally{if(E.transition=j,j===null&&U._updatedFibers){var Z=U._updatedFibers.size;Z>10&&V("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),U._updatedFibers.clear()}}}var Lc=!1,jo=null;function y$(m){if(jo===null)try{var M=("require"+Math.random()).slice(0,7),j=t&&t[M];jo=j.call(t,"timers").setImmediate}catch{jo=function(Z){Lc===!1&&(Lc=!0,typeof MessageChannel>"u"&&T("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var oe=new MessageChannel;oe.port1.onmessage=Z,oe.port2.postMessage(void 0)}}return jo(m)}var zn=0,Vc=!1;function $$(m){{var M=zn;zn++,P.current===null&&(P.current=[]);var j=P.isBatchingLegacy,U;try{if(P.isBatchingLegacy=!0,U=m(),!j&&P.didScheduleLegacyUpdate){var Z=P.current;Z!==null&&(P.didScheduleLegacyUpdate=!1,Va(Z))}}catch(De){throw _o(M),De}finally{P.isBatchingLegacy=j}if(U!==null&&typeof U=="object"&&typeof U.then=="function"){var oe=U,ee=!1,ie={then:function(De,Me){ee=!0,oe.then(function(Ke){_o(M),zn===0?Ia(Ke,De,Me):De(Ke)},function(Ke){_o(M),Me(Ke)})}};return!Vc&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ee||(Vc=!0,T("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),ie}else{var pe=U;if(_o(M),zn===0){var ge=P.current;ge!==null&&(Va(ge),P.current=null);var we={then:function(De,Me){P.current===null?(P.current=[],Ia(pe,De,Me)):De(pe)}};return we}else{var Ce={then:function(De,Me){De(pe)}};return Ce}}}}function _o(m){m!==zn-1&&T("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),zn=m}function Ia(m,M,j){{var U=P.current;if(U!==null)try{Va(U),y$(function(){U.length===0?(P.current=null,M(m)):Ia(m,M,j)})}catch(Z){j(Z)}else M(m)}}var La=!1;function Va(m){if(!La){La=!0;var M=0;try{for(;M<m.length;M++){var j=m[M];do j=j(!0);while(j!==null)}m.length=0}catch(U){throw m=m.slice(M+1),U}finally{La=!1}}}var x$=Bc,w$=g$,C$=m$,D$={map:Lo,forEach:L1,count:I1,toArray:V1,only:O1};e.Children=D$,e.Component=J,e.Fragment=i,e.Profiler=s,e.PureComponent=te,e.StrictMode=a,e.Suspense=f,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,e.cloneElement=w$,e.createContext=N1,e.createElement=x$,e.createFactory=C$,e.createRef=se,e.forwardRef=z1,e.isValidElement=jn,e.lazy=_1,e.memo=U1,e.startTransition=v$,e.unstable_act=$$,e.useCallback=J1,e.useContext=H1,e.useDebugValue=t$,e.useDeferredValue=r$,e.useEffect=q1,e.useId=o$,e.useImperativeHandle=e$,e.useInsertionEffect=Z1,e.useLayoutEffect=X1,e.useMemo=Q1,e.useReducer=W1,e.useRef=Y1,e.useState=G1,e.useSyncExternalStore=i$,e.useTransition=n$,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),G$=Il({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){process.env.NODE_ENV==="production"?t.exports=U$():t.exports=H$()}});/**
|
|
24
24
|
* @license React
|
|
25
25
|
* react.development.js
|
|
26
26
|
*
|
|
@@ -36,7 +36,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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 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`
|
|
39
|
+
*/var _c=z$(G$());function W$(e){return _c.Children.toArray(e).filter(t=>(0,_c.isValidElement)(t))}var[Y$,Mp]=M$({name:"AvatarGroupContext",strict:!1}),q$={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},Z$={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},X$={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},J$={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},Q$={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},e3={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},t3={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},de={solid:q$,shadow:Z$,bordered:X$,flat:J$,faded:Q$,light:e3,ghost:t3},zc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tt=e=>!e||typeof e!="object"||Object.keys(e).length===0,n3=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function kp(e,t){e.forEach(function(n){Array.isArray(n)?kp(n,t):t.push(n)})}function Rp(e){let t=[];return kp(e,t),t}var Fp=(...e)=>Rp(e).filter(Boolean),Bp=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let a=e[i],s=t[i];typeof a=="object"&&typeof s=="object"?n[i]=Bp(a,s):Array.isArray(a)||Array.isArray(s)?n[i]=Fp(s,a):n[i]=s+" "+a}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},Uc=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function r3(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Ip(t))&&(r&&(r+=" "),r+=n);return r}function Ip(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Ip(e[r]))&&(n&&(n+=" "),n+=t);return n}var Ll="-";function o3(e){var t=a3(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(s){var l=s.split(Ll);return l[0]===""&&l.length!==1&&l.shift(),Lp(l,t)||i3(s)}function a(s,l){var d=n[s]||[];return l&&o[s]?[].concat(d,o[s]):d}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Lp(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Lp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(Ll);return(a=t.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var Hc=/^\[(.+)\]$/;function i3(e){if(Hc.test(e)){var t=Hc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function a3(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=l3(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],s=i[1];Ms(s,r,a,t)}),r}function Ms(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:Gc(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(s3(o)){Ms(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(a){var s=a[0],l=a[1];Ms(l,Gc(t,s),n,r)})})}function Gc(e,t){var n=e;return t.split(Ll).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function s3(e){return e.isThemeGetter}function l3(e,t){return t?e.map(function(n){var r=n[0],o=n[1],i=o.map(function(a){return typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(s){var l=s[0],d=s[1];return[t+l,d]})):a});return[r,i]}):e}function u3(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(a){var s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set:function(a,s){n.has(a)?n.set(a,s):o(a,s)}}}var Vp="!";function c3(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(a){for(var s=[],l=0,d=0,c,f=0;f<a.length;f++){var p=a[f];if(l===0){if(p===r&&(n||a.slice(f,f+o)===t)){s.push(a.slice(d,f)),d=f+o;continue}if(p==="/"){c=f;continue}}p==="["?l++:p==="]"&&l--}var h=s.length===0?a:a.substring(d),b=h.startsWith(Vp),g=b?h.substring(1):h,y=c&&c>d?c-d:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:y}}}function d3(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function f3(e){return{cache:u3(e.cacheSize),splitModifiers:c3(e),...o3(e)}}var p3=/\s+/;function h3(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(p3).map(function(a){var s=n(a),l=s.modifiers,d=s.hasImportantModifier,c=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?c.substring(0,f):c),h=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:a};if(p=r(c),!p)return{isTailwindClass:!1,originalClassName:a};h=!1}var b=d3(l).join(":"),g=d?b+Vp:b;return{isTailwindClass:!0,modifierId:g,classGroupId:p,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,d=a.hasPostfixModifier,c=s+l;return i.has(c)?!1:(i.add(c),o(l,d).forEach(function(f){return i.add(s+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function ks(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=s;function s(d){var c=t[0],f=t.slice(1),p=f.reduce(function(h,b){return b(h)},c());return r=f3(p),o=r.cache.get,i=r.cache.set,a=l,l(d)}function l(d){var c=o(d);if(c)return c;var f=h3(d,r);return i(d,f),f}return function(){return a(r3.apply(null,arguments))}}function xe(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Op=/^\[(?:([a-z-]+):)?(.+)\]$/i,b3=/^\d+\/\d+$/,m3=new Set(["px","full","screen"]),g3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,y3=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function gt(e){return wn(e)||m3.has(e)||b3.test(e)||Rs(e)}function Rs(e){return Bn(e,"length",E3)}function $3(e){return Bn(e,"size",Np)}function x3(e){return Bn(e,"position",Np)}function w3(e){return Bn(e,"url",P3)}function Uo(e){return Bn(e,"number",wn)}function wn(e){return!Number.isNaN(Number(e))}function C3(e){return e.endsWith("%")&&wn(e.slice(0,-1))}function kr(e){return Wc(e)||Bn(e,"number",Wc)}function ce(e){return Op.test(e)}function Rr(){return!0}function Jt(e){return g3.test(e)}function D3(e){return Bn(e,"",S3)}function Bn(e,t,n){var r=Op.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function E3(e){return v3.test(e)}function Np(){return!1}function P3(e){return e.startsWith("url(")}function Wc(e){return Number.isInteger(Number(e))}function S3(e){return y3.test(e)}function Fs(){var e=xe("colors"),t=xe("spacing"),n=xe("blur"),r=xe("brightness"),o=xe("borderColor"),i=xe("borderRadius"),a=xe("borderSpacing"),s=xe("borderWidth"),l=xe("contrast"),d=xe("grayscale"),c=xe("hueRotate"),f=xe("invert"),p=xe("gap"),h=xe("gradientColorStops"),b=xe("gradientColorStopPositions"),g=xe("inset"),y=xe("margin"),$=xe("opacity"),C=xe("padding"),w=xe("saturate"),E=xe("scale"),P=xe("sepia"),k=xe("skew"),N=xe("space"),v=xe("translate"),L=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},A=function(){return["auto",ce,t]},B=function(){return[ce,t]},R=function(){return["",gt]},I=function(){return["auto",wn,ce]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},V=function(){return["solid","dashed","dotted","double","none"]},T=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},G=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",ce]},H=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[wn,Uo]},O=function(){return[wn,ce]};return{cacheSize:500,theme:{colors:[Rr],spacing:[gt],blur:["none","",Jt,ce],brightness:D(),borderColor:[e],borderRadius:["none","","full",Jt,ce],borderSpacing:B(),borderWidth:R(),contrast:D(),grayscale:Y(),hueRotate:O(),invert:Y(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[C3,Rs],inset:A(),margin:A(),opacity:D(),padding:B(),saturate:D(),scale:D(),sepia:Y(),skew:O(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(K(),[ce])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",kr]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",kr]}],"grid-cols":[{"grid-cols":[Rr]}],"col-start-end":[{col:["auto",{span:["full",kr]},ce]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Rr]}],"row-start-end":[{row:["auto",{span:[kr]},ce]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(G())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(G(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(G(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ce,t]}],"min-w":[{"min-w":["min","max","fit",ce,gt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Jt]},Jt,ce]}],h:[{h:[ce,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ce,gt]}],"max-h":[{"max-h":[ce,t,"min","max","fit"]}],"font-size":[{text:["base",Jt,Rs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Uo]}],"font-family":[{font:[Rr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ce]}],"line-clamp":[{"line-clamp":["none",wn,Uo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,gt]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(V(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",gt]}],"underline-offset":[{"underline-offset":["auto",ce,gt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(K(),[x3])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},w3]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[].concat(V(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:V()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(V())}],"outline-offset":[{"outline-offset":[ce,gt]}],"outline-w":[{outline:[gt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[gt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,D3]}],"shadow-color":[{shadow:[Rr]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":T()}],"bg-blend":[{"bg-blend":T()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jt,ce]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ce]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[kr,ce]}],"translate-x":[{"translate-x":[v]}],"translate-y":[{"translate-y":[v]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gt,Uo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function T3(e,t){for(var n in t)Kp(e,n,t[n]);return e}var A3=Object.prototype.hasOwnProperty,M3=new Set(["string","number","boolean"]);function Kp(e,t,n){if(!A3.call(e,t)||M3.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var r in n)Kp(e[t],r,n[r])}}function k3(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?ks.apply(void 0,[Fs,e].concat(n)):ks.apply(void 0,[function(){return T3(Fs(),e)}].concat(n))}var R3=ks(Fs),F3={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},jp=e=>e||void 0,eo=(...e)=>jp(Rp(e).filter(Boolean).join(" ")),Na=null,$i={},Bs=!1,Fr=(...e)=>t=>t.twMerge?((!Na||Bs)&&(Bs=!1,Na=tt($i)?R3:k3($i)),jp(Na(eo(e)))):eo(e),Yc=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=eo(e[n],t[n]):e[n]=t[n];return e},B3=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...F3,...t},d=n!=null&&n.base?eo(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!tt(n.variants)?Bp(o,n.variants):o,f=n!=null&&n.defaultVariants&&!tt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!tt(l.twMergeConfig)&&!n3(l.twMergeConfig,$i)&&(Bs=!0,$i=l.twMergeConfig);let p=tt(n==null?void 0:n.slots),h=tt(r)?{}:{base:eo(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},b=p?h:Yc({...n==null?void 0:n.slots},tt(h)?{base:e==null?void 0:e.base}:h),g=$=>{if(tt(c)&&tt(r)&&p)return Fr(d,$==null?void 0:$.class,$==null?void 0:$.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof a}`);let C=(B,R,I=[],K)=>{let V=I;if(typeof R=="string")V=V.concat(Uc(R).split(" ").map(T=>`${B}:${T}`));else if(Array.isArray(R))V=V.concat(R.reduce((T,G)=>T.concat(`${B}:${G}`),[]));else if(typeof R=="object"&&typeof K=="string"){for(let T in R)if(R.hasOwnProperty(T)&&T===K){let G=R[T];if(G&&typeof G=="string"){let Y=Uc(G);V[K]?V[K]=V[K].concat(Y.split(" ").map(H=>`${B}:${H}`)):V[K]=Y.split(" ").map(H=>`${B}:${H}`)}else Array.isArray(G)&&G.length>0&&(V[K]=G.reduce((Y,H)=>Y.concat(`${B}:${H}`),[]))}}return V},w=(B,R=c,I=null,K=null)=>{var V;let T=R[B];if(!T||tt(T))return null;let G=(V=K==null?void 0:K[B])!=null?V:$==null?void 0:$[B];if(G===null)return null;let Y=zc(G),H=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[B],O=[];if(typeof Y=="object"&&H)for(let[J,Q]of Object.entries(Y)){let re=T[Q];if(J==="initial"){D=Q;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(J)||(O=C(J,re,O,I))}let W=T[Y]||T[zc(D)];return typeof O=="object"&&typeof I=="string"&&O[I]?Yc(O,W):O.length>0?(O.push(W),O):W},E=()=>c?Object.keys(c).map(B=>w(B,c)):null,P=(B,R)=>{if(!c||typeof c!="object")return null;let I=new Array;for(let K in c){let V=w(K,c,B,R),T=B==="base"&&typeof V=="string"?V:V&&V[B];T&&(I[I.length]=T)}return I},k={};for(let B in $)$[B]!==void 0&&(k[B]=$[B]);let N=(B,R)=>{var I;let K=typeof($==null?void 0:$[B])=="object"?{[B]:(I=$[B])==null?void 0:I.initial}:{};return{...f,...k,...K,...R}},v=(B=[],R)=>{let I=[];for(let{class:K,className:V,...T}of B){let G=!0;for(let[Y,H]of Object.entries(T)){let D=N(Y,R);if(Array.isArray(H)){if(!H.includes(D[Y])){G=!1;break}}else if(D[Y]!==H){G=!1;break}}G&&(K&&I.push(K),V&&I.push(V))}return I},L=B=>{let R=v(i,B),I=v(n==null?void 0:n.compoundVariants,B);return Fp(I,R)},F=B=>{let R=L(B);if(!Array.isArray(R))return R;let I={};for(let K of R)if(typeof K=="string"&&(I.base=Fr(I.base,K)(l)),typeof K=="object")for(let[V,T]of Object.entries(K))I[V]=Fr(I[V],T)(l);return I},A=B=>{if(a.length<1)return null;let R={};for(let{slots:I=[],class:K,className:V,...T}of a){if(!tt(T)){let G=!0;for(let Y of Object.keys(T)){let H=N(Y,B)[Y];if(H===void 0||(Array.isArray(T[Y])?!T[Y].includes(H):T[Y]!==H)){G=!1;break}}if(!G)continue}for(let G of I)R[G]=R[G]||[],R[G].push([K,V])}return R};if(!tt(r)||!p){let B={};if(typeof b=="object"&&!tt(b))for(let R of Object.keys(b))B[R]=I=>{var K,V;return Fr(b[R],P(R,I),((K=F(I))!=null?K:[])[R],((V=A(I))!=null?V:[])[R],I==null?void 0:I.class,I==null?void 0:I.className)(l)};return B}return Fr(d,E(),L(),$==null?void 0:$.class,$==null?void 0:$.className)(l)},y=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return g.variantKeys=y(),g.extend=n,g.base=d,g.slots=b,g.variants=c,g.defaultVariants=f,g.compoundSlots=a,g.compoundVariants=i,g},Ho=["small","medium","large"],Xi=(e,t)=>{var n,r,o;return B3(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider"],borderWidth:Ho,borderRadius:Ho},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Ho}],"font-size":[{text:["tiny",...Ho]}],"bg-image":["bg-stripe-gradient"]}}})},_p=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Ka=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],qc=Xi({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",..._p],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:de.solid.foreground},primary:{base:"before:bg-primary",content:de.solid.primary},secondary:{base:"before:bg-secondary",content:de.solid.secondary},success:{base:"before:bg-success",content:de.solid.success},warning:{base:"before:bg-warning",content:de.solid.warning},danger:{base:"before:bg-danger",content:de.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),I3=Xi({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",..._p],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Ka,"flex","items-center","justify-center"],name:[...Ka,"font-normal","text-center","text-inherit"],icon:[...Ka,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:de.solid.default},primary:{base:de.solid.primary},secondary:{base:de.solid.secondary},success:{base:de.solid.success},warning:{base:de.solid.warning},danger:{base:de.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]}),L3=Xi({slots:{base:"flex items-center justify-center h-auto w-max-content",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Zc=Xi({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","flex-wrap","absolute","box-border","rounded-full","whitespace-nowrap","place-content-center","origin-center","items-center","text-inherit","select-none","font-regular","scale-100","opacity-100","subpixel-antialiased","data-[invisible=true]:scale-0","data-[invisible=true]:opacity-0"]},variants:{variant:{solid:{},flat:{},faded:{badge:"border-medium"},shadow:{}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"px-1 text-tiny"},md:{badge:"px-1 text-small"},lg:{badge:"px-1 text-small"}},placement:{"top-right":{},"top-left":{},"bottom-right":{},"bottom-left":{}},shape:{circle:{},rectangle:{}},isInvisible:{true:{}},isOneChar:{true:{badge:"px-0"}},isDot:{true:{}},disableAnimation:{true:{badge:"transition-none"},false:{badge:"transition-transform-opacity !ease-soft-spring !duration-300"}},showOutline:{true:{badge:"border-2 border-background"},false:{badge:"border-transparent border-0"}}},defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",showOutline:!0,disableAnimation:!1,isInvisible:!1},compoundVariants:[{variant:"solid",color:"default",class:{badge:de.solid.default}},{variant:"solid",color:"primary",class:{badge:de.solid.primary}},{variant:"solid",color:"secondary",class:{badge:de.solid.secondary}},{variant:"solid",color:"success",class:{badge:de.solid.success}},{variant:"solid",color:"warning",class:{badge:de.solid.warning}},{variant:"solid",color:"danger",class:{badge:de.solid.danger}},{variant:"shadow",color:"default",class:{badge:de.shadow.default}},{variant:"shadow",color:"primary",class:{badge:de.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:de.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:de.shadow.success}},{variant:"shadow",color:"warning",class:{badge:de.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:de.shadow.danger}},{variant:"flat",color:"default",class:{badge:de.flat.default}},{variant:"flat",color:"primary",class:{badge:de.flat.primary}},{variant:"flat",color:"secondary",class:{badge:de.flat.secondary}},{variant:"flat",color:"success",class:{badge:de.flat.success}},{variant:"flat",color:"warning",class:{badge:de.flat.warning}},{variant:"flat",color:"danger",class:{badge:de.flat.danger}},{variant:"faded",color:"default",class:{badge:de.faded.default}},{variant:"faded",color:"primary",class:{badge:de.faded.primary}},{variant:"faded",color:"secondary",class:{badge:de.faded.secondary}},{variant:"faded",color:"success",class:{badge:de.faded.success}},{variant:"faded",color:"warning",class:{badge:de.faded.warning}},{variant:"faded",color:"danger",class:{badge:de.faded.danger}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 min-h-6"}},{isDot:!0,size:"sm",class:{badge:"w-3 h-3 min-w-3 min-h-3"}},{isDot:!0,size:"md",class:{badge:"w-3.5 h-3.5 min-w-3.5 min-h-3.5"}},{isDot:!0,size:"lg",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{placement:"top-right",shape:"rectangle",class:{badge:"top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"rectangle",class:{badge:"top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"rectangle",class:{badge:"bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"rectangle",class:{badge:"bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2"}},{placement:"top-right",shape:"circle",class:{badge:"top-[10%] right-[10%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"circle",class:{badge:"top-[10%] left-[10%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"circle",class:{badge:"bottom-[10%] right-[10%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"circle",class:{badge:"bottom-[10%] left-[10%] -translate-x-1/2 translate-y-1/2"}}]});function bt(e,t,n){let[r,o]=u.useState(e||t),i=u.useRef(e!==void 0),a=e!==void 0;u.useEffect(()=>{let d=i.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:r,l=u.useCallback((d,...c)=>{let f=(p,...h)=>{n&&(Object.is(s,p)||n(p,...h)),a||(s=p)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...b)=>{let g=d(a?s:h,...b);return f(g,...c),a?h:g})):(a||o(d),f(d,...c))},[a,s,n]);return[s,l]}function pt(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Qe(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let d=Math.pow(10,l);i=Math.round(i*d)/d}return i}const xi={prefix:String(Math.round(Math.random()*1e10)),current:0},zp=u.createContext(xi),V3=u.createContext(!1);let O3=!!(typeof window<"u"&&window.document&&window.document.createElement),ja=new WeakMap;function N3(e=!1){let t=u.useContext(zp),n=u.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=ja.get(i);a==null?ja.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,ja.delete(i))}n.current=++t.current}return n.current}function K3(e){let t=u.useContext(zp);t===xi&&!O3&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=N3(!!e),r=t===xi&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function j3(e){let t=u.useId(),[n]=u.useState(At()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${xi.prefix}`;return e||`${r}-${t}`}const _3=typeof u.useId=="function"?j3:K3;function z3(){return!1}function U3(){return!0}function H3(e){return()=>{}}function At(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(H3,z3,U3):u.useContext(V3)}function Up(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Up(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function G3(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Up(e))&&(r&&(r+=" "),r+=t);return r}const be=typeof document<"u"?u.useLayoutEffect:()=>{};function Pe(e){const t=u.useRef(null);return be(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function W3(e){let[t,n]=u.useState(e),r=u.useRef(null),o=Pe(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});be(()=>{r.current&&o()});let i=Pe(a=>{r.current=a(t),o()});return[t,i]}let Y3=!!(typeof window<"u"&&window.document&&window.document.createElement),wi=new Map;function _e(e){let[t,n]=u.useState(e),r=u.useRef(null),o=_3(t),i=u.useCallback(a=>{r.current=a},[]);return Y3&&wi.set(o,i),be(()=>{let a=o;return()=>{wi.delete(a)}},[o]),u.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),o}function q3(e,t){if(e===t)return e;let n=wi.get(e);if(n)return n(t),t;let r=wi.get(t);return r?(r(e),e):t}function rn(e=[]){let t=_e(),[n,r]=W3(t),o=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return be(o,[t,o,...e]),n}function an(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ye=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ft=e=>e&&"window"in e&&e.window===e?e:ye(e).defaultView||window;function X(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=an(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=G3(i,a):o==="id"&&i&&a?t.id=q3(i,a):t[o]=a!==void 0?a:i}}return t}function Ji(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const Z3=new Set(["id"]),X3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),J3=new Set(["href","target","rel","download","ping","referrerPolicy"]),Q3=/^(data-.*)$/;function le(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Z3.has(a)||n&&X3.has(a)||r&&J3.has(a)||o!=null&&o.has(a)||Q3.test(a))&&(i[a]=e[a]);return i}function Pt(e){if(ex())e.focus({preventScroll:!0});else{let t=tx(e);e.focus(),nx(t)}}let Go=null;function ex(){if(Go==null){Go=!1;try{document.createElement("div").focus({get preventScroll(){return Go=!0,!0}})}catch{}}return Go}function tx(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function nx(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Qi(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Vl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ut(){return Vl(/^Mac/i)}function Hp(){return Vl(/^iPhone/i)}function Gp(){return Vl(/^iPad/i)||Ut()&&navigator.maxTouchPoints>1}function pr(){return Hp()||Gp()}function ui(){return Ut()||pr()}function Ol(){return Qi(/AppleWebKit/i)&&!rx()}function rx(){return Qi(/Chrome/i)}function Nl(){return Qi(/Android/i)}function ox(){return Qi(/Firefox/i)}const ix=u.createContext({isNative:!0,open:lx});function bo(){return u.useContext(ix)}function ax(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Tn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;ox()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ut()?i=!0:a=!0);let d=Ol()&&Ut()&&!Gp()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Tn.isOpening=n,Pt(e),e.dispatchEvent(d),Tn.isOpening=!1}Tn.isOpening=!1;function sx(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function lx(e,t){sx(e,n=>Tn(n,t))}let Yn=new Map,Is=new Set;function Xc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);o||(o=new Set,Yn.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Yn.delete(r.target)),Yn.size===0)){for(let i of Is)i();Is.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Xc():document.addEventListener("DOMContentLoaded",Xc));function Wp(e){requestAnimationFrame(()=>{Yn.size===0?e():Is.add(e)})}function hr(){let e=u.useRef(new Map),t=u.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,a,s)},[]),n=u.useCallback((o,i,a,s)=>{var l;let d=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,d,s),e.current.delete(a)},[]),r=u.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function An(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=_e(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function mt(e){const t=u.useRef(null);return u.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function ux(){return typeof window.ResizeObserver<"u"}function Kl(e){const{ref:t,onResize:n}=e;u.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(ux()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function jl(e,t){be(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function to(e,t){let n=e;for(Ci(n,t)&&(n=n.parentElement);n&&!Ci(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Ci(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let lt=typeof document<"u"&&window.visualViewport;function cx(){let e=At(),[t,n]=u.useState(()=>e?{width:0,height:0}:Jc());return u.useEffect(()=>{let r=()=>{n(o=>{let i=Jc();return i.width===o.width&&i.height===o.height?o:i})};return lt?lt.addEventListener("resize",r):window.addEventListener("resize",r),()=>{lt?lt.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Jc(){return{width:lt&&(lt==null?void 0:lt.width)||window.innerWidth,height:lt&&(lt==null?void 0:lt.height)||window.innerHeight}}let dx=0;const _a=new Map;function Yp(e){let[t,n]=u.useState();return be(()=>{if(!e)return;let r=_a.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${dx++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},_a.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),_a.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Di(e,t,n,r){let o=Pe(n),i=n==null;u.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i,o])}function qp(e,t){let n=Qc(e,t,"left"),r=Qc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),f=e.scrollTop+parseInt(l,10),p=c+e.clientWidth,h=f+e.clientHeight;n<=a?a=n-parseInt(d,10):n+o>p&&(a+=n+o-p),r<=f?s=r-parseInt(l,10):r+i>h&&(s+=r+i-h),e.scrollLeft=a,e.scrollTop=s}function Qc(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Ls(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=to(e);for(;e&&l&&e!==a&&l!==a;)qp(l,e),e=l,l=to(e)}else{var n;let{left:l,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:f}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(d-f)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Vs(e){return e.mozInputSource===0&&e.isTrusted?!0:Nl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function fx(e){return!Nl()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function px(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function mo(e,t,n){let r=u.useRef(t),o=Pe(()=>{n&&n(r.current)});u.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",o),()=>{a==null||a.removeEventListener("reset",o)}},[e,o])}function hx(e,t){return t.get?t.get.call(e):t.value}function Zp(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function bx(e,t){var n=Zp(e,t,"get");return hx(e,n)}function mx(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function go(e,t,n){mx(e,t),t.set(e,n)}function gx(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function ed(e,t,n){var r=Zp(e,t,"set");return gx(e,r,n),n}let Xn="default",Os="",ci=new WeakMap;function Ns(e){if(pr()){if(Xn==="default"){const t=ye(e);Os=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xn="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ci.set(e,e.style.userSelect),e.style.userSelect="none")}function jr(e){if(pr()){if(Xn!=="disabled")return;Xn="restoring",setTimeout(()=>{Wp(()=>{if(Xn==="restoring"){const t=ye(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Os||""),Os="",Xn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ci.has(e)){let t=ci.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ci.delete(e)}}const no=u.createContext({register:()=>{}});no.displayName="PressResponderContext";function vx(e){let t=u.useContext(no);if(t){let{register:n,...r}=t;e=X(r,e),n()}return jl(t,e.ref),e}var Wo=new WeakMap;class Yo{continuePropagation(){ed(this,Wo,!1)}get shouldStopPropagation(){return bx(this,Wo)}constructor(t,n,r){go(this,Wo,{writable:!0,value:void 0}),ed(this,Wo,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const td=Symbol("linkClicked");function sn(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:c,ref:f,...p}=vx(e),[h,b]=u.useState(!1),g=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=hr(),C=Pe((v,L)=>{let F=g.current;if(a||F.didFirePressStart)return!1;let A=!0;if(F.isTriggeringEvent=!0,r){let B=new Yo("pressstart",L,v);r(B),A=B.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,b(!0),A}),w=Pe((v,L,F=!0)=>{let A=g.current;if(!A.didFirePressStart)return!1;A.ignoreClickAfterPress=!0,A.didFirePressStart=!1,A.isTriggeringEvent=!0;let B=!0;if(o){let R=new Yo("pressend",L,v);o(R),B=R.shouldStopPropagation}if(n&&n(!1),b(!1),t&&F&&!a){let R=new Yo("press",L,v);t(R),B&&(B=R.shouldStopPropagation)}return A.isTriggeringEvent=!1,B}),E=Pe((v,L)=>{let F=g.current;if(a)return!1;if(i){F.isTriggeringEvent=!0;let A=new Yo("pressup",L,v);return i(A),F.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),P=Pe(v=>{let L=g.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&w(kt(L.target,v),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,$(),c||jr(L.target))}),k=Pe(v=>{d&&P(v)}),N=u.useMemo(()=>{let v=g.current,L={onKeyDown(A){if(za(A.nativeEvent,A.currentTarget)&&A.currentTarget.contains(A.target)){var B;rd(A.target,A.key)&&A.preventDefault();let R=!0;if(!v.isPressed&&!A.repeat){v.target=A.currentTarget,v.isPressed=!0,R=C(A,"keyboard");let I=A.currentTarget,K=V=>{za(V,I)&&!V.repeat&&I.contains(V.target)&&v.target&&E(kt(v.target,V),"keyboard")};y(ye(A.currentTarget),"keyup",an(K,F),!0)}R&&A.stopPropagation(),A.metaKey&&Ut()&&((B=v.metaKeyEvents)===null||B===void 0||B.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(A){if(!(A&&!A.currentTarget.contains(A.target))&&A&&A.button===0&&!v.isTriggeringEvent&&!Tn.isOpening){let B=!0;if(a&&A.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||Vs(A.nativeEvent))){!a&&!l&&Pt(A.currentTarget);let R=C(A,"virtual"),I=E(A,"virtual"),K=w(A,"virtual");B=R&&I&&K}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,B&&A.stopPropagation()}}},F=A=>{var B;if(v.isPressed&&v.target&&za(A,v.target)){var R;rd(A.target,A.key)&&A.preventDefault();let K=A.target;w(kt(v.target,A),"keyboard",v.target.contains(K)),$(),A.key!=="Enter"&&_l(v.target)&&v.target.contains(K)&&!A[td]&&(A[td]=!0,Tn(v.target,A,!1)),v.isPressed=!1,(R=v.metaKeyEvents)===null||R===void 0||R.delete(A.key)}else if(A.key==="Meta"&&(!((B=v.metaKeyEvents)===null||B===void 0)&&B.size)){var I;let K=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let V of K.values())(I=v.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",V))}};if(typeof PointerEvent<"u"){L.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(fx(I.nativeEvent)){v.pointerType="virtual";return}Ua(I.currentTarget)&&I.preventDefault(),v.pointerType=I.pointerType;let K=!0;v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=I.pointerId,v.target=I.currentTarget,!a&&!l&&Pt(I.currentTarget),c||Ns(v.target),K=C(I,v.pointerType),y(ye(I.currentTarget),"pointermove",A,!1),y(ye(I.currentTarget),"pointerup",B,!1),y(ye(I.currentTarget),"pointercancel",R,!1)),K&&I.stopPropagation()},L.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(Ua(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},L.onPointerUp=I=>{!I.currentTarget.contains(I.target)||v.pointerType==="virtual"||I.button===0&&Un(I,I.currentTarget)&&E(I,v.pointerType||I.pointerType)};let A=I=>{I.pointerId===v.activePointerId&&(v.target&&Un(I,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,C(kt(v.target,I),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,w(kt(v.target,I),v.pointerType,!1),k(I)))},B=I=>{I.pointerId===v.activePointerId&&v.isPressed&&I.button===0&&v.target&&(Un(I,v.target)&&v.pointerType!=null?w(kt(v.target,I),v.pointerType):v.isOverTarget&&v.pointerType!=null&&w(kt(v.target,I),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,$(),c||jr(v.target))},R=I=>{P(I)};L.onDragStart=I=>{I.currentTarget.contains(I.target)&&P(I)}}else{L.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(Ua(R.currentTarget)&&R.preventDefault(),v.ignoreEmulatedMouseEvents){R.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=R.currentTarget,v.pointerType=Vs(R.nativeEvent)?"virtual":"mouse",!a&&!l&&Pt(R.currentTarget),C(R,v.pointerType)&&R.stopPropagation(),y(ye(R.currentTarget),"mouseup",A,!1)},L.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,I=C(R,v.pointerType)),I&&R.stopPropagation()},L.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,I=w(R,v.pointerType,!1),k(R)),I&&R.stopPropagation()},L.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!v.ignoreEmulatedMouseEvents&&R.button===0&&E(R,v.pointerType||"mouse")};let A=R=>{if(R.button===0){if(v.isPressed=!1,$(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&Un(R,v.target)&&v.pointerType!=null?w(kt(v.target,R),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&w(kt(v.target,R),v.pointerType,!1),v.isOverTarget=!1}};L.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let I=yx(R.nativeEvent);if(!I)return;v.activePointerId=I.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=R.currentTarget,v.pointerType="touch",!a&&!l&&Pt(R.currentTarget),c||Ns(v.target),C(R,v.pointerType)&&R.stopPropagation(),y(ft(R.currentTarget),"scroll",B,!0)},L.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let I=nd(R.nativeEvent,v.activePointerId),K=!0;I&&Un(I,R.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,K=C(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,K=w(R,v.pointerType,!1),k(R)),K&&R.stopPropagation()},L.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let I=nd(R.nativeEvent,v.activePointerId),K=!0;I&&Un(I,R.currentTarget)&&v.pointerType!=null?(E(R,v.pointerType),K=w(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(K=w(R,v.pointerType,!1)),K&&R.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!c&&jr(v.target),$()},L.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),v.isPressed&&P(R))};let B=R=>{v.isPressed&&R.target.contains(v.target)&&P({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=R=>{R.currentTarget.contains(R.target)&&P(R)}}return L},[y,a,l,$,c,P,k,w,C,E]);return u.useEffect(()=>()=>{var v;c||jr((v=g.current.target)!==null&&v!==void 0?v:void 0)},[c]),{isPressed:s||h,pressProps:X(p,N)}}function _l(e){return e.tagName==="A"&&e.hasAttribute("href")}function za(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof ft(o).HTMLInputElement&&!Xp(o,n)||o instanceof ft(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&_l(o))&&n!=="Enter")}function yx(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function nd(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function kt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function $x(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function xx(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Un(e,t){let n=t.getBoundingClientRect(),r=$x(e);return xx(n,r)}function Ua(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function rd(e,t){return e instanceof HTMLInputElement?!Xp(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_l(e)}const wx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xp(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":wx.has(e.type)}const Cx=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),o=u.useContext(no);n=mt(n||(o==null?void 0:o.ref));let i=X(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return jl(o,n),u.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),u.createElement(no.Provider,{value:i},e)});function Dx({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(no.Provider,{value:t},e)}class Ex{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Jp(e){let t=u.useRef({isFocused:!1,observer:null});be(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Pe(r=>{e==null||e(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{t.current.isFocused=!1,o.disabled&&n(new Ex("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function ea(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=u.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=Jp(i),s=u.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Ht=null,ro=new Set,Gr=new Map,Mn=!1,Ks=!1;const Px={Tab:!0,Escape:!0};function ta(e,t){for(let n of ro)n(e,t)}function Sx(e){return!(e.metaKey||!Ut()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ei(e){Mn=!0,Sx(e)&&(Ht="keyboard",ta("keyboard",e))}function ct(e){Ht="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Mn=!0,ta("pointer",e))}function Qp(e){Vs(e)&&(Mn=!0,Ht="virtual")}function e0(e){e.target===window||e.target===document||(!Mn&&!Ks&&(Ht="virtual",ta("virtual",e)),Mn=!1,Ks=!1)}function t0(){Mn=!1,Ks=!0}function Pi(e){if(typeof window>"u"||Gr.get(ft(e)))return;const t=ft(e),n=ye(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Mn=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ei,!0),n.addEventListener("keyup",Ei,!0),n.addEventListener("click",Qp,!0),t.addEventListener("focus",e0,!0),t.addEventListener("blur",t0,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ct,!0),n.addEventListener("pointermove",ct,!0),n.addEventListener("pointerup",ct,!0)):(n.addEventListener("mousedown",ct,!0),n.addEventListener("mousemove",ct,!0),n.addEventListener("mouseup",ct,!0)),t.addEventListener("beforeunload",()=>{n0(e)},{once:!0}),Gr.set(t,{focus:r})}const n0=(e,t)=>{const n=ft(e),r=ye(e);t&&r.removeEventListener("DOMContentLoaded",t),Gr.has(n)&&(n.HTMLElement.prototype.focus=Gr.get(n).focus,r.removeEventListener("keydown",Ei,!0),r.removeEventListener("keyup",Ei,!0),r.removeEventListener("click",Qp,!0),n.removeEventListener("focus",e0,!0),n.removeEventListener("blur",t0,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ct,!0),r.removeEventListener("pointermove",ct,!0),r.removeEventListener("pointerup",ct,!0)):(r.removeEventListener("mousedown",ct,!0),r.removeEventListener("mousemove",ct,!0),r.removeEventListener("mouseup",ct,!0)),Gr.delete(n))};function Tx(e){const t=ye(e);let n;return t.readyState!=="loading"?Pi(e):(n=()=>{Pi(e)},t.addEventListener("DOMContentLoaded",n)),()=>n0(e,n)}typeof document<"u"&&Tx();function lr(){return Ht!=="pointer"}function Si(){return Ht}function r0(e){Ht=e,ta(e,null)}function Ax(){Pi();let[e,t]=u.useState(Ht);return u.useEffect(()=>{let n=()=>{t(Ht)};return ro.add(n),()=>{ro.delete(n)}},[]),At()?null:e}const Mx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kx(e,t,n){var r;const o=typeof window<"u"?ft(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ft(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ft(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?ft(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!Mx.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!Px[n.key])}function Rx(e,t,n){Pi(),u.useEffect(()=>{let r=(o,i)=>{kx(!!(n!=null&&n.isTextInput),o,i)&&e(lr())};return ro.add(r),()=>{ro.delete(r)}},t)}function br(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=u.useRef({isFocusWithin:!1}),a=u.useCallback(d=>{i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(d),o&&o(!1))},[n,o,i]),s=Jp(a),l=u.useCallback(d=>{!i.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,s(d))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let Ti=!1,Ha=0;function js(){Ti=!0,setTimeout(()=>{Ti=!1},50)}function od(e){e.pointerType==="touch"&&js()}function Fx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",od):document.addEventListener("touchend",js),Ha++,()=>{Ha--,!(Ha>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",od):document.removeEventListener("touchend",js))}}function Fe(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=u.useState(!1),s=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(Fx,[]);let{hoverProps:l,triggerHoverEnd:d}=u.useMemo(()=>{let c=(h,b)=>{if(s.pointerType=b,o||b==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let g=h.currentTarget;s.target=g,t&&t({type:"hoverstart",target:g,pointerType:b}),n&&n(!0),a(!0)},f=(h,b)=>{if(s.pointerType="",s.target=null,b==="touch"||!s.isHovered)return;s.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:b}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Ti&&h.pointerType==="mouse"||c(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!Ti&&c(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,o,s]);return u.useEffect(()=>{o&&d({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function o0(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Pe(l=>{n&&qo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Pe(l=>{n&&n(l)});u.useEffect(()=>{let l=i.current;if(r)return;const d=t.current,c=ye(d);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&qo(p,t)&&s(p),l.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&qo(h,t)&&s(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&qo(h,t)&&s(h),l.isPointerDown=!1};return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",p,!0)}}},[t,r,a,s])}function qo(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function id(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function zl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:id(e.onKeyDown),onKeyUp:id(e.onKeyUp)}}}function i0(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=hr(),s=Pe((c,f,p,h)=>{p===0&&h===0||(o.current.didMove||(o.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:h,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),l=Pe((c,f)=>{jr(),o.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))});return{moveProps:u.useMemo(()=>{let c={},f=()=>{Ns(),o.current.didMove=!1};if(typeof PointerEvent>"u"){let h=$=>{if($.button===0){var C,w,E,P;s($,"mouse",$.pageX-((E=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&E!==void 0?E:0),$.pageY-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&P!==void 0?P:0)),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},b=$=>{$.button===0&&(l($,"mouse"),a(window,"mousemove",h,!1),a(window,"mouseup",b,!1))};c.onMouseDown=$=>{$.button===0&&(f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i(window,"mousemove",h,!1),i(window,"mouseup",b,!1))};let g=$=>{let C=[...$.changedTouches].findIndex(({identifier:N})=>N===o.current.id);if(C>=0){var w,E;let{pageX:N,pageY:v}=$.changedTouches[C];var P,k;s($,"touch",N-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&P!==void 0?P:0),v-((k=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&k!==void 0?k:0)),o.current.lastPosition={pageX:N,pageY:v}}},y=$=>{[...$.changedTouches].findIndex(({identifier:w})=>w===o.current.id)>=0&&(l($,"touch"),o.current.id=null,a(window,"touchmove",g),a(window,"touchend",y),a(window,"touchcancel",y))};c.onTouchStart=$=>{if($.changedTouches.length===0||o.current.id!=null)return;let{pageX:C,pageY:w,identifier:E}=$.changedTouches[0];f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:C,pageY:w},o.current.id=E,i(window,"touchmove",g,!1),i(window,"touchend",y,!1),i(window,"touchcancel",y,!1)}}else{let h=g=>{if(g.pointerId===o.current.id){var y,$;let E=g.pointerType||"mouse";var C,w;s(g,E,g.pageX-((C=(y=o.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&C!==void 0?C:0),g.pageY-((w=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&w!==void 0?w:0)),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY}}},b=g=>{if(g.pointerId===o.current.id){let y=g.pointerType||"mouse";l(g,y),o.current.id=null,a(window,"pointermove",h,!1),a(window,"pointerup",b,!1),a(window,"pointercancel",b,!1)}};c.onPointerDown=g=>{g.button===0&&o.current.id==null&&(f(),g.stopPropagation(),g.preventDefault(),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY},o.current.id=g.pointerId,i(window,"pointermove",h,!1),i(window,"pointerup",b,!1),i(window,"pointercancel",b,!1))}}let p=(h,b,g)=>{f(),s(h,"keyboard",b,g),l(h,"keyboard")};return c.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),p(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),p(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),p(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),p(h,0,1);break}},c},[o,i,a,s,l])}}function Bx(e,t){let{onScroll:n,isDisabled:r}=e,o=u.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),n&&n({deltaX:i.deltaX,deltaY:i.deltaY}))},[n]);Di(t,"wheel",r?void 0:o)}const Ix=500;function a0(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Ix,accessibilityDescription:a}=e;const s=u.useRef();let{addGlobalListener:l,removeGlobalListener:d}=hr(),{pressProps:c}=sn({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let h=b=>{b.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Yp(o&&!t?a:void 0);return{longPressProps:X(c,f)}}function kn(e){const t=ye(e);if(Si()==="virtual"){let n=t.activeElement;Wp(()=>{t.activeElement===n&&e.isConnected&&Pt(e)})}else Pt(e)}function Lx(e){const t=ft(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Vx(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function s0(e,t){return e.nodeName!=="#comment"&&Lx(e)&&Vx(e,t)&&(!e.parentElement||s0(e.parentElement,e))}const ad=u.createContext(null);let ve=null;function Ul(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=u.useRef(null),a=u.useRef(null),s=u.useRef([]),{parentNode:l}=u.useContext(ad)||{},d=u.useMemo(()=>new _s({scopeRef:s}),[s]);be(()=>{let p=l||ke.root;if(ke.getTreeNode(p.scopeRef)&&ve&&!Mi(ve,p.scopeRef)){let h=ke.getTreeNode(ve);h&&(p=h)}p.addChild(d),ke.addNode(d)},[d,l]),be(()=>{let p=ke.getTreeNode(s);p&&(p.contain=!!n)},[n]),be(()=>{var p;let h=(p=i.current)===null||p===void 0?void 0:p.nextSibling,b=[];for(;h&&h!==a.current;)b.push(h),h=h.nextSibling;s.current=b},[t]),Ux(s,r,n),jx(s,n),Gx(s,r,n),zx(s,o),u.useEffect(()=>{const p=ye(s.current?s.current[0]:void 0).activeElement;let h=null;if(Ge(p,s.current)){for(let b of ke.traverse())b.scopeRef&&Ge(p,b.scopeRef.current)&&(h=b);h===ke.getTreeNode(s)&&(ve=h.scopeRef)}},[s]),be(()=>()=>{var p,h,b;let g=(b=(h=ke.getTreeNode(s))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(s===ve||Mi(s,ve))&&(!g||ke.getTreeNode(g))&&(ve=g),ke.removeTreeNode(s)},[s]);let c=u.useMemo(()=>Ox(s),[]),f=u.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return u.createElement(ad.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function Ox(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||ye(n[0]).activeElement,l=n[0].previousElementSibling,d=Cn(n),c=Ze(d,{tabbable:o,accept:a},n);c.currentNode=Ge(s,n)?s:l;let f=c.nextNode();return!f&&i&&(c.currentNode=l,f=c.nextNode()),f&&et(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||ye(n[0]).activeElement,l=n[n.length-1].nextElementSibling,d=Cn(n),c=Ze(d,{tabbable:o,accept:a},n);c.currentNode=Ge(s,n)?s:l;let f=c.previousNode();return!f&&i&&(c.currentNode=l,f=c.previousNode()),f&&et(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Ze(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&et(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Ze(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&et(s,!0),s}}}const Hl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Nx=Hl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Hl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Kx=Hl.join(':not([hidden]):not([tabindex="-1"]),');function Cn(e){return e[0].parentElement}function _r(e){let t=ke.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function jx(e,t){let n=u.useRef(),r=u.useRef();be(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=ye(o?o[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!_r(e))return;let c=i.activeElement,f=e.current;if(!f||!Ge(c,f))return;let p=Cn(f),h=Ze(p,{tabbable:!0},f);if(!c)return;h.currentNode=c;let b=d.shiftKey?h.previousNode():h.nextNode();b||(h.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=d.shiftKey?h.previousNode():h.nextNode()),d.preventDefault(),b&&et(b,!0)},s=d=>{(!ve||Mi(ve,e))&&Ge(d.target,e.current)?(ve=e,n.current=d.target):_r(e)&&!Ai(d.target,e)?n.current?n.current.focus():ve&&ve.current&&ki(ve.current):_r(e)&&(n.current=d.target)},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&_r(e)&&!Ai(i.activeElement,e))if(ve=e,i.body.contains(d.target)){var c;n.current=d.target,(c=n.current)===null||c===void 0||c.focus()}else ve.current&&ki(ve.current)})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(d=>d.addEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(d=>d.removeEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),be(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function l0(e){return Ai(e)}function Ge(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ai(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ke.traverse(ke.getTreeNode(t)))if(n&&Ge(e,n.current))return!0;return!1}function _x(e){return Ai(e,ve)}function Mi(e,t){var n;let r=(n=ke.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function et(e,t=!1){if(e!=null&&!t)try{kn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ki(e,t=!0){let n=e[0].previousElementSibling,r=Cn(e),o=Ze(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Cn(e),o=Ze(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),et(i)}function zx(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){ve=e;const r=ye(e.current?e.current[0]:void 0);!Ge(r.activeElement,ve.current)&&e.current&&ki(e.current)}n.current=!1},[e])}function Ux(e,t,n){be(()=>{if(t||n)return;let r=e.current;const o=ye(r?r[0]:void 0);let i=a=>{let s=a.target;Ge(s,e.current)?ve=e:l0(s)||(ve=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function Hx(e){let t=ke.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Gx(e,t,n){const r=u.useRef(typeof document<"u"?ye(e.current?e.current[0]:void 0).activeElement:null);be(()=>{let o=e.current;const i=ye(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ve||Mi(ve,e))&&Ge(i.activeElement,e.current)&&(ve=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),be(()=>{const o=ye(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!_r(e))return;let s=o.activeElement;if(!Ge(s,e.current))return;let l=ke.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,c=Ze(o.body,{tabbable:!0});c.currentNode=s;let f=a.shiftKey?c.previousNode():c.nextNode();if((!d||!o.body.contains(d)||d===o.body)&&(d=void 0,l.nodeToRestore=void 0),(!f||!Ge(f,e.current))&&d){c.currentNode=d;do f=a.shiftKey?c.previousNode():c.nextNode();while(Ge(f,e.current));a.preventDefault(),a.stopPropagation(),f?et(f,!0):l0(d)?et(d,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),be(()=>{const o=ye(e.current?e.current[0]:void 0);if(!t)return;let i=ke.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=ke.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(Ge(o.activeElement,e.current)||o.activeElement===o.body&&Hx(e))){let d=ke.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){et(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&ke.getTreeNode(c.scopeRef)){ki(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function Ze(e,t,n){let r=t!=null&&t.tabbable?Kx:Nx,o=ye(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&s0(i)&&(!n||Ge(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function u0(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||ye(r).activeElement,d=Ze(r,{tabbable:i,accept:s});r.contains(l)&&(d.currentNode=l);let c=d.nextNode();return!c&&a&&(d.currentNode=r,c=d.nextNode()),c&&et(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||ye(r).activeElement,d=Ze(r,{tabbable:i,accept:s});if(r.contains(l))d.currentNode=l;else{let f=Ga(d);return f&&et(f,!0),f??null}let c=d.previousNode();if(!c&&a){d.currentNode=r;let f=Ga(d);if(!f)return null;c=f}return c&&et(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=Ze(r,{tabbable:o,accept:i}).nextNode();return s&&et(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=Ze(r,{tabbable:o,accept:i}),s=Ga(a);return s&&et(s,!0),s??null}}}function Ga(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Gl{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new _s({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ge(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Gl;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _s({scopeRef:null}),this.fastMap.set(null,this.root)}}class _s{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let ke=new Gl;function Ye(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||lr()}),[i,a]=u.useState(!1),[s,l]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=u.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=u.useCallback(h=>{o.current.isFocused=h,a(h),d()},[d]);Rx(h=>{o.current.isFocusVisible=h,d()},[],{isTextInput:n});let{focusProps:f}=ea({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=br({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}let Wx=u.createContext(null);function Yx(e){let t=u.useContext(Wx)||{};jl(t,e);let{ref:n,...r}=t;return r}function mr(e,t){let{focusProps:n}=ea(e),{keyboardProps:r}=zl(e),o=X(n,r),i=Yx(t),a=e.isDisabled?{}:i,s=u.useRef(e.autoFocus);return u.useEffect(()=>{s.current&&t.current&&kn(t.current),s.current=!1},[t]),{focusableProps:X({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function qx(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=u.useState(!1);return be(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let s=Ze(e.current,{tabbable:!0});o(!!s.nextNode())}};i();let a=new MutationObserver(i);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),n?!1:r}var c0=globalThis!=null&&globalThis.document?u.useLayoutEffect:u.useEffect;function Zx(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[d,c]=u.useState("pending");u.useEffect(()=>{c(n?"loading":"pending")},[n]);const f=u.useRef(),p=u.useCallback(()=>{if(!n)return;h();const b=new Image;b.src=n,a&&(b.crossOrigin=a),r&&(b.srcset=r),s&&(b.sizes=s),t&&(b.loading=t),b.onload=g=>{h(),c("loaded"),o==null||o(g)},b.onerror=g=>{h(),c("failed"),i==null||i(g)},f.current=b},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return c0(()=>{if(!l)return d==="loading"&&p(),()=>{h()}},[d,p,l]),l?"loaded":d}function Xx(e={}){var t,n,r,o,i;const a=Mp(),s=!!a,{as:l,ref:d,src:c,name:f,icon:p,classNames:h,fallback:b,alt:g=f||"avatar",imgRef:y,color:$=(t=a==null?void 0:a.color)!=null?t:"default",radius:C=(n=a==null?void 0:a.radius)!=null?n:"full",size:w=(r=a==null?void 0:a.size)!=null?r:"md",isBordered:E=(o=a==null?void 0:a.isBordered)!=null?o:!1,isDisabled:P=(i=a==null?void 0:a.isDisabled)!=null?i:!1,isFocusable:k=!1,getInitials:N=R$,ignoreFallback:v=!1,showFallback:L=!1,ImgComponent:F="img",imgProps:A,className:B,onError:R,...I}=e,K=l||"span",V=As(d),T=As(y),{isFocusVisible:G,isFocused:Y,focusProps:H}=Ye(),{isHovered:D,hoverProps:O}=Fe({isDisabled:P}),J=Zx({src:c,onError:R,ignoreFallback:v})==="loaded",Q=(!c||!J)&&L,re=u.useMemo(()=>{var se;return I3({color:$,radius:C,size:w,isBordered:E,isDisabled:P,isInGroup:s,isInGridGroup:(se=a==null?void 0:a.isGrid)!=null?se:!1})},[$,C,w,E,P,s,a==null?void 0:a.isGrid]),z=sr(h==null?void 0:h.base,B),q=u.useMemo(()=>k||l==="button",[k,l]),te=u.useCallback((se={})=>({ref:V,tabIndex:q?0:-1,"data-hover":Et(D),"data-focus":Et(Y),"data-focus-visible":Et(G),className:re.base({class:sr(z,se==null?void 0:se.className)}),...X(I,O,q?H:{})}),[q,re,z,H,I]),ae=u.useCallback((se={})=>({ref:T,src:c,"data-loaded":Et(J),className:re.img({class:h==null?void 0:h.img}),...X(A,se)}),[re,J,A,c,T]);return{Component:K,ImgComponent:F,src:c,alt:g,icon:p,name:f,imgRef:T,slots:re,classNames:h,fallback:b,isImgLoaded:J,showFallback:Q,ignoreFallback:v,getInitials:N,getAvatarProps:te,getImageProps:ae}}const Jx=Symbol.for("react-aria.i18n.locale"),Qx=Symbol.for("react-aria.i18n.strings");let Hn;class In{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=e5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Jx];if(Hn===void 0){let o=window[Qx];if(!o)return null;Hn={};for(let i in o)Hn[i]=new In({[n]:o[i]},n)}let r=Hn==null?void 0:Hn[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function e5(e,t,n="en-US"){if(t[e])return t[e];let r=t5(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function t5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const sd=new Map,ld=new Map;class d0{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=sd.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),sd.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=ld.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ld.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function Nt(e,t){return e-t*Math.floor(e/t)}const f0=1721426;function Dn(e,t,n,r){t=vo(e,t);let o=t-1,i=-2;return n<=2?i=0:nn(t)&&(i=-1),f0-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function nn(e){return e%4===0&&(e%100!==0||e%400===0)}function vo(e,t){return e==="BC"?1-t:t}function na(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const n5={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class nt{fromJulianDay(t){let n=t,r=n-f0,o=Math.floor(r/146097),i=Nt(r,146097),a=Math.floor(i/36524),s=Nt(i,36524),l=Math.floor(s/1461),d=Nt(s,1461),c=Math.floor(d/365),f=o*400+a*100+l*4+c+(a!==4&&c!==4?1:0),[p,h]=na(f),b=n-Dn(p,h,1,1),g=2;n<Dn(p,h,3,1)?g=0:nn(h)&&(g=1);let y=Math.floor(((b+g)*12+373)/367),$=n-Dn(p,h,y,1)+1;return new Re(p,h,y,$)}toJulianDay(t){return Dn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return n5[nn(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return nn(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function p0(e){return Lt(Date.now(),e)}function r5(e){return y0(p0(e))}function h0(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function b0(e,t){return ud(e)-ud(t)}function ud(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Wa=null;function Wl(){return Wa==null&&(Wa=new Intl.DateTimeFormat().resolvedOptions().timeZone),Wa}function o5(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function i5(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function ur(e){e=Xe(e,new nt);let t=vo(e.era,e.year);return m0(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function m0(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function zs(e,t){if(t==="UTC")return 0;if(e>0&&t===Wl())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=g0(e,t);return m0(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}const cd=new Map;function g0(e,t){let n=cd.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),cd.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const dd=864e5;function a5(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>s5(e,t,i))}function s5(e,t,n){let r=g0(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function It(e,t,n="compatible"){let r=ln(e);if(t==="UTC")return ur(r);if(t===Wl()&&n==="compatible"){r=Xe(r,new nt);let l=new Date,d=vo(r.era,r.year);return l.setFullYear(d,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=ur(r),i=zs(o-dd,t),a=zs(o+dd,t),s=a5(r,t,o-i,o-a);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function v0(e,t,n="compatible"){return new Date(It(e,t,n))}function Lt(e,t){let n=zs(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new io(o,i,a,t,n,s,l,d,c)}function y0(e){return new Re(e.calendar,e.era,e.year,e.month,e.day)}function ln(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new Ri(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function fd(e){return new oa(e.hour,e.minute,e.second,e.millisecond)}function Xe(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Rn(r),r}function $0(e,t,n){if(e instanceof io)return e.timeZone===t?e:u5(e,t);let r=It(e,t,n);return Lt(r,t)}function l5(e){let t=ur(e)-e.offset;return new Date(t)}function u5(e,t){let n=ur(e)-e.offset;return Xe(Lt(n,t),e.calendar)}const Br=36e5;function ra(e,t){let n=e.copy(),r="hour"in n?D0(n,t):0;Us(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Hs(n),x0(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,c5(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,a;let l=(i=(a=n.calendar).isInverseEra)===null||i===void 0?void 0:i.call(a,n);n.year=o,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Us(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Hs(e){for(;e.month<1;)Us(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Us(e,1)}function c5(e){for(;e.day<1;)e.month--,Hs(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Hs(e)}function x0(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Rn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),x0(e)}function Yl(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function w0(e,t){return ra(e,Yl(t))}function ql(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Rn(n),n}function oo(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),C0(n),n}function d5(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Zo(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Zo(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Zo(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Zo(e.hour,24),t}function C0(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Zo(e,t){let n=e%t;return n<0&&(n+=t),n}function D0(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,d5(e)}function E0(e,t){let n=e.copy();return D0(n,t),n}function f5(e,t){return E0(e,Yl(t))}function Zl(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Vt(l,n,0,s.length-1,r==null?void 0:r.round),o.era=s[l],Rn(o);break}case"year":var i,a;!((i=(a=o.calendar).isInverseEra)===null||i===void 0)&&i.call(a,o)&&(n=-n),o.year=Vt(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=Vt(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=Vt(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Rn(o),o}function Xl(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,a=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=i>=12;a=l?12:0,s=l?23:11}o.hour=Vt(i,n,a,s,r==null?void 0:r.round);break}case"minute":o.minute=Vt(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=Vt(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=Vt(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Vt(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function P0(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=ra(ln(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=It(o,e.timeZone)}else n=ur(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Lt(n,e.timeZone);return Xe(r,e.calendar)}function p5(e,t){return P0(e,Yl(t))}function h5(e,t,n,r){switch(t){case"hour":{let o=0,i=23;if((r==null?void 0:r.hourCycle)===12){let b=e.hour>=12;o=b?12:0,i=b?23:11}let a=ln(e),s=Xe(oo(a,{hour:o}),new nt),l=[It(s,e.timeZone,"earlier"),It(s,e.timeZone,"later")].filter(b=>Lt(b,e.timeZone).day===s.day)[0],d=Xe(oo(a,{hour:i}),new nt),c=[It(d,e.timeZone,"earlier"),It(d,e.timeZone,"later")].filter(b=>Lt(b,e.timeZone).day===d.day).pop(),f=ur(e)-e.offset,p=Math.floor(f/Br),h=f%Br;return f=Vt(p,n,Math.floor(l/Br),Math.floor(c/Br),r==null?void 0:r.round)*Br+h,Xe(Lt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Xl(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Zl(ln(e),t,n,r),i=It(o,e.timeZone);return Xe(Lt(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function b5(e,t,n){let r=ln(e),o=oo(ql(r,t),t);if(o.compare(r)===0)return e;let i=It(o,e.timeZone,n);return Xe(Lt(i,e.timeZone),e.calendar)}function S0(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function T0(e){let t=Xe(e,new nt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function A0(e){return`${T0(e)}T${S0(e)}`}function m5(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function g5(e){return`${A0(e)}${m5(e.offset)}[${e.timeZone}]`}function Jl(e){let t=typeof e[0]=="object"?e.shift():new nt,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var v5=new WeakMap;class Re{copy(){return this.era?new Re(this.calendar,this.era,this.year,this.month,this.day):new Re(this.calendar,this.year,this.month,this.day)}add(t){return ra(this,t)}subtract(t){return w0(this,t)}set(t){return ql(this,t)}cycle(t,n,r){return Zl(this,t,n,r)}toDate(t){return v0(this,t)}toString(){return T0(this)}compare(t){return h0(this,t)}constructor(...t){go(this,v5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,Rn(this)}}var y5=new WeakMap;class oa{copy(){return new oa(this.hour,this.minute,this.second,this.millisecond)}add(t){return E0(this,t)}subtract(t){return f5(this,t)}set(t){return oo(this,t)}cycle(t,n,r){return Xl(this,t,n,r)}toString(){return S0(this)}compare(t){return b0(this,t)}constructor(t=0,n=0,r=0,o=0){go(this,y5,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,C0(this)}}var $5=new WeakMap;class Ri{copy(){return this.era?new Ri(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ri(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ra(this,t)}subtract(t){return w0(this,t)}set(t){return ql(oo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Zl(this,t,n,r);default:return Xl(this,t,n,r)}}toDate(t,n){return v0(this,t,n)}toString(){return A0(this)}compare(t){let n=h0(this,t);return n===0?b0(this,ln(t)):n}constructor(...t){go(this,$5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Rn(this)}}var x5=new WeakMap;class io{copy(){return this.era?new io(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new io(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return P0(this,t)}subtract(t){return p5(this,t)}set(t,n){return b5(this,t,n)}cycle(t,n,r){return h5(this,t,n,r)}toDate(){return l5(this)}toString(){return g5(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-$0(t,this.timeZone).toDate().getTime()}constructor(...t){go(this,x5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Rn(this)}}const or=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],w5=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],di=[1867,1911,1925,1988,2018],en=["meiji","taisho","showa","heisei","reiwa"];function pd(e){const t=or.findIndex(([n,r,o])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<o);return t===-1?or.length-1:t===0?0:t-1}function Ya(e){let t=di[en.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Re(e.year+t,e.month,e.day)}class C5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=pd(n);return new Re(this,en[r],n.year-di[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Ya(t))}balanceDate(t){let n=Ya(t),r=pd(n);en[r]!==t.era&&(t.era=en[r],t.year=n.year-di[r]),this.constrainDate(t)}constrainDate(t){let n=en.indexOf(t.era),r=w5[n];if(r!=null){let[o,i,a]=r,s=o-di[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,o,i]=or[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(i,t.day))}}getEras(){return en}getYearsInEra(t){let n=en.indexOf(t.era),r=or[n],o=or[n+1];if(o==null)return 9999-r[0]+1;let i=o[0]-r[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(Ya(t))}getMinimumMonthInYear(t){let n=hd(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=hd(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function hd(e){if(e.year===1){let t=en.indexOf(e.era);return or[t]}}const M0=-543;class D5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year);return new Re(this,r-M0,n.month,n.day)}toJulianDay(t){return super.toJulianDay(bd(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(bd(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function bd(e){let[t,n]=na(e.year+M0);return new Re(t,n,e.month,e.day)}const Fi=1911;function k0(e){return e.era==="minguo"?e.year+Fi:1-e.year+Fi}function md(e){let t=e-Fi;return t>0?["minguo",t]:["before_minguo",1-t]}class E5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year),[o,i]=md(r);return new Re(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(gd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=md(k0(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(gd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Fi}constructor(...t){super(...t),this.identifier="roc"}}function gd(e){let[t,n]=na(k0(e));return new Re(t,n,e.month,e.day)}const P5=1948321;function S5(e){let t=e>0?e-474:e-473,n=Nt(t,2820)+474;return Nt((n+38)*31,128)<31}function Xo(e,t,n){let r=e>0?e-474:e-473,o=Nt(r,2820)+474,i=t<=7?31*(t-1):30*(t-1)+6;return P5-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+n}class T5{fromJulianDay(t){let n=t-Xo(475,1,1),r=Math.floor(n/1029983),o=Nt(n,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),a=474+2820*r+i;a<=0&&a--;let s=t-Xo(a,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),d=t-Xo(a,l,1)+1;return new Re(this,a,l,d)}toJulianDay(t){return Xo(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||S5(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const qa=78,vd=80;class A5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-qa,o=t-Dn(n.era,n.year,1,1),i;o<vd?(r--,i=nn(n.year-1)?31:30,o+=i+155+90+10):(i=nn(n.year)?31:30,o-=vd);let a,s;if(o<i)a=1,s=o+1;else{let l=o-i;l<155?(a=Math.floor(l/31)+2,s=l%31+1):(l-=155,a=Math.floor(l/30)+7,s=l%30+1)}return new Re(this,r,a,s)}toJulianDay(t){let n=t.year+qa,[r,o]=na(n),i,a;return nn(o)?(i=31,a=Dn(r,o,3,21)):(i=30,a=Dn(r,o,3,22)),t.month===1?a+t.day-1:(a+=i+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&nn(t.year+qa)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Bi=1948440,yd=1948439,ut=1300,Gn=1600,M5=460322;function Ii(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function R0(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+Ii(t,r,1,1)))/29.5)+1),i=n-Ii(t,r,o,1)+1;return new Re(e,r,o,i)}function $d(e){return(14+11*e)%30<11}class Ql{fromJulianDay(t){return R0(this,Bi,t)}toJulianDay(t){return Ii(Bi,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&$d(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return $d(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class k5 extends Ql{fromJulianDay(t){return R0(this,yd,t)}toJulianDay(t){return Ii(yd,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const R5="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Gs,ir;function fi(e){return M5+ir[e-ut]}function zr(e,t){let n=e-ut,r=1<<11-(t-1);return Gs[n]&r?30:29}function xd(e,t){let n=fi(e);for(let r=1;r<t;r++)n+=zr(e,r);return n}function wd(e){return ir[e+1-ut]-ir[e-ut]}class F5 extends Ql{fromJulianDay(t){let n=t-Bi,r=fi(ut),o=fi(Gn);if(n<r||n>o)return super.fromJulianDay(t);{let i=ut-1,a=1,s=1;for(;s>0;){i++,s=n-fi(i)+1;let l=wd(i);if(s===l){a=12;break}else if(s<l){let d=zr(i,a);for(a=1;s>d;)s-=d,a++,d=zr(i,a);break}}return new Re(this,i,a,n-xd(i,a)+1)}}toJulianDay(t){return t.year<ut||t.year>Gn?super.toJulianDay(t):Bi+xd(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ut||t.year>Gn?super.getDaysInMonth(t):zr(t.year,t.month)}getDaysInYear(t){return t.year<ut||t.year>Gn?super.getDaysInYear(t):wd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Gs||(Gs=new Uint16Array(Uint8Array.from(atob(R5),t=>t.charCodeAt(0)).buffer)),!ir){ir=new Uint32Array(Gn-ut+1);let t=0;for(let n=ut;n<=Gn;n++){ir[n-ut]=t;for(let r=1;r<=12;r++)t+=zr(n,r)}}}}const Cd=347997,F0=1080,B0=24*F0,B5=29,I5=12*F0+793,L5=B5*B0+I5;function $n(e){return Nt(e*7+1,19)<7}function pi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Nt(3*(r+1),7)<3&&(r+=1),r}function V5(e){let t=pi(e-1),n=pi(e);return pi(e+1)-n===356?2:n-t===382?1:0}function Wr(e){return pi(e)+V5(e)}function I0(e){return Wr(e+1)-Wr(e)}function O5(e){let t=I0(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Jo(e,t){if(t>=6&&!$n(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=O5(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class N5{fromJulianDay(t){let n=t-Cd,r=n*B0/L5,o=Math.floor((19*r+234)/235)+1,i=Wr(o),a=Math.floor(n-i);for(;a<1;)o--,i=Wr(o),a=Math.floor(n-i);let s=1,l=0;for(;l<a;)l+=Jo(o,s),s++;s--,l-=Jo(o,s);let d=a-l;return new Re(this,o,s,d)}toJulianDay(t){let n=Wr(t.year);for(let r=1;r<t.month;r++)n+=Jo(t.year,r);return n+t.day+Cd}getDaysInMonth(t){return Jo(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return I0(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&($n(n.year)&&!$n(t.year)&&n.month>6?t.month--:!$n(n.year)&&$n(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ws=1723856,Dd=1824665,Ys=5500;function Li(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function eu(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Li(e,n,1,1))/30),o=t+1-Li(e,n,r,1);return[n,r,o]}function L0(e){return Math.floor(e%4/3)}function V0(e,t){return t%13!==0?30:L0(e)+5}class tu{fromJulianDay(t){let[n,r,o]=eu(Ws,t),i="AM";return n<=0&&(i="AA",n+=Ys),new Re(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Ys),Li(Ws,n,t.month,t.day)}getDaysInMonth(t){return V0(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+L0(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class K5 extends tu{fromJulianDay(t){let[n,r,o]=eu(Ws,t);return n+=Ys,new Re(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class j5 extends tu{fromJulianDay(t){let[n,r,o]=eu(Dd,t),i="CE";return n<=0&&(i="BCE",n=1-n),new Re(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Li(Dd,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),V0(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function O0(e){switch(e){case"buddhist":return new D5;case"ethiopic":return new tu;case"ethioaa":return new K5;case"coptic":return new j5;case"hebrew":return new N5;case"indian":return new A5;case"islamic-civil":return new Ql;case"islamic-tbla":return new k5;case"islamic-umalqura":return new F5;case"japanese":return new C5;case"persian":return new T5;case"roc":return new E5;case"gregory":default:return new nt}}let Za=new Map;class Yr{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return U5()&&(this.resolvedHourCycle||(this.resolvedHourCycle=H5(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=N0(t,n),this.options=n}}const _5={true:{ja:"h11"},false:{}};function N0(e,t={}){if(typeof t.hour12=="boolean"&&z5()){t={...t};let o=_5[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=o??i,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Za.has(n))return Za.get(n);let r=new Intl.DateTimeFormat(e,t);return Za.set(n,r),r}let Xa=null;function z5(){return Xa==null&&(Xa=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Xa}let Ja=null;function U5(){return Ja==null&&(Ja=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Ja}function H5(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=N0(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&o===23)return"h23";if(r===24&&o===23)return"h24";if(r===0&&o===11)return"h11";if(r===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}let Qa=new Map,qs=!1;try{qs=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Vi=!1;try{Vi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const K0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Oi{format(t){let n="";if(!qs&&this.options.signDisplay!=null?n=W5(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Vi){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=K0[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!qs&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Vi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=G5(t,n),this.options=n}}function G5(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Vi){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=K0[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Qa.has(o))return Qa.get(o);let i=new Intl.NumberFormat(e,t);return Qa.set(o,i),i}function W5(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}const Y5=new RegExp("^.*\\(.*\\).*$"),q5=["latn","arab","hanidec"];class nu{parse(t){return es(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return es(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return es(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Ed=new Map;function es(e,t,n){let r=Pd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of q5)if(o!==r.options.numberingSystem){let i=Pd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Pd(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=Ed.get(n);return r||(r=new Z5(e,t),Ed.set(n,r)),r}class Z5{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Qo(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let i=n.indexOf(".");i===-1&&(i=n.length),n=n.replace(".",""),i-2===0?n=`0.${n}`:i-2===-1?n=`0.0${n}`:i-2===-2?n="0.00":n=`${n.slice(0,i-2)}.${n.slice(i-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new nu(this.locale,o).parse(new Oi(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&Y5.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(t=Qo(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Qo(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Qo(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=J5(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Sd=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),X5=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function J5(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),d=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),f=X5.map(F=>l.formatToParts(F));var p;let h=(p=(o=d.find(F=>F.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",b=(i=c.find(F=>F.type==="plusSign"))===null||i===void 0?void 0:i.value;!b&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(b="+");let y=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(F=>F.type==="decimal"))===null||a===void 0?void 0:a.value,$=(s=d.find(F=>F.type==="group"))===null||s===void 0?void 0:s.value,C=d.filter(F=>!Sd.has(F.type)).map(F=>Td(F.value)),w=f.flatMap(F=>F.filter(A=>!Sd.has(A.type)).map(A=>Td(A.value))),E=[...new Set([...C,...w])].sort((F,A)=>A.length-F.length),P=E.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${E.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),N=new Map(k.map((F,A)=>[F,A])),v=new RegExp(`[${k.join("")}]`,"g");return{minusSign:h,plusSign:b,decimal:y,group:$,literals:P,numeral:v,index:F=>String(N.get(F))}}function Qo(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Td(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Q5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),e2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function t2(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Q5.has(n.script)}let t=e.split("-")[0];return e2.has(t)}const n2=Symbol.for("react-aria.i18n.locale");function j0(){let e=typeof window<"u"&&window[n2]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:t2(e)?"rtl":"ltr"}}let Zs=j0(),Ur=new Set;function Ad(){Zs=j0();for(let e of Ur)e(Zs)}function r2(){let e=At(),[t,n]=u.useState(Zs);return u.useEffect(()=>(Ur.size===0&&window.addEventListener("languagechange",Ad),Ur.add(n),()=>{Ur.delete(n),Ur.size===0&&window.removeEventListener("languagechange",Ad)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const o2=u.createContext(null);function Ve(){let e=r2();return u.useContext(o2)||e}const Md=new WeakMap;function i2(e){let t=Md.get(e);return t||(t=new In(e),Md.set(e,t)),t}function _0(e,t){return t&&In.getGlobalDictionaryForPackage(t)||i2(e)}function gr(e,t){let{locale:n}=Ve(),r=_0(e,t);return u.useMemo(()=>new d0(n,r),[n,r])}function ei(e){e=px(e??{},a2);let{locale:t}=Ve();return u.useMemo(()=>new Yr(t,e),[t,e])}function a2(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function Ni(e={}){let{locale:t}=Ve();return u.useMemo(()=>new Oi(t,e),[t,e])}let ts=new Map;function ru(e){let{locale:t}=Ve(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ts.has(n))return ts.get(n);let r=new Intl.Collator(t,e);return ts.set(n,r),r}function z0(e){let t=ru({usage:"search",...e}),n=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(0,a.length),a)===0),[t]),r=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(-a.length),a)===0),[t]),o=u.useCallback((i,a)=>{if(a.length===0)return!0;i=i.normalize("NFC"),a=a.normalize("NFC");let s=0,l=a.length;for(;s+l<=i.length;s++){let d=i.slice(s,s+l);if(t.compare(a,d)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var U0={};U0={dismiss:"تجاهل"};var H0={};H0={dismiss:"Отхвърляне"};var G0={};G0={dismiss:"Odstranit"};var W0={};W0={dismiss:"Luk"};var Y0={};Y0={dismiss:"Schließen"};var q0={};q0={dismiss:"Απόρριψη"};var Z0={};Z0={dismiss:"Dismiss"};var X0={};X0={dismiss:"Descartar"};var J0={};J0={dismiss:"Lõpeta"};var Q0={};Q0={dismiss:"Hylkää"};var eh={};eh={dismiss:"Rejeter"};var th={};th={dismiss:"התעלם"};var nh={};nh={dismiss:"Odbaci"};var rh={};rh={dismiss:"Elutasítás"};var oh={};oh={dismiss:"Ignora"};var ih={};ih={dismiss:"閉じる"};var ah={};ah={dismiss:"무시"};var sh={};sh={dismiss:"Atmesti"};var lh={};lh={dismiss:"Nerādīt"};var uh={};uh={dismiss:"Lukk"};var ch={};ch={dismiss:"Negeren"};var dh={};dh={dismiss:"Zignoruj"};var fh={};fh={dismiss:"Descartar"};var ph={};ph={dismiss:"Dispensar"};var hh={};hh={dismiss:"Revocare"};var bh={};bh={dismiss:"Пропустить"};var mh={};mh={dismiss:"Zrušiť"};var gh={};gh={dismiss:"Opusti"};var vh={};vh={dismiss:"Odbaci"};var yh={};yh={dismiss:"Avvisa"};var $h={};$h={dismiss:"Kapat"};var xh={};xh={dismiss:"Скасувати"};var wh={};wh={dismiss:"取消"};var Ch={};Ch={dismiss:"關閉"};const kd={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function s2(e={}){let{style:t,isFocusable:n}=e,[r,o]=u.useState(!1),{focusWithinProps:i}=br({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=u.useMemo(()=>r?t:t?{...kd,...t}:kd,[r]);return{visuallyHiddenProps:{...i,style:a}}}function ia(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=s2(e);return u.createElement(n,X(i,a),t)}function l2(e){return e&&e.__esModule?e.default:e}const Jn={top:"top",bottom:"top",left:"left",right:"left"},Ki={top:"bottom",bottom:"top",left:"right",right:"left"},u2={top:"left",left:"top"},Xs={top:"height",left:"width"},Dh={width:"totalWidth",height:"totalHeight"},ti={};let Je=typeof document<"u"&&window.visualViewport;function Rd(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={},l=(Je==null?void 0:Je.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var d;t=(d=Je==null?void 0:Je.width)!==null&&d!==void 0?d:r;var c;n=(c=Je==null?void 0:Je.height)!==null&&c!==void 0?c:o,s.top=f.scrollTop||e.scrollTop,s.left=f.scrollLeft||e.scrollLeft,Je&&(i=Je.offsetTop,a=Je.offsetLeft)}else({width:t,height:n,top:i,left:a}=ar(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return Ol()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(s.top=0,s.left=0,i=Je.pageTop,a=Je.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function c2(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Fd(e,t,n,r,o,i,a){let s=o.scroll[e],l=r[Xs[e]],d=r.scroll[Jn[e]]+i,c=l+r.scroll[Jn[e]]-i,f=t-s+a[e]-r[Jn[e]],p=t-s+n+a[e]-r[Jn[e]];return f<d?d-f:p>c?Math.max(c-p,d-f):0}function d2(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Bd(e){if(ti[e])return ti[e];let[t,n]=e.split(" "),r=Jn[t]||"right",o=u2[r];Jn[n]||(n="center");let i=Xs[r],a=Xs[o];return ti[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},ti[e]}function ns(e,t,n,r,o,i,a,s,l,d){let{placement:c,crossPlacement:f,axis:p,crossAxis:h,size:b,crossSize:g}=r,y={};y[h]=e[h],f==="center"?y[h]+=(e[g]-n[g])/2:f!==h&&(y[h]+=e[g]-n[g]),y[h]+=i;const $=e[h]-n[g]+l+d,C=e[h]+e[g]-l-d;if(y[h]=pt(y[h],$,C),c===p){const w=s?a[b]:t[Dh[b]];y[Ki[p]]=Math.floor(w-e[p]+o)}else y[p]=Math.floor(e[p]+e[b]+o);return y}function f2(e,t,n,r,o,i,a,s){const l=r?n.height:t[Dh.height];let d=e.top!=null?n.top+e.top:n.top+(l-e.bottom-a),c=s!=="top"?Math.max(0,t.height+t.top+t.scroll.top-d-(o.top+o.bottom+i)):Math.max(0,d+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,c)}function Id(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[Ki[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[Ki[s]]-o)}function p2(e,t,n,r,o,i,a,s,l,d,c,f,p,h,b,g){let y=Bd(e),{size:$,crossAxis:C,crossSize:w,placement:E,crossPlacement:P}=y,k=ns(t,s,n,y,c,f,d,p,b,g),N=c,v=Id(s,d,t,o,i+c,y);if(a&&r[$]>v){let Y=Bd(`${Ki[E]} ${P}`),H=ns(t,s,n,Y,c,f,d,p,b,g);Id(s,d,t,o,i+c,Y)>v&&(y=Y,k=H,N=c)}let L="bottom";y.axis==="top"?y.placement==="top"?L="top":y.placement==="bottom"&&(L="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?L="bottom":y.crossPlacement==="bottom"&&(L="top"));let F=Fd(C,k[C],n[w],s,l,i,d);k[C]+=F;let A=f2(k,s,d,p,o,i,n.height,L);h&&h<A&&(A=h),n.height=Math.min(n.height,A),k=ns(t,s,n,y,N,f,d,p,b,g),F=Fd(C,k[C],n[w],s,l,i,d),k[C]+=F;let B={},R=t[C]+.5*t[w]-n[C];const I=b/2+g,K=n[w]-b/2-g,V=t[C]-n[C]+b/2,T=t[C]+t[w]-n[C]-b/2,G=pt(R,V,T);return B[C]=pt(G,I,K),{position:k,maxHeight:A,arrowOffsetLeft:B.left,arrowOffsetTop:B.top,placement:y.placement}}function h2(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,h=r instanceof HTMLElement?b2(r):document.documentElement,b=h===document.documentElement;const g=window.getComputedStyle(h).position;let y=!!g&&g!=="static",$=b?ar(n):Ld(n,h);if(!b){let{marginTop:v,marginLeft:L}=window.getComputedStyle(n);$.top+=parseInt(v,10)||0,$.left+=parseInt(L,10)||0}let C=ar(r),w=d2(r);C.width+=w.left+w.right,C.height+=w.top+w.bottom;let E=c2(o),P=Rd(s),k=Rd(h),N=s.tagName==="BODY"?ar(h):Ld(h,s);return h.tagName==="HTML"&&s.tagName==="BODY"&&(k.scroll.top=0,k.scroll.left=0),p2(t,$,C,E,w,i,a,P,k,N,l,d,y,c,f,p)}function ar(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:n+a-l,width:r,height:o}}function Ld(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:i,width:a,height:s}=e.getBoundingClientRect();r={top:o,left:i,width:a,height:s}}else{r=ar(e);let o=ar(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function b2(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Vd(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Vd(t);)t=t.parentElement;return t||document.documentElement}function Vd(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Eh=new WeakMap;function m2(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current))return;let s=r||Eh.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Te=typeof document<"u"&&window.visualViewport;function Ph(e){let{direction:t}=Ve(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:b,maxHeight:g,arrowBoundaryOffset:y=0}=e,[$,C]=u.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),w=[p,a,o.current,r.current,i.current,s,l,d,c,f,h,t,g,y,n],E=u.useRef(Te==null?void 0:Te.scale);u.useEffect(()=>{h&&(E.current=Te==null?void 0:Te.scale)},[h]);let P=u.useCallback(()=>{if(p===!1||!h||!o.current||!r.current||!i.current||!d||(Te==null?void 0:Te.scale)!==E.current)return;!g&&o.current&&(o.current.style.maxHeight="none");let v=h2({placement:v2(a,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:l,boundaryElement:d,offset:c,crossOffset:f,maxHeight:g,arrowSize:n,arrowBoundaryOffset:y});Object.keys(v.position).forEach(L=>o.current.style[L]=v.position[L]+"px"),o.current.style.maxHeight=v.maxHeight!=null?v.maxHeight+"px":void 0,C(v)},w);be(P,w),g2(P),Kl({ref:o,onResize:P});let k=u.useRef(!1);be(()=>{let v,L=()=>{k.current=!0,clearTimeout(v),v=setTimeout(()=>{k.current=!1},500),P()},F=()=>{k.current&&L()};return Te==null||Te.addEventListener("resize",L),Te==null||Te.addEventListener("scroll",F),()=>{Te==null||Te.removeEventListener("resize",L),Te==null||Te.removeEventListener("scroll",F)}},[P]);let N=u.useCallback(()=>{k.current||b()},[b,k]);return m2({triggerRef:r,isOpen:h,onClose:b&&N}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...$.position,maxHeight:$.maxHeight}},placement:$.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$.arrowOffsetLeft,top:$.arrowOffsetTop}},updatePosition:P}}function g2(e){be(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function v2(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Rt=[];function ou(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;u.useEffect(()=>(o&&Rt.push(t),()=>{let b=Rt.indexOf(t);b>=0&&Rt.splice(b,1)}),[o,t]);let l=()=>{Rt[Rt.length-1]===t&&n&&n()},d=b=>{(!s||s(b.target))&&Rt[Rt.length-1]===t&&(b.stopPropagation(),b.preventDefault())},c=b=>{(!s||s(b.target))&&(Rt[Rt.length-1]===t&&(b.stopPropagation(),b.preventDefault()),l())},f=b=>{b.key==="Escape"&&!a&&(b.stopPropagation(),b.preventDefault(),l())};o0({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:d});let{focusWithinProps:p}=br({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||_x(b.relatedTarget)||(!s||s(b.relatedTarget))&&n()}}),h=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:h}}}function y2(e,t,n){let{type:r}=e,{isOpen:o}=t;u.useEffect(()=>{n&&n.current&&Eh.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=_e();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:null,onPress:t.toggle},overlayProps:{id:a}}}const rs=typeof document<"u"&&window.visualViewport,$2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ni=0,os;function Sh(e={}){let{isDisabled:t}=e;be(()=>{if(!t)return ni++,ni===1&&(pr()?os=w2():os=x2()),()=>{ni--,ni===0&&os()}},[t])}function x2(){return an(Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"))}function w2(){let e,t,n=d=>{e=to(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qn(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},o=d=>{let c=d.target;Nd(c)&&c!==document.activeElement&&(d.preventDefault(),s(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},i=d=>{let c=d.target;Nd(c)&&(s(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",rs&&(rs.height<window.innerHeight?requestAnimationFrame(()=>{Od(c)}):rs.addEventListener("resize",()=>Od(c),{once:!0}))}))},a=null,s=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;a=an(Ir(window,"scroll",d),Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"),Qn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},l=an(Ir(document,"touchstart",n,{passive:!1,capture:!0}),Ir(document,"touchmove",r,{passive:!1,capture:!0}),Ir(document,"touchend",o,{passive:!1,capture:!0}),Ir(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function Qn(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ir(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Od(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=to(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function Nd(e){return e instanceof HTMLInputElement&&!$2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Js=u.createContext(null);function C2(e){let{children:t}=e,n=u.useContext(Js),[r,o]=u.useState(0),i=u.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return u.createElement(Js.Provider,{value:i},t)}function D2(){let e=u.useContext(Js);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function E2(e){let{modalProviderProps:t}=D2();return u.createElement("div",{"data-overlay-container":!0,...e,...t})}function P2(e){return u.createElement(C2,null,u.createElement(E2,e))}function Kd(e){let t=At(),{portalContainer:n=t?null:document.body,...r}=e;if(u.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=u.createElement(P2,r);return Wt.createPortal(o,n)}var Th={};Th={"ar-AE":U0,"bg-BG":H0,"cs-CZ":G0,"da-DK":W0,"de-DE":Y0,"el-GR":q0,"en-US":Z0,"es-ES":X0,"et-EE":J0,"fi-FI":Q0,"fr-FR":eh,"he-IL":th,"hr-HR":nh,"hu-HU":rh,"it-IT":oh,"ja-JP":ih,"ko-KR":ah,"lt-LT":sh,"lv-LV":lh,"nb-NO":uh,"nl-NL":ch,"pl-PL":dh,"pt-BR":fh,"pt-PT":ph,"ro-RO":hh,"ru-RU":bh,"sk-SK":mh,"sl-SI":gh,"sr-SP":vh,"sv-SE":yh,"tr-TR":$h,"uk-UA":xh,"zh-CN":wh,"zh-TW":Ch};function Qs(e){let{onDismiss:t,...n}=e,r=gr(l2(Th),"@react-aria/overlays"),o=An(n,r.format("dismiss")),i=()=>{t&&t()};return u.createElement(ia,null,u.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Lr=new WeakMap,ot=[];function iu(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let d=p=>{if(n.has(p)||r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),f=d(l);if(f===NodeFilter.FILTER_ACCEPT&&i(l),f!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)i(p),p=c.nextNode()}},i=l=>{var d;let c=(d=Lr.get(l))!==null&&d!==void 0?d:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Lr.set(l,c+1))};ot.length&&ot[ot.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let d of l)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(d.target))){for(let c of d.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of d.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return ot.push(s),()=>{a.disconnect();for(let l of r){let d=Lr.get(l);d===1?(l.removeAttribute("aria-hidden"),Lr.delete(l)):Lr.set(l,d-1)}s===ot[ot.length-1]?(ot.pop(),ot.length&&ot[ot.length-1].observe()):ot.splice(ot.indexOf(s),1)}}function S2(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:d}=ou({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:c,arrowProps:f,placement:p}=Ph({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Sh({isDisabled:o||!t.isOpen}),be(()=>{if(t.isOpen&&!o&&r.current)return iu([r.current])},[o,t.isOpen,r]),{popoverProps:X(l,c),arrowProps:f,underlayProps:d,placement:p}}const Ah=u.createContext(null);function Mh(e){let t=At(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=u.useState(!1),a=u.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement(Ul,{restoreFocus:!0,contain:o&&!r},s)),s=u.createElement(Ah.Provider,{value:a},u.createElement(Dx,null,s)),Wt.createPortal(s,n)}function kh(){let e=u.useContext(Ah),t=e==null?void 0:e.setContain;be(()=>{t==null||t(!0)},[t])}function T2(e,t,n){let{overlayProps:r,underlayProps:o}=ou({...e,isOpen:t.isOpen,onClose:t.close},n);return Sh({isDisabled:!t.isOpen}),kh(),u.useEffect(()=>{if(t.isOpen)return iu([n.current])},[t.isOpen,n]),{modalProps:X(r),underlayProps:o}}function aa(e){return u.forwardRef(e)}var Rh=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,a)=>({...i,[a]:e[a]}),{}),r]:[e,r]},Fh=aa((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=S.jsx(A$,{}),alt:a,classNames:s,slots:l,name:d,showFallback:c,fallback:f,getInitials:p,getAvatarProps:h,getImageProps:b}=Xx({...e,ref:t}),g=u.useMemo(()=>!c&&o?null:f?S.jsx("div",{"aria-label":a,className:l.fallback({class:s==null?void 0:s.fallback}),role:"img",children:f}):d?S.jsx("span",{"aria-label":a,className:l.name({class:s==null?void 0:s.name}),role:"img",children:p(d)}):S.jsx("span",{"aria-label":a,className:l.icon({class:s==null?void 0:s.icon}),role:"img",children:i}),[c,o,f,d,s]);return S.jsxs(n,{...h(),children:[o&&S.jsx(r,{...b(),alt:a}),g]})});Fh.displayName="NextUI.Avatar";var Bh=Fh;function A2(e={}){const{as:t,ref:n,max:r=5,total:o,size:i,color:a,radius:s,children:l,isBordered:d,isDisabled:c,isGrid:f,renderCount:p,className:h,classNames:b,...g}=e,y=As(n),$=t||"div",C=u.useMemo(()=>({size:i,color:a,radius:s,isGrid:f,isBordered:d,isDisabled:c}),[i,a,s,f,d,c]),w=u.useMemo(()=>L3({className:h,isGrid:f}),[h,f]),E=W$(l),P=r?E.slice(0,r):E,k=o||(r!=null?E.length-r:-1),N=P.map((F,A)=>{const B=A===0,R=A===P.length-1,I={className:sr(B?"ms-0":f?"":"-ms-2",R&&k<1?"hover:-translate-x-0":"")};return u.cloneElement(F,I$(I))});return{Component:$,context:C,remainingCount:k,clones:N,renderCount:p,getAvatarGroupProps:()=>({ref:y,className:w.base({class:sr(b==null?void 0:b.base,h)}),role:"group",...g}),getAvatarGroupCountProps:()=>({className:w.count({class:b==null?void 0:b.count})})}}var Ih=aa((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:i,getAvatarGroupCountProps:a,getAvatarGroupProps:s,renderCount:l=d=>S.jsx(Bh,{...a(),name:`+${d}`})}=A2({...e,ref:t});return S.jsx(n,{...s(),children:S.jsxs(Y$,{value:o,children:[r,i>0&&l(i)]})})});Ih.displayName="NextUI.AvatarGroup";var M2=Ih;const x={fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],monospace:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},borderRadius:{.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{primary:"#4785ff",secondary:"#b8cfff",tertiary:"#d6e4ff",background:"#f0f5ff",inherit:"inherit",current:"currentColor",transparent:"transparent",black:"rgb(0 0 0)",white:"rgb(255 255 255)",slate:{50:"rgb(248 250 252)",100:"rgb(241 245 249)",200:"rgb(226 232 240)",300:"rgb(203 213 225)",400:"rgb(148 163 184)",500:"rgb(100 116 139)",600:"rgb(71 85 105)",700:"rgb(51 65 85)",800:"rgb(30 41 59)",900:"rgb(15 23 42)"},gray:{50:"rgb(249 250 251)",100:"rgb(243 244 246)",200:"rgb(229 231 235)",300:"rgb(209 213 219)",400:"rgb(156 163 175)",500:"rgb(107 114 128)",600:"rgb(75 85 99)",700:"rgb(55 65 81)",800:"rgb(31 41 55)",900:"rgb(17 24 39)"},zinc:{50:"rgb(250 250 250)",100:"rgb(244 244 245)",200:"rgb(228 228 231)",300:"rgb(212 212 216)",400:"rgb(161 161 170)",500:"rgb(113 113 122)",600:"rgb(82 82 91)",700:"rgb(63 63 70)",800:"rgb(39 39 42)",900:"rgb(24 24 27)"},neutral:{50:"rgb(250 250 250)",100:"rgb(245 245 245)",200:"rgb(229 229 229)",300:"rgb(212 212 212)",400:"rgb(163 163 163)",500:"rgb(115 115 115)",600:"rgb(82 82 82)",700:"rgb(64 64 64)",800:"rgb(38 38 38)",900:"rgb(23 23 23)"},stone:{50:"rgb(250 250 249)",100:"rgb(245 245 244)",200:"rgb(231 229 228)",300:"rgb(214 211 209)",400:"rgb(168 162 158)",500:"rgb(120 113 108)",600:"rgb(87 83 78)",700:"rgb(68 64 60)",800:"rgb(41 37 36)",900:"rgb(28 25 23)"},red:{50:"rgb(254 242 242)",100:"rgb(254 226 226)",200:"rgb(254 202 202)",300:"rgb(252 165 165)",400:"rgb(248 113 113)",500:"rgb(239 68 68)",600:"rgb(220 38 38)",700:"rgb(185 28 28)",800:"rgb(153 27 27)",900:"rgb(127 29 29)"},orange:{50:"rgb(255 247 237)",100:"rgb(255 237 213)",200:"rgb(254 215 170)",300:"rgb(253 186 116)",400:"rgb(251 146 60)",500:"rgb(249 115 22)",600:"rgb(234 88 12)",700:"rgb(194 65 12)",800:"rgb(154 52 18)",900:"rgb(124 45 18)"},amber:{50:"rgb(255 251 235)",100:"rgb(254 243 199)",200:"rgb(253 230 138)",300:"rgb(252 211 77)",400:"rgb(251 191 36)",500:"rgb(245 158 11)",600:"rgb(217 119 6)",700:"rgb(180 83 9)",800:"rgb(146 64 14)",900:"rgb(120 53 15)"},yellow:{50:"rgb(254 252 232)",100:"rgb(254 249 195)",200:"rgb(254 240 138)",300:"rgb(253 224 71)",400:"rgb(250 204 21)",500:"rgb(234 179 8)",600:"rgb(202 138 4)",700:"rgb(161 98 7)",800:"rgb(133 77 14)",900:"rgb(113 63 18)"},lime:{50:"rgb(247 254 231)",100:"rgb(236 252 203)",200:"rgb(217 249 157)",300:"rgb(190 242 100)",400:"rgb(163 230 53)",500:"rgb(132 204 22)",600:"rgb(101 163 13)",700:"rgb(77 124 15)",800:"rgb(63 98 18)",900:"rgb(54 83 20)"},green:{50:"rgb(240 253 244)",100:"rgb(220 252 231)",200:"rgb(187 247 208)",300:"rgb(134 239 172)",400:"rgb(74 222 128)",500:"rgb(34 197 94)",600:"rgb(22 163 74)",700:"rgb(21 128 61)",800:"rgb(22 101 52)",900:"rgb(20 83 45)"},emerald:{50:"rgb(236 253 245)",100:"rgb(209 250 229)",200:"rgb(167 243 208)",300:"rgb(110 231 183)",400:"rgb(52 211 153)",500:"rgb(16 185 129)",600:"rgb(5 150 105)",700:"rgb(4 120 87)",800:"rgb(6 95 70)",900:"rgb(6 78 59)"},teal:{50:"rgb(240 253 250)",100:"rgb(204 251 241)",200:"rgb(153 246 228)",300:"rgb(94 234 212)",400:"rgb(45 212 191)",500:"rgb(20 184 166)",600:"rgb(13 148 136)",700:"rgb(15 118 110)",800:"rgb(17 94 89)",900:"rgb(19 78 74)"},cyan:{50:"rgb(236 254 255)",100:"rgb(207 250 254)",200:"rgb(165 243 252)",300:"rgb(103 232 249)",400:"rgb(34 211 238)",500:"rgb(6 182 212)",600:"rgb(8 145 178)",700:"rgb(14 116 144)",800:"rgb(21 94 117)",900:"rgb(22 78 99)"},sky:{50:"rgb(240 249 255)",100:"rgb(224 242 254)",200:"rgb(186 230 253)",300:"rgb(125 211 252)",400:"rgb(56 189 248)",500:"rgb(14 165 233)",600:"rgb(2 132 199)",700:"rgb(3 105 161)",800:"rgb(7 89 133)",900:"rgb(12 74 110)"},blue:{50:"rgb(239 246 255)",100:"rgb(219 234 254)",200:"rgb(191 219 254)",300:"rgb(147 197 253)",400:"rgb(96 165 250)",500:"rgb(59 130 246)",600:"rgb(37 99 235)",700:"rgb(29 78 216)",800:"rgb(30 64 175)",900:"rgb(30 58 138)"},indigo:{50:"rgb(238 242 255)",100:"rgb(224 231 255)",200:"rgb(199 210 254)",300:"rgb(165 180 252)",400:"rgb(129 140 248)",500:"rgb(99 102 241)",600:"rgb(79 70 229)",700:"rgb(67 56 202)",800:"rgb(55 48 163)",900:"rgb(49 46 129)"},violet:{50:"rgb(245 243 255)",100:"rgb(237 233 254)",200:"rgb(221 214 254)",300:"rgb(196 181 253)",400:"rgb(167 139 250)",500:"rgb(139 92 246)",600:"rgb(124 58 237)",700:"rgb(109 40 217)",800:"rgb(91 33 182)",900:"rgb(76 29 149)"},purple:{50:"rgb(250 245 255)",100:"rgb(243 232 255)",200:"rgb(233 213 255)",300:"rgb(216 180 254)",400:"rgb(192 132 252)",500:"rgb(168 85 247)",600:"rgb(147 51 234)",700:"rgb(126 34 206)",800:"rgb(107 33 168)",900:"rgb(88 28 135)"},fuchsia:{50:"rgb(253 244 255)",100:"rgb(250 232 255)",200:"rgb(245 208 254)",300:"rgb(240 171 252)",400:"rgb(232 121 249)",500:"rgb(217 70 239)",600:"rgb(192 38 211)",700:"rgb(162 28 175)",800:"rgb(134 25 143)",900:"rgb(112 26 117)"},pink:{50:"rgb(253 242 248)",100:"rgb(252 231 243)",200:"rgb(251 207 232)",300:"rgb(249 168 212)",400:"rgb(244 114 182)",500:"rgb(236 72 153)",600:"rgb(219 39 119)",700:"rgb(190 24 93)",800:"rgb(157 23 77)",900:"rgb(131 24 67)"},rose:{50:"rgb(255 241 242)",100:"rgb(255 228 230)",200:"rgb(254 205 211)",300:"rgb(253 164 175)",400:"rgb(251 113 133)",500:"rgb(244 63 94)",600:"rgb(225 29 72)",700:"rgb(190 18 60)",800:"rgb(159 18 57)",900:"rgb(136 19 55)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},height:{auto:"auto",px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},components:{button:{primary:{color:"#FFF",backgroundColor:"#000"}},Card:{border:"1px solid rgb(226 232 240)",padding:"1rem",backgroundColor:"transparent",borderRadius:"2px",boxShadow:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px"},"Card.Content":{padding:0,fontSize:"0.9rem"},"Card.Header":{fontSize:"1.125rem",fontWeight:"700",marginBottom:"1rem"}}};function Lh(e,t){const n={...e};return Object.entries(t).forEach(([r,o])=>{o!==null&&typeof o=="object"&&!Array.isArray(o)?((n[r]===void 0||n[r]===null)&&(n[r]={}),n[r]=Lh(n[r],o)):n[r]=o}),n}const k2=_.styled.div`
|
|
40
40
|
z-index: 1;
|
|
41
41
|
|
|
42
42
|
&:not(:first-child) {
|
|
@@ -48,7 +48,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
48
48
|
transform: ${({isInGroup:e,isGrid:t})=>!t&&e?"translateY(-0.8rem)":"none"};
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,R2=_.styled(Bh)`
|
|
52
52
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
|
|
53
53
|
display: flex;
|
|
54
54
|
align-items: center;
|
|
@@ -95,31 +95,31 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
95
95
|
overflow: hidden;
|
|
96
96
|
text-align: center;
|
|
97
97
|
}
|
|
98
|
-
`;function
|
|
98
|
+
`;function F2({icon:e,...t}){const n=Mp();return S.jsx(k2,{isInGroup:!!n,isGrid:!!(n!=null&&n.isGrid),children:S.jsx(R2,{...t,icon:e||S.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M20 21C20 19.6044 20 18.9067 19.8278 18.3389C19.44 17.0605 18.4395 16.06 17.1611 15.6722C16.5933 15.5 15.8956 15.5 14.5 15.5H9.5C8.10444 15.5 7.40665 15.5 6.83886 15.6722C5.56045 16.06 4.56004 17.0605 4.17224 18.3389C4 18.9067 4 19.6044 4 21M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}const B2=_.styled(M2)`
|
|
99
99
|
display: ${({isGrid:e})=>e?"inline-grid":"flex"};
|
|
100
100
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
101
101
|
align-items: center;
|
|
102
102
|
gap: ${({isGrid:e})=>e?"0.75rem":"0"};
|
|
103
|
-
`;function 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&<(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)&<(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(`
|
|
103
|
+
`;function I2({children:e,isGrid:t,renderCount:n}){return S.jsx(B2,{isGrid:t,max:0,renderCount:n??void 0,children:e})}const au=u.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),sa=u.createContext({}),la=u.createContext(null),su=typeof document<"u",lu=su?u.useLayoutEffect:u.useEffect,uu=u.createContext({strict:!1}),cu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),L2="framerAppearId",Vh="data-"+cu(L2),V2={skipAnimations:!1,useManualTiming:!1};class jd{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function O2(e){let t=new jd,n=new jd,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,d=!1,c=!1)=>{const f=c&&o,p=f?t:n;return d&&a.add(l),p.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const c=t.order[d];a.has(c)&&(s.schedule(c),e()),c(l)}o=!1,i&&(i=!1,s.process(l))}};return s}const ri=["read","resolveKeyframes","update","preRender","render","postRender"],N2=40;function Oh(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=ri.reduce((f,p)=>(f[p]=O2(()=>n=!0),f),{}),a=f=>{i[f].process(o)},s=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,N2),1),o.timestamp=f,o.isProcessing=!0,ri.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:ri.reduce((f,p)=>{const h=i[p];return f[p]=(b,g=!1,y=!1)=>(n||l(),h.schedule(b,g,y)),f},{}),cancel:f=>ri.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:du,cancel:CA}=Oh(queueMicrotask,!1);function K2(e,t,n,r){const{visualElement:o}=u.useContext(sa),i=u.useContext(uu),a=u.useContext(la),s=u.useContext(au).reducedMotion,l=u.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const d=l.current;u.useInsertionEffect(()=>{d&&d.update(n,a)});const c=u.useRef(!!(n[Vh]&&!window.HandoffComplete));return lu(()=>{d&&(du.postRender(d.render),c.current&&d.animationState&&d.animationState.animateChanges())}),u.useEffect(()=>{d&&(d.updateFeatures(),!c.current&&d.animationState&&d.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),d}function er(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function j2(e,t,n){return u.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):er(n)&&(n.current=r))},[t])}function ao(e){return typeof e=="string"||Array.isArray(e)}function ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const fu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pu=["initial",...fu];function ca(e){return ua(e.animate)||pu.some(t=>ao(e[t]))}function Nh(e){return!!(ca(e)||e.variants)}function _2(e,t){if(ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ao(n)?n:void 0,animate:ao(r)?r:void 0}}return e.inherit!==!1?t:{}}function z2(e){const{initial:t,animate:n}=_2(e,u.useContext(sa));return u.useMemo(()=>({initial:t,animate:n}),[_d(t),_d(n)])}function _d(e){return Array.isArray(e)?e.join(" "):e}const zd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},so={};for(const e in zd)so[e]={isEnabled:t=>zd[e].some(n=>!!t[n])};function el(e){for(const t in e)so[t]={...so[t],...e[t]}}const hu=u.createContext({}),Kh=u.createContext({}),U2=Symbol.for("motionComponentSymbol");function H2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&el(e);function i(s,l){let d;const c={...u.useContext(au),...s,layoutId:G2(s)},{isStatic:f}=c,p=z2(s),h=r(s,f);if(!f&&su){p.visualElement=K2(o,h,c,t);const b=u.useContext(Kh),g=u.useContext(uu).strict;p.visualElement&&(d=p.visualElement.loadFeatures(c,g,e,b))}return S.jsxs(sa.Provider,{value:p,children:[d&&p.visualElement?S.jsx(d,{visualElement:p.visualElement,...c}):null,n(o,s,j2(h,p.visualElement,l),h,f,p.visualElement)]})}const a=u.forwardRef(i);return a[U2]=o,a}function G2({layoutId:e}){const t=u.useContext(hu).id;return t&&e!==void 0?t+"-"+e:e}function jh(e){function t(r,o={}){return H2(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const W2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function bu(e){return typeof e!="string"||e.includes("-")?!1:!!(W2.indexOf(e)>-1||/[A-Z]/u.test(e))}const ji={};function Y2(e){Object.assign(ji,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ln=new Set(yo);function _h(e,{layout:t,layoutId:n}){return Ln.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ji[e]||e==="opacity")}const We=e=>!!(e&&e.getVelocity),q2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z2=yo.length;function X2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<Z2;a++){const s=yo[a];if(e[s]!==void 0){const l=q2[s]||s;i+=`${l}(${e[s]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const zh=e=>t=>typeof t=="string"&&t.startsWith(e),Uh=zh("--"),J2=zh("var(--"),mu=e=>J2(e)?Q2.test(e.split("/*")[0].trim()):!1,Q2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,e6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,un=(e,t,n)=>n>t?t:n<e?e:n,vr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qr={...vr,transform:e=>un(0,1,e)},oi={...vr,default:1},Zr=e=>Math.round(e*1e5)/1e5,gu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,t6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,n6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function $o(e){return typeof e=="string"}const xo=e=>({test:t=>$o(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qt=xo("deg"),St=xo("%"),ne=xo("px"),r6=xo("vh"),o6=xo("vw"),Ud={...St,parse:e=>St.parse(e)/100,transform:e=>St.transform(e*100)},Hd={...vr,transform:Math.round},Hh={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,size:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,rotate:Qt,rotateX:Qt,rotateY:Qt,rotateZ:Qt,scale:oi,scaleX:oi,scaleY:oi,scaleZ:oi,skew:Qt,skewX:Qt,skewY:Qt,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:qr,originX:Ud,originY:Ud,originZ:ne,zIndex:Hd,backgroundPositionX:ne,backgroundPositionY:ne,fillOpacity:qr,strokeOpacity:qr,numOctaves:Hd};function vu(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,d=!1,c=!0;for(const f in t){const p=t[f];if(Uh(f)){i[f]=p;continue}const h=Hh[f],b=e6(p,h);if(Ln.has(f)){if(l=!0,a[f]=b,!c)continue;p!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(d=!0,s[f]=b):o[f]=b}if(t.transform||(l||r?o.transform=X2(e.transform,n,c,r):o.transform&&(o.transform="none")),d){const{originX:f="50%",originY:p="50%",originZ:h=0}=s;o.transformOrigin=`${f} ${p} ${h}`}}const yu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gh(e,t,n){for(const r in t)!We(t[r])&&!_h(r,n)&&(e[r]=t[r])}function i6({transformTemplate:e},t,n){return u.useMemo(()=>{const r=yu();return vu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function a6(e,t,n){const r=e.style||{},o={};return Gh(o,r,e),Object.assign(o,i6(e,t,n)),o}function s6(e,t,n){const r={},o=a6(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const l6=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _i(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||l6.has(e)}let Wh=e=>!_i(e);function u6(e){e&&(Wh=t=>t.startsWith("on")?!_i(t):e(t))}try{u6(require("@emotion/is-prop-valid").default)}catch{}function c6(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Wh(o)||n===!0&&_i(o)||!t&&!_i(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Gd(e,t,n){return typeof e=="string"?e:ne.transform(t+n*e)}function d6(e,t,n){const r=Gd(t,e.x,e.width),o=Gd(n,e.y,e.height);return`${r} ${o}`}const f6={offset:"stroke-dashoffset",array:"stroke-dasharray"},p6={offset:"strokeDashoffset",array:"strokeDasharray"};function h6(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?f6:p6;e[i.offset]=ne.transform(-r);const a=ne.transform(t),s=ne.transform(n);e[i.array]=`${a} ${s}`}function $u(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...d},c,f,p){if(vu(e,d,c,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:b,dimensions:g}=e;h.transform&&(g&&(b.transform=h.transform),delete h.transform),g&&(o!==void 0||i!==void 0||b.transform)&&(b.transformOrigin=d6(g,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&h6(h,a,s,l,!1)}const Yh=()=>({...yu(),attrs:{}}),xu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function b6(e,t,n,r){const o=u.useMemo(()=>{const i=Yh();return $u(i,t,{enableHardwareAcceleration:!1},xu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gh(i,e.style,e),o.style={...i,...o.style}}return o}function m6(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(bu(n)?b6:s6)(r,i,a,n),d=c6(r,typeof n=="string",e),c=n!==u.Fragment?{...d,...l,ref:o}:{},{children:f}=r,p=u.useMemo(()=>We(f)?f.get():f,[f]);return u.createElement(n,{...c,children:p})}}function qh(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Zh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Xh(e,t,n,r){qh(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Zh.has(o)?o:cu(o),t.attrs[o])}function wu(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(We(o[a])||t.style&&We(t.style[a])||_h(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=o[a]);return i}function Jh(e,t,n){const r=wu(e,t,n);for(const o in e)if(We(e[o])||We(t[o])){const i=yo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Cu(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function Qh(e){const t=u.useRef(null);return t.current===null&&(t.current=e()),t.current}const tl=e=>Array.isArray(e),g6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),v6=e=>tl(e)?e[e.length-1]||0:e;function hi(e){const t=We(e)?e.get():e;return g6(t)?t.toValue():t}function y6({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:$6(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const eb=e=>(t,n)=>{const r=u.useContext(sa),o=u.useContext(la),i=()=>y6(e,t,r,o);return n?i():Qh(i)};function $6(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=hi(i[p]);let{initial:a,animate:s}=e;const l=ca(e),d=Nh(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!ua(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const b=Cu(e,h);if(!b)return;const{transitionEnd:g,transition:y,...$}=b;for(const C in $){let w=$[C];if(Array.isArray(w)){const E=c?w.length-1:0;w=w[E]}w!==null&&(o[C]=w)}for(const C in g)o[C]=g[C]}),o}const ze=e=>e,{schedule:Le,cancel:cn,state:je,steps:is}=Oh(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0),x6={useVisualState:eb({scrapeMotionValuesFromProps:Jh,createRenderState:Yh,onMount:(e,t,{renderState:n,latestValues:r})=>{Le.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Le.render(()=>{$u(n,r,{enableHardwareAcceleration:!1},xu(t.tagName),e.transformTemplate),Xh(t,n)})}})},w6={useVisualState:eb({scrapeMotionValuesFromProps:wu,createRenderState:yu})};function tb(e,{forwardMotionProps:t=!1},n,r){return{...bu(e)?x6:w6,preloadedFeatures:n,useRender:m6(t),createVisualElement:r,Component:e}}function Ot(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const nb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function da(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const C6=e=>t=>nb(t)&&e(t,da(t));function Kt(e,t,n,r){return Ot(e,t,C6(n),r)}const D6=(e,t)=>n=>t(e(n)),jt=(...e)=>e.reduce(D6);function rb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Wd=rb("dragHorizontal"),Yd=rb("dragVertical");function ob(e){let t=!1;if(e==="y")t=Yd();else if(e==="x")t=Wd();else{const n=Wd(),r=Yd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ib(){const e=ob(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qd(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,a)=>{if(i.pointerType==="touch"||ib())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const l=s[r];l&&l(i,a)};return Kt(e.current,n,o,{passive:!e.getProps()[r]})}class E6 extends fn{mount(){this.unmount=jt(qd(this.node,!0),qd(this.node,!1))}unmount(){}}class P6 extends fn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=jt(Ot(this.node.current,"focus",()=>this.onFocus()),Ot(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ab=(e,t)=>t?e===t?!0:ab(e,t.parentElement):!1;function as(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,da(n))}class S6 extends fn{constructor(){super(...arguments),this.removeStartListeners=ze,this.removeEndListeners=ze,this.removeAccessibleListeners=ze,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Kt(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:c,globalTapTarget:f}=this.node.getProps();!f&&!ab(this.node.current,s.target)?c&&c(s,l):d&&d(s,l)},{passive:!(r.onTap||r.onPointerUp)}),a=Kt(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jt(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||as("up",(l,d)=>{const{onTap:c}=this.node.getProps();c&&c(l,d)})};this.removeEndListeners(),this.removeEndListeners=Ot(this.node.current,"keyup",a),as("down",(s,l)=>{this.startPress(s,l)})},n=Ot(this.node.current,"keydown",t),r=()=>{this.isPressing&&as("cancel",(i,a)=>this.cancelPress(i,a))},o=Ot(this.node.current,"blur",r);this.removeAccessibleListeners=jt(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ib()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Kt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Ot(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const nl=new WeakMap,ss=new WeakMap,T6=e=>{const t=nl.get(e.target);t&&t(e)},A6=e=>{e.forEach(T6)};function M6({root:e,...t}){const n=e||document;ss.has(n)||ss.set(n,{});const r=ss.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(A6,{root:e,...t})),r[o]}function k6(e,t,n){const r=M6(t);return nl.set(e,n),r.observe(e),()=>{nl.delete(e),r.unobserve(e)}}const R6={some:0,all:1};class F6 extends fn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:R6[o]},s=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),p=d?c:f;p&&p(l)};return k6(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(B6(t,n))&&this.startObserver()}unmount(){}}function B6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const sb={inView:{Feature:F6},tap:{Feature:S6},focus:{Feature:P6},hover:{Feature:E6}};function lb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function I6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function L6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function fa(e,t,n){const r=e.getProps();return Cu(r,t,n!==void 0?n:r.custom,I6(e),L6(e))}const _t=e=>e*1e3,zt=e=>e/1e3,V6={type:"spring",stiffness:500,damping:25,restSpeed:10},O6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),N6={type:"keyframes",duration:.8},K6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},j6=(e,{keyframes:t})=>t.length>2?N6:Ln.has(e)?e.startsWith("scale")?O6(t[1]):V6:K6;function _6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:d,...c}){return!!Object.keys(c).length}function Du(e,t){return e[t]||e.default||e}const z6=e=>e!==null;function pa(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(z6),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let bi;function U6(){bi=void 0}const on={now:()=>(bi===void 0&&on.set(je.isProcessing||V2.useManualTiming?je.timestamp:performance.now()),bi),set:e=>{bi=e,queueMicrotask(U6)}},ub=e=>/^0[^.\s]+$/u.test(e);function H6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ub(e):!0}let wo=ze,Tt=ze;process.env.NODE_ENV!=="production"&&(wo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Tt=(e,t)=>{if(!e)throw new Error(t)});const cb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),G6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function W6(e){const t=G6.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Y6=4;function db(e,t,n=1){Tt(n<=Y6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=W6(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return cb(a)?parseFloat(a):a}return mu(o)?db(o,t,n+1):o}const q6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Zd=e=>e===vr||e===ne,Xd=(e,t)=>parseFloat(e.split(", ")[t]),Jd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Xd(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Xd(i[1],e):0}},Z6=new Set(["x","y","z"]),X6=yo.filter(e=>!Z6.has(e));function J6(e){const t=[];return X6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Jd(4,13),y:Jd(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const fb=e=>t=>t.test(e),Q6={test:e=>e==="auto",parse:e=>e},pb=[vr,ne,St,Qt,o6,r6,Q6],Qd=e=>pb.find(fb(e)),Pn=new Set;let rl=!1,ol=!1;function hb(){if(ol){const e=Array.from(Pn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=J6(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{var s;(s=r.getValue(i))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ol=!1,rl=!1,Pn.forEach(e=>e.complete()),Pn.clear()}function bb(){Pn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ol=!0)})}function ew(){bb(),hb()}class Eu{constructor(t,n,r,o,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Pn.add(this),rl||(rl=!0,Le.read(bb),Le.resolveKeyframes(hb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=o==null?void 0:o.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),o&&a===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Pn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Pn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Pu=(e,t)=>n=>!!($o(n)&&n6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),mb=(e,t,n)=>r=>{if(!$o(r))return r;const[o,i,a,s]=r.match(gu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},tw=e=>un(0,255,e),ls={...vr,transform:e=>Math.round(tw(e))},En={test:Pu("rgb","red"),parse:mb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ls.transform(e)+", "+ls.transform(t)+", "+ls.transform(n)+", "+Zr(qr.transform(r))+")"};function nw(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const il={test:Pu("#"),parse:nw,transform:En.transform},tr={test:Pu("hsl","hue"),parse:mb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+St.transform(Zr(t))+", "+St.transform(Zr(n))+", "+Zr(qr.transform(r))+")"},He={test:e=>En.test(e)||il.test(e)||tr.test(e),parse:e=>En.test(e)?En.parse(e):tr.test(e)?tr.parse(e):il.parse(e),transform:e=>$o(e)?e:e.hasOwnProperty("red")?En.transform(e):tr.transform(e)};function rw(e){var t,n;return isNaN(e)&&$o(e)&&(((t=e.match(gu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(t6))===null||n===void 0?void 0:n.length)||0)>0}const gb="number",vb="color",ow="var",iw="var(",ef="${}",aw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(aw,l=>(He.test(l)?(r.color.push(i),o.push(vb),n.push(He.parse(l))):l.startsWith(iw)?(r.var.push(i),o.push(ow),n.push(l)):(r.number.push(i),o.push(gb),n.push(parseFloat(l))),++i,ef)).split(ef);return{values:n,split:s,indexes:r,types:o}}function yb(e){return zi(e).values}function $b(e){const{split:t,types:n}=zi(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const s=n[a];s===gb?i+=Zr(o[a]):s===vb?i+=He.transform(o[a]):i+=o[a]}return i}}const sw=e=>typeof e=="number"?0:e;function lw(e){const t=yb(e);return $b(e)(t.map(sw))}const dn={test:rw,parse:yb,createTransformer:$b,getAnimatableNone:lw},uw=new Set(["brightness","contrast","saturate","opacity"]);function cw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(gu)||[];if(!r)return e;const o=n.replace(r,"");let i=uw.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const dw=/\b([a-z-]*)\(.*?\)/gu,al={...dn,getAnimatableNone:e=>{const t=e.match(dw);return t?t.map(cw).join(" "):e}},fw={...Hh,color:He,backgroundColor:He,outlineColor:He,fill:He,stroke:He,borderColor:He,borderTopColor:He,borderRightColor:He,borderBottomColor:He,borderLeftColor:He,filter:al,WebkitFilter:al},Su=e=>fw[e];function xb(e,t){let n=Su(e);return n!==al&&(n=dn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function pw(e,t,n){let r=0,o;for(;r<e.length&&!o;)typeof e[r]=="string"&&e[r]!=="none"&&e[r]!=="0"&&(o=e[r]),r++;if(o&&n)for(const i of t)e[i]=xb(n,o)}class wb extends Eu{constructor(t,n,r,o){super(t,n,r,o,o==null?void 0:o.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){const d=t[l];if(typeof d=="string"&&mu(d)){const c=db(d,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=d)}}if(!q6.has(r)||t.length!==2)return this.resolveNoneKeyframes();const[o,i]=t,a=Qd(o),s=Qd(i);if(a!==s)if(Zd(a)&&Zd(s))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)H6(t[o])&&r.push(o);r.length&&pw(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=o.length-1,s=o[a];o[a]=cr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}}function hw(e){let t;return()=>(t===void 0&&(t=e()),t)}const tf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(dn.test(e)||e==="0")&&!e.startsWith("url("));function bw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mw(e,t,n,r){const o=e[0];if(o===null)return!1;const i=e[e.length-1],a=tf(o,t),s=tf(i,t);return wo(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!a||!s?!1:bw(e)||n==="spring"&&r}class Cb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,...s},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ew(),this._resolved}onKeyframesResolved(t,n){this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:a,onComplete:s,onUpdate:l,isGenerator:d}=this.options;if(!d&&!mw(t,r,o,i))if(a)this.options.duration=0;else{l==null||l(pa(t,this.options,n)),s==null||s(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Db(e,t){return t?e*(1e3/t):0}const gw=5;function Eb(e,t,n){const r=Math.max(t-gw,0);return Db(n-e(r),t-r)}const us=.001,vw=.01,nf=10,yw=.05,$w=1;function xw({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;wo(e<=_t(nf),"Spring duration must be 10 seconds or less");let a=1-t;a=un(yw,$w,a),e=un(vw,nf,zt(e)),a<1?(o=d=>{const c=d*a,f=c*e,p=c-n,h=sl(d,a),b=Math.exp(-f);return us-p/h*b},i=d=>{const f=d*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(d,2)*e,b=Math.exp(-f),g=sl(Math.pow(d,2),a);return(-o(d)+us>0?-1:1)*((p-h)*b)/g}):(o=d=>{const c=Math.exp(-d*e),f=(d-n)*e+1;return-us+c*f},i=d=>{const c=Math.exp(-d*e),f=(n-d)*(e*e);return c*f});const s=5/e,l=Cw(o,i,s);if(e=_t(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const ww=12;function Cw(e,t,n){let r=n;for(let o=1;o<ww;o++)r=r-e(r)/t(r);return r}function sl(e,t){return e*Math.sqrt(1-t*t)}const Dw=["duration","bounce"],Ew=["stiffness","damping","mass"];function rf(e,t){return t.some(n=>e[n]!==void 0)}function Pw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rf(e,Ew)&&rf(e,Dw)){const n=xw(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Pb({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:d,duration:c,velocity:f,isResolvedFromDuration:p}=Pw({...r,velocity:-zt(r.velocity||0)}),h=f||0,b=l/(2*Math.sqrt(s*d)),g=i-o,y=zt(Math.sqrt(s/d)),$=Math.abs(g)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(b<1){const w=sl(y,b);C=E=>{const P=Math.exp(-b*y*E);return i-P*((h+b*y*g)/w*Math.sin(w*E)+g*Math.cos(w*E))}}else if(b===1)C=w=>i-Math.exp(-y*w)*(g+(h+y*g)*w);else{const w=y*Math.sqrt(b*b-1);C=E=>{const P=Math.exp(-b*y*E),k=Math.min(w*E,300);return i-P*((h+b*y*g)*Math.sinh(k)+w*g*Math.cosh(k))/w}}return{calculatedDuration:p&&c||null,next:w=>{const E=C(w);if(p)a.done=w>=c;else{let P=h;w!==0&&(b<1?P=Eb(C,w,E):P=0);const k=Math.abs(P)<=n,N=Math.abs(i-E)<=t;a.done=k&&N}return a.value=a.done?i:E,a}}}function of({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:d=.5,restSpeed:c}){const f=e[0],p={done:!1,value:f},h=v=>s!==void 0&&v<s||l!==void 0&&v>l,b=v=>s===void 0?l:l===void 0||Math.abs(s-v)<Math.abs(l-v)?s:l;let g=n*t;const y=f+g,$=a===void 0?y:a(y);$!==y&&(g=$-f);const C=v=>-g*Math.exp(-v/r),w=v=>$+C(v),E=v=>{const L=C(v),F=w(v);p.done=Math.abs(L)<=d,p.value=p.done?$:F};let P,k;const N=v=>{h(p.value)&&(P=v,k=Pb({keyframes:[p.value,b(p.value)],velocity:Eb(w,v,p.value),damping:o,stiffness:i,restDelta:d,restSpeed:c}))};return N(0),{calculatedDuration:null,next:v=>{let L=!1;return!k&&P===void 0&&(L=!0,E(v),N(v)),P!==void 0&&v>=P?k.next(v-P):(!L&&E(v),p)}}}const Sb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Sw=1e-7,Tw=12;function Aw(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=Sb(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>Sw&&++s<Tw);return a}function Co(e,t,n,r){if(e===t&&n===r)return ze;const o=i=>Aw(i,0,1,e,n);return i=>i===0||i===1?i:Sb(o(i),t,r)}const Mw=Co(.42,0,1,1),kw=Co(0,0,.58,1),Tb=Co(.42,0,.58,1),Rw=e=>Array.isArray(e)&&typeof e[0]!="number",Ab=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mb=e=>t=>1-e(1-t),Tu=e=>1-Math.sin(Math.acos(e)),kb=Mb(Tu),Fw=Ab(Tu),Rb=Co(.33,1.53,.69,.99),Au=Mb(Rb),Bw=Ab(Au),Iw=e=>(e*=2)<1?.5*Au(e):.5*(2-Math.pow(2,-10*(e-1))),af={linear:ze,easeIn:Mw,easeInOut:Tb,easeOut:kw,circIn:Tu,circInOut:Fw,circOut:kb,backIn:Au,backInOut:Bw,backOut:Rb,anticipate:Iw},sf=e=>{if(Array.isArray(e)){Tt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Co(t,n,r,o)}else if(typeof e=="string")return Tt(af[e]!==void 0,`Invalid easing type '${e}'`),af[e];return e},lo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ee=(e,t,n)=>e+(t-e)*n;function cs(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Lw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=cs(l,s,e+1/3),i=cs(l,s,e),a=cs(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const ds=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Vw=[il,En,tr],Ow=e=>Vw.find(t=>t.test(e));function lf(e){const t=Ow(e);Tt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===tr&&(n=Lw(n)),n}const uf=(e,t)=>{const n=lf(e),r=lf(t),o={...n};return i=>(o.red=ds(n.red,r.red,i),o.green=ds(n.green,r.green,i),o.blue=ds(n.blue,r.blue,i),o.alpha=Ee(n.alpha,r.alpha,i),En.transform(o))};function ll(e,t){return n=>n>0?t:e}function Nw(e,t){return n=>Ee(e,t,n)}function Mu(e){return typeof e=="number"?Nw:typeof e=="string"?mu(e)?ll:He.test(e)?uf:_w:Array.isArray(e)?Fb:typeof e=="object"?He.test(e)?uf:Kw:ll}function Fb(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>Mu(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function Kw(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Mu(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function jw(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=(n=e.values[s])!==null&&n!==void 0?n:0;r[i]=l,o[a]++}return r}const _w=(e,t)=>{const n=dn.createTransformer(t),r=zi(e),o=zi(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?jt(Fb(jw(r,o),o.values),n):(wo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ll(e,t))};function Bb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ee(e,t,n):Mu(e)(e,t)}function zw(e,t,n){const r=[],o=n||Bb,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ze:t;s=jt(l,s)}r.push(s)}return r}function Uw(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Tt(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=zw(t,r,o),s=a.length,l=d=>{let c=0;if(s>1)for(;c<e.length-2&&!(d<e[c+1]);c++);const f=lo(e[c],e[c+1],d);return a[c](f)};return n?d=>l(un(e[0],e[i-1],d)):l}function Hw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=lo(0,t,r);e.push(Ee(n,1,o))}}function Gw(e){const t=[0];return Hw(t,e.length-1),t}function Ww(e,t){return e.map(n=>n*t)}function Yw(e,t){return e.map(()=>t||Tb).splice(0,e.length-1)}function Ui({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Rw(r)?r.map(sf):sf(r),i={done:!1,value:t[0]},a=Ww(n&&n.length===t.length?n:Gw(t),e),s=Uw(a,t,{ease:Array.isArray(o)?o:Yw(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const cf=2e4;function qw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<cf;)t+=n,r=e.next(t);return t>=cf?1/0:t}const Zw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Le.update(t,!0),stop:()=>cn(t),now:()=>je.isProcessing?je.timestamp:on.now()}},Xw={decay:of,inertia:of,tween:Ui,keyframes:Ui,spring:Pb},Jw=e=>e/100;class ku extends Cb{constructor({KeyframeResolver:t=Eu,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:s}=this.options;s&&s()};const{name:r,motionValue:o,keyframes:i}=this.options,a=(s,l)=>this.onKeyframesResolved(s,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,a,r,o):this.resolver=new t(i,a,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=this.options,s=Xw[n]||Ui;let l,d;s!==Ui&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Tt(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=jt(Jw,Bb(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});i==="mirror"&&(d=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=qw(c));const{calculatedDuration:f}=c,p=f+o,h=p*(r+1)-o;return{generator:c,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:v}=this.options;return{done:!0,value:v[v.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:d,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:h,repeatType:b,repeatDelay:g,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const $=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?$<0:$>c;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let w=this.currentTime,E=i;if(h){const v=Math.min(this.currentTime,c)/f;let L=Math.floor(v),F=v%1;!F&&v>=1&&(F=1),F===1&&L--,L=Math.min(L,h+1),!!(L%2)&&(b==="reverse"?(F=1-F,g&&(F-=g/f)):b==="mirror"&&(E=a)),w=un(0,1,F)*f}const P=C?{done:!1,value:l[0]}:E.next(w);s&&(P.value=s(P.value));let{done:k}=P;!C&&d!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&o!==void 0&&(P.value=pa(l,this.options,o)),y&&y(P.value),N&&this.finish(),P}get duration(){const{resolved:t}=this;return t?zt(t.calculatedDuration):0}get time(){return zt(this.currentTime)}set time(t){t=_t(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=zt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Zw,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Ib=e=>Array.isArray(e)&&typeof e[0]=="number";function Lb(e){return!!(!e||typeof e=="string"&&e in Ru||Ib(e)||Array.isArray(e)&&e.every(Lb))}const Hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ru={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hr([0,.65,.55,1]),circOut:Hr([.55,0,1,.45]),backIn:Hr([.31,.01,.66,-.59]),backOut:Hr([.33,1.53,.69,.99])};function Qw(e){return Vb(e)||Ru.easeOut}function Vb(e){if(e)return Ib(e)?Hr(e):Array.isArray(e)?e.map(Qw):Ru[e]}function e7(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const d={[t]:n};l&&(d.offset=l);const c=Vb(s);return Array.isArray(c)&&(d.easing=c),e.animate(d,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const t7=hw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),n7=new Set(["opacity","clipPath","filter","transform"]),Hi=10,r7=2e4;function o7(e){return e.type==="spring"||e.name==="backgroundColor"||!Lb(e.ease)}function i7(e,t){const n=new ku({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<r7;)r=n.sample(i),o.push(r.value),i+=Hi;return{times:void 0,keyframes:o,duration:i-Hi,ease:"linear"}}class df extends Cb{constructor(t){super(t);const{name:n,motionValue:r,keyframes:o}=this.options;this.resolver=new wb(o,(i,a)=>this.onKeyframesResolved(i,a),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:a,type:s,motionValue:l,name:d}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(o7(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,...b}=this.options,g=i7(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),o=g.duration,i=g.times,a=g.ease,s="keyframes"}const c=e7(l.owner.current,d,t,{...this.options,duration:o,times:i,ease:a});return c.startTime=on.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(pa(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=_t(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ze;const{animation:r}=n;r.timeline=t,r.onfinish=null}return ze}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:a,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:d,onComplete:c,...f}=this.options,p=new ku({...f,keyframes:r,duration:o,type:i,ease:a,times:s,isGenerator:!0}),h=_t(this.time);l.setWithVelocity(p.sample(h-Hi).value,p.sample(h).value,Hi)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:a,type:s}=t;return t7()&&r&&n7.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&a!==0&&s!=="inertia"}}const Fu=(e,t,n,r={},o,i)=>a=>{const s=Du(r,e)||{},l=s.delay||r.delay||0;let{elapsed:d=0}=r;d=d-_t(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-d,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};_6(s)||(c={...c,...j6(e,c)}),c.duration&&(c.duration=_t(c.duration)),c.repeatDelay&&(c.repeatDelay=_t(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=pa(c.keyframes,s);if(p!==void 0){Le.update(()=>{c.onUpdate(p),c.onComplete()});return}}return!i&&df.supports(c)?new df(c):new ku(c)};function Gi(e){return!!(We(e)&&e.add)}function Bu(e,t){e.indexOf(t)===-1&&e.push(t)}function Iu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Lu{constructor(){this.subscriptions=[]}add(t){return Bu(this.subscriptions,t),()=>Iu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ff=new Set;function Vu(e,t,n){e||ff.has(t)||(console.warn(t),n&&console.warn(n),ff.add(t))}const pf=30,a7=e=>!isNaN(parseFloat(e));class s7{constructor(t,n={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=on.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=a7(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=on.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Vu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Lu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=on.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pf);return Db(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uo(e,t){return new s7(e,t)}function l7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uo(n))}function u7(e,t){const n=fa(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=v6(i[a]);l7(e,a,s)}}function c7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ob(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const d=e.getValue("willChange");r&&(a=r);const c=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const p in l){const h=e.getValue(p,(i=e.latestValues[p])!==null&&i!==void 0?i:null),b=l[p];if(b===void 0||f&&c7(f,p))continue;const g={delay:n,elapsed:0,...Du(a||{},p)};let y=!1;if(window.HandoffAppearAnimations){const w=e.getProps()[Vh];if(w){const E=window.HandoffAppearAnimations(w,p);E!==null&&(g.elapsed=E,y=!0)}}h.start(Fu(p,h,b,e.shouldReduceMotion&&Ln.has(p)?{type:!1}:g,e,y));const $=h.animation;$&&(Gi(d)&&(d.add(p),$.then(()=>d.remove(p))),c.push($))}return s&&Promise.all(c).then(()=>{Le.update(()=>{s&&u7(e,s)})}),c}function ul(e,t,n={}){var r;const o=fa(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(Ob(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:p}=i;return d7(e,t,c+d,f,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[d,c]=l==="beforeChildren"?[a,s]:[s,a];return d().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function d7(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(d=0)=>d*r:(d=0)=>s-d*r;return Array.from(e.variantChildren).sort(f7).forEach((d,c)=>{d.notify("AnimationStart",t),a.push(ul(d,t,{...i,delay:n+l(c)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function f7(e,t){return e.sortNodePosition(t)}function p7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ul(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ul(e,t,n);else{const o=typeof t=="function"?fa(e,t,n.custom):t;r=Promise.all(Ob(e,o,n))}return r.then(()=>{Le.postRender(()=>{e.notify("AnimationComplete",t)})})}const h7=[...fu].reverse(),b7=fu.length;function m7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>p7(e,n,r)))}function g7(e){let t=m7(e);const n=y7();let r=!0;const o=l=>(d,c)=>{var f;const p=fa(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:b,...g}=p;d={...d,...g,...b}}return d};function i(l){t=l(e)}function a(l){const d=e.getProps(),c=e.getVariantContext(!0)||{},f=[],p=new Set;let h={},b=1/0;for(let y=0;y<b7;y++){const $=h7[y],C=n[$],w=d[$]!==void 0?d[$]:c[$],E=ao(w),P=$===l?C.isActive:null;P===!1&&(b=y);let k=w===c[$]&&w!==d[$]&&E;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...h},!C.isActive&&P===null||!w&&!C.prevProp||ua(w)||typeof w=="boolean")continue;let v=v7(C.prevProp,w)||$===l&&C.isActive&&!k&&E||y>b&&E,L=!1;const F=Array.isArray(w)?w:[w];let A=F.reduce(o($),{});P===!1&&(A={});const{prevResolvedValues:B={}}=C,R={...B,...A},I=K=>{v=!0,p.has(K)&&(L=!0,p.delete(K)),C.needsAnimating[K]=!0;const V=e.getValue(K);V&&(V.liveStyle=!1)};for(const K in R){const V=A[K],T=B[K];if(h.hasOwnProperty(K))continue;let G=!1;tl(V)&&tl(T)?G=!lb(V,T):G=V!==T,G?V!=null?I(K):p.add(K):V!==void 0&&p.has(K)?I(K):C.protectedKeys[K]=!0}C.prevProp=w,C.prevResolvedValues=A,C.isActive&&(h={...h,...A}),r&&e.blockInitialAnimation&&(v=!1),v&&(!k||L)&&f.push(...F.map(K=>({animation:K,options:{type:$}})))}if(p.size){const y={};p.forEach($=>{const C=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),y[$]=C??null}),f.push({animation:y})}let g=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function s(l,d){var c;if(n[l].isActive===d)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,d)}),n[l].isActive=d;const f=a(l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function v7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lb(t,e):!1}function hn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y7(){return{animate:hn(!0),whileInView:hn(),whileHover:hn(),whileTap:hn(),whileDrag:hn(),whileFocus:hn(),exit:hn()}}class $7 extends fn{constructor(t){super(t),t.animationState||(t.animationState=g7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ua(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let x7=0;class w7 extends fn{constructor(){super(...arguments),this.id=x7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Nb={animation:{Feature:$7},exit:{Feature:w7}},hf=(e,t)=>Math.abs(e-t);function C7(e,t){const n=hf(e.x,t.x),r=hf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Kb{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ps(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=C7(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:b}=f,{timestamp:g}=je;this.history.push({...b,timestamp:g});const{onStart:y,onMove:$}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=fs(p,this.transformPagePoint),Le.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:b,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ps(f.type==="pointercancel"?this.lastMoveEventInfo:fs(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,y),b&&b(f,y)},!nb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=da(t),s=fs(a,this.transformPagePoint),{point:l}=s,{timestamp:d}=je;this.history=[{...l,timestamp:d}];const{onSessionStart:c}=n;c&&c(t,ps(s,this.history)),this.removeListeners=jt(Kt(this.contextWindow,"pointermove",this.handlePointerMove),Kt(this.contextWindow,"pointerup",this.handlePointerUp),Kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cn(this.updatePoint)}}function fs(e,t){return t?{point:t(e.point)}:e}function bf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ps({point:e},t){return{point:e,delta:bf(e,jb(t)),offset:bf(e,D7(t)),velocity:E7(t,.1)}}function D7(e){return e[0]}function jb(e){return e[e.length-1]}function E7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=jb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>_t(t)));)n--;if(!r)return{x:0,y:0};const i=zt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function rt(e){return e.max-e.min}function cl(e,t=0,n=.01){return Math.abs(e-t)<=n}function mf(e,t,n,r=.5){e.origin=r,e.originPoint=Ee(t.min,t.max,e.origin),e.scale=rt(n)/rt(t),(cl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ee(n.min,n.max,e.origin)-e.originPoint,(cl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Xr(e,t,n,r){mf(e.x,t.x,n.x,r?r.originX:void 0),mf(e.y,t.y,n.y,r?r.originY:void 0)}function gf(e,t,n){e.min=n.min+t.min,e.max=e.min+rt(t)}function P7(e,t,n){gf(e.x,t.x,n.x),gf(e.y,t.y,n.y)}function vf(e,t,n){e.min=t.min-n.min,e.max=e.min+rt(t)}function Jr(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function S7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ee(n,e,r.max):Math.min(e,n)),e}function yf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function T7(e,{top:t,left:n,bottom:r,right:o}){return{x:yf(e.x,n,o),y:yf(e.y,t,r)}}function $f(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function A7(e,t){return{x:$f(e.x,t.x),y:$f(e.y,t.y)}}function M7(e,t){let n=.5;const r=rt(e),o=rt(t);return o>r?n=lo(t.min,t.max-r,e.min):r>o&&(n=lo(e.min,e.max-o,t.min)),un(0,1,n)}function k7(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const dl=.35;function R7(e=dl){return e===!1?e=0:e===!0&&(e=dl),{x:xf(e,"left","right"),y:xf(e,"top","bottom")}}function xf(e,t,n){return{min:wf(e,t),max:wf(e,n)}}function wf(e,t){return typeof e=="number"?e:e[t]||0}const Cf=()=>({translate:0,scale:1,origin:0,originPoint:0}),nr=()=>({x:Cf(),y:Cf()}),Df=()=>({min:0,max:0}),Ae=()=>({x:Df(),y:Df()});function st(e){return[e("x"),e("y")]}function _b({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function F7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function B7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function hs(e){return e===void 0||e===1}function fl({scale:e,scaleX:t,scaleY:n}){return!hs(e)||!hs(t)||!hs(n)}function gn(e){return fl(e)||zb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zb(e){return Ef(e.x)||Ef(e.y)}function Ef(e){return e&&e!=="0%"}function Wi(e,t,n){const r=e-n,o=t*r;return n+o}function Pf(e,t,n,r,o){return o!==void 0&&(e=Wi(e,o,r)),Wi(e,n,r)+t}function pl(e,t=0,n=1,r,o){e.min=Pf(e.min,t,n,r,o),e.max=Pf(e.max,t,n,r,o)}function Ub(e,{x:t,y:n}){pl(e.x,t.translate,t.scale,t.originPoint),pl(e.y,n.translate,n.scale,n.originPoint)}function I7(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const l=i.instance;l&&l.style&&l.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ub(e,a)),r&&gn(i.latestValues)&&rr(e,i.latestValues))}t.x=Sf(t.x),t.y=Sf(t.y)}function Sf(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function tn(e,t){e.min=e.min+t,e.max=e.max+t}function Tf(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Ee(e.min,e.max,i);pl(e,t[n],t[r],a,t.scale)}const L7=["x","scaleX","originX"],V7=["y","scaleY","originY"];function rr(e,t){Tf(e.x,t,L7),Tf(e.y,t,V7)}function Hb(e,t){return _b(B7(e.getBoundingClientRect(),t))}function O7(e,t,n){const r=Hb(e,n),{scroll:o}=t;return o&&(tn(r.x,o.offset.x),tn(r.y,o.offset.y)),r}const Gb=({current:e})=>e?e.ownerDocument.defaultView:null,N7=new WeakMap;class K7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ae(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(da(c,"page").point)},i=(c,f)=>{const{drag:p,dragPropagation:h,onDragStart:b}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ob(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),st(y=>{let $=this.getAxisMotionValue(y).get()||0;if(St.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const w=C.layout.layoutBox[y];w&&($=rt(w)*(parseFloat($)/100))}}this.originPoint[y]=$}),b&&b(c,f);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(c,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:b,onDrag:g}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:y}=f;if(h&&this.currentDirection===null){this.currentDirection=j7(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&g(c,f)},s=(c,f)=>this.stop(c,f),l=()=>st(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Kb(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Gb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&i(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ii(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=S7(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&er(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=T7(o.layoutBox,n):this.constraints=!1,this.elastic=R7(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&st(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=k7(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!er(t))return!1;const r=t.current;Tt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=O7(r,o.root,this.visualElement.getTransformPagePoint());let a=A7(o.layout.layoutBox,i);if(n){const s=n(F7(a));this.hasMutatedConstraints=!!s,s&&(a=_b(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},d=st(c=>{if(!ii(c,n,this.currentDirection))return;let f=l&&l[c]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,b)});return Promise.all(d).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Fu(t,r,0,n,this.visualElement))}stopAnimation(){st(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){st(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){st(n=>{const{drag:r}=this.getProps();if(!ii(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Ee(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!er(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};st(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=M7({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),st(a=>{if(!ii(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:d}=this.constraints[a];s.set(Ee(l,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;N7.set(this.visualElement,this);const t=this.visualElement.current,n=Kt(t,"pointerdown",l=>{const{drag:d,dragListener:c=!0}=this.getProps();d&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();er(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=Ot(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(st(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=dl,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ii(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function j7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _7 extends fn{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new K7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const Af=e=>(t,n)=>{e&&e(t,n)};class z7 extends fn{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new Kb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Af(t),onStart:Af(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&o(i,a)}}}mount(){this.removePointerDownListener=Kt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function U7(){const e=u.useContext(la);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=u.useId();return u.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const mi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const n=Mf(e,t.target.x),r=Mf(e,t.target.y);return`${n}% ${r}%`}},H7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=dn.parse(e);if(o.length>5)return r;const i=dn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const d=Ee(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),i(o)}};class G7 extends u.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Y2(W7),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),mi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Le.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),du.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wb(e){const[t,n]=U7(),r=u.useContext(hu);return S.jsx(G7,{...e,layoutGroup:r,switchLayoutGroup:u.useContext(Kh),isPresent:t,safeToRemove:n})}const W7={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:H7},Yb=["TopLeft","TopRight","BottomLeft","BottomRight"],Y7=Yb.length,kf=e=>typeof e=="string"?parseFloat(e):e,Rf=e=>typeof e=="number"||ne.test(e);function q7(e,t,n,r,o,i){o?(e.opacity=Ee(0,n.opacity!==void 0?n.opacity:1,Z7(r)),e.opacityExit=Ee(t.opacity!==void 0?t.opacity:1,0,X7(r))):i&&(e.opacity=Ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Y7;a++){const s=`border${Yb[a]}Radius`;let l=Ff(t,s),d=Ff(n,s);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||Rf(l)===Rf(d)?(e[s]=Math.max(Ee(kf(l),kf(d),r),0),(St.test(d)||St.test(l))&&(e[s]+="%")):e[s]=d}(t.rotate||n.rotate)&&(e.rotate=Ee(t.rotate||0,n.rotate||0,r))}function Ff(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Z7=qb(0,.5,kb),X7=qb(.5,.95,ze);function qb(e,t,n){return r=>r<e?0:r>t?1:n(lo(e,t,r))}function Bf(e,t){e.min=t.min,e.max=t.max}function it(e,t){Bf(e.x,t.x),Bf(e.y,t.y)}function If(e,t,n,r,o){return e-=t,e=Wi(e,1/n,r),o!==void 0&&(e=Wi(e,1/o,r)),e}function J7(e,t=0,n=1,r=.5,o,i=e,a=e){if(St.test(t)&&(t=parseFloat(t),t=Ee(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ee(i.min,i.max,r);e===i&&(s-=t),e.min=If(e.min,t,n,s,o),e.max=If(e.max,t,n,s,o)}function Lf(e,t,[n,r,o],i,a){J7(e,t[n],t[r],t[o],t.scale,i,a)}const Q7=["x","scaleX","originX"],eC=["y","scaleY","originY"];function Vf(e,t,n,r){Lf(e.x,t,Q7,n?n.x:void 0,r?r.x:void 0),Lf(e.y,t,eC,n?n.y:void 0,r?r.y:void 0)}function Of(e){return e.translate===0&&e.scale===1}function Zb(e){return Of(e.x)&&Of(e.y)}function tC(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Xb(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Nf(e){return rt(e.x)/rt(e.y)}class nC{constructor(){this.members=[]}add(t){Bu(this.members,t),t.scheduleRender()}remove(t){if(Iu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Kf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:c,rotateX:f,rotateY:p,skewX:h,skewY:b}=n;d&&(r=`perspective(${d}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),b&&(r+=`skewY(${b}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const rC=(e,t)=>e.depth-t.depth;class oC{constructor(){this.children=[],this.isDirty=!1}add(t){Bu(this.children,t),this.isDirty=!0}remove(t){Iu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rC),this.isDirty=!1,this.children.forEach(t)}}function iC(e,t){const n=on.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(cn(r),e(i-t))};return Le.read(r,!0),()=>cn(r)}function aC(e){window.MotionDebug&&window.MotionDebug.record(e)}function sC(e){return e instanceof SVGElement&&e.tagName!=="svg"}function lC(e,t,n){const r=We(e)?e:uo(e);return r.start(Fu("",r,t,n)),r.animation}const bs=["","X","Y","Z"],uC={visibility:"hidden"},jf=1e3;let cC=0;const vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ms(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Jb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=cC++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vn.totalNodes=vn.resolvedTargetDeltas=vn.recalculatedProjection=0,this.nodes.forEach(pC),this.nodes.forEach(vC),this.nodes.forEach(yC),this.nodes.forEach(hC),aC(vn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new oC)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Lu),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=sC(a),this.instance=a;const{layoutId:l,layout:d,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(d||l)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=iC(p,250),mi.hasAnimatedSinceResize&&(mi.hasAnimatedSinceResize=!1,this.nodes.forEach(zf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||d)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||DC,{onLayoutAnimationStart:y,onLayoutAnimationComplete:$}=c.getProps(),C=!this.targetLayout||!Xb(this.targetLayout,b)||h,w=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,w);const E={...Du(g,"layout"),onPlay:y,onComplete:$};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||zf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach($C),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_f);return}this.isUpdating||this.nodes.forEach(mC),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(gC),this.nodes.forEach(dC),this.nodes.forEach(fC),this.clearAllSnapshots();const s=on.now();je.delta=un(0,1e3/60,s-je.timestamp),je.timestamp=s,je.isProcessing=!0,is.update.process(je),is.preRender.process(je),is.render.process(je),je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,du.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(bC),this.sharedNodes.forEach(xC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ae(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Zb(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,c=d!==this.prevTransformTemplateValue;a&&(s||gn(this.latestValues)||c)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),EC(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Ae();const s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(tn(s.x,l.offset.x),tn(s.y,l.offset.y)),s}removeElementScroll(a){const s=Ae();it(s,a);for(let l=0;l<this.path.length;l++){const d=this.path[l],{scroll:c,options:f}=d;if(d!==this.root&&c&&f.layoutScroll){if(c.isRoot){it(s,a);const{scroll:p}=this.root;p&&(tn(s.x,-p.offset.x),tn(s.y,-p.offset.y))}tn(s.x,c.offset.x),tn(s.y,c.offset.y)}}return s}applyTransform(a,s=!1){const l=Ae();it(l,a);for(let d=0;d<this.path.length;d++){const c=this.path[d];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&rr(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),gn(c.latestValues)&&rr(l,c.latestValues)}return gn(this.latestValues)&&rr(l,this.latestValues),l}removeTransform(a){const s=Ae();it(s,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!gn(d.latestValues))continue;fl(d.latestValues)&&d.updateSnapshot();const c=Ae(),f=d.measurePageBox();it(c,f),Vf(s,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,c)}return gn(this.latestValues)&&Vf(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==je.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==l;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=je.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ae(),this.relativeTargetOrigin=Ae(),Jr(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ae(),this.targetWithTransforms=Ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),P7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):it(this.target,this.layout.layoutBox),Ub(this.target,this.targetDelta)):it(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ae(),this.relativeTargetOrigin=Ae(),Jr(this.relativeTargetOrigin,this.target,h.target),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||fl(this.parent.latestValues)||zb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===je.timestamp&&(d=!1),d)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;it(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;I7(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Ae());const{target:b}=s;if(!b){this.projectionTransform&&(this.projectionDelta=nr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nr(),this.projectionDeltaWithTransform=nr());const g=this.projectionTransform;Xr(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=Kf(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),vn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const l=this.snapshot,d=l?l.latestValues:{},c={...this.latestValues},f=nr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=Ae(),h=l?l.source:void 0,b=this.layout?this.layout.source:void 0,g=h!==b,y=this.getStack(),$=!y||y.members.length<=1,C=!!(g&&!$&&this.options.crossfade===!0&&!this.path.some(CC));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;Uf(f.x,a.x,P),Uf(f.y,a.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jr(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wC(this.relativeTarget,this.relativeTargetOrigin,p,P),w&&tC(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ae()),it(w,this.relativeTarget)),g&&(this.animationValues=c,q7(c,d,this.latestValues,P,C,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Le.update(()=>{mi.hasAnimatedSinceResize=!0,this.currentAnimation=lC(0,jf,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:d,latestValues:c}=a;if(!(!s||!l||!d)){if(this!==a&&this.layout&&d&&Qb(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Ae();const f=rt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=rt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}it(s,l),rr(s,c),Xr(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new nC),this.sharedNodes.get(a).add(s);const d=s.options.initialPromotionConfig;s.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const d={};l.z&&ms("z",a,d,this.animationValues);for(let c=0;c<bs.length;c++)ms(`rotate${bs[c]}`,a,d,this.animationValues),ms(`skew${bs[c]}`,a,d,this.animationValues);a.render();for(const c in d)a.setStaticValue(c,d[c]),this.animationValues&&(this.animationValues[c]=d[c]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return uC;const d={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=hi(a==null?void 0:a.pointerEvents)||"",d.transform=c?c(this.latestValues,""):"none",d;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=hi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gn(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),d.transform=Kf(this.projectionDeltaWithTransform,this.treeScale,p),c&&(d.transform=c(p,d.transform));const{x:h,y:b}=this.projectionDelta;d.transformOrigin=`${h.origin*100}% ${b.origin*100}% 0`,f.animationValues?d.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in ji){if(p[g]===void 0)continue;const{correct:y,applyTo:$}=ji[g],C=d.transform==="none"?p[g]:y(p[g],f);if($){const w=$.length;for(let E=0;E<w;E++)d[$[E]]=C}else d[g]=C}return this.options.layoutId&&(d.pointerEvents=f===this?hi(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(_f),this.root.sharedNodes.clear()}}}function dC(e){e.updateLayout()}function fC(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?st(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=rt(p);p.min=r[f].min,p.max=p.min+h}):Qb(i,n.layoutBox,r)&&st(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=rt(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=nr();Xr(s,r,n.layoutBox);const l=nr();a?Xr(l,e.applyTransform(o,!0),n.measuredBox):Xr(l,r,n.layoutBox);const d=!Zb(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const b=Ae();Jr(b,n.layoutBox,p.layoutBox);const g=Ae();Jr(g,r,h.layoutBox),Xb(b,g)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:d,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function pC(e){vn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function hC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function bC(e){e.clearSnapshot()}function _f(e){e.clearMeasurements()}function mC(e){e.isLayoutDirty=!1}function gC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vC(e){e.resolveTargetDelta()}function yC(e){e.calcProjection()}function $C(e){e.resetSkewAndRotation()}function xC(e){e.removeLeadSnapshot()}function Uf(e,t,n){e.translate=Ee(t.translate,0,n),e.scale=Ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hf(e,t,n,r){e.min=Ee(t.min,n.min,r),e.max=Ee(t.max,n.max,r)}function wC(e,t,n,r){Hf(e.x,t.x,n.x,r),Hf(e.y,t.y,n.y,r)}function CC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const DC={duration:.45,ease:[.4,0,.1,1]},Gf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wf=Gf("applewebkit/")&&!Gf("chrome/")?Math.round:ze;function Yf(e){e.min=Wf(e.min),e.max=Wf(e.max)}function EC(e){Yf(e.x),Yf(e.y)}function Qb(e,t,n){return e==="position"||e==="preserve-aspect"&&!cl(Nf(t),Nf(n),.2)}const PC=Jb({attachResizeListener:(e,t)=>Ot(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gs={current:void 0},em=Jb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gs.current){const e=new PC({});e.mount(window),e.setOptions({layoutScroll:!0}),gs.current=e}return gs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),SC={pan:{Feature:z7},drag:{Feature:_7,ProjectionNode:em,MeasureLayout:Wb}},hl={current:null},tm={current:!1};function TC(){if(tm.current=!0,!!su)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hl.current=e.matches;e.addListener(t),t()}else hl.current=!1}function AC(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(We(i))e.addValue(o,i),Gi(r)&&r.add(o),process.env.NODE_ENV==="development"&&Vu(i.version==="11.1.7",`Attempting to mix Framer Motion versions ${i.version} with 11.1.7 may not work as expected.`);else if(We(a))e.addValue(o,uo(i,{owner:e})),Gi(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,uo(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const qf=new WeakMap,MC=[...pb,He,dn],kC=e=>MC.find(fb(e)),nm=Object.keys(so),RC=nm.length,Zf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],FC=pu.length;function rm(e){if(e)return e.options.allowProjection!==!1?e.projection:rm(e.parent)}class BC{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.resolveKeyframes=(p,h,b,g)=>new this.KeyframeResolver(p,h,b,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Eu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Le.render(this.render,!1,!0);const{latestValues:l,renderState:d}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=ca(n),this.isVariantNode=Nh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];l[p]!==void 0&&We(h)&&(h.set(l[p],!1),Gi(c)&&c.add(p))}}mount(t){this.current=t,qf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),tm.current||TC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hl.current,process.env.NODE_ENV!=="production"&&Vu(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;qf.delete(this.current),this.projection&&this.projection.unmount(),cn(this.notifyUpdate),cn(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=Ln.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,s;if(process.env.NODE_ENV!=="production"&&o&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?wo(!1,l):Tt(!1,l)}for(let l=0;l<RC;l++){const d=nm[l],{isEnabled:c,Feature:f,ProjectionNode:p,MeasureLayout:h}=so[d];p&&(a=p),c(n)&&(!this.features[d]&&f&&(this.features[d]=new f(this)),h&&(s=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,rm(this.parent));const{layoutId:l,layout:d,drag:c,dragConstraints:f,layoutScroll:p,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:d,alwaysMeasureLayout:!!c||f&&er(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ae()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Zf.length;r++){const o=Zf[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=AC(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<FC;r++){const o=pu[r],i=this.props[o];(ao(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=uo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(cb(o)||ub(o))?o=parseFloat(o):!kC(o)&&dn.test(n)&&(o=xb(t,n)),this.setBaseTarget(t,We(o)?o.get():o)),We(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const a=Cu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(o=a[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!We(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Lu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class om extends BC{constructor(){super(...arguments),this.KeyframeResolver=wb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function IC(e){return window.getComputedStyle(e)}class LC extends om{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Ln.has(n)){const r=Su(n);return r&&r.default||0}else{const r=IC(t),o=(Uh(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hb(t,n)}build(t,n,r,o){vu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return wu(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;We(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){qh(t,n,r,o)}}class VC extends om{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ln.has(n)){const r=Su(n);return r&&r.default||0}return n=Zh.has(n)?n:cu(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ae()}scrapeMotionValuesFromProps(t,n,r){return Jh(t,n,r)}build(t,n,r,o){$u(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Xh(t,n,r,o)}mount(t){this.isSVGTag=xu(t.tagName),super.mount(t)}}const im=(e,t)=>bu(e)?new VC(t,{enableHardwareAcceleration:!1}):new LC(t,{allowProjection:e!==u.Fragment,enableHardwareAcceleration:!0}),OC={layout:{ProjectionNode:em,MeasureLayout:Wb}},NC={...Nb,...sb,...SC,...OC},yr=jh((e,t)=>tb(e,t,NC,im)),KC=jh(tb);function am(){const e=u.useRef(!1);return lu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function jC(){const e=am(),[t,n]=u.useState(0),r=u.useCallback(()=>{e.current&&n(t+1)},[t]);return[u.useCallback(()=>Le.postRender(r),[r]),t]}class _C extends Sn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function zC({children:e,isPresent:t}){const n=u.useId(),r=u.useRef(null),o=u.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=u.useContext(au);return u.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:d}=o.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
104
104
|
[data-motion-pop-id="${n}"] {
|
|
105
105
|
position: absolute !important;
|
|
106
106
|
width: ${a}px !important;
|
|
107
107
|
height: ${s}px !important;
|
|
108
108
|
top: ${l}px !important;
|
|
109
|
-
left: ${
|
|
109
|
+
left: ${d}px !important;
|
|
110
110
|
}
|
|
111
|
-
`),()=>{document.head.removeChild(
|
|
111
|
+
`),()=>{document.head.removeChild(c)}},[t]),S.jsx(_C,{isPresent:t,childRef:r,sizeRef:o,children:Sn.cloneElement(e,{ref:r})})}const vs=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Qh(UC),l=u.useId(),d=u.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?[Math.random()]:[n]);return u.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),Sn.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=S.jsx(zC,{isPresent:n,children:e})),S.jsx(la.Provider,{value:d,children:e})};function UC(){return new Map}function HC(e){return u.useEffect(()=>()=>e(),[])}const yn=e=>e.key||"";function GC(e,t){e.forEach(n=>{const r=yn(n);t.set(r,n)})}function WC(e){const t=[];return u.Children.forEach(e,n=>{u.isValidElement(n)&&t.push(n)}),t}const sm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{Tt(!o,"Replace exitBeforeEnter with mode='wait'");const s=u.useContext(hu).forceRender||jC()[0],l=am(),d=WC(e);let c=d;const f=u.useRef(new Map).current,p=u.useRef(c),h=u.useRef(new Map).current,b=u.useRef(!0);if(lu(()=>{b.current=!1,GC(d,h),p.current=c}),HC(()=>{b.current=!0,h.clear(),f.clear()}),b.current)return S.jsx(S.Fragment,{children:c.map(C=>S.jsx(vs,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a,children:C},yn(C)))});c=[...c];const g=p.current.map(yn),y=d.map(yn),$=g.length;for(let C=0;C<$;C++){const w=g[C];y.indexOf(w)===-1&&!f.has(w)&&f.set(w,void 0)}return a==="wait"&&f.size&&(c=[]),f.forEach((C,w)=>{if(y.indexOf(w)!==-1)return;const E=h.get(w);if(!E)return;const P=g.indexOf(w);let k=C;if(!k){const N=()=>{f.delete(w);const v=Array.from(h.keys()).filter(L=>!y.includes(L));if(v.forEach(L=>h.delete(L)),p.current=d.filter(L=>{const F=yn(L);return F===w||v.includes(F)}),!f.size){if(l.current===!1)return;s(),r&&r()}};k=S.jsx(vs,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:a,children:E},yn(E)),f.set(w,k)}c.splice(P,0,k)}),c=c.map(C=>{const w=C.key;return f.has(w)?C:S.jsx(vs,{isPresent:!0,presenceAffectsLayout:i,mode:a,children:C},yn(C))}),process.env.NODE_ENV!=="production"&&a==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),S.jsx(S.Fragment,{children:f.size?c:c.map(C=>u.cloneElement(C))})};function YC({children:e,features:t,strict:n=!1}){const[,r]=u.useState(!ys(t)),o=u.useRef(void 0);if(!ys(t)){const{renderer:i,...a}=t;o.current=i,el(a)}return u.useEffect(()=>{ys(t)&&t().then(({renderer:i,...a})=>{el(a),o.current=i,r(!0)})},[]),S.jsx(uu.Provider,{value:{renderer:o.current,strict:n},children:e})}function ys(e){return typeof e=="function"}const qC={renderer:im,...Nb,...sb};function ZC(e){const[t,n]=Rh(e,Zc.variantKeys),{as:r,children:o,className:i,content:a,classNames:s,...l}=t,d=r||"span",c=u.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===1||(e==null?void 0:e.isOneChar)},[a,e==null?void 0:e.isOneChar]),f=u.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===0},[a]),p=sr(s==null?void 0:s.badge,i),h=u.useMemo(()=>Zc({...n,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:c,isDot:f}),[Sp(n),c,f]),b=()=>({className:h.badge({class:p}),"data-invisible":e.isInvisible,...l});return{Component:d,children:o,content:a,slots:h,classNames:s,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:b}}var lm=aa((e,t)=>{const{Component:n,children:r,content:o,slots:i,classNames:a,getBadgeProps:s}=ZC({...e});return S.jsxs("div",{className:i.base({class:a==null?void 0:a.base}),children:[r,S.jsx(n,{ref:t,...s(),children:o})]})});lm.displayName="NextUI.Badge";var XC=lm;const JC=_.styled.div`
|
|
112
112
|
position: relative;
|
|
113
113
|
display: inline-flex;
|
|
114
114
|
flex-shrink: 0;
|
|
115
|
-
`,
|
|
115
|
+
`,QC=_.styled.div`
|
|
116
116
|
position: absolute;
|
|
117
117
|
z-index: 2;
|
|
118
118
|
|
|
119
119
|
transform: ${({placement:e})=>{const t={"top-right":"translate(50%, -50%)","bottom-right":"translate(50%, 50%)","bottom-left":"translate(-50%, 50%)","top-left":"translate(-50%, -50%)"};return e&&t[e]?t[e]:t["top-right"]}};
|
|
120
120
|
|
|
121
121
|
${({placement:e,shape:t})=>{const n={rectangle:"5%",circle:"10%"};let r=n.rectangle;t&&n[t]&&(r=n[t]);const o={"top-right":{top:r,right:r},"bottom-right":{bottom:r,right:r},"top-left":{top:r,left:r},"bottom-left":{bottom:r,left:r}};return e&&o[e]?o[e]:o["top-right"]}};
|
|
122
|
-
`,
|
|
122
|
+
`,eD=_.styled(XC)`
|
|
123
123
|
display: flex;
|
|
124
124
|
flex-wrap: wrap;
|
|
125
125
|
place-content: center;
|
|
@@ -160,7 +160,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
160
160
|
transparent 60%
|
|
161
161
|
)
|
|
162
162
|
0px 4px 6px -4px`:"none"}};
|
|
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={};/**
|
|
163
|
+
`,tD={hidden:{opacity:0,transform:"scale(0)"},show:{opacity:1,transform:"scale(1)"}};function nD({children:e,isInvisible:t,disableAnimation:n,placement:r,shape:o,...i}){const a=u.useId(),s=n?{duration:0}:{type:"spring",bounce:.3};return S.jsxs(JC,{children:[e,S.jsx(QC,{placement:r,shape:o,children:S.jsx(sm,{children:!t&&S.jsx(yr.div,{variants:tD,initial:n?"show":"hidden",transition:s,animate:"show",exit:"hidden",children:S.jsx(eD,{...i,isInvisible:t,showOutline:i.showOutline??!0})},`badge-${a}`)})})]})}function rD({children:e,...t}){return S.jsx("span",{...t,"aria-hidden":"true",children:e??S.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{d:"M19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),S.jsx("path",{d:"M5 13C5.55228 13 6 12.5523 6 12C6 11.4477 5.55228 11 5 11C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function oD(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...l}=e,d={};n!=="a"&&(d={role:"link",tabIndex:s?void 0:0});let{focusableProps:c}=mr(e,t),{pressProps:f,isPressed:p}=sn({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),h=le(l,{labelable:!0,isLink:n==="a"}),b=X(c,f),g=bo();return{isPressed:p,linkProps:X(h,{...b,...d,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:y=>{var $;($=f.onClick)===null||$===void 0||$.call(f,y),a&&(a(y),console.warn("onClick is deprecated, please use onPress")),!g.isNative&&y.currentTarget instanceof HTMLAnchorElement&&y.currentTarget.href&&!y.isDefaultPrevented()&&ax(y.currentTarget,y)&&(y.preventDefault(),g.open(y.currentTarget,y))}})}}function um(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:c,onClick:f,href:p,target:h,rel:b,type:g="button"}=e,y;n==="button"?y={type:g,disabled:r}:y={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:p,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:$,isPressed:C}=sn({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:w}=mr(e,t);c&&(w.tabIndex=r?-1:w.tabIndex);let E=X(w,$,le(e,{labelable:!0}));return{isPressed:C,buttonProps:X(y,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:P=>{f&&(f(P),console.warn("onClick is deprecated, please use onPress"))}})}}function iD(e,t,n){const{isSelected:r}=t,{isPressed:o,buttonProps:i}=um({...e,onPress:an(t.toggle,e.onPress)},n);return{isPressed:o,buttonProps:X(i,{"aria-pressed":r})}}const cm=7e3;let Qr=null;function gi(e,t="assertive",n=cm){Qr||(Qr=new sD),Qr.announce(e,t,n)}function aD(e){Qr&&Qr.clear(e)}class sD{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=cm){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Ou(e,t,n){let{validationBehavior:r,focus:o}=e;be(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(uD(n.current))}});let i=Pe(()=>{t.resetValidation()}),a=Pe(l=>{var d;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!l.defaultPrevented&&n&&c&&cD(c)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),r0("keyboard")}l.preventDefault()}),s=Pe(()=>{t.commitValidation()});u.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let d=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",s),d==null||d.addEventListener("reset",i),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",s),d==null||d.removeEventListener("reset",i)}},[n,a,s,i,r])}function lD(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function uD(e){return{isInvalid:!e.validity.valid,validationDetails:lD(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function cD(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const dm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},fm={...dm,customError:!0,valid:!1},qn={isInvalid:!1,validationDetails:dm,validationErrors:[]},dD=u.createContext({}),co="__formValidationState"+Date.now();function $r(e){if(e[co]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[co];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return fD(e)}function fD(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:a,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:fm}:null,d=u.useMemo(()=>Xf(pD(a,o)),[a,o]);i!=null&&i.validationDetails.valid&&(i=null);let c=u.useContext(dD),f=u.useMemo(()=>r?Array.isArray(r)?r.flatMap(F=>bl(c[F])):bl(c[r]):[],[c,r]),[p,h]=u.useState(c),[b,g]=u.useState(!1);c!==p&&(h(c),g(!1));let y=u.useMemo(()=>Xf(b?[]:f),[b,f]),$=u.useRef(qn),[C,w]=u.useState(qn),E=u.useRef(qn),P=()=>{if(!k)return;N(!1);let F=d||i||$.current;$s(F,E.current)||(E.current=F,w(F))},[k,N]=u.useState(!1);return u.useEffect(P),{realtimeValidation:l||y||d||i||qn,displayValidation:s==="native"?l||y||C:l||y||d||i||C,updateValidation(F){s==="aria"&&!$s(C,F)?w(F):$.current=F},resetValidation(){let F=qn;$s(F,E.current)||(E.current=F,w(F)),s==="native"&&N(!1),g(!0)},commitValidation(){s==="native"&&N(!0),g(!0)}}}function bl(e){return e?Array.isArray(e)?e:[e]:[]}function pD(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return bl(n)}return[]}function Xf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:fm}:null}function $s(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function pm(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:a,children:s,"aria-label":l,"aria-labelledby":d,validationState:c="valid",isInvalid:f}=e,p=k=>{k.stopPropagation(),t.setSelected(k.target.checked)},h=s!=null,b=l!=null||d!=null;!h&&!b&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:g,isPressed:y}=sn({isDisabled:r}),{pressProps:$,isPressed:C}=sn({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:w}=mr(e,n),E=X(g,w),P=le(e,{labelable:!0});return mo(n,t.isSelected,t.setSelected),{labelProps:X($,{onClick:k=>k.preventDefault()}),inputProps:X(P,{"aria-invalid":f||c==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:p,disabled:r,...i==null?{}:{value:i},name:a,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:y||C,isDisabled:r,isReadOnly:o,isInvalid:f||c==="invalid"}}function Do(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=_e(t);let a=_e(),s={};n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=An({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function hm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:a}=Do(e),s=rn([!!t,!!n,r,o]),l=rn([!!t,!!n,r,o]);return a=X(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}function ha(e={}){let{isReadOnly:t}=e,[n,r]=bt(e.isSelected,e.defaultSelected||!1,e.onChange);function o(a){t||r(a)}function i(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function bm(e,t,n){let r=$r({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=r.displayValidation,{labelProps:s,inputProps:l,isSelected:d,isPressed:c,isDisabled:f,isReadOnly:p}=pm({...e,isInvalid:o},t,n);Ou(e,r,n);let{isIndeterminate:h,isRequired:b,validationBehavior:g="aria"}=e;return u.useEffect(()=>{n.current&&(n.current.indeterminate=!!h)}),{labelProps:s,inputProps:{...l,checked:d,"aria-required":b&&g==="aria"||void 0,required:b&&g==="native"},isSelected:d,isPressed:c,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:a}}const hD=new WeakMap;function bD(e,t,n){const r=ha({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(y){y?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(y)}});let{name:o,descriptionId:i,errorMessageId:a,validationBehavior:s}=hD.get(t);var l;s=(l=e.validationBehavior)!==null&&l!==void 0?l:s;let{realtimeValidation:d}=$r({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),c=u.useRef(qn),f=()=>{t.setInvalid(e.value,d.isInvalid?d:c.current)};u.useEffect(f);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:d,h=s==="native"?t.displayValidation:p;var b;let g=bm({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(b=e.isRequired)!==null&&b!==void 0?b:t.isRequired,validationBehavior:s,[co]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){c.current=y,f()}}},r,n);return{...g,inputProps:{...g.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,i].filter(Boolean).join(" ")||void 0}}}var mm={};mm={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var gm={};gm={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var vm={};vm={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var ym={};ym={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var $m={};$m={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var xm={};xm={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var wm={};wm={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Cm={};Cm={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Dm={};Dm={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Em={};Em={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Pm={};Pm={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var Sm={};Sm={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Tm={};Tm={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var Am={};Am={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Mm={};Mm={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var km={};km={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Rm={};Rm={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Fm={};Fm={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var Bm={};Bm={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var Im={};Im={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Lm={};Lm={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Vm={};Vm={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var Om={};Om={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Nm={};Nm={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Km={};Km={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var jm={};jm={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var _m={};_m={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var zm={};zm={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var Um={};Um={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var Hm={};Hm={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var Gm={};Gm={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var Wm={};Wm={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var Ym={};Ym={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var qm={};qm={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};function ml(e){return ui()?e.altKey:e.ctrlKey}function Zn(e){return Ut()?e.metaKey:e.ctrlKey}const mD=1e3;function gD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=u.useRef({search:"",timeout:null}).current,i=a=>{let s=vD(a.key);if(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))return;s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s;let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},mD)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function vD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Nu(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:h=r,linkBehavior:b="action"}=e,{direction:g}=Ve(),y=bo(),$=F=>{if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!r.current.contains(F.target))return;const A=(H,D)=>{if(H!=null){if(t.isLink(H)&&b==="selection"&&l&&!ml(F)){Wt.flushSync(()=>{t.setFocusedKey(H,D)});let O=h.current.querySelector(`[data-key="${CSS.escape(H.toString())}"]`);y.open(O,F);return}if(t.setFocusedKey(H,D),t.isLink(H)&&b==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&!ml(F)&&t.replaceSelection(H)}};switch(F.key){case"ArrowDown":if(n.getKeyBelow){var B,R;F.preventDefault();let H=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n);H==null&&i&&(H=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n,t.focusedKey)),A(H)}break;case"ArrowUp":if(n.getKeyAbove){var I,K;F.preventDefault();let H=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n);H==null&&i&&(H=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n,t.focusedKey)),A(H)}break;case"ArrowLeft":if(n.getKeyLeftOf){var V,T;F.preventDefault();let H=n.getKeyLeftOf(t.focusedKey);H==null&&i&&(H=g==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,t.focusedKey):(T=n.getLastKey)===null||T===void 0?void 0:T.call(n,t.focusedKey)),A(H,g==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var G,Y;F.preventDefault();let H=n.getKeyRightOf(t.focusedKey);H==null&&i&&(H=g==="rtl"?(G=n.getLastKey)===null||G===void 0?void 0:G.call(n,t.focusedKey):(Y=n.getFirstKey)===null||Y===void 0?void 0:Y.call(n,t.focusedKey)),A(H,g==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){F.preventDefault();let H=n.getFirstKey(t.focusedKey,Zn(F));t.setFocusedKey(H),Zn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&t.replaceSelection(H)}break;case"End":if(n.getLastKey){F.preventDefault();let H=n.getLastKey(t.focusedKey,Zn(F));t.setFocusedKey(H),Zn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(H):l&&t.replaceSelection(H)}break;case"PageDown":if(n.getKeyPageBelow){F.preventDefault();let H=n.getKeyPageBelow(t.focusedKey);A(H)}break;case"PageUp":if(n.getKeyPageAbove){F.preventDefault();let H=n.getKeyPageAbove(t.focusedKey);A(H)}break;case"a":Zn(F)&&t.selectionMode==="multiple"&&s!==!0&&(F.preventDefault(),t.selectAll());break;case"Escape":F.preventDefault(),a||t.clearSelection();break;case"Tab":if(!f){if(F.shiftKey)r.current.focus();else{let H=Ze(r.current,{tabbable:!0}),D,O;do O=H.lastChild(),O&&(D=O);while(O);D&&!D.contains(document.activeElement)&&Pt(D)}break}}},C=u.useRef({top:0,left:0});Di(h,"scroll",p?null:()=>{C.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let w=F=>{if(t.isFocused){F.currentTarget.contains(F.target)||t.setFocused(!1);return}if(F.currentTarget.contains(F.target)){if(t.setFocused(!0),t.focusedKey==null){let R=K=>{K!=null&&(t.setFocusedKey(K),l&&t.replaceSelection(K))},I=F.relatedTarget;var A,B;I&&F.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?R((A=t.lastSelectedKey)!==null&&A!==void 0?A:n.getLastKey()):R((B=t.firstSelectedKey)!==null&&B!==void 0?B:n.getFirstKey())}else p||(h.current.scrollTop=C.current.top,h.current.scrollLeft=C.current.left);if(!p&&t.focusedKey!=null){let R=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);R&&(R.contains(document.activeElement)||Pt(R),Si()==="keyboard"&&Ls(R,{containingElement:r.current}))}}},E=F=>{F.currentTarget.contains(F.relatedTarget)||t.setFocused(!1)};const P=u.useRef(o);u.useEffect(()=>{if(P.current){let F=null;o==="first"&&(F=n.getFirstKey()),o==="last"&&(F=n.getLastKey());let A=t.selectedKeys;if(A.size){for(let B of A)if(t.canSelectItem(B)){F=B;break}}t.setFocused(!0),t.setFocusedKey(F),F==null&&!c&&kn(r.current)}},[]);let k=u.useRef(t.focusedKey);u.useEffect(()=>{let F=Si();if(t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let A=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);A&&(F==="keyboard"||P.current)&&(p||qp(h.current,A),F!=="virtual"&&Ls(A,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&k.current!=null&&kn(r.current),k.current=t.focusedKey,P.current=!1},[p,h,t.focusedKey,t.isFocused,r]);let N={onKeyDown:$,onFocus:w,onBlur:E,onMouseDown(F){h.current===F.target&&F.preventDefault()}},{typeSelectProps:v}=gD({keyboardDelegate:n,selectionManager:t});d||(N=X(v,N));let L;return c||(L=t.focusedKey==null?0:-1),{collectionProps:{...N,tabIndex:L}}}function Ku(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:a,isDisabled:s,onAction:l,allowsDifferentPressOrigin:d,linkBehavior:c="action"}=e,f=bo(),p=T=>{if(T.pointerType==="keyboard"&&ml(T))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){f.open(r.current,T),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):T&&T.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||T&&(Zn(T)||T.pointerType==="touch"||T.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};u.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(a?a():document.activeElement!==r.current&&kn(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let h={};!i&&!s?h={tabIndex:n===t.focusedKey?0:-1,onFocus(T){T.target===r.current&&t.setFocusedKey(n)}}:s&&(h.onMouseDown=T=>{T.preventDefault()});let b=t.isLink(n)&&c==="override",g=t.isLink(n)&&c!=="selection"&&c!=="none",y=!s&&t.canSelectItem(n)&&!b,$=(l||g)&&!s,C=$&&(t.selectionBehavior==="replace"?!y:!y||t.isEmpty),w=$&&y&&t.selectionBehavior==="replace",E=C||w,P=u.useRef(null),k=E&&y,N=u.useRef(!1),v=u.useRef(!1),L=T=>{l&&l(),g&&f.open(r.current,T)},F={};o?(F.onPressStart=T=>{P.current=T.pointerType,N.current=k,T.pointerType==="keyboard"&&(!E||Qf())&&p(T)},d?(F.onPressUp=C?null:T=>{T.pointerType!=="keyboard"&&y&&p(T)},F.onPress=C?L:null):F.onPress=T=>{if(C||w&&T.pointerType!=="mouse"){if(T.pointerType==="keyboard"&&!Jf())return;L(T)}else T.pointerType!=="keyboard"&&y&&p(T)}):(F.onPressStart=T=>{P.current=T.pointerType,N.current=k,v.current=C,y&&(T.pointerType==="mouse"&&!C||T.pointerType==="keyboard"&&(!$||Qf()))&&p(T)},F.onPress=T=>{(T.pointerType==="touch"||T.pointerType==="pen"||T.pointerType==="virtual"||T.pointerType==="keyboard"&&E&&Jf()||T.pointerType==="mouse"&&v.current)&&(E?L(T):y&&p(T))}),h["data-key"]=n,F.preventFocusOnPress=i;let{pressProps:A,isPressed:B}=sn(F),R=w?T=>{P.current==="mouse"&&(T.stopPropagation(),T.preventDefault(),L(T))}:void 0,{longPressProps:I}=a0({isDisabled:!k,onLongPress(T){T.pointerType==="touch"&&(p(T),t.setSelectionBehavior("toggle"))}}),K=T=>{P.current==="touch"&&N.current&&T.preventDefault()},V=t.isLink(n)?T=>{Tn.isOpening||T.preventDefault()}:void 0;return{itemProps:X(h,y||C?A:{},k?I:{},{onDoubleClick:R,onDragStartCapture:K,onClick:V}),isPressed:B,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:y,hasAction:E}}function Jf(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Qf(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class ju{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let n=this.collection.getItem(t);if((n==null?void 0:n.type)==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Ci(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.max(0,i.x-a+i.width-o.width);for(;r&&i.x-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.max(0,i.y-a+i.height-o.height);for(;r&&i.y-a>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Ci(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let a=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,i.x-a-i.width+o.width);for(;r&&i.x-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let a=o.y-n.scrollTop,s=Math.min(n.scrollHeight,i.y-a-i.height+o.height);for(;r&&i.y-a<s;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o),a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getKeyBelow(o)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Zm(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i}=e,a=ru({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,l=u.useMemo(()=>i||new ju(n,s==="selection"?new Set:r,o,a),[i,n,r,o,a,s]),{collectionProps:d}=Nu({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:d}}class yD{build(t,n){return this.context=n,ep(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];u.Children.forEach(n,a=>{o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}i=n.renderer(t.value)}if(u.isValidElement(i)){let l=i.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let p=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${p}> in collection.`)}let d=l.getCollectionNode(i.props,this.context),c=t.index,f=d.next();for(;!f.done&&f.value;){let p=f.value;t.index=c;let h=p.key;h||(h=p.element?null:this.getKey(i,t,n,r));let g=[...this.getFullNode({...p,key:h,index:c,wrapper:$D(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${i.key}`:i.key,o)];for(let y of g){if(y.value=p.value||t.value,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw new Error(`Unsupported type <${xs(y.type)}> in <${xs(o.type)}>. Only <${xs(t.type)}> is supported.`);c++,yield y}f=d.next(g)}return}if(t.key==null)return;let a=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:ep(function*(){if(!t.hasChildNodes)return;let l=0;for(let d of t.childNodes()){d.key!=null&&(d.key=`${s.key}${d.key}`),d.index=l;let c=a.getFullNode(d,a.getChildState(n,d),s.key,s);for(let f of c)l++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function ep(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function $D(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function xs(e){return e[0].toUpperCase()+e.slice(1)}function Xm(e,t,n){let r=u.useMemo(()=>new yD,[]),{children:o,items:i,collection:a}=e;return u.useMemo(()=>{if(a)return a;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,a,n,t])}function ba(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function xD(e){return wD(e,0)}function wD(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function ws(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...tp(e,t),t],o=[...tp(e,n),n],i=r.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function tp(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const np=new WeakMap;function _u(e){let t=np.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(ba(o,e)):t++};return n(e),np.set(e,t),t}const ma=new WeakMap;function CD(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Jm(e,t){let n=ma.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${CD(t)}`}function DD(e,t,n){let r=le(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:a}=Zm({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=br({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=_e(e.id);ma.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:d,fieldProps:c}=Do({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:X(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...X(c,a)})}}function ED(e,t,n){var r;let{key:o}=e,i=ma.get(t);var a;let s=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(o);var l;let d=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(o);var c;let f=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c:i==null?void 0:i.shouldSelectOnPressUp;var p;let h=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:i==null?void 0:i.shouldFocusOnHover;var b;let g=(b=e.shouldUseVirtualFocus)!==null&&b!==void 0?b:i==null?void 0:i.shouldUseVirtualFocus;var y;let $=(y=e.isVirtualized)!==null&&y!==void 0?y:i==null?void 0:i.isVirtualized,C=rn(),w=rn(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?d:void 0};Ut()&&Ol()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=C,E["aria-describedby"]=w);let P=t.collection.getItem(o);if($){let R=Number(P==null?void 0:P.index);E["aria-posinset"]=Number.isNaN(R)?void 0:R+1,E["aria-setsize"]=_u(t.collection)}let{itemProps:k,isPressed:N,isFocused:v,hasAction:L,allowsSelection:F}=Ku({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:$,shouldUseVirtualFocus:g,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var R;return i==null||(R=i.onAction)===null||R===void 0?void 0:R.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:A}=Fe({isDisabled:s||!h,onHoverStart(){lr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),B=le(P==null?void 0:P.props,{isLink:!!(!(P==null||(r=P.props)===null||r===void 0)&&r.href)});return delete B.id,{optionProps:{...E,...X(B,k,A),id:Jm(t,o)},labelProps:{id:C},descriptionProps:{id:w},isFocused:v,isFocusVisible:v&&lr(),isSelected:d,isDisabled:s,isPressed:N,allowsSelection:F,hasAction:L}}function PD(e){let{heading:t,"aria-label":n}=e,r=_e();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Qm={};Qm={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var eg={};eg={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var tg={};tg={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var ng={};ng={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var rg={};rg={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var og={};og={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var ig={};ig={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var ag={};ag={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var sg={};sg={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var lg={};lg={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var ug={};ug={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var cg={};cg={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var dg={};dg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var fg={};fg={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var pg={};pg={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var hg={};hg={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var bg={};bg={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var mg={};mg={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var gg={};gg={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var vg={};vg={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var yg={};yg={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var $g={};$g={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var xg={};xg={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var wg={};wg={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Cg={};Cg={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var Dg={};Dg={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Eg={};Eg={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Pg={};Pg={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Sg={};Sg={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Tg={};Tg={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var Ag={};Ag={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Mg={};Mg={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var kg={};kg={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Rg={};Rg={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function SD(e){return e&&e.__esModule?e.default:e}var Fg={};Fg={"ar-AE":Qm,"bg-BG":eg,"cs-CZ":tg,"da-DK":ng,"de-DE":rg,"el-GR":og,"en-US":ig,"es-ES":ag,"et-EE":sg,"fi-FI":lg,"fr-FR":ug,"he-IL":cg,"hr-HR":dg,"hu-HU":fg,"it-IT":pg,"ja-JP":hg,"ko-KR":bg,"lt-LT":mg,"lv-LV":gg,"nb-NO":vg,"nl-NL":yg,"pl-PL":$g,"pt-BR":xg,"pt-PT":wg,"ro-RO":Cg,"ru-RU":Dg,"sk-SK":Eg,"sl-SI":Pg,"sr-SP":Sg,"sv-SE":Tg,"tr-TR":Ag,"uk-UA":Mg,"zh-CN":kg,"zh-TW":Rg};function TD(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,a=_e(),{triggerProps:s,overlayProps:l}=y2({type:r},t,n),d=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},c=gr(SD(Fg),"@react-aria/menu"),{longPressProps:f}=a0({isDisabled:o||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&t.toggle(h.pointerType==="virtual"?"first":null)},onPress(h){h.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?p:f,id:a,onKeyDown:d},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const Bg=new WeakMap;function AD(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=le(e,{labelable:!0}),{listProps:l}=Zm({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Bg.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:X(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...l,onKeyDown:d=>{d.key!=="Escape"&&l.onKeyDown(d)}})}}function Ig(e,t,n){var r;let{key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:l,onPressUp:d,onPress:c,onPressChange:f,onPressEnd:p,onHoverStart:h,onHoverChange:b,onHoverEnd:g,onKeyDown:y,onKeyUp:$,onFocus:C,onFocusChange:w,onBlur:E}=e,P=!!s;var k;let N=(k=e.isDisabled)!==null&&k!==void 0?k:t.disabledKeys.has(o);var v;let L=(v=e.isSelected)!==null&&v!==void 0?v:t.selectionManager.isSelected(o),F=Bg.get(t),A=e.onClose||F.onClose,B=P?()=>{}:e.onAction||F.onAction,R=bo(),I=se=>{B&&B(o),se.target instanceof HTMLAnchorElement&&R.open(se.target,se)},K="menuitem";P||(t.selectionManager.selectionMode==="single"?K="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(K="menuitemcheckbox"));let V=rn(),T=rn(),G=rn(),Y={"aria-disabled":N||void 0,role:K,"aria-label":e["aria-label"],"aria-labelledby":V,"aria-describedby":[T,G].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};t.selectionManager.selectionMode!=="none"&&!P&&(Y["aria-checked"]=L);let H=t.collection.getItem(o);a&&(Y["aria-posinset"]=H==null?void 0:H.index,Y["aria-setsize"]=_u(t.collection));let D=se=>{se.pointerType==="keyboard"&&I(se),l==null||l(se)},O=se=>{se.pointerType!=="keyboard"&&(I(se),!P&&A&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(o)))&&A()),d==null||d(se)},{itemProps:W,isFocused:J}=Ku({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:Q,isPressed:re}=sn({onPressStart:D,onPress:c,onPressUp:O,onPressChange:f,onPressEnd:p,isDisabled:N}),{hoverProps:z}=Fe({isDisabled:N,onHoverStart(se){lr()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),h==null||h(se)},onHoverChange:b,onHoverEnd:g}),{keyboardProps:q}=zl({onKeyDown:se=>{if(se.repeat){se.continuePropagation();return}switch(se.key){case" ":!N&&t.selectionManager.selectionMode==="none"&&!P&&i!==!1&&A&&A();break;case"Enter":!N&&i!==!1&&!P&&A&&A();break;default:P||se.continuePropagation(),y==null||y(se);break}},onKeyUp:$}),{focusProps:te}=ea({onBlur:E,onFocus:C,onFocusChange:w}),ae=le(H.props,{isLink:!!(!(H==null||(r=H.props)===null||r===void 0)&&r.href)});return delete ae.id,{menuItemProps:{...Y,...X(ae,P?{onFocus:W.onFocus}:W,Q,z,q,te),tabIndex:W.tabIndex!=null?-1:void 0},labelProps:{id:V},descriptionProps:{id:T},keyboardShortcutProps:{id:G},isFocused:J,isSelected:L,isPressed:re,isDisabled:N}}function MD(e){let{heading:t,"aria-label":n}=e,r=_e();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const ai=2,kD=50,RD=1e3,rp=Math.PI/12;function FD(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:o}=e,i=u.useRef(),a=u.useRef(),s=u.useRef(0),l=u.useRef(),d=u.useRef(),c=u.useRef(),f=u.useRef(2),[p,h]=u.useState(!1);Kl({ref:n,onResize:()=>{n.current&&(a.current=n.current.getBoundingClientRect(),c.current=void 0)}});let g=()=>{h(!1),f.current=ai},y=Ax();u.useEffect(()=>{p&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,p]),u.useEffect(()=>{let $=n.current,C=t.current;if(o||!$||!r||y!=="pointer"){g();return}a.current=$.getBoundingClientRect();let w=E=>{if(E.pointerType==="touch"||E.pointerType==="pen")return;let P=Date.now();if(P-s.current<kD)return;clearTimeout(l.current),clearTimeout(d.current);let{clientX:k,clientY:N}=E;if(!i.current){i.current={x:k,y:N};return}if(!a.current)return;if(c.current||(c.current=k>a.current.right?"left":"right"),k<C.getBoundingClientRect().left||k>C.getBoundingClientRect().right||N<C.getBoundingClientRect().top||N>C.getBoundingClientRect().bottom){g();return}let v=i.current.x,L=i.current.y,F=c.current==="right"?a.current.left-v:v-a.current.right,A=Math.atan2(L-a.current.top,F)+rp,B=Math.atan2(L-a.current.bottom,F)-rp,R=Math.atan2(L-N,c.current==="left"?-(k-v):k-v),I=R<A&&R>B;f.current=I?Math.min(f.current+1,ai):Math.max(f.current-1,0),f.current>=ai?h(!0):h(!1),s.current=P,i.current={x:k,y:N},I&&(l.current=setTimeout(()=>{g(),d.current=setTimeout(()=>{let K=document.elementFromPoint(k,N);K&&C.contains(K)&&K.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},RD))};return window.addEventListener("pointermove",w),()=>{window.removeEventListener("pointermove",w),clearTimeout(l.current),clearTimeout(d.current),f.current=ai}},[o,r,t,y,h,n])}function BD(e,t,n){let{parentMenuRef:r,submenuRef:o,type:i="menu",isDisabled:a,node:s,delay:l=200}=e,d=_e(),c=_e(),{direction:f}=Ve(),p=u.useRef(),h=u.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),b=Pe(v=>{h(),t.open(v)}),g=Pe(()=>{h(),t.close()});be(()=>()=>{h()},[h]);let y=v=>{switch(v.key){case"ArrowLeft":f==="ltr"&&v.currentTarget.contains(v.target)&&(v.stopPropagation(),g(),n.current.focus());break;case"ArrowRight":f==="rtl"&&v.currentTarget.contains(v.target)&&(v.stopPropagation(),g(),n.current.focus());break;case"Escape":v.stopPropagation(),t.closeAll();break}},$={id:c,"aria-label":s.textValue,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:t.focusStrategy,onKeyDown:y}},C=v=>{switch(v.key){case"ArrowRight":a||(f==="ltr"?(t.isOpen||b("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?g():v.continuePropagation());break;case"ArrowLeft":a||(f==="rtl"?(t.isOpen||b("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(n==null?void 0:n.current)&&o.current.focus()):t.isOpen?g():v.continuePropagation());break;case"Escape":t.closeAll();break;default:v.continuePropagation();break}},w=v=>{!a&&(v.pointerType==="virtual"||v.pointerType==="keyboard")&&b("first")},E=v=>{!a&&(v.pointerType==="touch"||v.pointerType==="mouse")&&b()},P=v=>{a||(v&&!t.isOpen?p.current||(p.current=setTimeout(()=>{b()},l)):v||h())},k=v=>{t.isOpen&&r.current.contains(v.relatedTarget)&&g()},N=v=>v!==n.current;return FD({menuRef:r,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:d,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:w,onPress:E,onHoverChange:P,onKeyDown:C,onBlur:k,isOpen:t.isOpen},submenuProps:$,popoverProps:{isNonModal:!0,disableFocusManagement:!0,shouldCloseOnInteractOutside:N}}}function zu(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,d]=bt(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=mr(e,t),f=$r({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:b}=f.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:$,errorMessageProps:C}=hm({...e,isInvalid:p,errorMessage:e.errorMessage||h}),w=le(e,{labelable:!0});const E={type:a,pattern:e.pattern};return mo(t,l,d),Ou(e,f,t),u.useEffect(()=>{if(t.current instanceof ft(t.current).HTMLTextAreaElement){let P=t.current;Object.defineProperty(P,"defaultValue",{get:()=>P.value,set:()=>{},configurable:!0})}},[t]),{labelProps:g,inputProps:X(w,n==="input"&&E,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:P=>d(P.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...y}),descriptionProps:$,errorMessageProps:C,isInvalid:p,validationErrors:h,validationDetails:b}}function op(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function ID(e,t,n){let r=Pe(f=>{let p=n.current,h;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":h=p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentForward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd+1):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteContentBackward":h=p.selectionEnd===p.selectionStart?p.value.slice(0,p.selectionStart-1)+p.value.slice(p.selectionStart):p.value.slice(0,p.selectionStart)+p.value.slice(p.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":h=p.value.slice(p.selectionStart);break;default:f.data!=null&&(h=p.value.slice(0,p.selectionStart)+f.data+p.value.slice(p.selectionEnd));break}(h==null||!t.validate(h))&&f.preventDefault()});u.useEffect(()=>{if(!op())return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let o=op()?null:f=>{let p=f.target.value.slice(0,f.target.selectionStart)+f.data+f.target.value.slice(f.target.selectionEnd);t.validate(p)||f.preventDefault()},{labelProps:i,inputProps:a,descriptionProps:s,errorMessageProps:l,...d}=zu(e,n),c=u.useRef(null);return{inputProps:X(a,{onBeforeInput:o,onCompositionStart(){let{value:f,selectionStart:p,selectionEnd:h}=n.current;c.current={value:f,selectionStart:p,selectionEnd:h}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:f,selectionStart:p,selectionEnd:h}=c.current;n.current.value=f,n.current.setSelectionRange(p,h),t.setInputValue(f)}}}),labelProps:i,descriptionProps:s,errorMessageProps:l,...d}}function LD(e){return e&&e.__esModule?e.default:e}var Lg={};Lg={"ar-AE":mm,"bg-BG":gm,"cs-CZ":vm,"da-DK":ym,"de-DE":$m,"el-GR":xm,"en-US":wm,"es-ES":Cm,"et-EE":Dm,"fi-FI":Em,"fr-FR":Pm,"he-IL":Sm,"hr-HR":Tm,"hu-HU":Am,"it-IT":Mm,"ja-JP":km,"ko-KR":Rm,"lt-LT":Fm,"lv-LV":Bm,"nb-NO":Im,"nl-NL":Lm,"pl-PL":Vm,"pt-BR":Om,"pt-PT":Nm,"ro-RO":Km,"ru-RU":jm,"sk-SK":_m,"sl-SI":zm,"sr-SP":Um,"sv-SE":Hm,"tr-TR":Gm,"uk-UA":Wm,"zh-CN":Ym,"zh-TW":qm};function VD(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:a,shouldFocusWrap:s,isReadOnly:l,isDisabled:d}=e,c=gr(LD(Lg),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:p}=TD({type:"listbox",isDisabled:d||l},t,n);ma.set(t,{id:p.id});let h=u.useMemo(()=>a||new ju(t.collection,t.disabledKeys,i),[a,t.collection,t.disabledKeys,i]),{collectionProps:b}=Nu({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),g=bo(),y=z=>{switch(z.key){case"Enter":case"Tab":if(t.isOpen&&z.key==="Enter"&&z.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(z.key==="Enter"){let q=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);q instanceof HTMLAnchorElement&&g.open(q,z)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&z.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},$=z=>{var q;z.relatedTarget===(n==null?void 0:n.current)||!((q=r.current)===null||q===void 0)&&q.contains(z.relatedTarget)||(e.onBlur&&e.onBlur(z),t.setFocused(!1))},C=z=>{t.isFocused||(e.onFocus&&e.onFocus(z),t.setFocused(!0))},{isInvalid:w,validationErrors:E,validationDetails:P}=t.displayValidation,{labelProps:k,inputProps:N,descriptionProps:v,errorMessageProps:L}=zu({...e,onChange:t.setInputValue,onKeyDown:l?e.onKeyDown:an(t.isOpen&&b.onKeyDown,y,e.onKeyDown),onBlur:$,value:t.inputValue,onFocus:C,autoComplete:"off",validate:void 0,[co]:t},o),F=z=>{z.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},A=z=>{z.pointerType!=="touch"&&(o.current.focus(),t.toggle(z.pointerType==="keyboard"||z.pointerType==="virtual"?"first":null,"manual"))},B=An({id:f.id,"aria-label":c.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),R=An({id:p.id,"aria-label":c.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),I=u.useRef(0),K=z=>{if(d||l)return;if(z.timeStamp-I.current<500){z.preventDefault(),o.current.focus();return}let q=z.target.getBoundingClientRect(),te=z.changedTouches[0],ae=Math.ceil(q.left+.5*q.width),se=Math.ceil(q.top+.5*q.height);te.clientX===ae&&te.clientY===se&&(z.preventDefault(),o.current.focus(),t.toggle(null,"manual"),I.current=z.timeStamp)},V=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var T;let G=(T=V==null?void 0:V.parentKey)!==null&&T!==void 0?T:null;var Y;let H=(Y=t.selectionManager.focusedKey)!==null&&Y!==void 0?Y:null,D=u.useRef(G),O=u.useRef(H);u.useEffect(()=>{if(ui()&&V!=null&&H!==O.current){let z=t.selectionManager.isSelected(H),q=G!=null?t.collection.getItem(G):null,te=(q==null?void 0:q["aria-label"])||(typeof(q==null?void 0:q.rendered)=="string"?q.rendered:"")||"",ae=c.format("focusAnnouncement",{isGroupChange:q&&G!==D.current,groupTitle:te,groupCount:q?[...ba(q,t.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:z});gi(ae)}D.current=G,O.current=H});let W=_u(t.collection),J=u.useRef(W),Q=u.useRef(t.isOpen);u.useEffect(()=>{let z=t.isOpen!==Q.current&&(t.selectionManager.focusedKey==null||ui());if(t.isOpen&&(z||W!==J.current)){let q=c.format("countAnnouncement",{optionCount:W});gi(q)}J.current=W,Q.current=t.isOpen});let re=u.useRef(t.selectedKey);return u.useEffect(()=>{if(ui()&&t.isFocused&&t.selectedItem&&t.selectedKey!==re.current){let z=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",q=c.format("selectedAnnouncement",{optionText:z});gi(q)}re.current=t.selectedKey}),u.useEffect(()=>{if(t.isOpen)return iu([o.current,r.current])},[t.isOpen,o,r]),{labelProps:k,buttonProps:{...f,...B,excludeFromTabOrder:!0,onPress:F,onPressStart:A,isDisabled:d||l},inputProps:X(N,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?Jm(t,V.key):void 0,onTouchEnd:K,autoCorrect:"off",spellCheck:"false"}),listBoxProps:X(p,R,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:v,errorMessageProps:L,isInvalid:w,validationErrors:E,validationDetails:P}}var Vg={};Vg={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Og={};Og={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Ng={};Ng={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Kg={};Kg={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var jg={};jg={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var _g={};_g={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var zg={};zg={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var Ug={};Ug={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var Hg={};Hg={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var Gg={};Gg={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var Wg={};Wg={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var Yg={};Yg={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var qg={};qg={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Zg={};Zg={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var Xg={};Xg={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var Jg={};Jg={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var Qg={};Qg={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var ev={};ev={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var tv={};tv={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var nv={};nv={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var rv={};rv={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var ov={};ov={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var iv={};iv={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var av={};av={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var sv={};sv={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var lv={};lv={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var uv={};uv={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var cv={};cv={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var dv={};dv={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var fv={};fv={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var pv={};pv={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var hv={};hv={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var bv={};bv={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var mv={};mv={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var gv={};gv={Empty:"فارغ"};var vv={};vv={Empty:"Изпразни"};var yv={};yv={Empty:"Prázdné"};var $v={};$v={Empty:"Tom"};var xv={};xv={Empty:"Leer"};var wv={};wv={Empty:"Άδειο"};var Cv={};Cv={Empty:"Empty"};var Dv={};Dv={Empty:"Vacío"};var Ev={};Ev={Empty:"Tühjenda"};var Pv={};Pv={Empty:"Tyhjä"};var Sv={};Sv={Empty:"Vide"};var Tv={};Tv={Empty:"ריק"};var Av={};Av={Empty:"Prazno"};var Mv={};Mv={Empty:"Üres"};var kv={};kv={Empty:"Vuoto"};var Rv={};Rv={Empty:"空"};var Fv={};Fv={Empty:"비어 있음"};var Bv={};Bv={Empty:"Tuščias"};var Iv={};Iv={Empty:"Tukšs"};var Lv={};Lv={Empty:"Tom"};var Vv={};Vv={Empty:"Leeg"};var Ov={};Ov={Empty:"Pusty"};var Nv={};Nv={Empty:"Vazio"};var Kv={};Kv={Empty:"Vazio"};var jv={};jv={Empty:"Gol"};var _v={};_v={Empty:"Не заполнено"};var zv={};zv={Empty:"Prázdne"};var Uv={};Uv={Empty:"Prazen"};var Hv={};Hv={Empty:"Prazno"};var Gv={};Gv={Empty:"Tomt"};var Wv={};Wv={Empty:"Boş"};var Yv={};Yv={Empty:"Пусто"};var qv={};qv={Empty:"空"};var Zv={};Zv={Empty:"空白"};function OD(e){return e&&e.__esModule?e.default:e}var Xv={};Xv={"ar-AE":gv,"bg-BG":vv,"cs-CZ":yv,"da-DK":$v,"de-DE":xv,"el-GR":wv,"en-US":Cv,"es-ES":Dv,"et-EE":Ev,"fi-FI":Pv,"fr-FR":Sv,"he-IL":Tv,"hr-HR":Av,"hu-HU":Mv,"it-IT":kv,"ja-JP":Rv,"ko-KR":Fv,"lt-LT":Bv,"lv-LV":Iv,"nb-NO":Lv,"nl-NL":Vv,"pl-PL":Ov,"pt-BR":Nv,"pt-PT":Kv,"ro-RO":jv,"ru-RU":_v,"sk-SK":zv,"sl-SI":Uv,"sr-SP":Hv,"sv-SE":Gv,"tr-TR":Wv,"uk-UA":Yv,"zh-CN":qv,"zh-TW":Zv};function Jv(e){const t=u.useRef();let{value:n,textValue:r,minValue:o,maxValue:i,isDisabled:a,isReadOnly:s,isRequired:l,onIncrement:d,onIncrementPage:c,onDecrement:f,onDecrementPage:p,onDecrementToMin:h,onIncrementToMax:b}=e;const g=gr(OD(Xv),"@react-aria/spinbutton"),y=()=>clearTimeout(t.current);u.useEffect(()=>()=>y(),[]);let $=A=>{if(!(A.ctrlKey||A.metaKey||A.shiftKey||A.altKey||s))switch(A.key){case"PageUp":if(c){A.preventDefault(),c==null||c();break}case"ArrowUp":case"Up":d&&(A.preventDefault(),d==null||d());break;case"PageDown":if(p){A.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":f&&(A.preventDefault(),f==null||f());break;case"Home":h&&(A.preventDefault(),h==null||h());break;case"End":b&&(A.preventDefault(),b==null||b());break}},C=u.useRef(!1),w=()=>{C.current=!0},E=()=>{C.current=!1},P=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");u.useEffect(()=>{C.current&&(aD("assertive"),gi(P,"assertive"))},[P]);const k=Pe(A=>{y(),d==null||d(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n<i)&&k(60)},A)}),N=Pe(A=>{y(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&N(60)},A)});let v=A=>{A.preventDefault()},{addGlobalListener:L,removeAllGlobalListeners:F}=hr();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":a||void 0,"aria-readonly":s||void 0,"aria-required":l||void 0,onKeyDown:$,onFocus:w,onBlur:E},incrementButtonProps:{onPressStart:()=>{k(400),L(window,"contextmenu",v)},onPressEnd:()=>{y(),F()},onFocus:w,onBlur:E},decrementButtonProps:{onPressStart:()=>{N(400),L(window,"contextmenu",v)},onPressEnd:()=>{y(),F()},onFocus:w,onBlur:E}}}function Qv(e){return e&&e.__esModule?e.default:e}var Uu={};Uu={"ar-AE":Vg,"bg-BG":Og,"cs-CZ":Ng,"da-DK":Kg,"de-DE":jg,"el-GR":_g,"en-US":zg,"es-ES":Ug,"et-EE":Hg,"fi-FI":Gg,"fr-FR":Wg,"he-IL":Yg,"hr-HR":qg,"hu-HU":Zg,"it-IT":Xg,"ja-JP":Jg,"ko-KR":Qg,"lt-LT":ev,"lv-LV":tv,"nb-NO":nv,"nl-NL":rv,"pl-PL":ov,"pt-BR":iv,"pt-PT":av,"ro-RO":sv,"ru-RU":lv,"sk-SK":uv,"sl-SI":cv,"sr-SP":dv,"sv-SE":fv,"tr-TR":pv,"uk-UA":hv,"zh-CN":bv,"zh-TW":mv};function ND(e,t,n){let{direction:r}=Ve(),o=u.useMemo(()=>u0(t),[t]),i=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusNext():o.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?o.focusPrevious():o.focusNext();break}},a=()=>{var l;let d=(l=window.event)===null||l===void 0?void 0:l.target,c=Ze(t.current,{tabbable:!0});if(d&&(c.currentNode=d,d=c.previousNode()),!d){let f;do f=c.lastChild(),f&&(d=f);while(f)}for(;d!=null&&d.hasAttribute("data-placeholder");){let f=c.previousNode();if(f&&f.hasAttribute("data-placeholder"))d=f;else break}d&&d.focus()},{pressProps:s}=sn({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return X(s,{onKeyDown:i})}const ey=new WeakMap,Cs="__role_"+Date.now(),KD="__focusManager_"+Date.now();function Hu(e,t,n){var r;let{isInvalid:o,validationErrors:i,validationDetails:a}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:d,errorMessageProps:c}=hm({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||i}),f=u.useRef(null),{focusWithinProps:p}=br({...e,onFocusWithin(F){var A;f.current=t.value,(A=e.onFocus)===null||A===void 0||A.call(e,F)},onBlurWithin:F=>{var A;t.confirmPlaceholder(),t.value!==f.current&&t.commitValidation(),(A=e.onBlur)===null||A===void 0||A.call(e,F)},onFocusWithinChange:e.onFocusChange}),h=gr(Qv(Uu),"@react-aria/datepicker"),b=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=t.maxGranularity==="hour"?"time":"date",y=t.value?h.format(b,{[g]:t.formatValue({month:"long"})}):"",$=Yp(y),C=e[Cs]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[KD],E=u.useMemo(()=>w||u0(n),[w,n]),P=ND(t,n,e[Cs]==="presentation");ey.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:E});let k=u.useRef(e.autoFocus),N;e[Cs]==="presentation"?N={role:"presentation"}:N=X(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),u.useEffect(()=>{k.current&&E.focusFirst(),k.current=!1},[E]),mo(e.inputRef,t.value,t.setValue),Ou({...e,focus(){E.focusFirst()}},t,e.inputRef);let v={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||""};e.validationBehavior==="native"&&(v.type="text",v.hidden=!0,v.required=e.isRequired,v.onChange=()=>{});let L=le(e);return{labelProps:{...s,onClick:()=>{E.focusFirst()}},fieldProps:X(L,N,P,p,{onKeyDown(F){e.onKeyDown&&e.onKeyDown(F)},onKeyUp(F){e.onKeyUp&&e.onKeyUp(F)}}),inputProps:v,descriptionProps:d,errorMessageProps:c,isInvalid:o,validationErrors:i,validationDetails:a}}function jD(e,t,n){var r;let o=Hu(e,t,n);return o.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",o}function _D(){let{locale:e}=Ve(),t=_0(Qv(Uu),"@react-aria/datepicker");return u.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new zD(e,t)}},[e,t])}class zD{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function UD(e,t,n){let r=u.useRef(""),{locale:o}=Ve(),i=_D(),{ariaLabel:a,ariaLabelledBy:s,ariaDescribedBy:l,focusManager:d}=ey.get(t),c=e.isPlaceholder?"":e.text,f=u.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=ei({month:"long",timeZone:f.timeZone}),h=ei({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if(e.type==="month"&&!e.isPlaceholder){let T=p.format(t.dateValue);c=T!==c?`${c} – ${T}`:T}else e.type==="hour"&&!e.isPlaceholder&&(c=h.format(t.dateValue));let{spinButtonProps:b}=Jv({value:e.value,textValue:c,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",t.setSegment(e.type,e.minValue)}}),g=u.useMemo(()=>new nu(o,{maximumFractionDigits:0}),[o]),y=()=>{if(g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let T=e.text.slice(0,-1),G=g.parse(T);T.length===0||G===0?t.clearSegment(e.type):t.setSegment(e.type,G),r.current=T}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=T=>{if(T.key==="a"&&(Ut()?T.metaKey:T.ctrlKey)&&T.preventDefault(),!(T.ctrlKey||T.metaKey||T.shiftKey||T.altKey))switch(T.key){case"Backspace":case"Delete":T.preventDefault(),T.stopPropagation(),y();break}},{startsWith:C}=z0({sensitivity:"base"}),w=ei({hour:"numeric",hour12:!0}),E=u.useMemo(()=>{let T=new Date;return T.setHours(0),w.formatToParts(T).find(G=>G.type==="dayPeriod").value},[w]),P=u.useMemo(()=>{let T=new Date;return T.setHours(12),w.formatToParts(T).find(G=>G.type==="dayPeriod").value},[w]),k=ei({year:"numeric",era:"narrow",timeZone:"UTC"}),N=u.useMemo(()=>{if(e.type!=="era")return[];let T=Xe(new Re(1,1,1),t.calendar),G=t.calendar.getEras().map(H=>{let D=T.set({year:1,month:1,day:1,era:H}).toDate("UTC"),W=k.formatToParts(D).find(J=>J.type==="era").value;return{era:H,formatted:W}}),Y=HD(G.map(H=>H.formatted));if(Y)for(let H of G)H.formatted=H.formatted.slice(Y);return G},[k,t.calendar,e.type]),v=T=>{if(t.isDisabled||t.isReadOnly)return;let G=r.current+T;switch(e.type){case"dayPeriod":if(C(E,T))t.setSegment("dayPeriod",0);else if(C(P,T))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let Y=N.find(H=>C(H.formatted,T));Y&&(t.setSegment("era",Y.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!g.isValidPartialNumber(G))return;let Y=g.parse(G),H=Y,D=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":Y>11&&(H=g.parse(T));break;case"h12":D=!1,Y>12&&(H=g.parse(T));break}e.value>=12&&Y>1&&(Y+=12)}else Y>e.maxValue&&(H=g.parse(T));if(isNaN(Y))return;let O=H!==0||D;O&&t.setSegment(e.type,H),+(Y+"0")>e.maxValue||G.length>=String(e.maxValue).length?(r.current="",O&&d.focusNext()):r.current=G;break}}},L=()=>{r.current="",Ls(n.current,{containingElement:to(n.current)}),window.getSelection().collapse(n.current)},F=u.useRef("");Di(n,"beforeinput",T=>{switch(T.preventDefault(),T.inputType){case"deleteContentBackward":case"deleteContentForward":g.isValidPartialNumber(e.text)&&!t.isReadOnly&&y();break;case"insertCompositionText":F.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:T.data!=null&&v(T.data);break}}),Di(n,"input",T=>{let{inputType:G,data:Y}=T;switch(G){case"insertCompositionText":n.current.textContent=F.current,(C(E,Y)||C(P,Y))&&v(Y);break}}),be(()=>{let T=n.current;return()=>{document.activeElement===T&&(d.focusPrevious()||d.focusNext())}},[n,d]);let A=pr()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},B=u.useMemo(()=>t.segments.find(T=>T.isEditable),[t.segments]);e!==B&&!t.isInvalid&&(l=void 0);let R=_e(),I=!t.isDisabled&&!t.isReadOnly&&e.isEditable,K=e.type==="literal"?"":i.of(e.type),V=An({"aria-label":`${K}${a?`, ${a}`:""}${s?", ":""}`,"aria-labelledby":s});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:X(b,V,{id:R,...A,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:I,suppressContentEditableWarning:I,spellCheck:I?"false":void 0,autoCapitalize:I?"off":void 0,autoCorrect:I?"off":void 0,[parseInt(u.version,10)>=17?"enterKeyHint":"enterkeyhint"]:I?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!I?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:$,onFocus:L,style:{caretColor:"transparent"},onPointerDown(T){T.stopPropagation()},onMouseDown(T){T.stopPropagation()}})}}function HD(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function GD(e,t){let{role:n="dialog"}=e,r=rn();r=e["aria-label"]?void 0:r;let o=u.useRef(!1);return u.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){kn(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),kn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),kh(),{dialogProps:{...le(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}function ty(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=le(e,{labelable:!0}),{labelProps:l,fieldProps:d}=Do({...e,labelElementType:"span"});t=pt(t,n,r);let c=(t-n)/(r-n),f=Ni(a);if(!i&&!o){let p=a.style==="percent"?c:t;o=f.format(p)}return{progressBarProps:X(s,{...d,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}function WD(e){let{progressBarProps:t,labelProps:n}=ty(e);return{meterProps:{...t,role:"meter progressbar"},labelProps:n}}var ny={};ny={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var ry={};ry={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var oy={};oy={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var iy={};iy={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var ay={};ay={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var sy={};sy={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var ly={};ly={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var uy={};uy={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var cy={};cy={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var dy={};dy={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var fy={};fy={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var py={};py={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var hy={};hy={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var by={};by={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var my={};my={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var gy={};gy={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var vy={};vy={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var yy={};yy={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var $y={};$y={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var xy={};xy={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var wy={};wy={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var Cy={};Cy={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var Dy={};Dy={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Ey={};Ey={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var Py={};Py={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var Sy={};Sy={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var Ty={};Ty={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var Ay={};Ay={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var My={};My={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var ky={};ky={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Ry={};Ry={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var Fy={};Fy={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var By={};By={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var Iy={};Iy={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};function YD(e){return e&&e.__esModule?e.default:e}var Ly={};Ly={"ar-AE":ny,"bg-BG":ry,"cs-CZ":oy,"da-DK":iy,"de-DE":ay,"el-GR":sy,"en-US":ly,"es-ES":uy,"et-EE":cy,"fi-FI":dy,"fr-FR":fy,"he-IL":py,"hr-HR":hy,"hu-HU":by,"it-IT":my,"ja-JP":gy,"ko-KR":vy,"lt-LT":yy,"lv-LV":$y,"nb-NO":xy,"nl-NL":wy,"pl-PL":Cy,"pt-BR":Dy,"pt-PT":Ey,"ro-RO":Py,"ru-RU":Sy,"sk-SK":Ty,"sl-SI":Ay,"sr-SP":My,"sv-SE":ky,"tr-TR":Ry,"uk-UA":Fy,"zh-CN":By,"zh-TW":Iy};function qD(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:a,isReadOnly:s,isRequired:l,minValue:d,maxValue:c,autoFocus:f,label:p,formatOptions:h,onBlur:b=()=>{},onFocus:g,onFocusChange:y,onKeyDown:$,onKeyUp:C,description:w,errorMessage:E,isWheelDisabled:P,...k}=e,{increment:N,incrementToMax:v,decrement:L,decrementToMin:F,numberValue:A,inputValue:B,commit:R,commitValidation:I}=t;const K=gr(YD(Ly),"@react-aria/numberfield");let V=_e(r),{focusProps:T}=ea({onBlur(){R()}}),G=Ni(h),Y=u.useMemo(()=>G.resolvedOptions(),[G]),H=Ni({...h,currencySign:void 0}),D=u.useMemo(()=>isNaN(A)?"":H.format(A),[H,A]),{spinButtonProps:O,incrementButtonProps:W,decrementButtonProps:J}=Jv({isDisabled:a,isReadOnly:s,isRequired:l,maxValue:c,minValue:d,onIncrement:N,onIncrementToMax:v,onDecrement:L,onDecrementToMin:F,value:A,textValue:D}),[Q,re]=u.useState(!1),{focusWithinProps:z}=br({isDisabled:a,onFocusWithinChange:re}),q=u.useCallback(Ne=>{Math.abs(Ne.deltaY)<=Math.abs(Ne.deltaX)||(Ne.deltaY>0?N():Ne.deltaY<0&&L())},[L,N]);Bx({onScroll:q,isDisabled:P||a||s||!Q},n);let ae=Y.maximumFractionDigits>0,se=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,Be="numeric";Hp()?se?Be="text":ae&&(Be="decimal"):Nl()&&(se?Be="numeric":ae&&(Be="decimal"));let Ue=Ne=>{t.validate(Ne)&&t.setInputValue(Ne)},xt=le(e),Kn=u.useCallback(Ne=>{Ne.key==="Enter"?(R(),I()):Ne.continuePropagation()},[R,I]),{isInvalid:Zt,validationErrors:Xt,validationDetails:Dr}=t.displayValidation,{labelProps:ue,inputProps:fe,descriptionProps:$e,errorMessageProps:Fo}=ID({...k,...xt,name:void 0,label:p,autoFocus:f,isDisabled:a,isReadOnly:s,isRequired:l,validate:void 0,[co]:t,value:B,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:V,type:"text",inputMode:Be,onChange:Ue,onBlur:b,onFocus:g,onFocusChange:y,onKeyDown:u.useMemo(()=>an(Kn,$),[Kn,$]),onKeyUp:C,description:w,errorMessage:E},t,n);mo(n,t.numberValue,t.setNumberValue);let Er=X(O,T,fe,{role:null,"aria-roledescription":pr()?null:K.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Er["aria-required"]=void 0);let Pr=Ne=>{var Tr;document.activeElement!==n.current&&(Ne.pointerType==="mouse"?(Tr=n.current)===null||Tr===void 0||Tr.focus():Ne.target.focus())},pn=e["aria-label"]||(typeof e.label=="string"?e.label:""),wt;pn||(wt=e.label!=null?ue.id:e["aria-labelledby"]);let Sr=_e(),Bo=_e(),Sa=X(W,{"aria-label":i||K.format("increase",{fieldLabel:pn}).trim(),id:wt&&!i?Sr:null,"aria-labelledby":wt&&!i?`${Sr} ${wt}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Pr}),Ta=X(J,{"aria-label":o||K.format("decrease",{fieldLabel:pn}).trim(),id:wt&&!o?Bo:null,"aria-labelledby":wt&&!o?`${Bo} ${wt}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Pr});return{groupProps:{...z,role:"group","aria-disabled":a,"aria-invalid":Zt?"true":void 0},labelProps:ue,inputProps:Er,incrementButtonProps:Sa,decrementButtonProps:Ta,errorMessageProps:Fo,descriptionProps:$e,isInvalid:Zt,validationErrors:Xt,validationDetails:Dr}}function Vy(e){let t=le(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}const Gu=new WeakMap;function gl(e,t){let n=Gu.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function ZD(e,t,n){let{labelProps:r,fieldProps:o}=Do(e),i=e.orientation==="vertical";var a;Gu.set(t,{id:(a=r.id)!==null&&a!==void 0?a:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:s}=Ve(),{addGlobalListener:l,removeGlobalListener:d}=hr();const c=u.useRef(null),f=s==="rtl",p=u.useRef(null),{moveProps:h}=i0({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:C}){let{height:w,width:E}=n.current.getBoundingClientRect(),P=i?w:E;p.current==null&&(p.current=t.getThumbPercent(c.current)*P);let k=i?C:$;if((i||f)&&(k=-k),p.current+=k,c.current!=null&&n.current){const N=pt(p.current/P,0,1);t.setThumbPercent(c.current,N)}},onMoveEnd(){c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null)}});let b=u.useRef(void 0),g=($,C,w,E)=>{if(n.current&&!e.isDisabled&&t.values.every((P,k)=>!t.isThumbDragging(k))){let{height:P,width:k,top:N,left:v}=n.current.getBoundingClientRect(),L=i?P:k,R=((i?E:w)-(i?N:v))/L;(s==="rtl"||i)&&(R=1-R);let I=t.getPercentValue(R),K,V=t.values.findIndex(T=>I-T<0);if(V===0)K=V;else if(V===-1)K=t.values.length-1;else{let T=t.values[V-1],G=t.values[V];Math.abs(T-I)<Math.abs(G-I)?K=V-1:K=V}K>=0&&t.isThumbEditable(K)?($.preventDefault(),c.current=K,t.setFocusedThumb(K),b.current=C,t.setThumbDragging(c.current,!0),t.setThumbValue(K,I),l(window,"mouseup",y,!1),l(window,"touchend",y,!1),l(window,"pointerup",y,!1)):c.current=null}},y=$=>{var C,w;((w=$.pointerId)!==null&&w!==void 0?w:(C=$.changedTouches)===null||C===void 0?void 0:C[0].identifier)===b.current&&(c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null),d(window,"mouseup",y,!1),d(window,"touchend",y,!1),d(window,"pointerup",y,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var $;($=document.getElementById(gl(t,0)))===null||$===void 0||$.focus(),r0("keyboard")}),{labelProps:r,groupProps:{role:"group",...o},trackProps:X({onMouseDown($){$.button!==0||$.altKey||$.ctrlKey||$.metaKey||g($,void 0,$.clientX,$.clientY)},onPointerDown($){$.pointerType==="mouse"&&($.button!==0||$.altKey||$.ctrlKey||$.metaKey)||g($,$.pointerId,$.clientX,$.clientY)},onTouchStart($){g($,$.changedTouches[0].identifier,$.changedTouches[0].clientX,$.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map(($,C)=>gl(t,C)).join(" "),"aria-live":"off"}}}function XD(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:i,trackRef:a,inputRef:s,orientation:l=t.orientation,name:d}=e,c=e.isDisabled||t.isDisabled,f=l==="vertical",{direction:p}=Ve(),{addGlobalListener:h,removeGlobalListener:b}=hr(),g=Gu.get(t);var y;const{labelProps:$,fieldProps:C}=Do({...e,id:gl(t,n),"aria-labelledby":`${g.id} ${(y=e["aria-labelledby"])!==null&&y!==void 0?y:""}`.trim()}),w=t.values[n],E=u.useCallback(()=>{s.current&&Pt(s.current)},[s]),P=t.focusedThumb===n;u.useEffect(()=>{P&&E()},[P,E]);let k=p==="rtl",N=u.useRef(null),{keyboardProps:v}=zl({onKeyDown(V){let{getThumbMaxValue:T,getThumbMinValue:G,decrementThumb:Y,incrementThumb:H,setThumbValue:D,setThumbDragging:O,pageSize:W}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(V.key)){V.continuePropagation();return}switch(V.preventDefault(),O(n,!0),V.key){case"PageUp":H(n,W);break;case"PageDown":Y(n,W);break;case"Home":D(n,G(n));break;case"End":D(n,T(n));break}O(n,!1)}}),{moveProps:L}=i0({onMoveStart(){N.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:V,deltaY:T,pointerType:G,shiftKey:Y}){const{getThumbPercent:H,setThumbPercent:D,decrementThumb:O,incrementThumb:W,step:J,pageSize:Q}=t;let{width:re,height:z}=a.current.getBoundingClientRect(),q=f?z:re;if(N.current==null&&(N.current=H(n)*q),G==="keyboard")V>0&&k||V<0&&!k||T>0?O(n,Y?Q:J):W(n,Y?Q:J);else{let te=f?T:V;(f||k)&&(te=-te),N.current+=te,D(n,pt(N.current/q,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!c);const{focusableProps:F}=mr(X(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let A=u.useRef(void 0),B=V=>{E(),A.current=V,t.setThumbDragging(n,!0),h(window,"mouseup",R,!1),h(window,"touchend",R,!1),h(window,"pointerup",R,!1)},R=V=>{var T,G;((G=V.pointerId)!==null&&G!==void 0?G:(T=V.changedTouches)===null||T===void 0?void 0:T[0].identifier)===A.current&&(E(),t.setThumbDragging(n,!1),b(window,"mouseup",R,!1),b(window,"touchend",R,!1),b(window,"pointerup",R,!1))},I=t.getThumbPercent(n);(f||p==="rtl")&&(I=1-I);let K=c?{}:X(v,L,{onMouseDown:V=>{V.button!==0||V.altKey||V.ctrlKey||V.metaKey||B()},onPointerDown:V=>{V.button!==0||V.altKey||V.ctrlKey||V.metaKey||B(V.pointerId)},onTouchStart:V=>{B(V.changedTouches[0].identifier)}});return mo(s,w,V=>{t.setThumbValue(n,V)}),{inputProps:X(F,C,{type:"range",tabIndex:c?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:w,name:d,disabled:c,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":i||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[g["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[g["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:V=>{t.setThumbValue(n,parseFloat(V.target.value))}}),thumbProps:{...K,style:{position:"absolute",[f?"top":"left"]:`${I*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:c,isFocused:P}}function JD(e,t,n){let{labelProps:r,inputProps:o,isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}=pm(e,t,n);return{labelProps:r,inputProps:{...o,role:"switch",checked:i},isSelected:i,isPressed:a,isDisabled:s,isReadOnly:l}}const Oy=new WeakMap;function Yi(e,t,n){return typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Oy.get(e)}-${n}-${t}`}function QD(e,t,n){var r;let{key:o,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:s,selectedKey:l}=t,d=o===l,c=i||t.isDisabled||t.disabledKeys.has(o),{itemProps:f,isPressed:p}=Ku({selectionManager:s,key:o,ref:n,isDisabled:c,shouldSelectOnPressUp:a,linkBehavior:"selection"}),h=Yi(t,o,"tab"),b=Yi(t,o,"tabpanel"),{tabIndex:g}=f,y=t.collection.getItem(o),$=le(y==null?void 0:y.props,{isLink:!!(!(y==null||(r=y.props)===null||r===void 0)&&r.href),labelable:!0});return delete $.id,{tabProps:X($,f,{id:h,"aria-selected":d,"aria-disabled":c||void 0,"aria-controls":d?b:void 0,tabIndex:c?void 0:g,role:"tab"}),isSelected:d,isDisabled:c,isPressed:p}}function eE(e,t,n){let r=qx(n)?void 0:0;var o;const i=Yi(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=An({...e,id:i,"aria-labelledby":Yi(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:X(a,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class tE{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.disabledKeys.has(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(this.disabledKeys.has(t));return t}getPreviousKey(t){do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(this.disabledKeys.has(t));return t}constructor(t,n,r,o=new Set){this.collection=t,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=o}}function nE(e,t,n){let{orientation:r="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:s}=t,{direction:l}=Ve(),d=u.useMemo(()=>new tE(i,l,r,s),[i,s,r,l]),{collectionProps:c}=Nu({ref:n,selectionManager:a,keyboardDelegate:d,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=_e();Oy.set(t,f);let p=An({...e,id:f});return{tabListProps:{...X(c,p),role:"tablist","aria-orientation":r,tabIndex:void 0}}}function rE(e,t){let n=le(e,{labelable:!0}),{hoverProps:r}=Fe({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:X(n,r,{role:"tooltip"})}}function oE(e,t,n){let{isDisabled:r,trigger:o}=e,i=_e(),a=u.useRef(!1),s=u.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},d=$=>{!a.current&&!s.current&&t.close($)};u.useEffect(()=>{let $=C=>{n&&n.current&&C.key==="Escape"&&(C.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",$,!0),()=>{document.removeEventListener("keydown",$,!0)}},[n,t]);let c=()=>{o!=="focus"&&(Si()==="pointer"?a.current=!0:a.current=!1,l())},f=()=>{o!=="focus"&&(s.current=!1,a.current=!1,d())},p=()=>{s.current=!1,a.current=!1,d(!0)},h=()=>{lr()&&(s.current=!0,l())},b=()=>{s.current=!1,a.current=!1,d(!0)},{hoverProps:g}=Fe({isDisabled:r,onHoverStart:c,onHoverEnd:f}),{focusableProps:y}=mr({isDisabled:r,onFocus:h,onBlur:b},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...X(y,g,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:i}}}class vt extends Set{constructor(t,n,r){super(t),t instanceof vt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function iE(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Ny(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=u.useRef(!1),[,s]=u.useState(!1),l=u.useRef(null),d=u.useRef(null),[,c]=u.useState(null),f=u.useMemo(()=>ip(e.selectedKeys),[e.selectedKeys]),p=u.useMemo(()=>ip(e.defaultSelectedKeys,new vt),[e.defaultSelectedKeys]),[h,b]=bt(f,p,e.onSelectionChange),g=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,$]=u.useState(o);o==="replace"&&y==="toggle"&&typeof h=="object"&&h.size===0&&$("replace");let C=u.useRef(o);return u.useEffect(()=>{o!==C.current&&($(o),C.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:$,get isFocused(){return a.current},setFocused(w){a.current=w,s(w)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(w,E="first"){l.current=w,d.current=E,c(w)},selectedKeys:h,setSelectedKeys(w){(r||!iE(w,h))&&b(w)},disabledKeys:g,disabledBehavior:i}}function ip(e,t){return e?e==="all"?"all":new vt(e):t}class Ky{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&ws(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&ws(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new vt([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new vt(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?ws(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new vt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new vt([t],t,t):new vt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new vt;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(xD(ba(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new vt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class vl{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let a of i.childNodes)n(a)};for(let i of t)n(i);let r,o=0;for(let[i,a]of this.keyMap)r?(r.nextKey=i,a.prevKey=r.key):(this.firstKey=i,a.prevKey=void 0),a.type==="item"&&(a.index=o++),r=a,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function jy(e){let{filter:t}=e,n=Ny(e),r=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=u.useCallback(d=>t?new vl(t(d)):new vl(d),[t]),i=u.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=Xm(e,o,i),s=u.useMemo(()=>new Ky(a,n),[a,n]);const l=u.useRef(null);return u.useEffect(()=>{if(n.focusedKey!=null&&!a.getItem(n.focusedKey)){const d=l.current.getItem(n.focusedKey),c=[...l.current.getKeys()].map(g=>{const y=l.current.getItem(g);return y.type==="item"?y:null}).filter(g=>g!==null),f=[...a.getKeys()].map(g=>{const y=a.getItem(g);return y.type==="item"?y:null}).filter(g=>g!==null),p=c.length-f.length;let h=Math.min(p>1?Math.max(d.index-p+1,0):d.index,f.length-1),b;for(;h>=0;){if(!s.isDisabled(f[h].key)){b=f[h];break}h<f.length-1?h++:(h>d.index&&(h=d.index),h--)}n.setFocusedKey(b?b.key:null)}l.current=a},[a,s,n,n.focusedKey]),{collection:a,disabledKeys:r,selectionManager:s}}function _y(e){var t;let[n,r]=bt(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=u.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:a,selectionManager:s}=jy({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:d=>{var c;let f=(c=d.values().next().value)!==null&&c!==void 0?c:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),l=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}function ga(e){let[t,n]=bt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=u.useCallback(()=>{n(!0)},[n]),o=u.useCallback(()=>{n(!1)},[n]),i=u.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function aE(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[l,d]=u.useState(!1),[c,f]=u.useState(!1),[p,h]=u.useState(null),b=ue=>{e.onSelectionChange&&e.onSelectionChange(ue),ue===C&&(J(),D())};var g;let{collection:y,selectionManager:$,selectedKey:C,setSelectedKey:w,selectedItem:E,disabledKeys:P}=_y({...e,onSelectionChange:b,items:(g=e.items)!==null&&g!==void 0?g:e.defaultItems});var k,N;let[v,L]=bt(e.inputValue,(N=(k=e.defaultInputValue)!==null&&k!==void 0?k:(t=y.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&N!==void 0?N:"",e.onInputChange),F=y,A=u.useMemo(()=>e.items!=null||!r?y:sE(y,v,r),[y,v,r,e.items]),[B,R]=u.useState(A),I=u.useRef("focus"),V=ga({...e,onOpenChange:ue=>{e.onOpenChange&&e.onOpenChange(ue,ue?I.current:void 0),$.setFocused(ue),ue||$.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),T=(ue=null,fe)=>{let $e=fe==="manual"||fe==="focus"&&o==="focus";(i||A.size>0||$e&&F.size>0||e.items)&&($e&&!V.isOpen&&e.items===void 0&&d(!0),I.current=fe,h(ue),V.open())},G=(ue=null,fe)=>{let $e=fe==="manual"||fe==="focus"&&o==="focus";!(i||A.size>0||$e&&F.size>0||e.items)&&!V.isOpen||($e&&!V.isOpen&&e.items===void 0&&d(!0),V.isOpen||(I.current=fe),H(ue))},Y=u.useCallback(()=>{R(l?F:A)},[l,F,A]),H=u.useCallback((ue=null)=>{V.isOpen&&Y(),h(ue),V.toggle()},[V,Y]),D=u.useCallback(()=>{V.isOpen&&(Y(),V.close())},[V,Y]),[O,W]=u.useState(v),J=()=>{var ue,fe;let $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";W($e),L($e)};var Q,re;let z=u.useRef((re=(Q=e.selectedKey)!==null&&Q!==void 0?Q:e.defaultSelectedKey)!==null&&re!==void 0?re:null);var q;let te=u.useRef((q=(n=y.getItem(C))===null||n===void 0?void 0:n.textValue)!==null&&q!==void 0?q:"");u.useEffect(()=>{var ue;c&&(A.size>0||i)&&!V.isOpen&&v!==O&&o!=="manual"&&T(null,"input"),!l&&!i&&V.isOpen&&A.size===0&&D(),C!=null&&C!==z.current&&D(),v!==O&&($.setFocusedKey(null),d(!1),v===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&w(null)),C!==z.current&&(e.inputValue===void 0||e.selectedKey===void 0)?J():O!==v&&W(v);var fe;let $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";!c&&C!=null&&e.inputValue===void 0&&C===z.current&&te.current!==$e&&(W($e),L($e)),z.current=C,te.current=$e});let ae=$r({...e,value:u.useMemo(()=>({inputValue:v,selectedKey:C}),[v,C])}),se=()=>{a&&C==null?Be():Ue()},Be=()=>{z.current=null,w(null),D()},Ue=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var ue;e.onSelectionChange(C);var fe;let $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";W($e),D()}else J(),D()};const xt=()=>{if(a){var ue,fe;const $e=(fe=(ue=y.getItem(C))===null||ue===void 0?void 0:ue.textValue)!==null&&fe!==void 0?fe:"";v===$e?Ue():Be()}else Ue()};let Kn=()=>{V.isOpen&&$.focusedKey!=null?C===$.focusedKey?Ue():w($.focusedKey):xt()},Zt=u.useRef(v),Xt=ue=>{ue?(Zt.current=v,o==="focus"&&T(null,"focus")):(s&&xt(),v!==Zt.current&&ae.commitValidation()),f(ue)},Dr=u.useMemo(()=>V.isOpen?l?F:A:B,[V.isOpen,F,A,l,B]);return{...ae,...V,focusStrategy:p,toggle:G,open:T,close:xt,selectionManager:$,selectedKey:C,setSelectedKey:w,disabledKeys:P,isFocused:c,setFocused:Xt,selectedItem:E,collection:Dr,inputValue:v,setInputValue:L,commit:Kn,revert:se}}function sE(e,t,n){return new vl(zy(e,e,t,n))}function zy(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let a=zy(e,ba(i,e),n,r);[...a].some(s=>s.type==="item")&&o.push({...i,childNodes:a})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}var Uy={};Uy={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Hy={};Hy={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Gy={};Gy={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var Wy={};Wy={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var Yy={};Yy={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var qy={};qy={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Zy={};Zy={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Xy={};Xy={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var Jy={};Jy={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var Qy={};Qy={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var e4={};e4={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var t4={};t4={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var n4={};n4={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var r4={};r4={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var o4={};o4={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var i4={};i4={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var a4={};a4={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var s4={};s4={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var l4={};l4={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var u4={};u4={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var c4={};c4={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var d4={};d4={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var f4={};f4={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var p4={};p4={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var h4={};h4={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var b4={};b4={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var m4={};m4={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var g4={};g4={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var v4={};v4={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var y4={};y4={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var $4={};$4={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var x4={};x4={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var w4={};w4={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var C4={};C4={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};function lE(e){return e&&e.__esModule?e.default:e}var D4={};D4={"ar-AE":Uy,"bg-BG":Hy,"cs-CZ":Gy,"da-DK":Wy,"de-DE":Yy,"el-GR":qy,"en-US":Zy,"es-ES":Xy,"et-EE":Jy,"fi-FI":Qy,"fr-FR":e4,"he-IL":t4,"hr-HR":n4,"hu-HU":r4,"it-IT":o4,"ja-JP":i4,"ko-KR":a4,"lt-LT":s4,"lv-LV":l4,"nb-NO":u4,"nl-NL":c4,"pl-PL":d4,"pt-BR":f4,"pt-PT":p4,"ro-RO":h4,"ru-RU":b4,"sk-SK":m4,"sl-SI":g4,"sr-SP":v4,"sv-SE":y4,"tr-TR":$4,"uk-UA":x4,"zh-CN":w4,"zh-TW":C4};const uE=new In(lE(D4));function cE(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function dE(e,t,n,r,o){let i=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=i||a||s,d=[];if(l){let c=cE(),f=In.getGlobalDictionaryForPackage("@react-stately/datepicker")||uE,p=new d0(c,f),h=new Yr(c,yl({},o)),b=h.resolvedOptions().timeZone;a&&d.push(p.format("rangeUnderflow",{minValue:h.format(t.toDate(b))})),i&&d.push(p.format("rangeOverflow",{maxValue:h.format(n.toDate(b))})),s&&d.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}const fE={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},pE={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function yl(e,t){e={...t.shouldForceLeadingZeros?pE:fE,...e};let r=t.granularity||"minute",o=Object.keys(e);var i;let a=o.indexOf((i=t.maxGranularity)!==null&&i!==void 0?i:"year");a<0&&(a=0);let s=o.indexOf(r);if(s<0&&(s=2),a>s)throw new Error("maxGranularity must be greater than granularity");let l=o.slice(a,s+1).reduce((c,f)=>(c[f]=e[f],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&a===0&&(l.era="short"),l}function E4(e,t){if(e===null)return null;if(e)return Xe(e,t)}function Or(e,t,n,r){if(e)return E4(e,n);let o=Xe(p0(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?y0(o):r?o:ln(o)}function hE(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,i]=u.useState([r,n]);e&&(o[0]!==r||o[1]!==n)&&i([r,n]),t||(t=e?r:o[0]);let a=e?n:o[1];return[t,a]}const bE=new In({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function mE(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?bE.getStringForLocale(e,n):"––"}const si={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},ap={year:5,month:2,day:7,hour:2,minute:15,second:15},gE={dayperiod:"dayPeriod"};function Wu(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:o,isReadOnly:i,isRequired:a,minValue:s,maxValue:l,isDateUnavailable:d}=e,c=e.value||e.defaultValue||e.placeholderValue,[f,p]=hE(c,e.granularity),h=p||"UTC";if(c&&!(f in c))throw new Error("Invalid granularity "+f+" for value "+c.toString());let b=u.useMemo(()=>new Yr(t),[t]),g=u.useMemo(()=>n(b.resolvedOptions().calendar),[n,b]),[y,$]=bt(e.value,e.defaultValue,e.onChange),C=u.useMemo(()=>E4(y,g),[y,g]),[w,E]=u.useState(()=>Or(e.placeholderValue,f,g,p)),P=C||w,k=g.identifier==="gregory"&&P.era==="BC",N=u.useMemo(()=>{var z;return{granularity:f,maxGranularity:(z=e.maxGranularity)!==null&&z!==void 0?z:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:k,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,f,e.hourCycle,e.shouldForceLeadingZeros,p,r,k]),v=u.useMemo(()=>yl({},N),[N]),L=u.useMemo(()=>new Yr(t,v),[t,v]),F=u.useMemo(()=>L.resolvedOptions(),[L]),A=u.useMemo(()=>L.formatToParts(new Date).filter(z=>si[z.type]).reduce((z,q)=>(z[q.type]=!0,z),{}),[L]),[B,R]=u.useState(()=>e.value||e.defaultValue?{...A}:{}),I=u.useRef(),K=u.useRef(g.identifier);u.useEffect(()=>{g.identifier!==K.current&&(K.current=g.identifier,E(z=>Object.keys(B).length>0?Xe(z,g):Or(e.placeholderValue,f,g,p)))},[g,f,B,p,e.placeholderValue]),y&&Object.keys(B).length<Object.keys(A).length&&(B={...A},R(B)),y==null&&Object.keys(B).length===Object.keys(A).length&&(B={},R(B),E(Or(e.placeholderValue,f,g,p)));let V=C&&Object.keys(B).length>=Object.keys(A).length?C:w,T=z=>{if(e.isDisabled||e.isReadOnly)return;let q=Object.keys(B),te=Object.keys(A);z==null?($(null),E(Or(e.placeholderValue,f,g,p)),R({})):q.length>=te.length||q.length===te.length-1&&A.dayPeriod&&!B.dayPeriod&&I.current!=="dayPeriod"?(z=Xe(z,(c==null?void 0:c.calendar)||new nt),$(z)):E(z),I.current=null},G=u.useMemo(()=>V.toDate(h),[V,h]),Y=u.useMemo(()=>L.formatToParts(G).map(z=>{let q=si[z.type];z.type==="era"&&g.getEras().length===1&&(q=!1);let te=si[z.type]&&!B[z.type],ae=si[z.type]?mE(z.type,z.value,t):null;return{type:gE[z.type]||z.type,text:te?ae:z.value,...vE(V,z.type,F),isPlaceholder:te,placeholder:ae,isEditable:q}}),[G,B,L,F,V,g,t]);A.era&&B.year&&!B.era?(B.era=!0,R({...B})):!A.era&&B.era&&(delete B.era,R({...B}));let H=z=>{B[z]=!0,z==="year"&&A.era&&(B.era=!0),R({...B})},D=(z,q)=>{if(B[z])T(yE(V,z,q,F));else{H(z);let te=Object.keys(B),ae=Object.keys(A);(te.length>=ae.length||te.length===ae.length-1&&A.dayPeriod&&!B.dayPeriod)&&T(V)}},O=u.useMemo(()=>dE(y,s,l,d,N),[y,s,l,d,N]),W=$r({...e,value:y,builtinValidation:O}),J=W.displayValidation.isInvalid,Q=e.validationState||(J?"invalid":null);var re;return{...W,value:C,dateValue:G,calendar:g,setValue:T,segments:Y,dateFormatter:L,validationState:Q,isInvalid:J,granularity:f,maxGranularity:(re=e.maxGranularity)!==null&&re!==void 0?re:"year",isDisabled:o,isReadOnly:i,isRequired:a,increment(z){D(z,1)},decrement(z){D(z,-1)},incrementPage(z){D(z,ap[z]||1)},decrementPage(z){D(z,-(ap[z]||1))},setSegment(z,q){H(z),T($E(V,z,q,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let z=Object.keys(B),q=Object.keys(A);z.length===q.length-1&&A.dayPeriod&&!B.dayPeriod&&(B={...A},R(B),T(V.copy()))},clearSegment(z){delete B[z],I.current=z,R({...B});let q=Or(e.placeholderValue,f,g,p),te=V;if(z==="dayPeriod"&&"hour"in V&&"hour"in q){let ae=V.hour>=12,se=q.hour>=12;ae&&!se?te=V.set({hour:V.hour-12}):!ae&&se&&(te=V.set({hour:V.hour+12}))}else z in V&&(te=V.set({[z]:q[z]}));$(null),T(te)},formatValue(z){if(!C)return"";let q=yl(z,N);return new Yr(t,q).format(G)}}}function vE(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:o5(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:i5(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function yE(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return e.set({hour:i?o-12:o+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}}function $E(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let o=e.hour,i=o>=12;return n>=12===i?e:e.set({hour:i?o-12:o+12})}case"hour":if(r.hour12){let i=e.hour>=12;!i&&n===12&&(n=0),i&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}function xE(e){let{placeholderValue:t=new oa,minValue:n,maxValue:r,granularity:o,validate:i}=e,[a,s]=bt(e.value,e.defaultValue,e.onChange),l=a||t,d=l&&"day"in l?l:void 0,c=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,f=u.useMemo(()=>{let C=l&&"timeZone"in l?l.timeZone:void 0;return(C||c)&&t?$0(Nr(t),C||c):Nr(t)},[t,l,c]),p=u.useMemo(()=>Nr(n,d),[n,d]),h=u.useMemo(()=>Nr(r,d),[r,d]),b=u.useMemo(()=>a&&"day"in a?fd(a):a,[a]),g=u.useMemo(()=>a==null?null:Nr(a),[a]);return{...Wu({...e,value:g,defaultValue:void 0,minValue:p,maxValue:h,onChange:C=>{s(d||c?C:C&&fd(C))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:f,createCalendar:()=>new nt,validate:u.useCallback(()=>i==null?void 0:i(a),[i,a])}),timeValue:b}}function Nr(e,t=r5(Wl())){return e?"day"in e?e:ln(t,e):null}function wE(e,t){let{triggerKey:n}=e,{UNSTABLE_expandedKeysStack:r,UNSTABLE_openSubmenu:o,UNSTABLE_closeSubmenu:i,close:a}=t,[s]=u.useState(r==null?void 0:r.length),l=u.useMemo(()=>r[s]===n,[r,n,s]),[d,c]=u.useState(null),f=u.useCallback((b=null)=>{c(b),o(n,s)},[o,s,n]),p=u.useCallback(()=>{c(null),i(n,s)},[i,s,n]),h=u.useCallback((b=null)=>{c(b),l?p():f(b)},[p,f,l]);return u.useMemo(()=>({focusStrategy:d,isOpen:l,open:f,close:p,closeAll:a,submenuLevel:s,setOpen:()=>{},toggle:h}),[l,f,p,a,d,h,s])}function CE(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:i,defaultValue:a=NaN,onChange:s,locale:l,isDisabled:d,isReadOnly:c}=e;i===null&&(i=NaN),i!==void 0&&!isNaN(i)&&(r!==void 0&&!isNaN(r)?i=Qe(i,t,n,r):i=pt(i,t,n)),isNaN(a)||(r!==void 0&&!isNaN(r)?a=Qe(a,t,n,r):a=pt(a,t,n));let[f,p]=bt(i,isNaN(a)?NaN:a,s),[h,b]=u.useState(()=>isNaN(f)?"":new Oi(l,o).format(f)),g=u.useMemo(()=>new nu(l,o),[l,o]),y=u.useMemo(()=>g.getNumberingSystem(h),[g,h]),$=u.useMemo(()=>new Oi(l,{...o,numberingSystem:y}),[l,o,y]),C=u.useMemo(()=>$.resolvedOptions(),[$]),w=u.useCallback(O=>isNaN(O)||O===null?"":$.format(O),[$]),E=$r({...e,value:f}),P=r!==void 0&&!isNaN(r)?r:1;C.style==="percent"&&(r===void 0||isNaN(r))&&(P=.01);let[k,N]=u.useState(f),[v,L]=u.useState(l),[F,A]=u.useState(o);(!Object.is(f,k)||l!==v||o!==F)&&(b(w(f)),N(f),L(l),A(o));let B=u.useMemo(()=>g.parse(h),[g,h]),R=()=>{if(!h.length){p(NaN),b(i===void 0?"":w(f));return}if(isNaN(B)){b(w(f));return}let O;r===void 0||isNaN(r)?O=pt(B,t,n):O=Qe(B,t,n,r),O=g.parse(w(O)),p(O),b(w(i===void 0?O:f))},I=(O,W=0)=>{let J=B;if(isNaN(J)){let Q=isNaN(W)?0:W;return Qe(Q,t,n,P)}else{let Q=Qe(J,t,n,P);return O==="+"&&Q>J||O==="-"&&Q<J?Q:Qe(Ds(O,J,P),t,n,P)}},K=()=>{let O=I("+",t);O===f&&b(w(O)),p(O),E.commitValidation()},V=()=>{let O=I("-",n);O===f&&b(w(O)),p(O),E.commitValidation()},T=()=>{n!=null&&(p(Qe(n,t,n,P)),E.commitValidation())},G=()=>{t!=null&&(p(t),E.commitValidation())},Y=u.useMemo(()=>!d&&!c&&(isNaN(B)||n===void 0||isNaN(n)||Qe(B,t,n,P)>B||Ds("+",B,P)<=n),[d,c,t,n,P,B]),H=u.useMemo(()=>!d&&!c&&(isNaN(B)||t===void 0||isNaN(t)||Qe(B,t,n,P)<B||Ds("-",B,P)>=t),[d,c,t,n,P,B]);return{...E,validate:O=>g.isValidPartialNumber(O,t,n),increment:K,incrementToMax:T,decrement:V,decrementToMin:G,canIncrement:Y,canDecrement:H,minValue:t,maxValue:n,numberValue:B,setNumberValue:p,setInputValue:b,inputValue:h,commit:R}}function Ds(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),r=e==="+"?t+n:t-n,r/=l}return r}const DE=0,EE=100,PE=1;function SE(e){const{isDisabled:t=!1,minValue:n=DE,maxValue:r=EE,numberFormatter:o,step:i=PE,orientation:a="horizontal"}=e;let s=u.useMemo(()=>{let D=(r-n)/10;return D=Qe(D,0,D+i,i),Math.max(D,i)},[i,r,n]),l=u.useCallback(D=>D==null?void 0:D.map((O,W)=>{let J=W===0?n:O[W-1],Q=W===D.length-1?r:O[W+1];return Qe(O,J,Q,i)}),[n,r,i]),d=u.useMemo(()=>l(lp(e.value)),[e.value]),c=u.useMemo(()=>{var D;return l((D=lp(e.defaultValue))!==null&&D!==void 0?D:[n])},[e.defaultValue,n]),f=up(e.value,e.defaultValue,e.onChange),p=up(e.value,e.defaultValue,e.onChangeEnd);const[h,b]=bt(d,c,f),[g,y]=u.useState(new Array(h.length).fill(!1)),$=u.useRef(new Array(h.length).fill(!0)),[C,w]=u.useState(void 0),E=u.useRef(h),P=u.useRef(g);let k=D=>{E.current=D,b(D)},N=D=>{P.current=D,y(D)};function v(D){return(D-n)/(r-n)}function L(D){return D===0?n:h[D-1]}function F(D){return D===h.length-1?r:h[D+1]}function A(D){return $.current[D]}function B(D,O){$.current[D]=O}function R(D,O){if(t||!A(D))return;const W=L(D),J=F(D);O=Qe(O,W,J,i);let Q=sp(E.current,D,O);k(Q)}function I(D,O){if(t||!A(D))return;O&&(E.current=h);const W=P.current[D];P.current=sp(P.current,D,O),N(P.current),p&&W&&!P.current.some(Boolean)&&p(E.current)}function K(D){return o.format(D)}function V(D,O){R(D,G(O))}function T(D){return Math.round((D-n)/i)*i+n}function G(D){const O=D*(r-n)+n;return pt(T(O),n,r)}function Y(D,O=1){let W=Math.max(O,i);R(D,Qe(h[D]+W,n,r,i))}function H(D,O=1){let W=Math.max(O,i);R(D,Qe(h[D]-W,n,r,i))}return{values:h,getThumbValue:D=>h[D],setThumbValue:R,setThumbPercent:V,isThumbDragging:D=>g[D],setThumbDragging:I,focusedThumb:C,setFocusedThumb:w,getThumbPercent:D=>v(h[D]),getValuePercent:v,getThumbValueLabel:D=>K(h[D]),getFormattedValue:K,getThumbMinValue:L,getThumbMaxValue:F,getPercentValue:G,isThumbEditable:A,setThumbEditable:B,incrementThumb:Y,decrementThumb:H,step:i,pageSize:s,orientation:a,isDisabled:t}}function sp(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function lp(e){if(e!=null)return Array.isArray(e)?e:[e]}function up(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}function TE(e){var t;let n=_y({...e,suppressTextValueWarning:!0,defaultSelectedKey:(t=e.defaultSelectedKey)!==null&&t!==void 0?t:cp(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:r,collection:o,selectedKey:i}=n,a=u.useRef(i);return u.useEffect(()=>{let s=i;(r.isEmpty||!o.getItem(s))&&(s=cp(o,n.disabledKeys),s!=null&&r.setSelectedKeys([s])),(s!=null&&r.focusedKey==null||!r.isFocused&&s!==a.current)&&r.setFocusedKey(s),a.current=s}),{...n,isDisabled:e.isDisabled||!1}}function cp(e,t){let n=null;if(e){for(n=e.getFirstKey();t.has(n)&&n!==e.getLastKey();)n=e.getKeyAfter(n);t.has(n)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const AE=1500,dp=500;let bn={},ME=0,Kr=!1,Ft=null,mn=null;function kE(e={}){let{delay:t=AE,closeDelay:n=dp}=e,{isOpen:r,open:o,close:i}=ga(e),a=u.useMemo(()=>`${++ME}`,[]),s=u.useRef(),l=()=>{bn[a]=f},d=()=>{for(let h in bn)h!==a&&(bn[h](!0),delete bn[h])},c=()=>{clearTimeout(s.current),s.current=null,d(),l(),Kr=!0,o(),Ft&&(clearTimeout(Ft),Ft=null),mn&&(clearTimeout(mn),mn=null)},f=h=>{h||n<=0?(clearTimeout(s.current),s.current=null,i()):s.current||(s.current=setTimeout(()=>{s.current=null,i()},n)),Ft&&(clearTimeout(Ft),Ft=null),Kr&&(mn&&clearTimeout(mn),mn=setTimeout(()=>{delete bn[a],mn=null,Kr=!1},Math.max(dp,n)))},p=()=>{d(),l(),!r&&!Ft&&!Kr?Ft=setTimeout(()=>{Ft=null,Kr=!0,c()},t):r||c()};return u.useEffect(()=>()=>{clearTimeout(s.current),bn[a]&&delete bn[a]},[a]),{isOpen:r,open:h=>{!h&&t>0&&!s.current?p():c()},close:f}}class RE{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.iterable=t,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of t)r(a);let o,i=0;for(let[a,s]of this.keyMap)o?(o.nextKey=a,s.prevKey=o.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=i++),o=s,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function FE(e){let[t,n]=bt(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=Ny(e),o=u.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=Xm(e,u.useCallback(s=>new RE(s,{expandedKeys:t}),[t]),null);return u.useEffect(()=>{r.focusedKey!=null&&!i.getItem(r.focusedKey)&&r.setFocusedKey(null)},[i,r.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:o,toggleKey:s=>{n(BE(t,s))},setExpandedKeys:n,selectionManager:new Ky(i,r)}}function BE(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var $l={exports:{}},Es={};/**
|
|
164
164
|
* @license React
|
|
165
165
|
* use-sync-external-store-shim.production.min.js
|
|
166
166
|
*
|
|
@@ -168,7 +168,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
|
171
|
+
*/var fp;function IE(){if(fp)return Es;fp=1;var e=u;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(f,p){var h=p(),b=r({inst:{value:h,getSnapshot:p}}),g=b[0].inst,y=b[1];return i(function(){g.value=h,g.getSnapshot=p,l(g)&&y({inst:g})},[f,h,p]),o(function(){return l(g)&&y({inst:g}),f(function(){l(g)&&y({inst:g})})},[f]),a(h),h}function l(f){var p=f.getSnapshot;f=f.value;try{var h=p();return!n(f,h)}catch{return!0}}function d(f,p){return p()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return Es.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Es}var Ps={};/**
|
|
172
172
|
* @license React
|
|
173
173
|
* use-sync-external-store-shim.development.js
|
|
174
174
|
*
|
|
@@ -176,17 +176,17 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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 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)`
|
|
179
|
+
*/var pp;function LE(){return pp||(pp=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=u,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var E=arguments.length,P=new Array(E>1?E-1:0),k=1;k<E;k++)P[k-1]=arguments[k];r("error",w,P)}}function r(w,E,P){{var k=t.ReactDebugCurrentFrame,N=k.getStackAddendum();N!==""&&(E+="%s",P=P.concat([N]));var v=P.map(function(L){return String(L)});v.unshift("Warning: "+E),Function.prototype.apply.call(console[w],console,v)}}function o(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,d=e.useDebugValue,c=!1,f=!1;function p(w,E,P){c||e.startTransition!==void 0&&(c=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var k=E();if(!f){var N=E();i(k,N)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var v=a({inst:{value:k,getSnapshot:E}}),L=v[0].inst,F=v[1];return l(function(){L.value=k,L.getSnapshot=E,h(L)&&F({inst:L})},[w,k,E]),s(function(){h(L)&&F({inst:L});var A=function(){h(L)&&F({inst:L})};return w(A)},[w]),d(k),k}function h(w){var E=w.getSnapshot,P=w.value;try{var k=E();return!i(P,k)}catch{return!0}}function b(w,E,P){return E()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,$=y?b:p,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:$;Ps.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ps}process.env.NODE_ENV==="production"?$l.exports=IE():$l.exports=LE();var VE=$l.exports;class Yu{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Yu(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=n}}class P4{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this)return;this.ownerDocument.startTransaction();let n=t.nextSibling;for(;n;)n.index--,n=n.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class fo extends P4{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof fo?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof fo?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var d;i.lastChildKey=(d=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&d!==void 0?d:null}setProps(t,n,r){let o=this.ownerDocument.getMutableNode(this),{value:i,textValue:a,id:s,...l}=t;if(l.ref=n,o.props=l,o.rendered=r,o.value=i,o.textValue=a||(typeof r=="string"?r:"")||t["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Yu(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class OE{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class NE extends P4{get isConnected(){return!0}createElement(t){return new fo(t,this)}getMutableNode(t){let n=t.node;return this.mutatedNodes.has(t)||(n=t.node.clone(),this.mutatedNodes.add(t),t.node=n),this.markDirty(t),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let n=this.getMutableCollection();if(!n.getItem(t.node.key)){n.addNode(t.node);for(let r of t)this.addNode(r)}this.markDirty(t)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof fo&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let i=this.getMutableCollection();for(let a of this.mutatedNodes)a.isConnected&&i.addNode(a.node);var r,o;i.commit((r=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function xr(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=u.useMemo(()=>new WeakMap,i);return u.useMemo(()=>{if(n&&typeof t=="function"){let d=[];for(let c of n){let f=a.get(c);if(!f){f=t(c);var s,l;let p=(l=(s=f.props.id)!==null&&s!==void 0?s:c.key)!==null&&l!==void 0?l:c.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=u.cloneElement(f,o?{key:p,id:p,value:c}:{key:p}),a.set(c,f)}d.push(f)}return d}else if(typeof t!="function")return t},[t,n,a,r,o])}function KE(e){return xr({...e,addIdAndValue:!0})}const S4=u.createContext(!1);function qu(e,t){let{collection:n,document:r}=Zu(t);return{portal:T4(e,r),collection:n}}function jE(e,t,n){let r=At(),o=u.useRef(r);o.current=r;let i=u.useCallback(()=>o.current?n():t(),[t,n]);return VE.useSyncExternalStore(e,i)}const _E=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:jE;function Zu(e){let t=u.useMemo(()=>new NE(e||new OE),[e]),n=u.useCallback(a=>t.subscribe(a),[t]),r=u.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:_E(n,r,o),document:t}}const xl=u.createContext(null),Eo=u.createContext(null);function T4(e,t){let n=u.useContext(Eo),r=t??n,o=KE(e),i=u.useMemo(()=>u.createElement(S4.Provider,{value:!0},o),[o]);return At()?u.createElement(xl.Provider,{value:r},i):Wt.createPortal(i,r)}function A4(e){return u.createElement(u.Fragment,null,T4(e))}function M4(e,t,n){let r=u.useContext(S4);var o;return r?(o=va(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:u.createElement(u.Fragment,null):null}function zE(e,t,n){return u.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function va(e,t,n,r,o){let i=zE(t,n,r),a=u.useContext(xl);if(a){let s=a.ownerDocument.nodesByProps.get(t);return s||(s=a.ownerDocument.createElement(e),s.setProps(t,n,r),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,s)),o?u.createElement(xl.Provider,{value:s},o):null}return u.createElement(e,{ref:i},o)}const UE=Symbol("callback"),wl=Symbol("default");function Oe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function he(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,values:a}=e;return u.useMemo(()=>{let s,l,d;return typeof t=="function"?s=t(a):s=t,typeof n=="function"?l=n(a):l=n,typeof r=="function"?d=r(a):r==null?d=i:d=r,{className:s??o,style:l,children:d,"data-rac":""}},[t,n,r,o,i,a])}function ya(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`));if(!t&&!n.slots[wl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||wl;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function me(e,t,n){let r=ya(n,e.slot)||{},{ref:o,[UE]:i,...a}=r,s=mt(u.useMemo(()=>Ji(t,o),[t,o])),l=X(a,e);return"style"in a&&a.style&&typeof a.style=="object"&&"style"in e&&e.style&&typeof e.style=="object"&&(l.style={...a.style,...e.style}),u.useEffect(()=>{i&&i(e)},[i,e]),[l,s]}function yt(){let[e,t]=u.useState(!0),n=u.useRef(!1),r=u.useCallback(o=>{n.current=!0,t(!!o)},[]);return be(()=>{n.current||t(!1)},[]),[r,e]}function Xu(e,t=!0){let[n,r]=u.useState(!0);return k4(e,n&&t,u.useCallback(()=>r(!1),[])),n&&t}function Cl(e,t){let[n,r]=u.useState(!1),[o,i]=u.useState("idle");return!t&&e.current&&o==="idle"&&(n=!0,r(!0),i("exiting")),!e.current&&o==="exited"&&i("idle"),k4(e,n,u.useCallback(()=>{i("exited"),r(!1)},[])),n}function k4(e,t,n){let r=u.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),be(()=>{if(t&&e.current){let o=window.getComputedStyle(e.current);if(o.animationName&&o.animationName!=="none"&&o.animation!==r.current){let i=s=>{s.target===e.current&&(a.removeEventListener("animationend",i),Wt.flushSync(()=>{n()}))},a=e.current;return a.addEventListener("animationend",i),()=>{a.removeEventListener("animationend",i)}}else n()}},[e,t,n])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const po=u.createContext(!1),HE=typeof DocumentFragment<"u"?new DocumentFragment:null;function R4(e){let t=u.useContext(po),n=At();if(t)return u.createElement(u.Fragment,null,e.children);let r=u.createElement(po.Provider,{value:!0},e.children);return n?u.createElement("template",{"data-react-aria-hidden":!0},r):Wt.createPortal(r,HE)}function $a(e){let t=(n,r)=>u.useContext(po)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function Fn(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const F4=u.createContext(null);function GE(e,t){[e,t]=me(e,t,F4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=oD({...e,elementType:n},t),{hoverProps:i,isHovered:a}=Fe(e),{focusProps:s,isFocused:l,isFocusVisible:d}=Ye(),c=he({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:a,isFocused:l,isFocusVisible:d}});return u.createElement(n,{ref:t,slot:e.slot||void 0,...X(c,r,i,s),"data-focused":l||void 0,"data-hovered":a||void 0,"data-pressed":o||void 0,"data-focus-visible":d||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},c.children)}const xa=u.forwardRef(GE),WE=u.createContext(null);function YE(e,t){[e,t]=me(e,t,WE);let{portal:n,collection:r}=qu(e);return u.createElement(u.Fragment,null,n,u.createElement(qE,{props:e,collection:r,breadcrumbsRef:t}))}function qE({props:e,collection:t,breadcrumbsRef:n}){var r;return u.createElement("ol",{ref:n,...le(e,{labelable:!0}),slot:e.slot||void 0,style:e.style,className:(r=e.className)!==null&&r!==void 0?r:"react-aria-Breadcrumbs"},[...t].map((o,i)=>u.createElement(JE,{key:o.key,node:o,isCurrent:i===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const ZE=u.forwardRef(YE);function XE(e,t){return va("item",e,t,e.children)}const B4=u.forwardRef(XE);function JE({node:e,isCurrent:t,isDisabled:n,onAction:r}){let o={"aria-current":t?"page":null,isDisabled:n||t,onPress:()=>r==null?void 0:r(e.key)};var i;return u.createElement("li",{...le(e.props),ref:e.props.ref,style:e.props.style,className:(i=e.props.className)!==null&&i!==void 0?i:"react-aria-Breadcrumb"},u.createElement(F4.Provider,{value:o},e.rendered))}const QE=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ju=u.createContext({});function e8(e,t){[e,t]=me(e,t,Ju);let n=e,{buttonProps:r,isPressed:o}=um(e,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:d}=Fe(e),c=he({...e,values:{isHovered:d,isPressed:o,isFocused:a,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return u.createElement("button",{...le(e,{propNames:QE}),...X(r,i,l),...c,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":d||void 0,"data-focused":a||void 0,"data-focus-visible":s||void 0})}const I4=$a(e8),t8=u.createContext({}),Yt=u.createContext({});function n8(e,t){[e,t]=me(e,t,Yt);let{elementType:n="span",...r}=e;return u.createElement(n,{className:"react-aria-Text",...r,ref:t})}const wr=u.forwardRef(n8),Vn=u.createContext(null);function r8(e,t){let n=u.useContext(Vn);return n!=null&&n.isInvalid?u.createElement(o8,{...e,ref:t}):null}const Po=u.forwardRef(r8),o8=u.forwardRef((e,t)=>{let n=u.useContext(Vn),r=he({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return u.createElement(wr,{slot:"errorMessage",...r,ref:t})}),Mt=u.createContext({});function i8(e,t){[e,t]=me(e,t,Mt);let{elementType:n="label",...r}=e;return u.createElement(n,{className:"react-aria-Label",...r,ref:t})}const qt=$a(i8),a8=u.createContext(null),s8=u.createContext(null);function l8(e,t){[e,t]=me(e,t,s8);let n=u.useRef(null),r=u.useContext(a8);var o;let{labelProps:i,inputProps:a,isSelected:s,isDisabled:l,isReadOnly:d,isPressed:c,isInvalid:f}=r?bD({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):bm({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},ha(e),n),{isFocused:p,isFocusVisible:h,focusProps:b}=Ye(),g=l||d,{hoverProps:y,isHovered:$}=Fe({...e,isDisabled:g}),C=he({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:s,isIndeterminate:e.isIndeterminate||!1,isPressed:c,isHovered:$,isFocused:p,isFocusVisible:h,isDisabled:l,isReadOnly:d,isInvalid:f,isRequired:e.isRequired||!1}}),w=le(e);return delete w.id,u.createElement("label",{...X(w,i,y,C),ref:t,slot:e.slot||void 0,"data-selected":s||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":c||void 0,"data-hovered":$||void 0,"data-focused":p||void 0,"data-focus-visible":h||void 0,"data-disabled":l||void 0,"data-readonly":d||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},u.createElement(ia,{elementType:"span"},u.createElement("input",{...X(a,b),ref:n})),C.children)}const u8=u.forwardRef(l8),Cr=u.createContext({});function c8(e,t){[e,t]=me(e,t,Cr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:i,onHoverEnd:a,...s}=e,{hoverProps:l,isHovered:d}=Fe({onHoverStart:o,onHoverChange:i,onHoverEnd:a,isDisabled:n}),{isFocused:c,isFocusVisible:f,focusProps:p}=Ye({within:!0});n??(n=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let h=he({...e,values:{isHovered:d,isFocusWithin:c,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var b,g;return u.createElement("div",{...X(s,p,l),...h,ref:t,role:(b=e.role)!==null&&b!==void 0?b:"group",slot:(g=e.slot)!==null&&g!==void 0?g:void 0,"data-focus-within":c||void 0,"data-hovered":d||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},h.children)}const Qu=u.forwardRef(c8),On=u.createContext({});let d8=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function f8(e,t){[e,t]=me(e,t,On);let{hoverProps:n,isHovered:r}=Fe(e),{isFocused:o,isFocusVisible:i,focusProps:a}=Ye({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",l=he({...e,values:{isHovered:r,isFocused:o,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement("input",{...X(d8(e),a,n),...l,ref:t,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":i||void 0,"data-invalid":s||void 0})}const So=$a(f8),L4=u.createContext(null);function p8(e,t){let{render:n}=u.useContext(L4);return u.createElement(u.Fragment,null,n(e,t))}const h8=u.forwardRef(p8),ec=u.createContext({}),b8=u.createContext({});function m8(e,t){let[n,r]=me(e,t,b8),o=M4("header",e,t);return o||u.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const V4=u.forwardRef(m8),tc=u.createContext({});function g8(e,t){let[n,r]=me(e,t,tc),{elementType:o,orientation:i,style:a,className:s}=n,l=o||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:d}=Vy({elementType:o,orientation:i}),c=M4("separator",e,t);return c||u.createElement(l,{...le(n),...d,style:a,className:s??"react-aria-Separator",ref:r,slot:n.slot||void 0})}const O4=u.forwardRef(g8),wa=u.createContext(null),To=u.createContext(null);function v8(e,t){[e,t]=me(e,t,wa);let n=u.useContext(po),r=u.useContext(To);return u.useContext(Eo)?u.createElement(A4,e):r?n?null:u.createElement(N4,{state:r,props:e,listBoxRef:t}):u.createElement(y8,{props:e,listBoxRef:t})}function y8({props:e,listBoxRef:t}){let{portal:n,collection:r}=qu(e);e={...e,collection:r,children:null,items:null};let o=jy(e);return u.createElement(u.Fragment,null,n,u.createElement(N4,{state:o,props:e,listBoxRef:t}))}const $8=u.forwardRef(v8);function N4({state:e,props:t,listBoxRef:n}){let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical"}=t,{collection:a,selectionManager:s}=e,l=!!(r!=null&&r.useDraggableCollectionState),d=!!(r!=null&&r.useDroppableCollectionState),{direction:c}=Ve(),{disabledBehavior:f,disabledKeys:p}=s,h=ru({usage:"search",sensitivity:"base"}),b=u.useMemo(()=>t.keyboardDelegate||new ju({collection:a,collator:h,ref:n,disabledKeys:f==="selection"?new Set:p,layout:o,orientation:i,direction:c}),[a,h,n,f,p,i,c,t.keyboardDelegate,o]),{listBoxProps:g}=DD({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:b},e,n),y=xr({items:a,children:K=>{switch(K.type){case"section":return u.createElement(x8,{section:K});case"separator":return u.createElement(O4,K.props);case"item":return u.createElement(K4,{item:K});default:throw new Error("Unsupported node type in Menu: "+K.type)}}}),$=u.useRef(l),C=u.useRef(d);u.useEffect(()=>{$.current!==l&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==d&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,d]);let w,E,P,k=!1,N=null,v=u.useRef(null);if(l&&r){w=r.useDraggableCollectionState({collection:a,selectionManager:s,preview:r.renderDragPreview?v:void 0}),r.useDraggableCollection({},w,n);let K=r.DragPreview;N=r.renderDragPreview?u.createElement(K,{ref:v},r.renderDragPreview):null}if(d&&r){E=r.useDroppableCollectionState({collection:a,selectionManager:s});let K=r.dropTargetDelegate||new r.ListDropTargetDelegate(a,n,{orientation:i,layout:o,direction:c});P=r.useDroppableCollection({keyboardDelegate:b,dropTargetDelegate:K},E,n),k=E.isDropTarget({type:"root"})}let{focusProps:L,isFocused:F,isFocusVisible:A}=Ye(),B={isDropTarget:k,isEmpty:e.collection.size===0,isFocused:F,isFocusVisible:A,layout:t.layout||"stack",state:e},R=he({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:B}),I=null;return e.collection.size===0&&t.renderEmptyState&&(I=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(B))),u.createElement(Ul,null,u.createElement("div",{...le(t),...X(g,L,P==null?void 0:P.collectionProps),...R,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":k||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":F||void 0,"data-focus-visible":A||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},u.createElement(Oe,{values:[[wa,t],[To,e],[ec,{dragAndDropHooks:r,dragState:w,dropState:E}],[tc,{elementType:"div"}],[L4,{render:E8}]]},y),I,N))}function x8({section:e,className:t,style:n}){var r,o;let i=u.useContext(To),[a,s]=yt();var l;let{headingProps:d,groupProps:c}=PD({heading:s,"aria-label":(l=e.props["aria-label"])!==null&&l!==void 0?l:void 0}),f=xr({items:i.collection.getChildren(e.key),children:p=>{switch(p.type){case"header":return u.createElement(w8,{item:p,headingProps:d,headingRef:a});case"item":return u.createElement(K4,{item:p});default:throw new Error("Unsupported element type in Section: "+p.type)}}});return u.createElement("section",{...le(e.props),...c,className:t||((r=e.props)===null||r===void 0?void 0:r.className)||"react-aria-Section",style:n||((o=e.props)===null||o===void 0?void 0:o.style),ref:e.props.ref},f)}function w8({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return u.createElement(V4,{...t,...o,ref:Ji(n,r)},e.rendered)}function C8(e,t){return va("item",e,t,e.children)}const D8=u.forwardRef(C8);function K4({item:e}){var t;let n=mt(e.props.ref),r=u.useContext(To),{dragAndDropHooks:o,dragState:i,dropState:a}=u.useContext(ec),{optionProps:s,labelProps:l,descriptionProps:d,...c}=ED({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Fe({isDisabled:!c.allowsSelection&&!c.hasAction}),h=null;i&&o&&(h=o.useDraggableItem({key:e.key},i));let b=null;a&&o&&(b=o.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},a,n));let g=e.props,y=i&&i.isDragging(e.key),$=he({...g,id:void 0,children:e.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...c,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!i,isDragging:y,isDropTarget:b==null?void 0:b.isDropTarget}}),C=(o==null?void 0:o.renderDropIndicator)||(E=>u.createElement(h8,{target:E}));u.useEffect(()=>{e.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[e.textValue]);let w=g.href?"a":"div";return u.createElement(u.Fragment,null,(o==null?void 0:o.useDropIndicator)&&C({type:"item",key:e.key,dropPosition:"before"}),u.createElement(w,{...X(s,f,h==null?void 0:h.dragProps,b==null?void 0:b.dropProps),...$,ref:n,"data-allows-dragging":!!i||void 0,"data-selected":c.isSelected||void 0,"data-disabled":c.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":c.isFocused||void 0,"data-focus-visible":c.isFocusVisible||void 0,"data-pressed":c.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},u.createElement(Oe,{values:[[Yt,{slots:{label:l,description:d}}]]},$.children)),(o==null?void 0:o.useDropIndicator)&&r.collection.getKeyAfter(e.key)==null&&C({type:"item",key:e.key,dropPosition:"after"}))}function E8(e,t){t=mt(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ec),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:u.createElement(S8,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function P8(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=he({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0})}const S8=u.forwardRef(P8),T8=u.createContext({placement:"bottom"}),dr=u.createContext(null);function A8(e,t){[e,t]=me(e,t,dr);let n=u.useContext(Nn),r=ga(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Cl(t,o.isOpen)||e.isExiting||!1;if(u.useContext(po)){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1})),u.createElement(u.Fragment,null,s)}return o&&!o.isOpen&&!i?null:u.createElement(M8,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i})}const j4=u.forwardRef(A8);function M8({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:i,underlayProps:a,arrowProps:s,placement:l}=S2({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),d=r.popoverRef,c=Xu(d,!!l)||r.isEntering||!1,f=he({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:l,isEntering:c,isExiting:t}}),p={...i.style,...f.style};return u.createElement(Mh,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...a,style:{position:"fixed",inset:0}}),u.createElement("div",{...X(le(r),i),...f,ref:d,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":l,"data-entering":c||void 0,"data-exiting":t||void 0},!r.isNonModal&&u.createElement(Qs,{onDismiss:e.close}),u.createElement(T8.Provider,{value:{...s,placement:l}},f.children),u.createElement(Qs,{onDismiss:e.close})))}const k8=u.createContext(null),Nn=u.createContext(null);function R8(e,t){let n=e["aria-labelledby"];[e,t]=me(e,t,k8);let{dialogProps:r,titleProps:o}=GD({...e,"aria-labelledby":n},t),i=u.useContext(Nn),a=e.children;typeof a=="function"&&(a=a({close:(i==null?void 0:i.close)||(()=>{})})),!r["aria-label"]&&!r["aria-labelledby"]&&(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));var s;return u.createElement("section",{...le(e),...r,ref:t,slot:e.slot||void 0,style:e.style,className:(s=e.className)!==null&&s!==void 0?s:"react-aria-Dialog"},u.createElement(Oe,{values:[[t8,{slots:{[wl]:{},title:{...o,level:2}}}]]},a))}const _4=u.forwardRef(R8),F8=u.createContext(null),B8=u.createContext(null);function I8(e,t){[e,t]=me(e,t,F8);let{collection:n,document:r}=Zu(),{children:o,isDisabled:i=!1,isInvalid:a=!1,isRequired:s=!1}=e;o=u.useMemo(()=>typeof o=="function"?o({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:s}):o,[o,i,a,s]);var l;return u.createElement(u.Fragment,null,u.createElement(R4,null,u.createElement(Oe,{values:[[Eo,r],[wa,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),u.createElement(L8,{props:e,collection:n,comboBoxRef:t}))}function L8({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{contains:a}=z0({sensitivity:"base"});var s;let l=aE({defaultFilter:e.defaultFilter||a,...e,items:e.items,children:void 0,collection:t,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"}),d=u.useRef(null),c=u.useRef(null),f=u.useRef(null),p=u.useRef(null),[h,b]=yt();var g;let{buttonProps:y,inputProps:$,listBoxProps:C,labelProps:w,descriptionProps:E,errorMessageProps:P,...k}=VD({...Fn(e),label:b,inputRef:c,buttonRef:d,listBoxRef:f,popoverRef:p,name:o==="text"?r:void 0,validationBehavior:(g=e.validationBehavior)!==null&&g!==void 0?g:"native"},l),[N,v]=u.useState(null),L=u.useCallback(()=>{if(c.current){var R;let I=(R=d.current)===null||R===void 0?void 0:R.getBoundingClientRect(),K=c.current.getBoundingClientRect(),V=I?Math.min(I.left,K.left):K.left,T=I?Math.max(I.right,K.right):K.right;v(T-V+"px")}},[d,c,v]);Kl({ref:c,onResize:L});let F=u.useMemo(()=>({isOpen:l.isOpen,isDisabled:e.isDisabled||!1,isInvalid:k.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,e.isDisabled,k.isInvalid,e.isRequired]),A=he({...e,values:F,defaultClassName:"react-aria-ComboBox"}),B=le(e);return delete B.id,u.createElement(Oe,{values:[[B8,l],[Mt,{...w,ref:h}],[Ju,{...y,ref:d,isPressed:l.isOpen}],[On,{...$,ref:c}],[Nn,l],[dr,{ref:p,triggerRef:c,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":N}}],[wa,{...C,ref:f}],[To,l],[Yt,{slots:{description:E,errorMessage:P}}],[Cr,{isInvalid:k.isInvalid,isDisabled:e.isDisabled||!1}],[Vn,k]]},u.createElement("div",{...B,...A,ref:n,slot:e.slot||void 0,"data-focused":l.isFocused||void 0,"data-open":l.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":k.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&u.createElement("input",{type:"hidden",name:r,value:l.selectedKey}))}const V8=u.forwardRef(I8),z4=u.createContext(null),O8=u.createContext(null),Ao=u.createContext(null),Ca=u.createContext(null);function N8(e,t){[e,t]=me(e,t,z4);let{locale:n}=Ve();var r;let o=Wu({...e,locale:n,createCalendar:O0,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt(),l=u.useRef(null);var d;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=Hu({...Fn(e),label:s,inputRef:l,validationBehavior:(d=e.validationBehavior)!==null&&d!==void 0?d:"native"},o,i),y=he({...Fn(e),values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-DateField"}),$=le(e);return delete $.id,u.createElement(Oe,{values:[[Ao,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Mt,{...c,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const K8=u.forwardRef(N8);function j8(e,t){[e,t]=me(e,t,O8);let{locale:n}=Ve();var r;let o=xE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt(),l=u.useRef(null);var d;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=jD({...Fn(e),label:s,inputRef:l,validationBehavior:(d=e.validationBehavior)!==null&&d!==void 0?d:"native"},o,i),y=he({...e,values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-TimeField"}),$=le(e);return delete $.id,u.createElement(Oe,{values:[[Ca,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Mt,{...c,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const _8=u.forwardRef(j8);function z8(e,t){let n=u.useContext(Ao),r=u.useContext(Ca);return n||r?u.createElement(U4,{...e,ref:t}):u.createElement(U8,{...e,ref:t})}const U8=u.forwardRef((e,t)=>{let[n,r]=me({slot:e.slot},t,z4),{locale:o}=Ve(),i=Wu({...n,locale:o,createCalendar:O0}),a=u.useRef(null),{fieldProps:s,inputProps:l}=Hu({...n,inputRef:a},i,r);return u.createElement(Oe,{values:[[Ao,i],[On,{...l,ref:a}],[Cr,{...s,ref:r,isInvalid:i.isInvalid}]]},u.createElement(U4,e))}),U4=u.forwardRef((e,t)=>{let{className:n,children:r}=e,o=u.useContext(Ao),i=u.useContext(Ca),a=o??i;return u.createElement(u.Fragment,null,u.createElement(Qu,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isInvalid:a.isInvalid},a.segments.map((s,l)=>u.cloneElement(r(s),{key:l}))),u.createElement(So,null))}),H4=u.forwardRef(z8);function H8({segment:e,...t},n){let r=u.useContext(Ao),o=u.useContext(Ca),i=r??o,a=mt(n),{segmentProps:s}=UD(e,i,a),{focusProps:l,isFocused:d,isFocusVisible:c}=Ye(),{hoverProps:f,isHovered:p}=Fe({...t,isDisabled:i.isDisabled||e.type==="literal"}),h=he({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:d,isFocusVisible:c},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return u.createElement("div",{...X(le(t),s,l,f),...h,ref:a,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":i.isDisabled||void 0,"data-type":e.type,"data-hovered":p||void 0,"data-focused":d||void 0,"data-focus-visible":c||void 0})}const G4=u.forwardRef(H8),W4=u.createContext({}),Y4=u.createContext(null),Mo=u.createContext(null),q4=u.createContext(null);function Z4(e){let{item:t,parentMenuRef:n}=e,r=u.useContext(Mo);return xr({items:r.collection.getChildren(t.key),children:i=>{switch(i.type){case"item":return u.createElement(Z8,{item:i,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function G8(e,t){[e,t]=me(e,t,Y4);let{portal:n,collection:r}=qu(e);return u.createElement(u.Fragment,null,r.size>0&&u.createElement(W8,{props:e,collection:r,menuRef:t}),n)}function W8({props:e,collection:t,menuRef:n}){let r=FE({...e,collection:t,children:void 0}),[o,i]=u.useState(null),{menuProps:a}=AD(e,r,n),s=u.useContext(q4),l=u.useContext(dr),d=xr({items:r.collection,children:p=>{switch(p.type){case"section":return u.createElement(q8,{section:p,parentMenuRef:n});case"separator":return u.createElement(O4,p.props);case"item":return u.createElement(X4,{item:p});case"submenutrigger":return u.createElement(Z4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),c=(l==null?void 0:l.trigger)==="SubmenuTrigger";o0({ref:n,onInteractOutside:p=>{s&&!(o!=null&&o.contains(p.target))&&s.close()},isDisabled:c||(s==null?void 0:s.UNSTABLE_expandedKeysStack.length)===0});var f;return u.createElement(Ul,null,u.createElement("div",{...le(e),...a,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,style:e.style,className:(f=e.className)!==null&&f!==void 0?f:"react-aria-Menu"},u.createElement(Oe,{values:[[Mo,r],[tc,{elementType:"div"}],[dr,{UNSTABLE_portalContainer:o||void 0}]]},d)),u.createElement("div",{ref:i,style:{width:"100vw",position:"absolute",top:0}}))}const Y8=u.forwardRef(G8);function q8({section:e,className:t,style:n,parentMenuRef:r,...o}){var i,a;let s=u.useContext(Mo),[l,d]=yt();var c;let{headingProps:f,groupProps:p}=MD({heading:d,"aria-label":(c=e["aria-label"])!==null&&c!==void 0?c:void 0}),h=xr({items:s.collection.getChildren(e.key),children:b=>{switch(b.type){case"header":{let{ref:g,...y}=b.props;return u.createElement(V4,{...f,...y,ref:Ji(l,g)},b.rendered)}case"item":return u.createElement(X4,{item:b});case"submenutrigger":return u.createElement(Z4,{item:b,parentMenuRef:r});default:throw new Error("Unsupported element type in Section: "+b.type)}}});return u.createElement("section",{...le(o),...p,className:t||((i=e.props)===null||i===void 0?void 0:i.className)||"react-aria-Section",style:n||((a=e.props)===null||a===void 0?void 0:a.style),ref:e.props.ref},h)}function X4({item:e}){var t;let n=u.useContext(Mo),r=mt(e.props.ref),{menuItemProps:o,labelProps:i,descriptionProps:a,keyboardShortcutProps:s,...l}=Ig({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},n,r),d=e.props,{isFocusVisible:c,focusProps:f}=Ye(),{hoverProps:p,isHovered:h}=Fe({isDisabled:l.isDisabled}),b=he({...d,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...l,isHovered:h,isFocusVisible:c,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),g=d.href?"a":"div";return u.createElement(g,{...X(o,f,p),...b,ref:r,"data-disabled":l.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":c||void 0,"data-pressed":l.isPressed||void 0,"data-selected":l.isSelected||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},u.createElement(Oe,{values:[[Yt,{slots:{label:i,description:a}}],[W4,s]]},b.children))}function Z8({item:e,popover:t,parentMenuRef:n,delay:r}){let o=u.useContext(Mo),i=ya(dr),a=mt(e.props.ref),s=u.useContext(q4),l=wE({triggerKey:e.key},s),d=u.useRef(null),{submenuTriggerProps:c,submenuProps:f,popoverProps:p}=BD({node:e,parentMenuRef:n,submenuRef:d,delay:r},l,a),{menuItemProps:h,labelProps:b,descriptionProps:g,keyboardShortcutProps:y,...$}=Ig({key:e.key,...c},o,a),C=e.props,{hoverProps:w,isHovered:E}=Fe({isDisabled:$.isDisabled}),{isFocusVisible:P,focusProps:k}=Ye(),N=he({...C,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...$,isHovered:E,isFocusVisible:P,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:l.isOpen}});return u.createElement(Oe,{values:[[Yt,{slots:{label:b,description:g}}],[W4,y],[Y4,f],[Nn,l],[dr,{ref:d,trigger:"SubmenuTrigger",triggerRef:a,placement:"end top",UNSTABLE_portalContainer:i.UNSTABLE_portalContainer||void 0,...p}]]},u.createElement("div",{...X(h,k,w),...N,ref:a,"data-disabled":$.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":$.isFocused||void 0,"data-focus-visible":P||void 0,"data-pressed":$.isPressed||void 0,"data-selected":$.isSelected||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":l.isOpen||void 0},N.children),t)}const X8=u.createContext(null);function J8(e,t){[e,t]=me(e,t,X8);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=pt(n,r,o);let[i,a]=yt(),{meterProps:s,labelProps:l}=WD({...e,label:a}),d=(n-r)/(o-r)*100,c=he({...e,defaultClassName:"react-aria-Meter",values:{percentage:d,valueText:s["aria-valuetext"]}});return u.createElement("div",{...s,...c,ref:t,slot:e.slot||void 0},u.createElement(Mt.Provider,{value:{...l,ref:i,elementType:"span"}},c.children))}const Q8=u.forwardRef(J8),eP=u.createContext(null),nc=u.createContext(null);function tP(e,t){if(u.useContext(nc))return u.createElement(hp,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:d,isExiting:c,UNSTABLE_portalContainer:f,...p}=e;return u.createElement(J4,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:d,isExiting:c,UNSTABLE_portalContainer:f},u.createElement(hp,{...p,modalRef:t},l))}const nP=u.forwardRef(tP);function rP(e,t){[e,t]=me(e,t,eP);let n=u.useContext(Nn),r=ga(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=mt(t),a=u.useRef(null),s=Cl(i,o.isOpen),l=Cl(a,o.isOpen),d=s||l||e.isExiting||!1,c=At();return!o.isOpen&&!d||c?null:u.createElement(oP,{...e,state:o,isExiting:d,overlayRef:i,modalRef:a})}const J4=u.forwardRef(rP);function oP({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=T2(t,r,n),a=Xu(t.overlayRef)||t.isEntering||!1,s=he({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=cx(),d={...s.style,"--visual-viewport-height":l.height+"px"};return u.createElement(Mh,{isExiting:t.isExiting,portalContainer:e},u.createElement("div",{...X(le(t),i),...s,style:d,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Oe,{values:[[nc,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Nn,r]]},s.children)))}function hp(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=u.useContext(nc),i=u.useContext(Nn),a=u.useMemo(()=>Ji(e.modalRef,n),[e.modalRef,n]),s=mt(a),l=Xu(s),d=he({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return u.createElement("div",{...X(le(e),t),...d,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&u.createElement(Qs,{onDismiss:i.close}),d.children)}const iP=u.createContext(null),aP=u.createContext(null);function sP(e,t){[e,t]=me(e,t,iP);let{locale:n}=Ve();var r;let o=CE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt();var l;let{labelProps:d,groupProps:c,inputProps:f,incrementButtonProps:p,decrementButtonProps:h,descriptionProps:b,errorMessageProps:g,...y}=qD({...Fn(e),label:s,validationBehavior:(l=e.validationBehavior)!==null&&l!==void 0?l:"native"},o,i),$=he({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),C=le(e);return delete C.id,u.createElement(Oe,{values:[[aP,o],[Cr,c],[On,{...f,ref:i}],[Mt,{...d,ref:a}],[Ju,{slots:{increment:p,decrement:h}}],[Yt,{slots:{description:b,errorMessage:g}}],[Vn,y]]},u.createElement("div",{...C,...$,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0}),e.name&&u.createElement("input",{type:"hidden",name:e.name,value:isNaN(o.numberValue)?"":o.numberValue}))}const lP=u.forwardRef(sP),uP=u.createContext(null);function cP(e,t){[e,t]=me(e,t,uP);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:i=!1}=e;n=pt(n,r,o);let[a,s]=yt(),{progressBarProps:l,labelProps:d}=ty({...e,label:s}),c=i?void 0:(n-r)/(o-r)*100,f=he({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:l["aria-valuetext"],isIndeterminate:i}});return u.createElement("div",{...l,...f,ref:t,slot:e.slot||void 0},u.createElement(Mt.Provider,{value:{...d,ref:a,elementType:"span"}},f.children))}const Q4=u.forwardRef(cP),dP=u.createContext(null),Da=u.createContext(null),rc=u.createContext(null),e1=u.createContext(null);function fP(e,t){[e,t]=me(e,t,dP);let n=u.useRef(null),r=Ni(e.formatOptions),o=SE({...e,numberFormatter:r}),[i,a]=yt(),{groupProps:s,trackProps:l,labelProps:d,outputProps:c}=ZD({...e,label:a},o,n),f=he({...e,values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-Slider"}),p=le(e);return delete p.id,u.createElement(Oe,{values:[[Da,o],[rc,{...l,ref:n}],[e1,c],[Mt,{...d,ref:i}]]},u.createElement("div",{...p,...s,...f,ref:t,slot:e.slot||void 0,"data-orientation":o.orientation,"data-disabled":o.isDisabled||void 0}))}const pP=u.forwardRef(fP);function hP(e,t){[e,t]=me(e,t,e1);let{children:n,style:r,className:o,...i}=e,a=u.useContext(Da),s=he({className:o,style:r,children:n,defaultChildren:a.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:a.orientation,isDisabled:a.isDisabled,state:a}});return u.createElement("output",{...i,...s,ref:t,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0})}const bP=u.forwardRef(hP);function mP(e,t){[e,t]=me(e,t,rc);let n=u.useContext(Da),{onHoverStart:r,onHoverEnd:o,onHoverChange:i,...a}=e,{hoverProps:s,isHovered:l}=Fe({onHoverStart:r,onHoverEnd:o,onHoverChange:i}),d=he({...e,defaultClassName:"react-aria-SliderTrack",values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:l,state:n}});return u.createElement("div",{...X(a,s),...d,ref:t,"data-hovered":l||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}const gP=u.forwardRef(mP);function vP(e,t){let n=u.useContext(Da),{ref:r}=ya(rc),{index:o=0}=e,i=u.useRef(null),[a,s]=yt(),{thumbProps:l,inputProps:d,labelProps:c,isDragging:f,isFocused:p,isDisabled:h}=XD({...e,index:o,trackRef:r,inputRef:i,label:s},n),{focusProps:b,isFocusVisible:g}=Ye(),{hoverProps:y,isHovered:$}=Fe(e),C=he({...e,defaultClassName:"react-aria-SliderThumb",values:{state:n,isHovered:$,isDragging:f,isFocused:p,isFocusVisible:g,isDisabled:h}}),w=le(e);return delete w.id,u.createElement("div",{...X(w,l,y),...C,ref:t,style:{...l.style,...C.style},"data-hovered":$||void 0,"data-dragging":f||void 0,"data-focused":p||void 0,"data-focus-visible":g||void 0,"data-disabled":h||void 0},u.createElement(ia,null,u.createElement("input",{ref:i,...X(d,b)})),u.createElement(Oe,{values:[[Mt,{...c,ref:a}]]},C.children))}const yP=u.forwardRef(vP),$P=u.createContext(null);function xP(e,t){[e,t]=me(e,t,$P);let n=u.useRef(null),r=ha(e),{labelProps:o,inputProps:i,isSelected:a,isDisabled:s,isReadOnly:l,isPressed:d}=JD({...Fn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:c,isFocusVisible:f,focusProps:p}=Ye(),h=e.isDisabled||e.isReadOnly,{hoverProps:b,isHovered:g}=Fe({...e,isDisabled:h}),y=he({...e,defaultClassName:"react-aria-Switch",values:{isSelected:a,isPressed:d,isHovered:g,isFocused:c,isFocusVisible:f,isDisabled:s,isReadOnly:l,state:r}}),$=le(e);return delete $.id,u.createElement("label",{...X($,o,b,y),ref:t,slot:e.slot||void 0,"data-selected":a||void 0,"data-pressed":d||void 0,"data-hovered":g||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0},u.createElement(ia,{elementType:"span"},u.createElement("input",{...i,...p,ref:n})),y.children)}const wP=u.forwardRef(xP),oc=u.createContext(null),ic=u.createContext(null);function CP(e,t){[e,t]=me(e,t,oc);let{collection:n,document:r}=Zu(),{children:o,orientation:i="horizontal"}=e;return o=u.useMemo(()=>typeof o=="function"?o({orientation:i}):o,[o,i]),u.createElement(u.Fragment,null,u.createElement(R4,null,u.createElement(Eo.Provider,{value:r},o)),u.createElement(DP,{props:e,collection:n,tabsRef:t}))}function DP({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=TE({...e,collection:n,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye({within:!0}),l=u.useMemo(()=>({orientation:r,isFocusWithin:a,isFocusVisible:s}),[r,a,s]),d=he({...e,defaultClassName:"react-aria-Tabs",values:l});return u.createElement("div",{...le(e),...i,...d,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":o.isDisabled||void 0},u.createElement(Oe,{values:[[oc,e],[ic,o]]},d.children))}const EP=u.forwardRef(CP);function PP(e,t){return u.useContext(Eo)?u.createElement(A4,e):u.createElement(SP,{props:e,forwardedRef:t})}function SP({props:e,forwardedRef:t}){let n=u.useContext(ic),{orientation:r="horizontal",keyboardActivation:o="automatic"}=ya(oc),i=mt(t),{tabListProps:a}=nE({...e,orientation:r,keyboardActivation:o},n,i),s=he({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}}),l=le(e);return delete l.id,u.createElement("div",{...l,...a,ref:i,...s,"data-orientation":r||void 0},[...n.collection].map(d=>u.createElement(kP,{key:d.key,item:d,state:n})))}const TP=u.forwardRef(PP);function AP(e,t){return va("item",e,t,e.children)}const MP=u.forwardRef(AP);function kP({item:e,state:t}){let n=mt(e.props.ref),{tabProps:r,isSelected:o,isDisabled:i,isPressed:a}=QD({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:d}=Ye(),{hoverProps:c,isHovered:f}=Fe({isDisabled:i}),p=he({...e.props,children:e.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:i,isFocused:l,isFocusVisible:d,isPressed:a,isHovered:f,state:t}}),h=e.props.href?"a":"div";return u.createElement(h,{...X(r,s,c,p),ref:n,"data-selected":o||void 0,"data-disabled":i||void 0,"data-focus-visible":d||void 0,"data-pressed":a||void 0,"data-hovered":f||void 0})}function RP(e,t){const n=u.useContext(ic);let r=mt(t),{tabPanelProps:o}=eE(e,n,r),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(),l=n.selectedKey===e.id,d=he({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!l,state:n}});if(!l&&!e.shouldForceMount)return null;let c=le(e);delete c.id;let f=l?X(c,o,i,d):d;return u.createElement("div",{...f,ref:r,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:l?void 0:"true","data-inert":l?void 0:"true"})}const FP=$a(RP),BP=u.createContext({}),IP=u.createContext(null);function LP(e,t){[e,t]=me(e,t,IP);let n=u.useRef(null),[r,o]=yt(),[i,a]=u.useState("input");var s;let{labelProps:l,inputProps:d,descriptionProps:c,errorMessageProps:f,...p}=zu({...Fn(e),inputElementType:i,label:o,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"},n),h=u.useCallback(g=>{n.current=g,g&&a(g instanceof HTMLTextAreaElement?"textarea":"input")},[]),b=he({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid},defaultClassName:"react-aria-TextField"});return u.createElement("div",{...le(e),...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0},u.createElement(Oe,{values:[[Mt,{...l,ref:r}],[On,{...d,ref:h}],[BP,{...d,ref:h}],[Yt,{slots:{description:c,errorMessage:f}}],[Vn,p]]},b.children))}const Ea=u.forwardRef(LP),VP=u.createContext({});function OP(e,t){[e,t]=me(e,t,VP);let n=ha(e),{buttonProps:r,isPressed:o}=iD(e,n,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:d}=Fe(e),c=he({...e,values:{isHovered:d,isPressed:o,isFocused:a,isSelected:n.isSelected,isFocusVisible:s,isDisabled:e.isDisabled||!1,state:n},defaultClassName:"react-aria-ToggleButton"});return u.createElement("button",{...X(r,i,l),...c,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":o||void 0,"data-selected":n.isSelected||void 0,"data-hovered":d||void 0,"data-focus-visible":s||void 0})}const NP=u.forwardRef(OP),KP=_.styled(ZE)`
|
|
180
180
|
display: flex;
|
|
181
181
|
align-items: center;
|
|
182
182
|
list-style: none;
|
|
183
183
|
margin: 0 0 1rem;
|
|
184
184
|
padding: 0.3125rem 0 0;
|
|
185
185
|
font-size: 0.9rem;
|
|
186
|
-
`,
|
|
186
|
+
`,jP=_.styled(B4)`
|
|
187
187
|
display: flex;
|
|
188
188
|
align-items: center;
|
|
189
|
-
`,
|
|
189
|
+
`,_P=_.styled(B4)`
|
|
190
190
|
display: flex;
|
|
191
191
|
align-items: center;
|
|
192
192
|
margin: 0 0.5rem;
|
|
@@ -196,7 +196,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
196
196
|
width: 1rem;
|
|
197
197
|
height: 1rem;
|
|
198
198
|
}
|
|
199
|
-
`,
|
|
199
|
+
`,zP=_.styled(xa)`
|
|
200
200
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[600])??x.colors.slate[600]}};
|
|
201
201
|
text-decoration: none;
|
|
202
202
|
cursor: pointer;
|
|
@@ -222,7 +222,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
|
225
|
+
`;function UP({children:e,...t}){return S.jsx(jP,{...t,children:e})}function HP(e){return S.jsx(zP,{...e})}function GP({children:e,...t}){return S.jsx(_P,{...t,children:e??S.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:S.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function WP({children:e,...t}){return S.jsx(KP,{...t,children:e})}const Dt=_.styled(I4)`
|
|
226
226
|
display: flex;
|
|
227
227
|
align-items: center;
|
|
228
228
|
padding: 0.4rem 2rem;
|
|
@@ -257,13 +257,13 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
257
257
|
|
|
258
258
|
&[data-disabled] {
|
|
259
259
|
background-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a;switch(n){case"ghost":case"outline":return"transparent";case"solid":default:return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[900])??x.colors.slate[900]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[100])??x.colors.slate[100]}}};
|
|
260
|
-
border-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,c
|
|
261
|
-
color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,
|
|
260
|
+
border-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,d,c;switch(n){case"ghost":return"transparent";case"outline":return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[300])??x.colors.slate[300]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[200])??x.colors.slate[200];case"solid":default:return e?((l=(s=t==null?void 0:t.colors)==null?void 0:s.slate)==null?void 0:l[900])??x.colors.slate[900]:((c=(d=t==null?void 0:t.colors)==null?void 0:d.slate)==null?void 0:c[200])??x.colors.slate[200]}}};
|
|
261
|
+
color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,d;switch(n){case"ghost":case"outline":return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[900])??x.colors.slate[900]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[500])??x.colors.slate[500];case"solid":default:return e?((s=t==null?void 0:t.colors)==null?void 0:s.white)??x.colors.white:((d=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:d[400])??x.colors.slate[400]}}};
|
|
262
262
|
}
|
|
263
|
-
`;function
|
|
263
|
+
`;function YP({children:e,isDisabled:t=!1,isLoading:n=!1,size:r="md",variant:o="solid",...i}){return S.jsx(Dt,{isDisabled:t||n,isLoading:n,size:r,variant:o,...i,children:e})}const qP=_.styled.div`
|
|
264
264
|
display: flex;
|
|
265
265
|
flex-direction: column;
|
|
266
|
-
`;function
|
|
266
|
+
`;function ZP({children:e,...t}){return S.jsx(qP,{...t,children:e})}const at=_.styled.div`
|
|
267
267
|
width: 1.5rem;
|
|
268
268
|
height: 1.5rem;
|
|
269
269
|
border: 1px solid
|
|
@@ -273,7 +273,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
273
273
|
display: flex;
|
|
274
274
|
align-items: center;
|
|
275
275
|
justify-content: center;
|
|
276
|
-
`,
|
|
276
|
+
`,vi=_.styled.svg`
|
|
277
277
|
width: 1rem;
|
|
278
278
|
height: 1rem;
|
|
279
279
|
fill: none;
|
|
@@ -282,7 +282,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
282
282
|
stroke-dasharray: 22px;
|
|
283
283
|
stroke-dashoffset: 66;
|
|
284
284
|
transition: all 200ms;
|
|
285
|
-
`,
|
|
285
|
+
`,XP=_.styled(u8)`
|
|
286
286
|
display: flex;
|
|
287
287
|
align-items: center;
|
|
288
288
|
gap: 0.5rem;
|
|
@@ -290,11 +290,11 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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] ${
|
|
293
|
+
&[data-hovered] ${at} {
|
|
294
294
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
&[data-focused] ${
|
|
297
|
+
&[data-focused] ${at} {
|
|
298
298
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
299
299
|
outline: 2px solid
|
|
300
300
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
|
|
@@ -304,18 +304,18 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
& ${
|
|
307
|
+
& ${vi} {
|
|
308
308
|
stroke: none;
|
|
309
309
|
fill: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
&[data-indeterminate] ${
|
|
313
|
+
&[data-indeterminate] ${at} {
|
|
314
314
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
|
|
315
315
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
&[data-disabled] ${
|
|
318
|
+
&[data-disabled] ${at} {
|
|
319
319
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
|
|
320
320
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
|
|
321
321
|
}
|
|
@@ -323,19 +323,19 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
${
|
|
326
|
+
${at} {
|
|
327
327
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[100])??x.colors.red[100]}};
|
|
328
328
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
|
|
329
329
|
border: 1px solid
|
|
330
330
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
&[data-hovered] ${
|
|
333
|
+
&[data-hovered] ${at} {
|
|
334
334
|
border: 1px solid
|
|
335
335
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
&[data-focused] ${
|
|
338
|
+
&[data-focused] ${at} {
|
|
339
339
|
border: 1px solid
|
|
340
340
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
|
|
341
341
|
outline: 2px solid
|
|
@@ -344,13 +344,13 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
344
344
|
|
|
345
345
|
&[data-selected],
|
|
346
346
|
&[data-indeterminate] {
|
|
347
|
-
${
|
|
347
|
+
${at} {
|
|
348
348
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
|
|
349
349
|
border: 1px solid
|
|
350
350
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
-
&[data-pressed] ${
|
|
353
|
+
&[data-pressed] ${at} {
|
|
354
354
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
|
|
355
355
|
border: 1px solid
|
|
356
356
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
|
|
@@ -360,43 +360,43 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
360
360
|
|
|
361
361
|
&[data-selected],
|
|
362
362
|
&[data-indeterminate] {
|
|
363
|
-
${
|
|
363
|
+
${at} {
|
|
364
364
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
365
365
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
&[data-pressed] ${
|
|
368
|
+
&[data-pressed] ${at} {
|
|
369
369
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
370
370
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
${
|
|
373
|
+
${vi} {
|
|
374
374
|
stroke-dashoffset: 44;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
&[data-indeterminate] {
|
|
379
|
-
& ${
|
|
379
|
+
& ${vi} {
|
|
380
380
|
stroke: none;
|
|
381
381
|
fill: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
`;function
|
|
384
|
+
`;function JP({children:e,...t}){return S.jsx(XP,{...t,children:({isIndeterminate:n})=>S.jsxs(S.Fragment,{children:[S.jsx(at,{children:S.jsx(vi,{viewBox:"0 0 18 18","aria-hidden":"true",children:n?S.jsx("rect",{x:1,y:7.5,width:15,height:3}):S.jsx("polyline",{points:"1 9 7 14 15 4"})})}),e]})})}const QP=_.styled.div`
|
|
385
385
|
width: 100%;
|
|
386
|
-
`,
|
|
386
|
+
`,e9=_.styled(yr.div)`
|
|
387
387
|
width: 100%;
|
|
388
388
|
overflow: hidden;
|
|
389
|
-
`,
|
|
389
|
+
`,ac=u.createContext({});function t9({children:e,...t}){const n=u.useId(),[r,o]=bt(t.isOpen,t.defaultOpen||!1,t.onOpenChange),i=u.useRef(null),a=u.useCallback(()=>{o(!r)},[o,r]);return S.jsx(Oe,{values:[[ac,{isOpen:r,id:n,defaultOpen:t.defaultOpen||!1}]],children:S.jsx(Cx,{ref:i,isPressed:r,onPress:a,"aria-expanded":r,"aria-controls":n,children:S.jsx(QP,{children:e})})})}function n9({children:e}){const{isOpen:t,id:n,defaultOpen:r}=u.useContext(ac);return S.jsx(e9,{id:n,variants:{hidden:{height:"0px",opacity:0},visible:{height:"auto",opacity:1}},initial:r?"visible":"hidden",animate:t?"visible":"hidden",transition:{type:"spring",bounce:0},children:e})}const r9=e=>{let t="";return Object.values(e).forEach(n=>{t+=`
|
|
390
390
|
@media (min-width: ${n}) {
|
|
391
391
|
max-width: ${n};
|
|
392
392
|
}
|
|
393
|
-
`}),t},
|
|
393
|
+
`}),t},o9=_.styled.div`
|
|
394
394
|
width: 100%;
|
|
395
395
|
margin: 0 auto;
|
|
396
396
|
padding: 0 1rem;
|
|
397
397
|
|
|
398
|
-
${({theme:e})=>
|
|
399
|
-
`,
|
|
398
|
+
${({theme:e})=>r9((e==null?void 0:e.screens)??x.screens)}
|
|
399
|
+
`,i9=u.forwardRef(({children:e,...t},n)=>S.jsx(o9,{...t,ref:n,children:e})),a9=_.styled(yr(j4))`
|
|
400
400
|
padding: 0.4rem 0;
|
|
401
401
|
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
402
402
|
border-radius: 0.375rem;
|
|
@@ -404,9 +404,9 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
|
407
|
+
`;function t1({children:e,key:t,onAction:n,setAnimation:r,animation:o="hidden",...i}){return S.jsx(a9,{isExiting:o==="hidden",onAnimationComplete:a=>{r(s=>a==="hidden"&&s==="hidden"?"unmounted":s)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:o,...i,children:S.jsx(Y8,{style:{outline:"none"},onAction:n,children:e})},t)}t1.defaultProps={key:void 0,onAction:void 0};const s9=_.styled(K8)`
|
|
408
408
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
|
|
409
|
-
`,
|
|
409
|
+
`,l9=_.styled(H4)`
|
|
410
410
|
display: flex;
|
|
411
411
|
align-items: center;
|
|
412
412
|
border: 1px solid
|
|
@@ -457,7 +457,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
460
|
+
`,u9=_.styled(G4)`
|
|
461
461
|
padding: 0.25rem;
|
|
462
462
|
font-variant-numeric: tabular-nums;
|
|
463
463
|
text-align: end;
|
|
@@ -507,24 +507,24 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
510
|
+
`,c9=_.styled(qt)`
|
|
511
511
|
display: flex;
|
|
512
512
|
font-size: 0.8rem;
|
|
513
513
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
514
|
-
`,
|
|
514
|
+
`,d9=_.styled(Po)`
|
|
515
515
|
display: flex;
|
|
516
516
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
|
|
517
517
|
font-size: 0.8rem;
|
|
518
|
-
`,
|
|
518
|
+
`,f9=_.styled(wr)`
|
|
519
519
|
display: flex;
|
|
520
520
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
521
521
|
font-size: 0.8rem;
|
|
522
|
-
`;function
|
|
522
|
+
`;function n1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(s9,{...r,children:[S.jsx(c9,{children:e}),S.jsx(l9,{children:o=>S.jsx(u9,{segment:o})}),S.jsx(f9,{slot:"description",children:t}),S.jsx(d9,{children:n})]})}n1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const p9=_.styled.div`
|
|
523
523
|
width: ${({orientation:e})=>e==="vertical"?"1px":"100%"};
|
|
524
524
|
height: ${({orientation:e})=>e==="vertical"?"auto":"1px"};
|
|
525
525
|
margin: ${({orientation:e})=>e==="vertical"?"0 1rem":"1rem 0"};
|
|
526
526
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
|
|
527
|
-
`;function
|
|
527
|
+
`;function h9(e){const{orientation:t}=e,{separatorProps:n}=Vy(e);return S.jsx(p9,{...n,orientation:t})}const xn=_.styled(So)`
|
|
528
528
|
border: 1px solid
|
|
529
529
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
530
530
|
font-size: 0.9rem;
|
|
@@ -577,24 +577,24 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
580
|
+
`,r1=_.styled(qt)`
|
|
581
581
|
display: flex;
|
|
582
582
|
font-size: 0.8rem;
|
|
583
583
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
584
|
-
`,
|
|
584
|
+
`,b9=_.styled(Ea)`
|
|
585
585
|
display: flex;
|
|
586
586
|
flex-direction: column;
|
|
587
587
|
width: 100%;
|
|
588
588
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
|
|
589
|
-
`,
|
|
589
|
+
`,o1=_.styled(Po)`
|
|
590
590
|
display: flex;
|
|
591
591
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
|
|
592
592
|
font-size: 0.8rem;
|
|
593
|
-
`,
|
|
593
|
+
`,i1=_.styled(wr)`
|
|
594
594
|
display: flex;
|
|
595
595
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
596
596
|
font-size: 0.8rem;
|
|
597
|
-
`;function
|
|
597
|
+
`;function a1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(b9,{...r,children:[S.jsx(r1,{children:e}),S.jsx(xn,{}),t&&S.jsx(i1,{slot:"description",children:t}),S.jsx(o1,{children:n})]})}a1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const m9=_.styled(xa)`
|
|
598
598
|
color: ${({isDisabled:e,theme:t})=>{var n,r,o,i;return e?((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[300])??x.colors.slate[300]:((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[500])??x.colors.slate[500]}};
|
|
599
599
|
cursor: ${({isDisabled:e})=>e?"default":"pointer"};
|
|
600
600
|
text-decoration: none;
|
|
@@ -604,33 +604,33 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
|
607
|
+
`;function g9({children:e,...t}){return S.jsx(m9,{...t,children:e})}const v9=_.styled(Q8)`
|
|
608
608
|
display: flex;
|
|
609
609
|
flex-direction: column;
|
|
610
610
|
gap: 0.5rem;
|
|
611
|
-
`,
|
|
611
|
+
`,y9=_.styled.div`
|
|
612
612
|
display: flex;
|
|
613
613
|
justify-content: space-between;
|
|
614
614
|
gap: 1rem;
|
|
615
|
-
|
|
615
|
+
`,$9=_.styled(qt)`
|
|
616
616
|
font-size: 0.875rem;
|
|
617
|
-
`,
|
|
617
|
+
`,x9=_.styled.span`
|
|
618
618
|
font-size: 0.875rem;
|
|
619
619
|
font-variant-numeric: tabular-nums;
|
|
620
620
|
margin-left: auto;
|
|
621
|
-
`,
|
|
621
|
+
`,w9=_.styled.div`
|
|
622
622
|
height: 0.625rem;
|
|
623
623
|
border-radius: 0.3rem;
|
|
624
624
|
background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
625
625
|
forced-color-adjust: none;
|
|
626
626
|
overflow: hidden;
|
|
627
|
-
`,
|
|
627
|
+
`,C9=_.styled(yr.div)`
|
|
628
628
|
height: 100%;
|
|
629
629
|
background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
|
|
630
|
-
`;function
|
|
630
|
+
`;function D9({label:e,showValue:t=!0,value:n=0,minValue:r=0,maxValue:o=100,formatOptions:i={style:"percent"},...a}){return S.jsx(v9,{value:n,minValue:r,maxValue:o,formatOptions:i,...a,children:({percentage:s,valueText:l})=>S.jsxs(S.Fragment,{children:[(e||t)&&S.jsxs(y9,{children:[e&&S.jsx($9,{children:e}),t&&S.jsx(x9,{children:l})]}),S.jsx(w9,{children:S.jsx(C9,{initial:{width:`${s}%`},animate:{width:`${s}%`},transition:{type:"spring",bounce:0}})})]})})}const E9=_.styled(nP)`
|
|
631
631
|
position: absolute;
|
|
632
632
|
inset: 50%;
|
|
633
|
-
`;function
|
|
633
|
+
`;function P9(e){return S.jsx(E9,{...e})}const bp=_.keyframes`
|
|
634
634
|
0% {
|
|
635
635
|
opacity: 0;
|
|
636
636
|
backdrop-filter: blur(0);
|
|
@@ -640,7 +640,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
640
640
|
opacity: 1;
|
|
641
641
|
backdrop-filter: blur(10px);
|
|
642
642
|
}
|
|
643
|
-
`,
|
|
643
|
+
`,S9=_.styled(J4)`
|
|
644
644
|
backdrop-filter: blur(10px);
|
|
645
645
|
background: ${({theme:e})=>{var t;return`rgb(from ${((t=e==null?void 0:e.colors)==null?void 0:t.black)??x.colors.black} r g b / 30%)`}};
|
|
646
646
|
position: fixed;
|
|
@@ -651,13 +651,13 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
651
651
|
height: var(--visual-viewport-height);
|
|
652
652
|
|
|
653
653
|
&[data-entering] {
|
|
654
|
-
animation: ${
|
|
654
|
+
animation: ${bp} 300ms;
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
&[data-exiting] {
|
|
658
|
-
animation: ${
|
|
658
|
+
animation: ${bp} 300ms reverse;
|
|
659
659
|
}
|
|
660
|
-
`;function
|
|
660
|
+
`;function T9(e){return S.jsx(S9,{...e})}const mp=_.keyframes`
|
|
661
661
|
from {
|
|
662
662
|
transform: translate(-50%, -50%) scale(0.8);
|
|
663
663
|
}
|
|
@@ -665,7 +665,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
665
665
|
to {
|
|
666
666
|
transform: translate(-50%, -50%) scale(1);
|
|
667
667
|
}
|
|
668
|
-
`,
|
|
668
|
+
`,Dl=_.styled(_4)`
|
|
669
669
|
padding: 2rem;
|
|
670
670
|
outline: none;
|
|
671
671
|
box-shadow: 0 0.5rem 1.5rem rgba(0 0 0 / 0.1);
|
|
@@ -680,27 +680,27 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
680
680
|
top: 50%;
|
|
681
681
|
left: 50%;
|
|
682
682
|
transform: translate(-50%, -50%);
|
|
683
|
-
`,
|
|
684
|
-
[data-entering] ${
|
|
685
|
-
animation: ${
|
|
683
|
+
`,A9=_.createGlobalStyle`
|
|
684
|
+
[data-entering] ${Dl} {
|
|
685
|
+
animation: ${mp} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
686
686
|
}
|
|
687
687
|
|
|
688
|
-
[data-exiting] ${
|
|
689
|
-
animation: ${
|
|
688
|
+
[data-exiting] ${Dl} {
|
|
689
|
+
animation: ${mp} 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) reverse;
|
|
690
690
|
}
|
|
691
|
-
`;function
|
|
691
|
+
`;function M9(e){return S.jsxs(S.Fragment,{children:[S.jsx(A9,{}),S.jsx(Dl,{...e})]})}const k9=_.keyframes`
|
|
692
692
|
from { transform: translateY(-100%); }
|
|
693
693
|
to { transform: translateY(0); }
|
|
694
|
-
`,
|
|
694
|
+
`,R9=_.keyframes`
|
|
695
695
|
from { transform: translateX(100%); }
|
|
696
696
|
to { transform: translateX(0); }
|
|
697
|
-
`,
|
|
697
|
+
`,F9=_.keyframes`
|
|
698
698
|
from { transform: translateY(100%); }
|
|
699
699
|
to { transform: translateY(0); }
|
|
700
|
-
`,
|
|
700
|
+
`,B9=_.keyframes`
|
|
701
701
|
from { transform: translateX(-100%); }
|
|
702
702
|
to { transform: translateX(0); }
|
|
703
|
-
`,
|
|
703
|
+
`,El=_.styled(_4)`
|
|
704
704
|
padding: 2rem;
|
|
705
705
|
position: fixed;
|
|
706
706
|
outline: none;
|
|
@@ -733,41 +733,41 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
737
|
-
[data-exiting] ${
|
|
736
|
+
`,I9=_.createGlobalStyle`
|
|
737
|
+
[data-exiting] ${El} {
|
|
738
738
|
animation-direction: reverse;
|
|
739
739
|
animation-timing-function: ease-in;
|
|
740
740
|
}
|
|
741
741
|
|
|
742
742
|
[data-entering],
|
|
743
743
|
[data-exiting] {
|
|
744
|
-
${
|
|
744
|
+
${El} {
|
|
745
745
|
&[data-direction='top'] {
|
|
746
|
-
animation-name: ${
|
|
746
|
+
animation-name: ${k9};
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
&[data-direction='right'] {
|
|
750
|
-
animation-name: ${
|
|
750
|
+
animation-name: ${R9};
|
|
751
751
|
}
|
|
752
752
|
|
|
753
753
|
&[data-direction='bottom'] {
|
|
754
|
-
animation-name: ${
|
|
754
|
+
animation-name: ${F9};
|
|
755
755
|
}
|
|
756
756
|
|
|
757
757
|
&[data-direction='left'] {
|
|
758
|
-
animation-name: ${
|
|
758
|
+
animation-name: ${B9};
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
`;function
|
|
762
|
+
`;function s1({direction:e,...t}){return S.jsxs(S.Fragment,{children:[S.jsx(I9,{}),S.jsx(El,{"data-direction":e,...t})]})}s1.defaultProps={direction:"right"};const L9=_.styled(lP)`
|
|
763
763
|
display: flex;
|
|
764
764
|
flex-direction: column;
|
|
765
765
|
width: 100%;
|
|
766
|
-
`,
|
|
766
|
+
`,V9=_.styled(Qu)`
|
|
767
767
|
display: flex;
|
|
768
768
|
border-radius: 0.375rem;
|
|
769
769
|
|
|
770
|
-
${
|
|
770
|
+
${Dt} {
|
|
771
771
|
cursor: pointer;
|
|
772
772
|
padding: 0;
|
|
773
773
|
width: 2.5rem;
|
|
@@ -796,7 +796,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
796
796
|
}
|
|
797
797
|
|
|
798
798
|
&[data-hovered] {
|
|
799
|
-
${
|
|
799
|
+
${Dt}, ${xn} {
|
|
800
800
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
801
801
|
}
|
|
802
802
|
}
|
|
@@ -810,7 +810,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
${
|
|
813
|
+
${Dt}, ${xn} {
|
|
814
814
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
815
815
|
}
|
|
816
816
|
}
|
|
@@ -818,17 +818,17 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
${
|
|
821
|
+
${Dt} {
|
|
822
822
|
cursor: default;
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
${
|
|
825
|
+
${Dt}, ${xn} {
|
|
826
826
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
|
|
830
830
|
&[data-invalid] {
|
|
831
|
-
${
|
|
831
|
+
${Dt}, ${xn} {
|
|
832
832
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
|
|
833
833
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[100])??x.colors.red[100]}};
|
|
834
834
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[600])??x.colors.red[600]}};
|
|
@@ -844,18 +844,18 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
844
844
|
}
|
|
845
845
|
|
|
846
846
|
&[aria-readonly] {
|
|
847
|
-
${
|
|
847
|
+
${Dt} {
|
|
848
848
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
|
|
849
849
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
|
|
850
850
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
851
851
|
cursor: default;
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
|
-
`,
|
|
854
|
+
`,O9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),N9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function l1({label:e,description:t,errorMessage:n,isInvalid:r,isReadOnly:o,slots:i,...a}){return S.jsxs(L9,{isInvalid:r,...a,children:[S.jsx(r1,{children:e}),S.jsxs(V9,{isInvalid:r,"aria-readonly":o,children:[S.jsx(Dt,{variant:"outline",slot:"decrement",children:i==null?void 0:i.decrementIcon}),S.jsx(xn,{readOnly:o}),S.jsx(Dt,{variant:"outline",slot:"increment",children:i==null?void 0:i.incrementIcon})]}),t&&S.jsx(i1,{slot:"description",children:t}),S.jsx(o1,{children:n})]})}l1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:O9,incrementIcon:N9}};const K9=_.styled(Qu)`
|
|
855
855
|
display: flex;
|
|
856
856
|
flex-wrap: wrap;
|
|
857
857
|
gap: 0.5rem;
|
|
858
|
-
`,
|
|
858
|
+
`,j9=_.styled(So)`
|
|
859
859
|
border: 1px solid
|
|
860
860
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
861
861
|
font-size: 0.9rem;
|
|
@@ -909,70 +909,70 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
912
|
+
`,_9=_.styled(qt)`
|
|
913
913
|
display: flex;
|
|
914
914
|
flex: 1 0 100%;
|
|
915
915
|
font-size: 0.8rem;
|
|
916
916
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
917
|
-
`,
|
|
917
|
+
`,z9=_.styled(Ea)`
|
|
918
918
|
display: flex;
|
|
919
919
|
flex-direction: column;
|
|
920
920
|
width: 100%;
|
|
921
921
|
flex: 1;
|
|
922
922
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
|
|
923
|
-
`,
|
|
923
|
+
`,U9=_.styled(Ea)`
|
|
924
924
|
display: flex;
|
|
925
925
|
flex-direction: row;
|
|
926
926
|
flex-wrap: wrap;
|
|
927
927
|
flex: 1 0 100%;
|
|
928
928
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
|
|
929
|
-
`,
|
|
929
|
+
`,H9=_.styled(Po)`
|
|
930
930
|
display: flex;
|
|
931
931
|
flex: 1 0 100%;
|
|
932
932
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
|
|
933
933
|
font-size: 0.8rem;
|
|
934
|
-
`,
|
|
934
|
+
`,G9=_.styled(wr)`
|
|
935
935
|
display: flex;
|
|
936
936
|
flex: 1 0 100%;
|
|
937
937
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
938
938
|
font-size: 0.8rem;
|
|
939
|
-
`;function
|
|
939
|
+
`;function u1({description:e,errorMessage:t,isDisabled:n=!1,isInvalid:r=!1,isMasked:o=!1,isRequired:i=!0,label:a,length:s=6,name:l,onChange:d,value:c="",type:f="numeric",validationBehavior:p="native",...h}){u.useState(-1);const[b,g]=u.useState(c),[y,$]=u.useState(Array(s).fill("")),C=u.useRef([]);u.useEffect(()=>{C.current=C.current.slice(0,s)},[s]),u.useEffect(()=>{const k=y.join("");g(k),d&&d(k)},[d,y]);const w=k=>{var F,A;const N=k.target.value,v=Number(k.target.getAttribute("data-pin-input-index"));N!==""&&v<y.length-1&&((A=(F=C.current)==null?void 0:F[v+1])==null||A.focus());const L=y.map((B,R)=>R===v?N:B);$(L)},E=k=>{var F,A,B,R;const N=Number(k.currentTarget.getAttribute("data-pin-input-index"));if(k.ctrlKey||k.metaKey)return;const v=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Control","Alt","Meta","Shift","Tab","Enter","Escape"],L={alpha:/^[a-z]$/i,alphanumeric:/^[a-z0-9]$/i,numeric:/^[0-9]$/i};if(!k.key.match(L[f])&&!v.includes(k.key)&&k.preventDefault(),y[N]===""&&N>0&&k.key==="Backspace"){const I=y.map((K,V)=>V===N-1?"":K);$(I),(A=(F=C.current)==null?void 0:F[N-1])==null||A.focus(),k.preventDefault()}if(y[N]===""&&N<y.length-1&&k.key==="Delete"){const I=y.map((K,V)=>V===N+1?"":K);$(I),(R=(B=C.current)==null?void 0:B[N+1])==null||R.focus(),k.preventDefault()}},P=k=>{var R,I;const N=Number(k.currentTarget.getAttribute("data-pin-input-index"));k.preventDefault();const v=(R=k.clipboardData)==null?void 0:R.getData("text");if(!v)return;const L=v.split("").filter(K=>{switch(f){case"alpha":return/^[a-zA-Z]$/.test(K);case"alphanumeric":return/^[a-z0-9]$/i.test(K);case"numeric":default:return/^[0-9]$/.test(K)}});if(L.length===0)return;const F=[...y];let A=N;for(let K=0;K<L.length&&N+K<s;K++)F[N+K]=L[K],A=N+K;$(F);const B=A+1<s?A+1:s-1;(I=C.current[B])==null||I.focus()};return S.jsxs(K9,{...h,"aria-label":a,children:[S.jsx(_9,{children:a}),y.map((k,N)=>S.jsx(z9,{"aria-label":`Pin Input Digit ${N+1}`,isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:S.jsx(j9,{onChange:w,onKeyDown:E,onPaste:P,type:o?"password":"text",ref:v=>v?C.current[N]=v:null,value:k,maxLength:1,name:l&&`${l}-${N}`,"data-pin-input-index":N})},`pin-input-${N}`)),S.jsxs(U9,{"aria-label":"Pin Input",isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:[l&&S.jsx(So,{type:"hidden",name:l,value:b}),e&&S.jsx(G9,{slot:"description",children:e}),S.jsx(H9,{children:t})]})]})}u1.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const W9=_.styled(Q4)`
|
|
940
940
|
display: flex;
|
|
941
|
-
`,
|
|
941
|
+
`,Y9=_.styled.div`
|
|
942
942
|
display: flex;
|
|
943
943
|
flex-direction: column;
|
|
944
944
|
align-items: center;
|
|
945
|
-
`,
|
|
945
|
+
`,q9=_.styled(qt)`
|
|
946
946
|
font-size: 0.875rem;
|
|
947
|
-
`,
|
|
947
|
+
`,Z9=_.styled.circle`
|
|
948
948
|
stroke: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
949
|
-
`,
|
|
949
|
+
`,X9=_.styled.circle`
|
|
950
950
|
stroke: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
|
|
951
951
|
transition: stroke-dashoffset 600ms ease-in-out;
|
|
952
|
-
`,
|
|
952
|
+
`,J9=_.styled.text`
|
|
953
953
|
font-size: 0.875rem;
|
|
954
954
|
fill: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
|
|
955
|
-
`;function
|
|
955
|
+
`;function Q9({label:e,value:t=0,showValue:n=!0,size:r=60,strokeWidth:o=6,...i}){const a=r/2,s=a-o,l=2*Math.PI*s;return S.jsx(W9,{"aria-label":"Loading...",...i,value:t,children:({percentage:d=0})=>S.jsxs(Y9,{children:[S.jsx(q9,{children:e}),S.jsxs("svg",{width:r,height:r,fill:"none",children:[S.jsx(Z9,{cx:a,cy:a,r:s,strokeWidth:o}),S.jsx(X9,{cx:a,cy:a,r:s,strokeWidth:o,strokeDasharray:`${l} ${l}`,strokeDashoffset:(100-d)/100*l,strokeLinecap:"round",transform:`rotate(-90 ${a} ${a})`}),n&&S.jsxs(J9,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[d,"%"]})]})]})})}const eS=_.styled(Q4)`
|
|
956
956
|
width: ${({width:e})=>e||"100%"};
|
|
957
957
|
overflow: hidden;
|
|
958
|
-
`,
|
|
958
|
+
`,tS=_.styled.div`
|
|
959
959
|
display: flex;
|
|
960
960
|
align-items: center;
|
|
961
961
|
justify-content: space-between;
|
|
962
962
|
gap: 0.5rem;
|
|
963
963
|
margin-bottom: 0.3rem;
|
|
964
|
-
`,
|
|
964
|
+
`,nS=_.styled(qt)`
|
|
965
965
|
font-size: 0.875rem;
|
|
966
|
-
`,
|
|
966
|
+
`,rS=_.styled.span`
|
|
967
967
|
font-size: 0.875rem;
|
|
968
|
-
`,
|
|
968
|
+
`,oS=_.styled.div`
|
|
969
969
|
forced-color-adjust: none;
|
|
970
970
|
height: 0.625rem;
|
|
971
971
|
border-radius: 0.3rem;
|
|
972
972
|
overflow: hidden;
|
|
973
973
|
will-change: transform;
|
|
974
974
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
975
|
-
`,
|
|
975
|
+
`,iS=_.styled.div`
|
|
976
976
|
width: ${({width:e,isIndeterminate:t})=>t?"40%":e};
|
|
977
977
|
transition: ${({isIndeterminate:e})=>e?"none":"width 600ms ease-in-out"};
|
|
978
978
|
height: 100%;
|
|
@@ -989,15 +989,15 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
989
989
|
transform: translateX(250px);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
`;function
|
|
992
|
+
`;function aS({label:e,isIndeterminate:t,showValue:n=!0,width:r,...o}){return S.jsx(eS,{...o,width:r,children:({percentage:i,valueText:a})=>S.jsxs(S.Fragment,{children:[S.jsxs(tS,{children:[S.jsx(nS,{children:e}),n&&S.jsx(rS,{children:a})]}),S.jsx(oS,{children:S.jsx(iS,{isIndeterminate:t,width:typeof i=="number"?`${i}%`:""})})]})})}const sS=_.styled(V8)`
|
|
993
993
|
display: flex;
|
|
994
994
|
flex-direction: column;
|
|
995
995
|
width: 100%;
|
|
996
|
-
`,
|
|
996
|
+
`,lS=_.styled.div`
|
|
997
997
|
display: flex;
|
|
998
998
|
position: relative;
|
|
999
999
|
width: 100%;
|
|
1000
|
-
`,
|
|
1000
|
+
`,uS=_.styled(yr(j4))`
|
|
1001
1001
|
padding: 0.4rem 0;
|
|
1002
1002
|
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
1003
1003
|
border-radius: 0.375rem;
|
|
@@ -1005,7 +1005,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
1008
|
+
`,cS=_.styled(So).withConfig({shouldForwardProp:e=>!["isLoading"].includes(e)})`
|
|
1009
1009
|
border: 1px solid
|
|
1010
1010
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
1011
1011
|
font-size: 0.9rem;
|
|
@@ -1063,43 +1063,43 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
1066
|
+
`,dS=_.styled.svg.withConfig({shouldForwardProp:e=>!["isDisabled","isInvalid","isOpen"].includes(e)})`
|
|
1067
1067
|
transition: all ease 200ms;
|
|
1068
1068
|
transform: rotate(${({isOpen:e})=>e?"180deg":"0"});
|
|
1069
1069
|
|
|
1070
1070
|
path {
|
|
1071
1071
|
stroke: ${({isDisabled:e,isInvalid:t,theme:n})=>{var r,o,i,a,s,l;return t?((o=(r=n==null?void 0:n.colors)==null?void 0:r.red)==null?void 0:o[500])??x.colors.red[500]:e?((a=(i=n==null?void 0:n.colors)==null?void 0:i.slate)==null?void 0:a[400])??x.colors.slate[400]:((l=(s=n==null?void 0:n.colors)==null?void 0:s.slate)==null?void 0:l[900])??x.colors.slate[900]}};
|
|
1072
1072
|
}
|
|
1073
|
-
`,
|
|
1073
|
+
`,fS=_.styled.div`
|
|
1074
1074
|
position: absolute;
|
|
1075
1075
|
display: block;
|
|
1076
1076
|
top: 0.5rem;
|
|
1077
1077
|
right: 0.5rem;
|
|
1078
|
-
`,
|
|
1078
|
+
`,pS=_.styled(I4)`
|
|
1079
1079
|
position: absolute;
|
|
1080
1080
|
display: block;
|
|
1081
1081
|
top: 0.5rem;
|
|
1082
1082
|
right: 0;
|
|
1083
1083
|
border: none;
|
|
1084
1084
|
background: none;
|
|
1085
|
-
`,
|
|
1085
|
+
`,hS=_.styled(qt)`
|
|
1086
1086
|
display: flex;
|
|
1087
1087
|
font-size: 0.8rem;
|
|
1088
1088
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
1089
|
-
`;
|
|
1089
|
+
`;_.styled(Ea)`
|
|
1090
1090
|
display: flex;
|
|
1091
1091
|
flex-direction: column;
|
|
1092
1092
|
width: 100%;
|
|
1093
1093
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
|
|
1094
|
-
`;const
|
|
1094
|
+
`;const bS=_.styled(Po)`
|
|
1095
1095
|
display: flex;
|
|
1096
1096
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
|
|
1097
1097
|
font-size: 0.8rem;
|
|
1098
|
-
`,
|
|
1098
|
+
`,mS=_.styled(wr)`
|
|
1099
1099
|
display: flex;
|
|
1100
1100
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
1101
1101
|
font-size: 0.8rem;
|
|
1102
|
-
`,
|
|
1102
|
+
`,gS=_.styled(D8)`
|
|
1103
1103
|
display: flex;
|
|
1104
1104
|
flex: 1 1 auto;
|
|
1105
1105
|
align-items: center;
|
|
@@ -1142,11 +1142,11 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
|
1145
|
+
`;function vS(e){return S.jsx(gS,{...e})}const yS=_.keyframes`
|
|
1146
1146
|
100% {
|
|
1147
1147
|
transform: rotate(360deg);
|
|
1148
1148
|
}
|
|
1149
|
-
|
|
1149
|
+
`,$S=_.keyframes`
|
|
1150
1150
|
0% {
|
|
1151
1151
|
stroke-dasharray: 1, 200;
|
|
1152
1152
|
stroke-dashoffset: 0;
|
|
@@ -1159,7 +1159,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1159
1159
|
stroke-dasharray: 89, 200;
|
|
1160
1160
|
stroke-dashoffset: -124px;
|
|
1161
1161
|
}
|
|
1162
|
-
`,
|
|
1162
|
+
`,xS=_.styled.div`
|
|
1163
1163
|
position: relative;
|
|
1164
1164
|
margin: 0;
|
|
1165
1165
|
width: ${({width:e})=>e}px;
|
|
@@ -1168,8 +1168,8 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1168
1168
|
display: block;
|
|
1169
1169
|
padding-top: 100%;
|
|
1170
1170
|
}
|
|
1171
|
-
`,
|
|
1172
|
-
animation: ${
|
|
1171
|
+
`,wS=_.styled.svg`
|
|
1172
|
+
animation: ${yS} 2s linear infinite;
|
|
1173
1173
|
height: 100%;
|
|
1174
1174
|
transform-origin: center center;
|
|
1175
1175
|
width: 100%;
|
|
@@ -1179,12 +1179,12 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1179
1179
|
left: 0;
|
|
1180
1180
|
right: 0;
|
|
1181
1181
|
margin: auto;
|
|
1182
|
-
`,
|
|
1182
|
+
`,CS=_.styled.circle`
|
|
1183
1183
|
stroke: ${({stroke:e})=>e};
|
|
1184
1184
|
stroke-dasharray: 1, 200;
|
|
1185
1185
|
stroke-dashoffset: 0;
|
|
1186
|
-
animation: ${
|
|
1187
|
-
`;function
|
|
1186
|
+
animation: ${$S} 1.5s ease-in-out infinite;
|
|
1187
|
+
`;function DS({width:e,stroke:t,strokeLinecap:n="round",strokeWidth:r=5,...o}){return S.jsx(xS,{width:e,...o,children:S.jsx(wS,{viewBox:"25 25 50 50",children:S.jsx(CS,{className:"path",cx:"50",cy:"50",fill:"none",r:"20",stroke:t,strokeLinecap:n,strokeMiterlimit:"10",strokeWidth:r})})})}const ES=_.keyframes`
|
|
1188
1188
|
0% {
|
|
1189
1189
|
transform: scale(1);
|
|
1190
1190
|
opacity: 1;
|
|
@@ -1197,19 +1197,19 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1197
1197
|
transform: scale(1);
|
|
1198
1198
|
opacity: 1;
|
|
1199
1199
|
}
|
|
1200
|
-
`,
|
|
1200
|
+
`,Ss=_.styled.span`
|
|
1201
1201
|
background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
1202
1202
|
display: inline-block;
|
|
1203
1203
|
width: 0.5rem;
|
|
1204
1204
|
height: 0.5rem;
|
|
1205
1205
|
margin: 0.1rem;
|
|
1206
1206
|
border-radius: 0.5rem;
|
|
1207
|
-
animation: ${
|
|
1207
|
+
animation: ${ES}
|
|
1208
1208
|
${({speedMultiplier:e})=>.75/e}s
|
|
1209
1209
|
${({i:e,speedMultiplier:t})=>e*.12/t}s infinite
|
|
1210
1210
|
cubic-bezier(0.2, 0.68, 0.18, 1.08);
|
|
1211
1211
|
animation-fill-mode: both;
|
|
1212
|
-
`;function
|
|
1212
|
+
`;function c1(){return S.jsxs("span",{children:[S.jsx(Ss,{speedMultiplier:1,i:1}),S.jsx(Ss,{speedMultiplier:1,i:2}),S.jsx(Ss,{speedMultiplier:1,i:3})]})}function d1({label:e,description:t,errorMessage:n,children:r,placeholder:o,key:i,isLoading:a,...s}){const[l,d]=u.useState("unmounted"),c=u.useRef(null),[f,p]=u.useState(!1);return S.jsxs(sS,{ref:c,onOpenChange:()=>{d(l==="visible"?"hidden":"visible"),p(!f)},isDisabled:s.isDisabled||a,...s,children:[S.jsx(hS,{children:e}),S.jsxs(lS,{children:[S.jsx(cS,{placeholder:o,isLoading:a??!1}),a?S.jsx(fS,{children:S.jsx(c1,{})}):S.jsx(pS,{children:S.jsx(dS,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",isOpen:l==="visible",isDisabled:!!s.isDisabled,isInvalid:!!s.isInvalid,children:S.jsx("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t&&S.jsx(mS,{slot:"description",children:t}),S.jsx(bS,{children:n}),S.jsx(uS,{isOpen:f,style:{width:c.current?c.current.getBoundingClientRect().width:"14rem"},isExiting:l==="hidden",onAnimationComplete:h=>{d(b=>h==="hidden"&&b==="hidden"?"unmounted":b)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:l,children:S.jsx($8,{style:{maxHeight:"20rem",overflowY:"scroll"},children:r})},i)]})}d1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1};const PS=_.styled(pP)`
|
|
1213
1213
|
--label-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
1214
1214
|
--track-background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
1215
1215
|
--thumb-background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
@@ -1235,19 +1235,19 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1235
1235
|
height: 100%;
|
|
1236
1236
|
width: 2rem;
|
|
1237
1237
|
}
|
|
1238
|
-
`,
|
|
1238
|
+
`,SS=_.styled(qt)`
|
|
1239
1239
|
display: flex;
|
|
1240
1240
|
flex: 1 1 0;
|
|
1241
1241
|
font-size: 0.8rem;
|
|
1242
1242
|
color: var(--label-color);
|
|
1243
|
-
`,
|
|
1243
|
+
`,TS=_.styled(bP)`
|
|
1244
1244
|
display: flex;
|
|
1245
1245
|
flex: 0 1 0;
|
|
1246
1246
|
margin-left: auto;
|
|
1247
1247
|
justify-content: flex-end;
|
|
1248
1248
|
font-size: 0.8rem;
|
|
1249
1249
|
color: var(--label-color);
|
|
1250
|
-
`,
|
|
1250
|
+
`,Pl=_.styled(yP)`
|
|
1251
1251
|
background-color: var(--thumb-background);
|
|
1252
1252
|
border: 2px solid var(--thumb-border-color);
|
|
1253
1253
|
forced-color-adjust: none;
|
|
@@ -1265,7 +1265,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1265
1265
|
&[data-dragging] {
|
|
1266
1266
|
background-color: var(--thumb-background-dragging);
|
|
1267
1267
|
}
|
|
1268
|
-
`,
|
|
1268
|
+
`,AS=_.styled(gP)`
|
|
1269
1269
|
width: 100%;
|
|
1270
1270
|
transition: all ease 0.25s;
|
|
1271
1271
|
|
|
@@ -1288,7 +1288,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1288
1288
|
transform: translateY(-50%);
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
|
-
${
|
|
1291
|
+
${Pl} {
|
|
1292
1292
|
top: 50%;
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
@@ -1304,11 +1304,11 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1304
1304
|
transform: translate(-50%);
|
|
1305
1305
|
}
|
|
1306
1306
|
|
|
1307
|
-
${
|
|
1307
|
+
${Pl} {
|
|
1308
1308
|
left: 50%;
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
|
-
`;function
|
|
1311
|
+
`;function f1({label:e,showOutput:t=!0,thumbLabels:n,...r}){return S.jsxs(PS,{...r,children:[S.jsx(SS,{children:e}),t&&S.jsx(TS,{children:({state:o})=>o.values.map((i,a)=>o.getThumbValueLabel(a)).join(" – ")}),S.jsx(AS,{children:({state:o})=>o.values.map((i,a)=>S.jsx(Pl,{index:a,"aria-label":n==null?void 0:n[a]},a))})]})}f1.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const Bt=_.styled.div`
|
|
1312
1312
|
width: 4rem;
|
|
1313
1313
|
height: 2.5rem;
|
|
1314
1314
|
border: 1px solid
|
|
@@ -1327,7 +1327,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
1330
|
+
`,MS=_.styled(wP)`
|
|
1331
1331
|
display: flex;
|
|
1332
1332
|
align-items: center;
|
|
1333
1333
|
gap: 0.5rem;
|
|
@@ -1335,15 +1335,15 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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] ${
|
|
1338
|
+
&[data-hovered] ${Bt} {
|
|
1339
1339
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
1340
1340
|
}
|
|
1341
1341
|
|
|
1342
|
-
&[data-disabled] ${
|
|
1342
|
+
&[data-disabled] ${Bt} {
|
|
1343
1343
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
|
|
1344
1344
|
}
|
|
1345
1345
|
|
|
1346
|
-
&[data-pressed] ${
|
|
1346
|
+
&[data-pressed] ${Bt} {
|
|
1347
1347
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
1348
1348
|
|
|
1349
1349
|
&:before {
|
|
@@ -1351,14 +1351,14 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
1353
|
|
|
1354
|
-
&[data-focused] ${
|
|
1354
|
+
&[data-focused] ${Bt} {
|
|
1355
1355
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
1356
1356
|
outline: 2px solid
|
|
1357
1357
|
${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
|
|
1358
1358
|
}
|
|
1359
1359
|
|
|
1360
1360
|
&[data-selected] {
|
|
1361
|
-
${
|
|
1361
|
+
${Bt} {
|
|
1362
1362
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
1363
1363
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
|
|
1364
1364
|
|
|
@@ -1368,21 +1368,21 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
|
-
&[data-hovered] ${
|
|
1371
|
+
&[data-hovered] ${Bt} {
|
|
1372
1372
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
1373
1373
|
}
|
|
1374
|
-
&[data-focused] ${
|
|
1374
|
+
&[data-focused] ${Bt} {
|
|
1375
1375
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
1376
1376
|
}
|
|
1377
1377
|
|
|
1378
1378
|
&[data-pressed] {
|
|
1379
|
-
${
|
|
1379
|
+
${Bt} {
|
|
1380
1380
|
border-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
1381
1381
|
background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
`;function
|
|
1385
|
+
`;function kS({children:e,...t}){return S.jsxs(MS,{...t,children:[S.jsx(Bt,{}),e]})}const RS=_.styled(EP)`
|
|
1386
1386
|
width: 100%;
|
|
1387
1387
|
display: flex;
|
|
1388
1388
|
flex-direction: column;
|
|
@@ -1391,7 +1391,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1391
1391
|
&[data-orientation='vertical'] {
|
|
1392
1392
|
flex-direction: row;
|
|
1393
1393
|
}
|
|
1394
|
-
`,
|
|
1394
|
+
`,FS=_.styled(TP)`
|
|
1395
1395
|
width: 100%;
|
|
1396
1396
|
position: relative;
|
|
1397
1397
|
display: flex;
|
|
@@ -1405,16 +1405,16 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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,
|
|
1408
|
+
${({variant:e,theme:t})=>{var n,r,o,i,a,s,l,d;switch(e){case"solid":return _.css`
|
|
1409
1409
|
background-color: ${((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[200])??x.colors.slate[200]};
|
|
1410
1410
|
border-radius: 0.75rem;
|
|
1411
1411
|
padding: 0.25rem;
|
|
1412
|
-
`;case"outline":return
|
|
1412
|
+
`;case"outline":return _.css`
|
|
1413
1413
|
border: 2px solid
|
|
1414
1414
|
${((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[200])??x.colors.slate[200]};
|
|
1415
1415
|
border-radius: 0.75rem;
|
|
1416
1416
|
padding: 0.25rem;
|
|
1417
|
-
`;case"underline":return
|
|
1417
|
+
`;case"underline":return _.css`
|
|
1418
1418
|
&[data-orientation='vertical'] {
|
|
1419
1419
|
&:before {
|
|
1420
1420
|
display: block;
|
|
@@ -1436,11 +1436,11 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1436
1436
|
right: 0;
|
|
1437
1437
|
content: '';
|
|
1438
1438
|
height: 1px;
|
|
1439
|
-
background-color: ${((
|
|
1439
|
+
background-color: ${((d=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:d[200])??x.colors.slate[200]};
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
1442
|
`;default:return null}}}
|
|
1443
|
-
`,
|
|
1443
|
+
`,p1=_.styled(MP)`
|
|
1444
1444
|
position: relative;
|
|
1445
1445
|
z-index: 3;
|
|
1446
1446
|
display: flex;
|
|
@@ -1473,21 +1473,21 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1473
1473
|
&[data-disabled] {
|
|
1474
1474
|
opacity: 0.5;
|
|
1475
1475
|
}
|
|
1476
|
-
`,
|
|
1476
|
+
`,BS=_.styled(yr.span).attrs({className:"tab-overlay"})`
|
|
1477
1477
|
position: absolute;
|
|
1478
1478
|
z-index: 1;
|
|
1479
1479
|
|
|
1480
|
-
${({orientation:e,theme:t,variant:n})=>{var r,o,i,a,s,l,c,
|
|
1480
|
+
${({orientation:e,theme:t,variant:n})=>{var r,o,i,a,s,l,d,c,f,p,h;switch(n){case"solid":return _.css`
|
|
1481
1481
|
inset: 0px;
|
|
1482
1482
|
border-radius: 0.5rem;
|
|
1483
1483
|
background-color: ${((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[600])??x.colors.slate[600]};
|
|
1484
1484
|
mix-blend-mode: color;
|
|
1485
|
-
`;case"outline":return
|
|
1485
|
+
`;case"outline":return _.css`
|
|
1486
1486
|
inset: 0px;
|
|
1487
1487
|
border: 2px solid
|
|
1488
1488
|
${((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[800])??x.colors.slate[800]};
|
|
1489
1489
|
border-radius: 0.5rem;
|
|
1490
|
-
`;case"underline":return e==="horizontal"?
|
|
1490
|
+
`;case"underline":return e==="horizontal"?_.css`
|
|
1491
1491
|
bottom: 0;
|
|
1492
1492
|
left: 0;
|
|
1493
1493
|
width: 100%;
|
|
@@ -1495,15 +1495,15 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`:
|
|
1498
|
+
`:_.css`
|
|
1499
1499
|
bottom: 0;
|
|
1500
1500
|
right: 0;
|
|
1501
1501
|
width: 1px;
|
|
1502
1502
|
height: 100%;
|
|
1503
1503
|
border-radius: 0.5rem;
|
|
1504
|
-
background-color: ${((
|
|
1504
|
+
background-color: ${((c=(d=t==null?void 0:t.colors)==null?void 0:d.slate)==null?void 0:c[800])??x.colors.slate[800]};
|
|
1505
1505
|
mix-blend-mode: color;
|
|
1506
|
-
`;case"enclosed":return
|
|
1506
|
+
`;case"enclosed":return _.css`
|
|
1507
1507
|
inset: 0px;
|
|
1508
1508
|
border: 1px solid
|
|
1509
1509
|
${((p=(f=t==null?void 0:t.colors)==null?void 0:f.slate)==null?void 0:p[800])??x.colors.slate[800]};
|
|
@@ -1512,16 +1512,16 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
|
1515
|
+
`;case"base":default:return _.css`
|
|
1516
1516
|
display: none;
|
|
1517
1517
|
`}}}
|
|
1518
|
-
`,
|
|
1518
|
+
`,IS=_.styled(FP)`
|
|
1519
1519
|
display: flex;
|
|
1520
1520
|
flex-grow: 1;
|
|
1521
1521
|
padding: 1rem 0;
|
|
1522
|
-
`,
|
|
1522
|
+
`,Pa=u.createContext("horizontal");function LS({children:e,...t}){return S.jsx(Pa.Provider,{value:t.orientation??"horizontal",children:S.jsx(RS,{...t,children:e})})}function VS({variant:e="base",...t}){const n=u.useContext(Pa);return S.jsx(p1,{orientation:n,variant:e,...t,children:({isSelected:r,isFocusVisible:o})=>S.jsxs(S.Fragment,{children:[t.children,(o||r)&&S.jsx(BS,{orientation:n,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function OS({items:e,children:t,variant:n="base",...r}){const o=u.useContext(Pa);return S.jsx(FS,{items:e,variant:n,...r,children:t||(i=>S.jsx(p1,{orientation:o,children:i.title}))})}function NS({children:e,...t}){return S.jsx(IS,{...t,children:e})}const KS=_.styled(_8)`
|
|
1523
1523
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
|
|
1524
|
-
`,
|
|
1524
|
+
`,jS=_.styled(H4)`
|
|
1525
1525
|
display: flex;
|
|
1526
1526
|
align-items: center;
|
|
1527
1527
|
border: 1px solid
|
|
@@ -1572,7 +1572,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
1575
|
+
`,_S=_.styled(G4)`
|
|
1576
1576
|
padding: 0.25rem;
|
|
1577
1577
|
font-variant-numeric: tabular-nums;
|
|
1578
1578
|
text-align: end;
|
|
@@ -1622,19 +1622,19 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
1625
|
+
`,zS=_.styled(qt)`
|
|
1626
1626
|
display: flex;
|
|
1627
1627
|
font-size: 0.8rem;
|
|
1628
1628
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
1629
|
-
`,
|
|
1629
|
+
`,US=_.styled(Po)`
|
|
1630
1630
|
display: flex;
|
|
1631
1631
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
|
|
1632
1632
|
font-size: 0.8rem;
|
|
1633
|
-
`,
|
|
1633
|
+
`,HS=_.styled(wr)`
|
|
1634
1634
|
display: flex;
|
|
1635
1635
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
|
|
1636
1636
|
font-size: 0.8rem;
|
|
1637
|
-
`;function
|
|
1637
|
+
`;function h1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(KS,{...r,children:[S.jsx(zS,{children:e}),S.jsx(jS,{children:o=>S.jsx(_S,{segment:o})}),S.jsx(HS,{slot:"description",children:t}),S.jsx(US,{children:n})]})}h1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const GS=_.styled(NP)`
|
|
1638
1638
|
display: flex;
|
|
1639
1639
|
align-items: center;
|
|
1640
1640
|
font-size: 0.9rem;
|
|
@@ -1668,7 +1668,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
|
1671
|
+
`;function WS({children:e,size:t="md",variant:n="solid",...r}){return S.jsx(GS,{...r,size:t,variant:n,children:e})}var YS=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(t==null?void 0:t[e])||{}},qS=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],gp=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e};function ZS(e){const[t,n]=Rh(e,qc.variantKeys),{ref:r,as:o,isOpen:i,content:a,children:s,defaultOpen:l,onOpenChange:d,isDisabled:c,trigger:f,shouldFlip:p=!0,containerPadding:h=12,placement:b="top",delay:g=0,closeDelay:y=500,showArrow:$=!1,offset:C=7,crossOffset:w=0,isDismissable:E,shouldCloseOnBlur:P=!0,portalContainer:k,isKeyboardDismissDisabled:N=!1,updatePositionDeps:v=[],shouldCloseOnInteractOutside:L,className:F,onClose:A,motionProps:B,classNames:R,...I}=t,K=o||"div",V=kE({delay:g,closeDelay:y,isDisabled:c,defaultOpen:l,isOpen:i,onOpenChange:Be=>{d==null||d(Be),Be||A==null||A()}}),T=u.useRef(null),G=u.useRef(null),Y=u.useId(),H=V.isOpen&&!c;u.useImperativeHandle(r,()=>k$(G));const{triggerProps:D,tooltipProps:O}=oE({isDisabled:c,trigger:f},V,T),{tooltipProps:W}=rE({isOpen:H,...X(t,O)},V),{overlayProps:J,placement:Q,updatePosition:re}=Ph({isOpen:H,targetRef:T,placement:qS(b),overlayRef:G,offset:$?C+3:C,crossOffset:w,shouldFlip:p,containerPadding:h});c0(()=>{v.length&&re()},v);const{overlayProps:z}=ou({isOpen:H,onClose:V.close,isDismissable:E,shouldCloseOnBlur:P,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:L},G),q=u.useMemo(()=>{var Be,Ue,xt;return qc({...n,radius:(Be=e==null?void 0:e.radius)!=null?Be:"md",size:(Ue=e==null?void 0:e.size)!=null?Ue:"md",shadow:(xt=e==null?void 0:e.shadow)!=null?xt:"sm"})},[Sp(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),te=u.useCallback((Be={},Ue=null)=>({...X(D,Be),ref:V$(Ue,T),"aria-describedby":H?Y:void 0}),[D,H,Y,V]),ae=u.useCallback(()=>({ref:G,"data-slot":"base","data-open":Et(H),"data-arrow":Et($),"data-disabled":Et(c),"data-placement":gp(Q,b),...X(W,z,I),style:X(J.style,I.style,t.style),className:q.base({class:R==null?void 0:R.base}),id:Y}),[q,H,$,c,Q,b,W,z,I,J,t,Y]),se=u.useCallback(()=>({"data-slot":"content","data-open":Et(H),"data-arrow":Et($),"data-disabled":Et(c),"data-placement":gp(Q,b),className:q.content({class:sr(R==null?void 0:R.content,F)})}),[q,H,$,c,Q,b,R]);return{Component:K,content:a,children:s,isOpen:H,triggerRef:T,showArrow:$,portalContainer:k,placement:b,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:c,motionProps:B,getTooltipContentProps:se,getTriggerProps:te,getTooltipProps:ae}}var Wn={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},XS={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:Wn.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Wn.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Wn.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{opacity:0,transition:{duration:.3,ease:Wn.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},b1=aa((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:a,placement:s,disableAnimation:l,motionProps:d,getTriggerProps:c,getTooltipProps:f,getTooltipContentProps:p}=ZS({...e,ref:t});let h;try{if(u.Children.count(r)!==1)throw new Error;if(!u.isValidElement(r))h=S.jsx("p",{...c(),children:r});else{const E=r;h=u.cloneElement(E,c(E.props,E.ref))}}catch{h=S.jsx("span",{}),F$("Tooltip must have only one child node. Please, check your code.")}const{ref:b,id:g,style:y,...$}=f(),C=S.jsx("div",{ref:b,id:g,style:y,children:S.jsx(YC,{features:qC,children:S.jsx(KC.div,{animate:"enter",exit:"exit",initial:"exit",variants:XS.scaleSpring,...X(d,$),style:{...YS(s)},children:S.jsx(n,{...p(),children:o})})})});return S.jsxs(S.Fragment,{children:[h,l&&i?S.jsx(Kd,{portalContainer:a,children:S.jsx("div",{ref:b,id:g,style:y,...$,children:S.jsx(n,{...p(),children:o})})}):S.jsx(sm,{children:i?S.jsx(Kd,{portalContainer:a,children:C}):null})]})});b1.displayName="NextUI.Tooltip";var JS=b1;const QS=_.styled(JS).attrs({className:"tooltip"})`
|
|
1672
1672
|
z-index: 0;
|
|
1673
1673
|
position: relative;
|
|
1674
1674
|
background-color: transparent;
|
|
@@ -1789,7 +1789,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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 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`
|
|
1792
|
+
`;function eT({children:e,...t}){return S.jsx(QS,{classNames:{base:["tooltip"],content:["tooltip-content"]},...t,children:e})}function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Se.apply(this,arguments)}function m1(e,t=[]){let n=[];function r(i,a){const s=u.createContext(a),l=n.length;n=[...n,a];function d(f){const{scope:p,children:h,...b}=f,g=(p==null?void 0:p[e][l])||s,y=u.useMemo(()=>b,Object.values(b));return u.createElement(g.Provider,{value:y},h)}function c(f,p){const h=(p==null?void 0:p[e][l])||s,b=u.useContext(h);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,c]}const o=()=>{const i=n.map(a=>u.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,tT(o,...t)]}function tT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:d})=>{const f=l(i)[`__scope${d}`];return{...s,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ie(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function nT(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function sc(...e){return t=>e.forEach(n=>nT(n,t))}function Gt(...e){return u.useCallback(sc(...e),e)}const qi=u.forwardRef((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(oT);if(i){const a=i.props.children,s=o.map(l=>l===i?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:l);return u.createElement(Sl,Se({},r,{ref:t}),u.isValidElement(a)?u.cloneElement(a,void 0,s):null)}return u.createElement(Sl,Se({},r,{ref:t}),n)});qi.displayName="Slot";const Sl=u.forwardRef((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...iT(r,n.props),ref:t?sc(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});Sl.displayName="SlotClone";const rT=({children:e})=>u.createElement(u.Fragment,null,e);function oT(e){return u.isValidElement(e)&&e.type===rT}function iT(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const aT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ht=aT.reduce((e,t)=>{const n=u.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?qi:t;return u.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),u.createElement(s,Se({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Tl(e,t){e&&Wt.flushSync(()=>e.dispatchEvent(t))}function dt(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function sT({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=lT({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=dt(n),l=u.useCallback(d=>{if(i){const f=typeof d=="function"?d(e):d;f!==e&&s(f)}else o(d)},[i,e,o,s]);return[a,l]}function lT({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=dt(t);return u.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const uT=u.createContext(void 0);function cT(e){const t=u.useContext(uT);return e||t||"ltr"}const fr=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{};function dT(e,t){return u.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const ko=e=>{const{present:t,children:n}=e,r=fT(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=Gt(r.ref,o.ref);return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};ko.displayName="Presence";function fT(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[s,l]=dT(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=li(r.current);i.current=s==="mounted"?d:"none"},[s]),fr(()=>{const d=r.current,c=o.current;if(c!==e){const p=i.current,h=li(d);e?l("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(c&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fr(()=>{if(t){const d=f=>{const h=li(r.current).includes(f.animationName);f.target===t&&h&&Wt.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=li(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function li(e){return(e==null?void 0:e.animationName)||"none"}const pT=Sn["useId".toString()]||(()=>{});let hT=0;function g1(e){const[t,n]=Sn.useState(pT());return fr(()=>{e||n(r=>r??String(hT++))},[e]),e||(t?`radix-${t}`:"")}function v1(e){const t=e+"CollectionProvider",[n,r]=m1(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:b,children:g}=h,y=u.useRef(null),$=u.useRef(new Map).current;return u.createElement(o,{scope:b,itemMap:$,collectionRef:y},g)},s=e+"CollectionSlot",l=u.forwardRef((h,b)=>{const{scope:g,children:y}=h,$=i(s,g),C=Gt(b,$.collectionRef);return u.createElement(qi,{ref:C},y)}),d=e+"CollectionItemSlot",c="data-radix-collection-item",f=u.forwardRef((h,b)=>{const{scope:g,children:y,...$}=h,C=u.useRef(null),w=Gt(b,C),E=i(d,g);return u.useEffect(()=>(E.itemMap.set(C,{ref:C,...$}),()=>void E.itemMap.delete(C))),u.createElement(qi,{[c]:"",ref:w},y)});function p(h){const b=i(e+"CollectionConsumer",h);return u.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const $=Array.from(y.querySelectorAll(`[${c}]`));return Array.from(b.itemMap.values()).sort((E,P)=>$.indexOf(E.ref.current)-$.indexOf(P.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}function bT(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Al="dismissableLayer.update",mT="dismissableLayer.pointerDownOutside",gT="dismissableLayer.focusOutside";let vp;const vT=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yT=u.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...d}=e,c=u.useContext(vT),[f,p]=u.useState(null),h=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=u.useState({}),g=Gt(t,v=>p(v)),y=Array.from(c.layers),[$]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),C=y.indexOf($),w=f?y.indexOf(f):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,P=w>=C,k=$T(v=>{const L=v.target,F=[...c.branches].some(A=>A.contains(L));!P||F||(i==null||i(v),s==null||s(v),v.defaultPrevented||l==null||l())},h),N=xT(v=>{const L=v.target;[...c.branches].some(A=>A.contains(L))||(a==null||a(v),s==null||s(v),v.defaultPrevented||l==null||l())},h);return bT(v=>{w===c.layers.size-1&&(o==null||o(v),!v.defaultPrevented&&l&&(v.preventDefault(),l()))},h),u.useEffect(()=>{if(f)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(vp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),yp(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=vp)}},[f,h,r,c]),u.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),yp())},[f,c]),u.useEffect(()=>{const v=()=>b({});return document.addEventListener(Al,v),()=>document.removeEventListener(Al,v)},[]),u.createElement(ht.div,Se({},d,{ref:g,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:Ie(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Ie(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ie(e.onPointerDownCapture,k.onPointerDownCapture)}))});function $T(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){y1(mT,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function xT(e,t=globalThis==null?void 0:globalThis.document){const n=dt(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&y1(gT,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function yp(){const e=new CustomEvent(Al);document.dispatchEvent(e)}function y1(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Tl(o,i):o.dispatchEvent(i)}function wT(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const CT=u.forwardRef((e,t)=>u.createElement(ht.span,Se({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),DT=CT,Ro="NavigationMenu",[lc,$1,ET]=v1(Ro),[Ml,PT,ST]=v1(Ro),[uc,EA]=m1(Ro,[ET,ST]),[TT,$t]=uc(Ro),[AT,MT]=uc(Ro),kT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:d,...c}=e,[f,p]=u.useState(null),h=Gt(t,L=>p(L)),b=cT(d),g=u.useRef(0),y=u.useRef(0),$=u.useRef(0),[C,w]=u.useState(!0),[E="",P]=sT({prop:r,onChange:L=>{const F=L!=="",A=s>0;F?(window.clearTimeout($.current),A&&w(!1)):(window.clearTimeout($.current),$.current=window.setTimeout(()=>w(!0),s)),o==null||o(L)},defaultProp:i}),k=u.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>P(""),150)},[P]),N=u.useCallback(L=>{window.clearTimeout(y.current),P(L)},[P]),v=u.useCallback(L=>{E===L?window.clearTimeout(y.current):g.current=window.setTimeout(()=>{window.clearTimeout(y.current),P(L)},a)},[E,P,a]);return u.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(y.current),window.clearTimeout($.current)},[]),u.createElement(RT,{scope:n,isRootMenu:!0,value:E,dir:b,orientation:l,rootNavigationMenu:f,onTriggerEnter:L=>{window.clearTimeout(g.current),C?v(L):N(L)},onTriggerLeave:()=>{window.clearTimeout(g.current),k()},onContentEnter:()=>window.clearTimeout(y.current),onContentLeave:k,onItemSelect:L=>{P(F=>F===L?"":L)},onItemDismiss:()=>P("")},u.createElement(ht.nav,Se({"aria-label":"Main","data-orientation":l,dir:b},c,{ref:h})))}),RT=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:s,onItemSelect:l,onItemDismiss:d,onTriggerEnter:c,onTriggerLeave:f,onContentEnter:p,onContentLeave:h}=e,[b,g]=u.useState(null),[y,$]=u.useState(new Map),[C,w]=u.useState(null);return u.createElement(TT,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:wT(s),baseId:g1(),dir:o,orientation:i,viewport:b,onViewportChange:g,indicatorTrack:C,onIndicatorTrackChange:w,onTriggerEnter:dt(c),onTriggerLeave:dt(f),onContentEnter:dt(p),onContentLeave:dt(h),onItemSelect:dt(l),onItemDismiss:dt(d),onViewportContentChange:u.useCallback((E,P)=>{$(k=>(k.set(E,P),new Map(k)))},[]),onViewportContentRemove:u.useCallback(E=>{$(P=>P.has(E)?(P.delete(E),new Map(P)):P)},[])},u.createElement(lc.Provider,{scope:t},u.createElement(AT,{scope:t,items:y},a)))},FT="NavigationMenuList",BT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(FT,n),i=u.createElement(ht.ul,Se({"data-orientation":o.orientation},r,{ref:t}));return u.createElement(ht.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},u.createElement(lc.Slot,{scope:n},o.isRootMenu?u.createElement(E1,{asChild:!0},i):i))}),IT="NavigationMenuItem",[LT,x1]=uc(IT),VT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=g1(),a=r||i||"LEGACY_REACT_AUTO_VALUE",s=u.useRef(null),l=u.useRef(null),d=u.useRef(null),c=u.useRef(()=>{}),f=u.useRef(!1),p=u.useCallback((b="start")=>{if(s.current){c.current();const g=kl(s.current);g.length&&cc(b==="start"?g:g.reverse())}},[]),h=u.useCallback(()=>{if(s.current){const b=kl(s.current);b.length&&(c.current=YT(b))}},[]);return u.createElement(LT,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:d,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h},u.createElement(ht.li,Se({},o,{ref:t})))}),$p="NavigationMenuTrigger",OT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=$t($p,e.__scopeNavigationMenu),a=x1($p,e.__scopeNavigationMenu),s=u.useRef(null),l=Gt(s,a.triggerRef,t),d=S1(i.baseId,a.value),c=T1(i.baseId,a.value),f=u.useRef(!1),p=u.useRef(!1),h=a.value===i.value;return u.createElement(u.Fragment,null,u.createElement(lc.ItemSlot,{scope:n,value:a.value},u.createElement(P1,{asChild:!0},u.createElement(ht.button,Se({id:d,disabled:r,"data-disabled":r?"":void 0,"data-state":dc(h),"aria-expanded":h,"aria-controls":c},o,{ref:l,onPointerEnter:Ie(e.onPointerEnter,()=>{p.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:Ie(e.onPointerMove,Zi(()=>{r||p.current||a.wasEscapeCloseRef.current||f.current||(i.onTriggerEnter(a.value),f.current=!0)})),onPointerLeave:Ie(e.onPointerLeave,Zi(()=>{r||(i.onTriggerLeave(),f.current=!1)})),onClick:Ie(e.onClick,()=>{i.onItemSelect(a.value),p.current=h}),onKeyDown:Ie(e.onKeyDown,b=>{const y={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&b.key===y&&(a.onEntryKeyDown(),b.preventDefault())})})))),h&&u.createElement(u.Fragment,null,u.createElement(DT,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:b=>{const g=a.contentRef.current,y=b.relatedTarget,$=y===s.current,C=g==null?void 0:g.contains(y);($||!C)&&a.onFocusProxyEnter($?"start":"end")}}),i.viewport&&u.createElement("span",{"aria-owns":c})))}),xp="navigationMenu.linkSelect",NT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return u.createElement(P1,{asChild:!0},u.createElement(ht.a,Se({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:Ie(e.onClick,a=>{const s=a.target,l=new CustomEvent(xp,{bubbles:!0,cancelable:!0});if(s.addEventListener(xp,d=>o==null?void 0:o(d),{once:!0}),Tl(s,l),!l.defaultPrevented&&!a.metaKey){const d=new CustomEvent(yi,{bubbles:!0,cancelable:!0});Tl(s,d)}},{checkForDefaultPrevented:!1})})))}),w1="NavigationMenuIndicator",KT=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(w1,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?Wt.createPortal(u.createElement(ko,{present:n||i},u.createElement(jT,Se({},r,{ref:t}))),o.indicatorTrack):null}),jT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(w1,n),i=$1(n),[a,s]=u.useState(null),[l,d]=u.useState(null),c=o.orientation==="horizontal",f=!!o.value;u.useEffect(()=>{var h;const g=(h=i().find(y=>y.value===o.value))===null||h===void 0?void 0:h.ref.current;g&&s(g)},[i,o.value]);const p=()=>{a&&d({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return Rl(a,p),Rl(o.indicatorTrack,p),l?u.createElement(ht.div,Se({"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null}),ho="NavigationMenuContent",_T=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$t(ho,e.__scopeNavigationMenu),i=x1(ho,e.__scopeNavigationMenu),a=Gt(i.contentRef,t),s=i.value===o.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?u.createElement(zT,Se({forceMount:n},l,{ref:a})):u.createElement(ko,{present:n||s},u.createElement(C1,Se({"data-state":dc(s)},l,{ref:a,onPointerEnter:Ie(e.onPointerEnter,o.onContentEnter),onPointerLeave:Ie(e.onPointerLeave,Zi(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),zT=u.forwardRef((e,t)=>{const n=$t(ho,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return fr(()=>{r(e.value,{ref:t,...e})},[e,t,r]),fr(()=>()=>o(e.value),[e.value,o]),null}),yi="navigationMenu.rootContentDismiss",C1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...d}=e,c=$t(ho,n),f=u.useRef(null),p=Gt(f,t),h=S1(c.baseId,r),b=T1(c.baseId,r),g=$1(n),y=u.useRef(null),{onItemDismiss:$}=c;u.useEffect(()=>{const w=f.current;if(c.isRootMenu&&w){const E=()=>{var P;$(),s(),w.contains(document.activeElement)&&((P=o.current)===null||P===void 0||P.focus())};return w.addEventListener(yi,E),()=>w.removeEventListener(yi,E)}},[c.isRootMenu,e.value,o,$,s]);const C=u.useMemo(()=>{const E=g().map(F=>F.value);c.dir==="rtl"&&E.reverse();const P=E.indexOf(c.value),k=E.indexOf(c.previousValue),N=r===c.value,v=k===E.indexOf(r);if(!N&&!v)return y.current;const L=(()=>{if(P!==k){if(N&&k!==-1)return P>k?"from-end":"from-start";if(v&&P!==-1)return P>k?"to-start":"to-end"}return null})();return y.current=L,L},[c.previousValue,c.value,c.dir,g,r]);return u.createElement(E1,{asChild:!0},u.createElement(yT,Se({id:b,"aria-labelledby":h,"data-motion":C,"data-orientation":c.orientation},d,{ref:p,onDismiss:()=>{var w;const E=new Event(yi,{bubbles:!0,cancelable:!0});(w=f.current)===null||w===void 0||w.dispatchEvent(E)},onFocusOutside:Ie(e.onFocusOutside,w=>{var E;l();const P=w.target;(E=c.rootNavigationMenu)!==null&&E!==void 0&&E.contains(P)&&w.preventDefault()}),onPointerDownOutside:Ie(e.onPointerDownOutside,w=>{var E;const P=w.target,k=g().some(v=>{var L;return(L=v.ref.current)===null||L===void 0?void 0:L.contains(P)}),N=c.isRootMenu&&((E=c.viewport)===null||E===void 0?void 0:E.contains(P));(k||N||!c.isRootMenu)&&w.preventDefault()}),onKeyDown:Ie(e.onKeyDown,w=>{const E=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!E){const N=kl(w.currentTarget),v=document.activeElement,L=N.findIndex(B=>B===v),A=w.shiftKey?N.slice(0,L).reverse():N.slice(L+1,N.length);if(cc(A))w.preventDefault();else{var k;(k=i.current)===null||k===void 0||k.focus()}}}),onEscapeKeyDown:Ie(e.onEscapeKeyDown,w=>{a.current=!0})})))}),D1="NavigationMenuViewport",UT=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!$t(D1,e.__scopeNavigationMenu).value;return u.createElement(ko,{present:n||i},u.createElement(HT,Se({},r,{ref:t})))}),HT=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=$t(D1,n),a=Gt(t,i.onViewportChange),s=MT(ho,e.__scopeNavigationMenu),[l,d]=u.useState(null),[c,f]=u.useState(null),p=l?(l==null?void 0:l.width)+"px":void 0,h=l?(l==null?void 0:l.height)+"px":void 0,b=!!i.value,g=b?i.value:i.previousValue;return Rl(c,()=>{c&&d({width:c.offsetWidth,height:c.offsetHeight})}),u.createElement(ht.div,Se({"data-state":dc(b),"data-orientation":i.orientation},o,{ref:a,style:{pointerEvents:!b&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...o.style},onPointerEnter:Ie(e.onPointerEnter,i.onContentEnter),onPointerLeave:Ie(e.onPointerLeave,Zi(i.onContentLeave))}),Array.from(s.items).map(([$,{ref:C,forceMount:w,...E}])=>{const P=g===$;return u.createElement(ko,{key:$,present:w||P},u.createElement(C1,Se({},E,{ref:sc(C,k=>{P&&k&&f(k)})})))}))}),GT="FocusGroup",E1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=$t(GT,n);return u.createElement(Ml.Provider,{scope:n},u.createElement(Ml.Slot,{scope:n},u.createElement(ht.div,Se({dir:o.dir},r,{ref:t}))))}),wp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],WT="FocusGroupItem",P1=u.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=PT(n),i=$t(WT,n);return u.createElement(Ml.ItemSlot,{scope:n},u.createElement(ht.button,Se({},r,{ref:t,onKeyDown:Ie(e.onKeyDown,a=>{if(["Home","End",...wp].includes(a.key)){let l=o().map(f=>f.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),wp.includes(a.key)){const f=l.indexOf(a.currentTarget);l=l.slice(f+1)}setTimeout(()=>cc(l)),a.preventDefault()}})})))});function kl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function YT(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Rl(e,t){const n=dt(t);fr(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function dc(e){return e?"open":"closed"}function S1(e,t){return`${e}-trigger-${t}`}function T1(e,t){return`${e}-content-${t}`}function Zi(e){return t=>t.pointerType==="mouse"?e(t):void 0}const qT=kT,ZT=BT,Ts=VT,XT=OT,JT=NT,QT=KT,eA=_T,tA=UT,nA=_.keyframes`
|
|
1793
1793
|
from {
|
|
1794
1794
|
opacity: 0;
|
|
1795
1795
|
transform: translateX(200px);
|
|
@@ -1798,7 +1798,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1798
1798
|
opacity: 1;
|
|
1799
1799
|
transform: translateX(0);
|
|
1800
1800
|
}
|
|
1801
|
-
`,
|
|
1801
|
+
`,rA=_.keyframes`
|
|
1802
1802
|
from {
|
|
1803
1803
|
opacity: 0;
|
|
1804
1804
|
transform: translateX(-200px);
|
|
@@ -1807,7 +1807,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1807
1807
|
opacity: 1;
|
|
1808
1808
|
transform: translateX(0);
|
|
1809
1809
|
}
|
|
1810
|
-
`,
|
|
1810
|
+
`,oA=_.keyframes`
|
|
1811
1811
|
from {
|
|
1812
1812
|
opacity: 1;
|
|
1813
1813
|
transform: translateX(0);
|
|
@@ -1816,7 +1816,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1816
1816
|
opacity: 0;
|
|
1817
1817
|
transform: translateX(200px);
|
|
1818
1818
|
}
|
|
1819
|
-
`,
|
|
1819
|
+
`,iA=_.keyframes`
|
|
1820
1820
|
from {
|
|
1821
1821
|
opacity: 1;
|
|
1822
1822
|
transform: translateX(0);
|
|
@@ -1825,7 +1825,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1825
1825
|
opacity: 0;
|
|
1826
1826
|
transform: translateX(-200px);
|
|
1827
1827
|
}
|
|
1828
|
-
`,
|
|
1828
|
+
`,aA=_.keyframes`
|
|
1829
1829
|
from {
|
|
1830
1830
|
opacity: 0;
|
|
1831
1831
|
transform: rotateX(-30deg) scale(0.9);
|
|
@@ -1834,7 +1834,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1834
1834
|
opacity: 1;
|
|
1835
1835
|
transform: rotateX(0deg) scale(1);
|
|
1836
1836
|
}
|
|
1837
|
-
`,
|
|
1837
|
+
`,sA=_.keyframes`
|
|
1838
1838
|
from {
|
|
1839
1839
|
opacity: 1;
|
|
1840
1840
|
transform: rotateX(0deg) scale(1);
|
|
@@ -1843,38 +1843,38 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1843
1843
|
opacity: 0;
|
|
1844
1844
|
transform: rotateX(-10deg) scale(0.95);
|
|
1845
1845
|
}
|
|
1846
|
-
`,
|
|
1846
|
+
`,lA=_.keyframes`
|
|
1847
1847
|
from {
|
|
1848
1848
|
opacity: 0;
|
|
1849
1849
|
}
|
|
1850
1850
|
to {
|
|
1851
1851
|
opacity: 1;
|
|
1852
1852
|
}
|
|
1853
|
-
`,
|
|
1853
|
+
`,uA=_.keyframes`
|
|
1854
1854
|
from {
|
|
1855
1855
|
opacity: 1;
|
|
1856
1856
|
}
|
|
1857
1857
|
to {
|
|
1858
1858
|
opacity: 0;
|
|
1859
1859
|
}
|
|
1860
|
-
`,
|
|
1860
|
+
`,A1=_.styled.svg`
|
|
1861
1861
|
position: relative;
|
|
1862
1862
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
|
|
1863
1863
|
top: 1px;
|
|
1864
1864
|
transition: transform 200ms ease;
|
|
1865
|
-
`,
|
|
1865
|
+
`,cA=_.styled(qT)`
|
|
1866
1866
|
position: relative;
|
|
1867
1867
|
display: flex;
|
|
1868
1868
|
width: 100%;
|
|
1869
1869
|
justify-content: center;
|
|
1870
1870
|
z-index: 1;
|
|
1871
|
-
`,
|
|
1871
|
+
`,dA=_.styled(ZT)`
|
|
1872
1872
|
display: flex;
|
|
1873
1873
|
justify-content: center;
|
|
1874
1874
|
list-style: none;
|
|
1875
1875
|
margin: 0;
|
|
1876
1876
|
padding: 0;
|
|
1877
|
-
`,
|
|
1877
|
+
`,Cp=_.styled(XT)`
|
|
1878
1878
|
display: flex;
|
|
1879
1879
|
align-items: center;
|
|
1880
1880
|
justify-content: space-between;
|
|
@@ -1901,10 +1901,10 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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'] > ${
|
|
1904
|
+
&[data-state='open'] > ${A1} {
|
|
1905
1905
|
transform: rotate(-180deg);
|
|
1906
1906
|
}
|
|
1907
|
-
`,
|
|
1907
|
+
`,Fl=_.styled(JT)`
|
|
1908
1908
|
display: block;
|
|
1909
1909
|
text-decoration: none;
|
|
1910
1910
|
font-size: 0.9rem;
|
|
@@ -1929,7 +1929,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
1932
|
+
`,Dp=_.styled(eA)`
|
|
1933
1933
|
position: absolute;
|
|
1934
1934
|
top: 0;
|
|
1935
1935
|
left: 0;
|
|
@@ -1938,22 +1938,22 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1938
1938
|
animation-timing-function: ease;
|
|
1939
1939
|
|
|
1940
1940
|
&[data-motion='from-start'] {
|
|
1941
|
-
animation-name: ${
|
|
1941
|
+
animation-name: ${rA};
|
|
1942
1942
|
}
|
|
1943
1943
|
&[data-motion='from-end'] {
|
|
1944
|
-
animation-name: ${
|
|
1944
|
+
animation-name: ${nA};
|
|
1945
1945
|
}
|
|
1946
1946
|
&[data-motion='to-start'] {
|
|
1947
|
-
animation-name: ${
|
|
1947
|
+
animation-name: ${iA};
|
|
1948
1948
|
}
|
|
1949
1949
|
&[data-motion='to-end'] {
|
|
1950
|
-
animation-name: ${
|
|
1950
|
+
animation-name: ${oA};
|
|
1951
1951
|
}
|
|
1952
1952
|
|
|
1953
1953
|
@media only screen and (min-width: 600px) {
|
|
1954
1954
|
width: auto;
|
|
1955
1955
|
}
|
|
1956
|
-
`,
|
|
1956
|
+
`,fA=_.styled(QT)`
|
|
1957
1957
|
display: flex;
|
|
1958
1958
|
align-items: flex-end;
|
|
1959
1959
|
justify-content: center;
|
|
@@ -1964,13 +1964,13 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1964
1964
|
transition: width, transform 250ms ease;
|
|
1965
1965
|
|
|
1966
1966
|
&[data-state='visible'] {
|
|
1967
|
-
animation: ${
|
|
1967
|
+
animation: ${lA} 200ms ease;
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
1970
|
&[data-state='hidden'] {
|
|
1971
|
-
animation: ${
|
|
1971
|
+
animation: ${uA} 200ms ease;
|
|
1972
1972
|
}
|
|
1973
|
-
`,
|
|
1973
|
+
`,pA=_.styled(tA)`
|
|
1974
1974
|
position: relative;
|
|
1975
1975
|
transform-origin: top center;
|
|
1976
1976
|
margin-top: 10px;
|
|
@@ -1983,18 +1983,18 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
1983
1983
|
transition: width, height, 300ms ease;
|
|
1984
1984
|
|
|
1985
1985
|
&[data-state='open'] {
|
|
1986
|
-
animation: ${
|
|
1986
|
+
animation: ${aA} 200ms ease;
|
|
1987
1987
|
}
|
|
1988
1988
|
|
|
1989
1989
|
&[data-state='closed'] {
|
|
1990
|
-
animation: ${
|
|
1990
|
+
animation: ${sA} 200ms ease;
|
|
1991
1991
|
}
|
|
1992
1992
|
|
|
1993
1993
|
@media only screen and (min-width: 600px) {
|
|
1994
1994
|
width: var(--radix-navigation-menu-viewport-width);
|
|
1995
1995
|
}
|
|
1996
1996
|
}
|
|
1997
|
-
`,
|
|
1997
|
+
`,Ep=_.styled.ul`
|
|
1998
1998
|
display: grid;
|
|
1999
1999
|
padding: 22px;
|
|
2000
2000
|
margin: 0;
|
|
@@ -2012,7 +2012,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
2012
2012
|
grid-template-rows: repeat(3, 1fr);
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
|
-
`,
|
|
2015
|
+
`,hA=_.styled(xa)`
|
|
2016
2016
|
display: block;
|
|
2017
2017
|
outline: none;
|
|
2018
2018
|
text-decoration: none;
|
|
@@ -2031,16 +2031,16 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
`,
|
|
2034
|
+
`,bA=_.styled.div`
|
|
2035
2035
|
font-weight: 500;
|
|
2036
2036
|
line-height: 1.2;
|
|
2037
2037
|
margin-bottom: 5px;
|
|
2038
2038
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
|
|
2039
|
-
`,
|
|
2039
|
+
`,mA=_.styled.p`
|
|
2040
2040
|
color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
|
|
2041
2041
|
line-height: 1.4;
|
|
2042
2042
|
font-weight: initial;
|
|
2043
|
-
`,
|
|
2043
|
+
`,gA=_.styled(xa)`
|
|
2044
2044
|
display: flex;
|
|
2045
2045
|
justify-content: flex-end;
|
|
2046
2046
|
flex-direction: column;
|
|
@@ -2063,18 +2063,18 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(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
|
-
|
|
2066
|
+
`,vA=_.styled.div`
|
|
2067
2067
|
color: white;
|
|
2068
2068
|
font-size: 18px;
|
|
2069
2069
|
font-weight: 500;
|
|
2070
2070
|
line-height: 1.2;
|
|
2071
2071
|
margin-top: 16px;
|
|
2072
2072
|
margin-bottom: 7px;
|
|
2073
|
-
`,
|
|
2073
|
+
`,yA=_.styled.p`
|
|
2074
2074
|
color: white;
|
|
2075
2075
|
font-size: 14px;
|
|
2076
2076
|
line-height: 1.3;
|
|
2077
|
-
|
|
2077
|
+
`,$A=_.styled.div`
|
|
2078
2078
|
position: absolute;
|
|
2079
2079
|
display: flex;
|
|
2080
2080
|
justify-content: center;
|
|
@@ -2082,7 +2082,7 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
2082
2082
|
top: 100%;
|
|
2083
2083
|
left: 0;
|
|
2084
2084
|
perspective: 2000px;
|
|
2085
|
-
`,
|
|
2085
|
+
`,xA=_.styled.div`
|
|
2086
2086
|
position: relative;
|
|
2087
2087
|
top: 70%;
|
|
2088
2088
|
background-color: white;
|
|
@@ -2090,4 +2090,4 @@ Check the top-level render call using <`+_+">.")}return M}function Rc(m,M){if(!(
|
|
|
2090
2090
|
height: 10px;
|
|
2091
2091
|
transform: rotate(45deg);
|
|
2092
2092
|
border-top-left-radius: 2px;
|
|
2093
|
-
`;function
|
|
2093
|
+
`;function Bl({className:e,...t}){return S.jsx(A1,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:S.jsx("path",{d:"M6 9L12 15L18 9",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}Bl.defaultProps={className:void 0};const Ct=u.forwardRef(({className:e,children:t,title:n,...r},o)=>S.jsx("li",{children:S.jsx(Fl,{asChild:!0,children:S.jsxs(hA,{className:`${e??""}`,...r,ref:o,children:[S.jsx(bA,{children:n}),S.jsx(mA,{children:t})]})})}));Ct.defaultProps={className:void 0,href:void 0,title:void 0};function wA(){return S.jsxs(cA,{children:[S.jsxs(dA,{children:[S.jsxs(Ts,{children:[S.jsxs(Cp,{children:["Learn ",S.jsx(Bl,{"aria-hidden":!0})]}),S.jsx(Dp,{children:S.jsxs(Ep,{className:"one",children:[S.jsx("li",{style:{gridRow:"span 3"},children:S.jsx(Fl,{asChild:!0,children:S.jsxs(gA,{href:"/",children:[S.jsxs("svg",{"aria-hidden":!0,width:"38",height:"38",viewBox:"0 0 25 25",fill:"white",children:[S.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z"}),S.jsx("path",{d:"M12 0H4V8H12V0Z"}),S.jsx("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z"})]}),S.jsx(vA,{children:"Radix Primitives"}),S.jsx(yA,{children:"Unstyled, accessible components for React."})]})})}),S.jsx(Ct,{href:"https://stitches.dev/",title:"Stitches",children:"CSS-in-JS with best-in-class developer experience."}),S.jsx(Ct,{href:"/colors",title:"Colors",children:"Beautiful, thought-out palettes with auto dark mode."}),S.jsx(Ct,{href:"https://icons.radix-ui.com/",title:"Icons",children:"A crisp set of 15x15 icons, balanced and consistent."})]})})]}),S.jsxs(Ts,{children:[S.jsxs(Cp,{children:["Overview ",S.jsx(Bl,{"aria-hidden":!0})]}),S.jsx(Dp,{children:S.jsxs(Ep,{className:"two",children:[S.jsx(Ct,{title:"Introduction",href:"/primitives/docs/overview/introduction",children:"Build high-quality, accessible design systems and web apps."}),S.jsx(Ct,{title:"Getting started",href:"/primitives/docs/overview/getting-started",children:"A quick tutorial to get you up and running with Radix Primitives."}),S.jsx(Ct,{title:"Styling",href:"/primitives/docs/guides/styling",children:"Unstyled and compatible with any styling solution."}),S.jsx(Ct,{title:"Animation",href:"/primitives/docs/guides/animation",children:"Use CSS keyframes or any animation library of your choice."}),S.jsx(Ct,{title:"Accessibility",href:"/primitives/docs/overview/accessibility",children:"Tested in a range of browsers and assistive technologies."}),S.jsx(Ct,{title:"Releases",href:"/primitives/docs/overview/releases",children:"Radix Primitives releases and their changelogs."})]})})]}),S.jsx(Ts,{children:S.jsx(Fl,{href:"https://github.com/radix-ui",children:"Github"})}),S.jsx(fA,{children:S.jsx(xA,{})})]}),S.jsx($A,{children:S.jsx(pA,{})})]})}exports.Avatar=F2;exports.AvatarGroup=I2;exports.Badge=nD;exports.BreadcrumbEllipsis=rD;exports.BreadcrumbItem=UP;exports.BreadcrumbLink=HP;exports.BreadcrumbSeparator=GP;exports.Breadcrumbs=WP;exports.Button=YP;exports.Card=ZP;exports.Checkbox=JP;exports.CircularEasing=DS;exports.CircularProgressbar=Q9;exports.Collapsible=n9;exports.CollapsibleTrigger=t9;exports.CollapsibleTriggerStateContext=ac;exports.Container=i9;exports.ContextMenu=t1;exports.DateInput=n1;exports.Dialog=M9;exports.Divider=h9;exports.Drawer=s1;exports.Input=a1;exports.LinearProgressbar=aS;exports.Link=g9;exports.Meter=D9;exports.Modal=P9;exports.ModalOverlay=T9;exports.NavigationMenu=wA;exports.NumberInput=l1;exports.Option=vS;exports.PinInput=u1;exports.Pulse=c1;exports.Select=d1;exports.Slider=f1;exports.Switch=kS;exports.Tab=VS;exports.TabList=OS;exports.TabPanel=NS;exports.Tabs=LS;exports.TabsOrientationContext=Pa;exports.TimeInput=h1;exports.ToggleButton=WS;exports.Tooltip=eT;exports.defaultTheme=x;exports.mergeTheme=Lh;
|